@flarehr/workflows-app 4.55.0 → 4.56.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,6 +1,6 @@
1
1
  (function(){"use strict";var Pr,Y,El,gn,Tl,Pl,Js,Zs,Xs,Ks,Ol,Or={},Ml=[],Lh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ii=Array.isArray;function Rt(e,t){for(var n in t)e[n]=t[n];return e}function Dl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function d(e,t,n){var r,i,s,o={};for(s in t)s=="key"?r=t[s]:s=="ref"?i=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?Pr.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)o[s]===void 0&&(o[s]=e.defaultProps[s]);return Mr(e,o,r,i,null)}function Mr(e,t,n,r,i){var s={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++El,__i:-1,__u:0};return i==null&&Y.vnode!=null&&Y.vnode(s),s}function Nl(){return{current:null}}function Se(e){return e.children}function st(e,t){this.props=e,this.context=t}function Gn(e,t){if(t==null)return e.__?Gn(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"?Gn(e):null}function Rl(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 Rl(e)}}function Qs(e){(!e.__d&&(e.__d=!0)&&gn.push(e)&&!Ai.__r++||Tl!==Y.debounceRendering)&&((Tl=Y.debounceRendering)||Pl)(Ai)}function Ai(){var e,t,n,r,i,s,o,a;for(gn.sort(Js);e=gn.shift();)e.__d&&(t=gn.length,r=void 0,s=(i=(n=e).__v).__e,o=[],a=[],n.__P&&((r=Rt({},i)).__v=i.__v+1,Y.vnode&&Y.vnode(r),eo(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[s]:null,o,s??Gn(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Wl(o,r,a),r.__e!=s&&Rl(r)),gn.length>t&&gn.sort(Js));Ai.__r=0}function Bl(e,t,n,r,i,s,o,a,l,u,f){var c,p,m,$,g,w=r&&r.__k||Ml,b=t.length;for(n.__d=l,Vh(n,t,w),l=n.__d,c=0;c<b;c++)(m=n.__k[c])!=null&&(p=m.__i===-1?Or:w[m.__i]||Or,m.__i=c,eo(e,m,p,i,s,o,a,l,u,f),$=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&to(p.ref,null,m),f.push(m.ref,m.__c||$,m)),g==null&&$!=null&&(g=$),65536&m.__u||p.__k===m.__k?l=Ll(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 Vh(e,t,n){var r,i,s,o,a,l=t.length,u=n.length,f=u,c=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(o=r+c,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Mr(null,i,null,null,null):Ii(i)?Mr(Se,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Mr(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,s=null,(a=i.__i=Fh(i,n,o,f))!==-1&&(f--,(s=n[a])&&(s.__u|=131072)),s==null||s.__v===null?(a==-1&&c--,typeof i.type!="function"&&(i.__u|=65536)):a!==o&&(a==o-1?c--:a==o+1?c++:(a>o?c--:c++,i.__u|=65536))):i=e.__k[r]=null;if(f)for(r=0;r<u;r++)(s=n[r])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Gn(s)),jl(s,s))}function Ll(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Ll(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Gn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Bt(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ii(e)?e.some(function(n){Bt(n,t)}):t.push(e)),t}function Fh(e,t,n,r){var i=e.key,s=e.type,o=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&s===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)&&i==l.key&&s===l.type)return o;o--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&s===l.type)return a;a++}}return-1}function Vl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Lh.test(t)?n:n+"px"}function Ei(e,t,n,r,i){var s;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Vl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Vl(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r?n.u=r.u:(n.u=Zs,e.addEventListener(t,s?Ks:Xs,s)):e.removeEventListener(t,s?Ks:Xs,s);else{if(i=="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 Fl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=Zs++;else if(t.t<n.u)return;return n(Y.event?Y.event(t):t)}}}function eo(e,t,n,r,i,s,o,a,l,u){var f,c,p,m,$,g,w,b,y,x,B,V,te,Ke,Re,qe,dt=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),s=[a=t.__e=n.__e]),(f=Y.__b)&&f(t);e:if(typeof dt=="function")try{if(b=t.props,y="prototype"in dt&&dt.prototype.render,x=(f=dt.contextType)&&r[f.__c],B=f?x?x.props.value:f.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:(y?t.__c=c=new dt(b,B):(t.__c=c=new st(b,B),c.constructor=dt,c.render=jh),x&&x.sub(c),c.props=b,c.state||(c.state={}),c.context=B,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),y&&c.__s==null&&(c.__s=c.state),y&&dt.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=Rt({},c.__s)),Rt(c.__s,dt.getDerivedStateFromProps(b,c.__s))),m=c.props,$=c.state,c.__v=t,p)y&&dt.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),y&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(y&&dt.getDerivedStateFromProps==null&&b!==m&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(b,B),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(b,c.__s,B)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=b,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(Tr){Tr&&(Tr.__=t)}),V=0;V<c._sb.length;V++)c.__h.push(c._sb[V]);c._sb=[],c.__h.length&&o.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(b,c.__s,B),y&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(m,$,g)})}if(c.context=B,c.props=b,c.__P=e,c.__e=!1,te=Y.__r,Ke=0,y){for(c.state=c.__s,c.__d=!1,te&&te(t),f=c.render(c.props,c.state,c.context),Re=0;Re<c._sb.length;Re++)c.__h.push(c._sb[Re]);c._sb=[]}else do c.__d=!1,te&&te(t),f=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++Ke<25);c.state=c.__s,c.getChildContext!=null&&(r=Rt(Rt({},r),c.getChildContext())),y&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(m,$)),Bl(e,Ii(qe=f!=null&&f.type===Se&&f.key==null?f.props.children:f)?qe:[qe],t,n,r,i,s,o,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&o.push(c),w&&(c.__E=c.__=null)}catch(Tr){if(t.__v=null,l||s!=null){for(t.__u|=l?160:32;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;s[s.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;Y.__e(Tr,t,n)}else s==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Wh(n.__e,t,n,r,i,s,o,l,u);(f=Y.diffed)&&f(t)}function Wl(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)to(n[r],n[++r],n[++r]);Y.__c&&Y.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(s){s.call(i)})}catch(s){Y.__e(s,i.__v)}})}function Wh(e,t,n,r,i,s,o,a,l){var u,f,c,p,m,$,g,w=n.props,b=t.props,y=t.type;if(y==="svg"?i="http://www.w3.org/2000/svg":y==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),s!=null){for(u=0;u<s.length;u++)if((m=s[u])&&"setAttribute"in m==!!y&&(y?m.localName===y:m.nodeType===3)){e=m,s[u]=null;break}}if(e==null){if(y===null)return document.createTextNode(b);e=document.createElementNS(i,y,b.is&&b),a&&(Y.__m&&Y.__m(t,s),a=!1),s=null}if(y===null)w===b||a&&e.data===b||(e.data=b);else{if(s=s&&Pr.call(e.childNodes),w=n.props||Or,!a&&s!=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 b)){if(u=="value"&&"defaultValue"in b||u=="checked"&&"defaultChecked"in b)continue;Ei(e,u,null,m,i)}}for(u in b)m=b[u],u=="children"?p=m:u=="dangerouslySetInnerHTML"?f=m:u=="value"?$=m:u=="checked"?g=m:a&&typeof m!="function"||w[u]===m||Ei(e,u,m,w[u],i);if(f)a||c&&(f.__html===c.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(c&&(e.innerHTML=""),Bl(e,Ii(p)?p:[p],t,n,r,y==="foreignObject"?"http://www.w3.org/1999/xhtml":i,s,o,s?s[0]:n.__k&&Gn(n,0),a,l),s!=null)for(u=s.length;u--;)Dl(s[u]);a||(u="value",y==="progress"&&$==null?e.removeAttribute("value"):$!==void 0&&($!==e[u]||y==="progress"&&!$||y==="option"&&$!==w[u])&&Ei(e,u,$,w[u],i),u="checked",g!==void 0&&g!==e[u]&&Ei(e,u,g,w[u],i))}return e}function to(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(i){Y.__e(i,n)}}function jl(e,t,n){var r,i;if(Y.unmount&&Y.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||to(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(s){Y.__e(s,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&jl(r[i],t,n||typeof e.type!="function");n||Dl(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function jh(e,t,n){return this.constructor(e,n)}function Dr(e,t,n){var r,i,s,o;Y.__&&Y.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,s=[],o=[],eo(t,e=(!r&&n||t).__k=d(Se,null,[e]),i||Or,Or,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?Pr.call(t.childNodes):null,s,!r&&n?n:i?i.__e:t.firstChild,r,o),Wl(s,e,o)}function Ul(e,t){Dr(e,t,Ul)}function Uh(e,t,n){var r,i,s,o,a=Rt({},e.props);for(s in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)s=="key"?r=t[s]:s=="ref"?i=t[s]:a[s]=t[s]===void 0&&o!==void 0?o[s]:t[s];return arguments.length>2&&(a.children=arguments.length>3?Pr.call(arguments,2):n),Mr(e.type,a,r||e.key,i||e.ref,null)}function zl(e,t){var n={__c:t="__cC"+Ol++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,s;return this.getChildContext||(i=[],(s={})[t]=this,this.getChildContext=function(){return s},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&i.some(function(a){a.__e=!0,Qs(a)})},this.sub=function(o){i.push(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){i&&i.splice(i.indexOf(o),1),a&&a.call(o)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}Pr=Ml.slice,Y={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&s.getDerivedStateFromError!=null&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(a){e=a}throw e}},El=0,st.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Rt({},this.state),typeof e=="function"&&(e=e(Rt({},n),this.props)),e&&Rt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Qs(this))},st.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qs(this))},st.prototype.render=Se,gn=[],Pl=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Js=function(e,t){return e.__v.__b-t.__v.__b},Ai.__r=0,Zs=0,Xs=Fl(!1),Ks=Fl(!0),Ol=0;var Lt,ue,no,Hl,qn=0,Gl=[],we=Y,ql=we.__b,Yl=we.__r,Jl=we.diffed,Zl=we.__c,Xl=we.unmount,Kl=we.__;function wn(e,t){we.__h&&we.__h(ue,e,qn||t),qn=0;var n=ue.__H||(ue.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Yn(e){return qn=1,Ti(eu,e)}function Ti(e,t,n){var r=wn(Lt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):eu(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=ue,!ue.u)){var i=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!s||s.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)&&(!s||s.call(this,a,l,u))};ue.u=!0;var s=ue.shouldComponentUpdate,o=ue.componentWillUpdate;ue.componentWillUpdate=function(a,l,u){if(this.__e){var f=s;s=void 0,i(a,l,u),s=f}o&&o.call(this,a,l,u)},ue.shouldComponentUpdate=i}return r.__N||r.__}function yn(e,t){var n=wn(Lt++,3);!we.__s&&co(n.__H,t)&&(n.__=e,n.i=t,ue.__H.__h.push(n))}function _n(e,t){var n=wn(Lt++,4);!we.__s&&co(n.__H,t)&&(n.__=e,n.i=t,ue.__h.push(n))}function ro(e){return qn=5,Nr(function(){return{current:e}},[])}function io(e,t,n){qn=6,_n(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 Nr(e,t){var n=wn(Lt++,7);return co(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function so(e,t){return qn=8,Nr(function(){return e},t)}function oo(e){var t=ue.context[e.__c],n=wn(Lt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ue)),t.props.value):e.__}function ao(e,t){we.useDebugValue&&we.useDebugValue(t?t(e):e)}function zh(e){var t=wn(Lt++,10),n=Yn();return t.__=e,ue.componentDidCatch||(ue.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function lo(){var e=wn(Lt++,11);if(!e.__){for(var t=ue.__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 Hh(){for(var e;e=Gl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pi),e.__H.__h.forEach(uo),e.__H.__h=[]}catch(t){e.__H.__h=[],we.__e(t,e.__v)}}we.__b=function(e){ue=null,ql&&ql(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Kl&&Kl(e,t)},we.__r=function(e){Yl&&Yl(e),Lt=0;var t=(ue=e.__c).__H;t&&(no===ue?(t.__h=[],ue.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Pi),t.__h.forEach(uo),t.__h=[],Lt=0)),no=ue},we.diffed=function(e){Jl&&Jl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Gl.push(t)!==1&&Hl===we.requestAnimationFrame||((Hl=we.requestAnimationFrame)||Gh)(Hh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),no=ue=null},we.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Pi),n.__h=n.__h.filter(function(r){return!r.__||uo(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],we.__e(r,n.__v)}}),Zl&&Zl(e,t)},we.unmount=function(e){Xl&&Xl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Pi(r)}catch(i){t=i}}),n.__H=void 0,t&&we.__e(t,n.__v))};var Ql=typeof requestAnimationFrame=="function";function Gh(e){var t,n=function(){clearTimeout(r),Ql&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ql&&(t=requestAnimationFrame(n))}function Pi(e){var t=ue,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ue=t}function uo(e){var t=ue;e.__c=e.__(),ue=t}function co(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function eu(e,t){return typeof t=="function"?t(e):t}function fo(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 Oi(e,t){this.props=e,this.context=t}function tu(e,t){function n(i){var s=this.props.ref,o=s==i.ref;return!o&&s&&(s.call?s(null):s.current=null),t?!t(this.props,i)||!o:fo(this.props,i)}function r(i){return this.shouldComponentUpdate=n,d(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Oi.prototype=new st).isPureReactComponent=!0,Oi.prototype.shouldComponentUpdate=function(e,t){return fo(this.props,e)||fo(this.state,t)};var nu=Y.__b;Y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),nu&&nu(e)};var qh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ru(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=qh,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var iu=function(e,t){return e==null?null:Bt(Bt(e).map(t))},su={map:iu,forEach:iu,count:function(e){return e?Bt(e).length:0},only:function(e){var t=Bt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Bt},Yh=Y.__e;Y.__e=function(e,t,n,r){if(e.then){for(var i,s=t;s=s.__;)if((i=s.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Yh(e,t,n,r)};var ou=Y.unmount;function au(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,i){for(var s in i)r[s]=i[s];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 au(r,t,n)})),e}function lu(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return lu(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 Rr(){this.__u=0,this.t=null,this.__b=null}function uu(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function cu(e){var t,n,r;function i(s){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,s)}return i.displayName="Lazy",i.__f=!0,i}function Jn(){this.u=null,this.o=null}Y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ou&&ou(e)},(Rr.prototype=new st).__c=function(e,t){var n=t.__c,r=this;r.t==null&&(r.t=[]),r.t.push(n);var i=uu(r.__v),s=!1,o=function(){s||(s=!0,n.__R=null,i?i(a):a())};n.__R=o;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=lu(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)},Rr.prototype.componentWillUnmount=function(){this.t=[]},Rr.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]=au(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&d(Se,null,e.fallback);return i&&(i.__u&=-33),[d(Se,null,t.__a?null:e.children),i]};var fu=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 Jh(e){return this.getChildContext=function(){return e.context},e.children}function Zh(e){var t=this,n=e.i;t.componentWillUnmount=function(){Dr(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,i){this.childNodes.push(r),t.i.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.i.removeChild(r)}}),Dr(d(Jh,{context:t.context},e.__v),t.l)}function du(e,t){var n=d(Zh,{__v:e,i:t});return n.containerInfo=t,n}(Jn.prototype=new st).__a=function(e){var t=this,n=uu(t.__v),r=t.o.get(e);return r[0]++,function(i){var s=function(){t.props.revealOrder?(r.push(i),fu(t,e,r)):i()};n?n(s):s()}},Jn.prototype.render=function(e){this.u=null,this.o=new Map;var t=Bt(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},Jn.prototype.componentDidUpdate=Jn.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){fu(e,n,t)})};var hu=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Xh=/^(?: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]/,Kh=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Qh=/[A-Z0-9]/g,em=typeof document<"u",tm=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Mi(e,t,n){return t.__k==null&&(t.textContent=""),Dr(e,t),typeof n=="function"&&n(),e?e.__c:null}function mu(e,t,n){return Ul(e,t),typeof n=="function"&&n(),e?e.__c:null}st.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(st.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var pu=Y.event;function nm(){}function rm(){return this.cancelBubble}function im(){return this.defaultPrevented}Y.event=function(e){return pu&&(e=pu(e)),e.persist=nm,e.isPropagationStopped=rm,e.isDefaultPrevented=im,e.nativeEvent=e};var ho,sm={enumerable:!1,configurable:!0,get:function(){return this.class}},$u=Y.vnode;Y.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},s=r.indexOf("-")===-1;for(var o in n){var a=n[o];if(!(o==="value"&&"defaultValue"in n&&a==null||em&&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"||tm(n.type)?l==="onfocus"?o="onfocusin":l==="onblur"?o="onfocusout":Kh.test(o)&&(o=l):l=o="oninput":s&&Xh.test(o)?o=o.replace(Qh,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[o=l]&&(o="oninputCapture"),i[o]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Bt(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Bt(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",sm)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=hu,$u&&$u(e)};var gu=Y.__r;Y.__r=function(e){gu&&gu(e),ho=e.__c};var wu=Y.diffed;Y.diffed=function(e){wu&&wu(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),ho=null};var yu={ReactCurrentDispatcher:{current:{readContext:function(e){return ho.__n[e.__c].props.value},useCallback:so,useContext:oo,useDebugValue:ao,useDeferredValue:$o,useEffect:yn,useId:lo,useImperativeHandle:io,useInsertionEffect:wo,useLayoutEffect:_n,useMemo:Nr,useReducer:Ti,useRef:ro,useState:Yn,useSyncExternalStore:yo,useTransition:go}}},_u="18.3.1";function vu(e){return d.bind(null,e)}function Br(e){return!!e&&e.$$typeof===hu}function bu(e){return Br(e)&&e.type===Se}function Cu(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Su(e){return Br(e)?Uh.apply(null,arguments):e}function mo(e){return!!e.__k&&(Dr(null,e),!0)}function ku(e){return e&&(e.base||e.nodeType===1&&e)||null}var xu=function(e,t){return e(t)},Iu=function(e,t){return e(t)},Au=Se;function po(e){e()}function $o(e){return e}function go(){return[!1,po]}var wo=_n,Eu=Br;function yo(e,t){var n=t(),r=Yn({h:{__:n,v:t}}),i=r[0].h,s=r[1];return _n(function(){i.__=n,i.v=t,_o(i)&&s({h:i})},[e,n,t]),yn(function(){return _o(i)&&s({h:i}),e(function(){_o(i)&&s({h:i})})},[e]),n}function _o(e){var t,n,r=e.v,i=e.__;try{var s=r();return!((t=i)===(n=s)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}var Di={useState:Yn,useId:lo,useReducer:Ti,useEffect:yn,useLayoutEffect:_n,useInsertionEffect:wo,useTransition:go,useDeferredValue:$o,useSyncExternalStore:yo,startTransition:po,useRef:ro,useImperativeHandle:io,useMemo:Nr,useCallback:so,useContext:oo,useDebugValue:ao,version:"18.3.1",Children:su,render:Mi,hydrate:mu,unmountComponentAtNode:mo,createPortal:du,createElement:d,createContext:zl,createFactory:vu,cloneElement:Su,createRef:Nl,Fragment:Se,isValidElement:Br,isElement:Eu,isFragment:bu,isMemo:Cu,findDOMNode:ku,Component:st,PureComponent:Oi,memo:tu,forwardRef:ru,flushSync:Iu,unstable_batchedUpdates:xu,StrictMode:Au,Suspense:Rr,SuspenseList:Jn,lazy:cu,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yu};const om=Object.freeze(Object.defineProperty({__proto__:null,Children:su,Component:st,Fragment:Se,PureComponent:Oi,StrictMode:Au,Suspense:Rr,SuspenseList:Jn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yu,cloneElement:Su,createContext:zl,createElement:d,createFactory:vu,createPortal:du,createRef:Nl,default:Di,findDOMNode:ku,flushSync:Iu,forwardRef:ru,hydrate:mu,isElement:Eu,isFragment:bu,isMemo:Cu,isValidElement:Br,lazy:cu,memo:tu,render:Mi,startTransition:po,unmountComponentAtNode:mo,unstable_batchedUpdates:xu,useCallback:so,useContext:oo,useDebugValue:ao,useDeferredValue:$o,useEffect:yn,useErrorBoundary:zh,useId:lo,useImperativeHandle:io,useInsertionEffect:wo,useLayoutEffect:_n,useMemo:Nr,useReducer:Ti,useRef:ro,useState:Yn,useSyncExternalStore:yo,useTransition:go,version:_u},Symbol.toStringTag,{value:"Module"}));function ht(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function am(e){return e!=null&&typeof e.GetEnumerator=="function"}function lm(e){return e!=null&&typeof e.CompareTo=="function"}function um(e){return e!=null&&typeof e.Equals=="function"}function Tu(e){return e!=null&&typeof e.GetHashCode=="function"}function vo(e){return e!=null&&typeof e.Dispose=="function"}function oe(e){vo(e)&&e.Dispose()}function K(){return null}function Ni(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 cm{constructor(t){this.iter=t,this.current=K()}"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 de(e){return am(e)?e.GetEnumerator():new cm(e[Symbol.iterator]())}function Lr(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 fm{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 ae(e,t){return e.toString(10).padStart(t,"0")}function dm(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Pu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function hm(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function rn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class Vt{static id(t){return Vt.idMap.has(t)||Vt.idMap.set(t,++Vt.count),Vt.idMap.get(t)}}Vt.idMap=new WeakMap,Vt.count=0;function Ri(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function mt(e){return e*2654435761|0}function Ou(e){return Ri(e.toString(32))}function Vr(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function mm(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return mt(e);case"bigint":return Ou(e);case"string":return Ri(e);default:return mt(Vt.id(e))}}function pm(e){return Tu(e)?e.GetHashCode():mm(e)}function $m(e){return e.getTime()}function gm(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Ft(e[r]);return Vr(n)}function Ft(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return mt(e);case"bigint":return Ou(e);case"string":return Ri(e);default:{if(Tu(e))return e.GetHashCode();if(ht(e))return gm(e);if(e instanceof Date)return $m(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Ft(r));return Vr(n)}else return mt(Vt.id(e))}}}function bo(e){return pm(e)}function Co(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 Mu(e,t){return Co(e,t,M)}function wm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!M(e[n[i]],t[r[i]]))return!1;return!0}function M(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:um(e)?e.Equals(t):ht(e)?ht(t)&&Mu(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Du(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&wm(e,t)}function Du(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Pu(e),r=t.getTime()+Pu(t)),n===r?0:n<r?-1:1}function Bi(e,t){return e===t?0:e<t?-1:1}function ym(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,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function Nu(e,t){return ym(e,t,ot)}function _m(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 i=0,s=0;i<n.length;i++){const o=n[i];if(o!==r[i])return o<r[i]?-1:1;if(s=ot(e[o],t[o]),s!==0)return s}return 0}function ot(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:lm(e)?e.CompareTo(t):ht(e)?ht(t)?Nu(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Du(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?_m(e,t):-1}function S(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function vm(e){ht(e)?e.splice(0):e.clear()}const Li=new WeakMap;function Q(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Li.set(t,e),t}function kt(e){return Li.get(e)??(t=>n=>e(t,n))}function So(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Li.set(t,e),t}function Vi(e){return Li.get(e)??(t=>n=>r=>e(t,n,r))}function bm(e){let t=0,n="[";for(const r of e){if(t===0)n+=xt(r);else if(t===100){n+="; ...";break}else n+="; "+xt(r);t++}return n+"]"}function xt(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 bm(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,s])=>i+" = "+xt(s,t+1)).join(`
2
2
  `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Cm(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=xt(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>xt(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class N{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return Cm(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Ft(n));return t.splice(0,0,mt(this.tag)),Vr(t)}Equals(t){return this===t?!0:Ni(this,t)&&this.tag===t.tag?Mu(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Ni(this,t)?this.tag===t.tag?Nu(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Sm(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function km(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+xt(n)).join(`
3
- `)+" }"}function xm(e){const t=Object.values(e).map(n=>Ft(n));return Vr(t)}function Im(e,t){if(e===t)return!0;if(Ni(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!M(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Am(e,t){if(e===t)return 0;if(Ni(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=ot(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class R{toJSON(){return Sm(this)}toString(){return km(this)}GetHashCode(){return xm(this)}Equals(t){return Im(this,t)}CompareTo(t){return Am(this,t)}}class Ye{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 Em{constructor(t){this.message=t}}function Tm(e){return e instanceof Em||e instanceof Error}function Pm(e){return e instanceof Promise}function Fi(e){return Tm(e)||Pm(e)?e:new Error(String(e))}const Zn=Symbol("numeric");function Ru(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Zn])}function Om(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ko(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Zn]().multiply(t)}function Wi(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Zn]().toFixed(t)}function ji(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Zn]().toPrecision(t)}function Ui(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Zn]().toExponential(t)}function zi(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Zn]().toHex()}class Mm{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Be{constructor(t,n,r,i,s,o,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=s,this.cases=o,this.enumCases=a}toString(){return pe(this)}GetHashCode(){return Bu(this)}Equals(t){return xo(this,t)}}function Qe(e){return e.generics!=null?e.generics:[]}function Bu(e){const t=Ri(e.fullname),n=Qe(e).map(Bu);return Vr([t,...n])}function xo(e,t){return e.fullname===""?t.fullname===""&&Co(Wr(e),Wr(t),([n,r],[i,s])=>n===i&&xo(r,s)):e.fullname===t.fullname&&Co(Qe(e),Qe(t),xo)}function Wt(e,t,n,r){return new Be(e,t,n,r)}function ne(e,t,n,r){return new Be(e,t,n,void 0,r)}function Je(...e){return new Be("",void 0,void 0,void 0,()=>e)}function at(e,t,n,r){const i=new Be(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((o,a)=>new Mm(i,a,s[a],o))});return i}function Dm(...e){return new Be("System.Tuple`"+e.length,e)}function J(e){return new Be("Microsoft.FSharp.Core.FSharpOption`1",[e])}function sn(e){return new Be("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Nm=new Be("System.Object"),z=new Be("System.String"),lt=new Be("System.Boolean"),Hi=new Be("System.Int32"),Rm=new Be("System.Double");function Xn(e){if(Array.isArray(e))return e[0];if(e instanceof Be){const t=Fr(e);if(t!=null)return Xn(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function pe(e){const t=Fr(e);return t!=null?pe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>pe(n)).join(",")+"]"}function Lu(e){return Fr(e)!=null}function Fr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Vu(e){return e.generics!=null&&e.generics.length>0}function Io(e){return e.enumCases!=null&&e.enumCases.length>0}function Fu(e){return e.generics==null?e:new Be(e.fullname,e.generics.map(()=>Nm))}function Wu(e){var t;return(t=e.generics)==null?void 0:t[0]}function Kn(e){if(Io(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Bm(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 Qn(e,t){const n=parseInt(t,10);return Bm(e,isNaN(n)?t:n)[1]}function ju(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Wr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Uu(e){if(Ao(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function zu(e){return e instanceof Be?e.cases!=null:e instanceof N}function Hu(e){return e instanceof Be?e.fields!=null:e instanceof R}function Ao(e){return e.fullname.startsWith("System.Tuple")}function Lm(e,t){const r=ju(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Gu(e){return e.fields==null?[]:e.fields}function Vm(e,t){return e[t[0]]}function H3(e){return e}function Fm(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 Wm(e,t){const n=Wr(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,[i,s],o)=>(r[i]=t[o],r),{})}function jm(e,t){return e}class vn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ft(this.value)}Equals(t){return t==null?!1:M(this.value,t instanceof vn?t.value:t)}CompareTo(t){return t==null?1:ot(this.value,t instanceof vn?t.value:t)}}function I(e){if(e==null)throw new Error("Option has no value");return e instanceof vn?e.value:e}function Gi(e){return e instanceof vn?e.value:e}function ke(e){return e==null||e instanceof vn?new vn(e):e}function qu(e){return e??void 0}function qi(e){return e==null?[]:[I(e)]}function be(e,t){return e!=null?I(e):t}function Um(e,t){return e!=null?I(e):t()}function Yu(e,t){return e??t}function Ee(e,t){return t!=null?ke(e(I(t))):void 0}function on(e,t){return t!=null?e(I(t)):void 0}const zm=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Hm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Gm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qm=["January","February","March","April","May","June","July","August","September","October","November","December"];function et(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Ju(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ym(e,t){let n=t;const r=e[t];let i="",s=!1;for(;t<e.length;){t++;const o=e[t];if(o===r){s=!0;break}else if(o==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=o}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Eo(e,t,n){let r=0,i=0,s="";const o=n?bn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=et(t,r,"d"),r+=i,i){case 1:s+=To(o);break;case 2:s+=ae(To(o),2);break;case 3:s+=zm[tc(o)];break;case 4:s+=Hm[tc(o)];break}break;case"f":if(i=et(t,r,"f"),r+=i,i<=3){const w=10**(3-i);s+=ae(Math.floor(Xi(o)/w),i)}else i<=7&&(s+=(""+Xi(o)).padEnd(i,"0"));break;case"F":if(i=et(t,r,"F"),r+=i,i<=3){const w=10**(3-i),b=Math.floor(Xi(o)/w);b!=0&&(s+=ae(b,i))}else if(i<=7){const w=Xi(o);w!=0&&(s+=ae(w,3))}break;case"g":i=et(t,r,"g"),r+=i,i<=2&&(s+="A.D.");break;case"h":switch(i=et(t,r,"h"),r+=i,i){case 1:s+=Zi(o)%12;break;case 2:s+=ae(Zi(o)%12,2);break}break;case"H":switch(i=et(t,r,"H"),r+=i,i){case 1:s+=Zi(o);break;case 2:s+=ae(Zi(o),2);break}break;case"K":switch(i=et(t,r,"K"),r+=i,i){case 1:switch(Zu(o)){case 1:s+="Z";break;case 2:s+=er(o.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=et(t,r,"m"),r+=i,i){case 1:s+=Qu(o);break;case 2:s+=ae(Qu(o),2);break}break;case"M":switch(i=et(t,r,"M"),r+=i,i){case 1:s+=jr(o);break;case 2:s+=ae(jr(o),2);break;case 3:s+=Gm[jr(o)-1];break;case 4:s+=qm[jr(o)-1];break}break;case"s":switch(i=et(t,r,"s"),r+=i,i){case 1:s+=ec(o);break;case 2:s+=ae(ec(o),2);break}break;case"t":switch(i=et(t,r,"t"),r+=i,i){case 1:s+=o.getHours()<12?"A":"P";break;case 2:s+=o.getHours()<12?"AM":"PM";break}break;case"y":switch(i=et(t,r,"y"),r+=i,i){case 1:s+=o.getFullYear()%100;break;case 2:s+=ae(o.getFullYear()%100,2);break;case 3:s+=ae(o.getFullYear(),3);break;case 4:s+=ae(o.getFullYear(),4);break;case 5:s+=ae(o.getFullYear(),5);break}break;case"z":i=et(t,r,"z"),r+=i;let l="";switch(Zu(o)){case 1:l="+00:00";break;case 2:l=er(o.getTimezoneOffset()*-6e4);break;case 0:l=er(sp(o).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(i){case 1:s+=`${u}${f}`;break;case 2:s+=`${u}${ae(f,2)}`;break;default:s+=`${u}${ae(f,2)}:${ae(c,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[p,m]=Ym(t,r);s+=p,r+=m;break;case"%":const $=Ju(t,r);if($>=0&&$!==37)r+=2,s+=Eo(o,String.fromCharCode($),n);else throw new Error("Invalid format string");break;case"\\":const g=Ju(t,r);if(g>=0)r+=2,s+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function Zu(e){return e.kind||0}function er(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ae(n,2)+":"+ae(r,2)}function Yi(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 Jm(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ae(e.getFullYear(),4)+"-"+ae(e.getMonth()+1,2)+"-"+ae(e.getDate(),2)+"T"+ae(e.getHours(),2)+":"+ae(e.getMinutes(),2)+":"+ae(e.getSeconds(),2)+"."+ae(e.getMilliseconds(),3)+(n?er(e.getTimezoneOffset()*-6e4):"")}}function Zm(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+er(t)}function Xm(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," ")+er(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Yi(n,"first");case"T":case"t":return Yi(n,"second");case"O":case"o":return Zm(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Eo(n,t,!0)}function Km(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?Yi(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Yi(e,"second"):e.toLocaleTimeString();case"O":case"o":return Jm(e,n);default:throw new Error("Unrecognized Date print format")}else return Eo(e,t,n)}function Ji(e,t,n){return e.offset!=null?Xm(e,t):Km(e,t)}function bn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Qm(){return bn(-621355968e5,1)}function Xu(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 i=/^\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(i!=null){let s,o=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);o=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(o+=720)}if(i[4]!=null){if(i[1]!=null)s=new Date(i[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,o-=a*60}}else if(i[1]!=null)s=new Date(i[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+o*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function ep(e,t=!1){const[n,r]=Xu(e),i=r!=null?t&&r==="Z"?1:2:0;return bn(n.getTime(),i)}function tp(e,t){try{return t.contents=ep(e),!0}catch{return!1}}function np(e,t,n,r=0,i=0,s=0,o=0,a){const l=a===1?new Date(Date.UTC(e,t-1,n,r,i,s,o)):new Date(e,t-1,n,r,i,s,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 bn(u,a)}function rp(){return bn(Date.now(),2)}function Ku(){return op(rp())}function ip(e){return e.kind===1?e:bn(e.getTime(),1)}function sp(e){return e.kind===2?e:bn(e.getTime(),2)}function op(e){return np(Po(e),jr(e),To(e),0,0,0,0,e.kind)}function To(e){return e.kind===1?e.getUTCDate():e.getDate()}function Zi(e){return e.kind===1?e.getUTCHours():e.getHours()}function Xi(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Qu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function jr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ec(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Po(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function tc(e){return e.kind===1?e.getUTCDay():e.getDay()}function nc(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Ki(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ap(e,t,n=0){return e.lastIndex=n,e.exec(t)}function rc(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 i,s=-1;for(;(i=e.exec(t))!=null;)i.index===s?e.lastIndex++:(s=i.index,r.push(i));return r}function lp(e,t,n,r,i=0){function s(){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=nc(t,r??0),t=o,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,s);if(n=n.replace(/\$0/g,o=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let o;const a=t.substring(i),l=rc(e,a),u=rc.length>r?(o=l[r-1],a.substring(0,o.index+o[0].length)):a;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const Ur=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,zr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,up=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ic(e,t){return Om(e,t)<0}function tr(e,t,n){function r(s){return s===!0||s===1||s===3||s===5}function i(s){return s===4||s===5}return e==null?t==null?0:-1:t==null?1:i(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 cp(...e){switch(e.length){case 2:return tr(e[0],e[1],!1);case 3:return tr(e[0],e[1],e[2]);case 4:return tr(e[0],e[1],e[2]===!0);case 5:return tr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return tr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return tr(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 Le(e){return{input:e,cont:fp(e)}}function sc(e,t){let n=0,r=0,i="";zr.lastIndex=0;let s=zr.exec(e);for(;s;){const o=s.index+(s[1]||"").length;i+=e.substring(r,o).replace(/%%/g,"%");const[,,a,l,u,f]=s;r=zr.lastIndex,i+=lc(t[n++],a,l,u,f),zr.lastIndex=r-1,s=zr.exec(e)}return i+=e.substring(r).replace(/%%/g,"%"),i}function oc(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ve(e){return oc(t=>t,e)}function ac(e){return oc(t=>{throw new Error(t)},e)}function lc(e,t,n,r,i){let s="";if(t=t||"",i=i||"",Ru(e))switch(i.toLowerCase()!=="x"&&(ic(e,0)?(e=ko(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=Wi(e,r);break;case"g":case"G":e=r!=null?ji(e,r):ji(e);break;case"e":case"E":e=r!=null?Ui(e,r):Ui(e);break;case"x":e=zi(e);break;case"X":e=zi(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ji(e):e=xt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const o=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!o?" ":"0";l==="0"?(e=Gr(e,n-s.length,l,a),e=s+e):e=Gr(s+e,n,l,a)}return e}function uc(e,t,n,r="",i=-1){return(...s)=>{let o=r;const a=t.slice(),l=n.slice();for(const u of s){const[,,f,c,p,m]=l[0];let $=c;if(i>=0)$=i,i=-1;else if($==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}o+=a[0],o+=lc(u,f,$,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(o+=a[0],e(o)):uc(e,a,l,o,i)}}function fp(e){return t=>{Ur.lastIndex=0;const n=[],r=[];let i=0,s=Ur.exec(e);for(;s;){const o=s.index+(s[1]||"").length;n.push(e.substring(i,o).replace(/%%/g,"%")),r.push(s),i=Ur.lastIndex,Ur.lastIndex-=1,s=Ur.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),uc(t,n,r))}}function cc(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(up,(r,i,s,o,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(Ru(u))switch(a=a==null?null:parseInt(a,10),o){case"f":case"F":a=a??2,u=Wi(u,a);break;case"g":case"G":u=a!=null?ji(u,a):ji(u);break;case"e":case"E":u=a!=null?Ui(u,a):Ui(u);break;case"p":case"P":a=a??2,u=Wi(ko(u,100),a)+" %";break;case"d":case"D":u=a!=null?Oo(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Oo(zi(u),a,"0"):zi(u),o==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,m)=>{ic(u,0)&&(u=ko(u,-1),f="-"),m=m==null?"":m.substring(1),u=Wi(u,Math.max(m.length,0));let[$,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;$=Oo($,w,"0");const b=m.replace(/#+$/,"").length;if(b>g.length?g=dp(g,b,"0"):b<g.length&&(g=g.substring(0,b)+g.substring(b).replace(/0+$/,"")),p.indexOf(",")>0){const y=$.length%3,x=Math.floor($.length/3);let B=y>0?$.substr(0,y)+(x>0?",":""):"";for(let V=0;V<x;V++)B+=$.substr(y+V*3,3)+(V<x-1?",":"");$=B}return g.length>0?$+"."+g:$}),u=f+u}}else u instanceof Date?u=Ji(u,l||o):u=xt(u);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(u=Gr(String(u),Math.abs(s)," ",s<0)),u})}function fc(e){return typeof e!="string"||e.length===0}function Hr(e){return typeof e!="string"||/^\s*$/.test(e)}function ge(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Gr(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function Oo(e,t,n){return Gr(e,t,n)}function dp(e,t,n){return Gr(e,t,n,!0)}function dc(e,t,n){return e.replace(new RegExp(Ki(t),"g"),n)}function Qi(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 i=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Ki),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=s?e.substring(u).trim():e.substring(u);(!i||c.length>0)&&o.push(c),l=!1}else{const c=s?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||c.length>0)&&(n!=null&&o.length+1===n?(o.push(s?e.substring(u).trim():e.substring(u)),l=!1):o.push(c)),u=a.lastIndex}}while(l);return o}function hp(e,...t){if(t.length===0)return e.trim();const n="["+Ki(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function mp(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Ki(t.join(""))+"]+$"),"")}function Mo(e,t){return t.split("").filter(n=>e(n)).join("")}function pp(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 $p(e){throw new Error(e)}function hc(e,t){return new Array(t)}function mc(e,t){return e>t?e:t}const Do="Collection was empty.",gp="An index satisfying the predicate was not found in the collection.";function es(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function nr(e,t,n){const r=t.length|0,i=hc(n,r);for(let s=0;s<=r-1;s++)pt(i,s,e(ee(s,t)));return i}function wp(e,t){const n=hc(t,1);return pt(n,0,e),n}function yp(e){return e.slice().reverse()}function _p(e,t){return t.find(e)}function vp(e,t){return(r=>{e:for(;;){const i=r;if(i<0)return;if(e(ee(i,t)))return i;r=i-1;continue e}})(t.length-1)}function bp(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const s=e(ee(i,t));if(s!=null){const o=I(s);r.push(o)}}return M(n,K())?r:nr(i=>i,r,n)}function ts(e,t,n){const r=e;return n.reduce(r,t)}function No(e,t,n){return t==null}function ee(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 pt(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 pc(e,t){if(!(e<0||e>=t.length))return ke(t[e])}function $c(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class Fe extends R{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+ge("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,s)=>{e:for(;;){const o=i,a=s,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=I(l),c=I(u);if(M(o.head,a.head)){i=f,s=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,s)=>{e:for(;;){const o=r,a=i,l=s,u=l.tail;if(u!=null){const f=I(u);if(o>18)return a|0;r=o+1,i=(a<<1)+Ft(l.head)+631*o,s=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,s)=>{e:for(;;){const o=i,a=s,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=I(l),c=I(u),p=ot(o.head,a.head)|0;if(p===0){i=f,s=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Sp(this)}[Symbol.iterator](){return Lr(de(this))}"System.Collections.IEnumerable.GetEnumerator"(){return de(this)}}class Cp{constructor(t){this.xs=t,this.it=this.xs,this.current=K()}"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=I(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=K()}Dispose(){}}function Sp(e){return new Cp(e)}function xe(){return new Fe(K(),void 0)}function qr(e,t){return new Fe(e,t)}function It(e){return e.tail==null}function gc(e){return((n,r)=>{e:for(;;){const i=n,o=r.tail;if(o!=null){n=i+1,r=I(o);continue e}else return i|0}})(0,e)|0}function an(e){if(e.tail!=null)return e.head;throw new Error(Do+"\\nParameter name: list")}function De(e){const t=e.tail;if(t!=null)return I(t);throw new Error(Do+"\\nParameter name: list")}function wc(){throw new Error(gp)}function le(){return xe()}function Ze(e,t){return qr(e,t)}function T(e){return qr(e,xe())}function O(e){return It(e)}function rr(e){return gc(e)}function k(e){return an(e)}function P(e){return De(e)}function kp(e){e:for(;;){const t=e;if(It(t))return;{const n=De(t);if(It(n))return ke(an(t));e=n;continue e}}}function xp(e){const t=kp(e);if(t==null)throw new Error(Do);return I(t)}function ir(e){const t=gc(e)|0,n=es(new Array(t),0,t,null);return((i,s)=>{e:for(;;){const o=i,a=s;if(!It(a)){pt(n,o,an(a)),i=o+1,s=De(a);continue e}break}})(0,e),n}function At(e,t,n){let r=t,i=n;for(;!It(i);)r=e(r,k(i)),i=De(i);return r}function sr(e){return At((t,n)=>qr(n,t),xe(),e)}function Ip(e,t,n){return $c(e,ir(t),n)}function Yr(e,t){At((n,r)=>{e(r)},void 0,t)}function ye(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=qr(ee(r,e),n);return n}function _(e){return ye(e,xe())}function Ap(e){let t,n;if(ht(e))return _(e);if(e instanceof Fe)return e;{const r=xe();let i=r;const s=de(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new Fe(l,void 0),t.tail=n,n)}}finally{oe(s)}const o=i,a=xe();return o.tail=a,De(r)}}function Ro(e){const t=xe();let n=t;const r=o=>{n=At((a,l)=>{const u=new Fe(l,void 0);return a.tail=u,u},n,o)};if(ht(e))e.forEach(r);else if(e instanceof Fe)Yr(r,e);else{const o=de(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)r(o["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{oe(o)}}const i=n,s=xe();return i.tail=s,De(t)}function $t(e,t){return At((n,r)=>qr(r,n),t,sr(e))}function Ep(e,t){let n,r;const i=xe();let s=i,o=t;for(;!It(o);){let u=e(an(o));for(;!It(u);)s=(n=s,r=new Fe(an(u),void 0),n.tail=r,r),u=De(u);o=De(o)}const a=s,l=xe();return a.tail=l,De(i)}function Xe(e,t){const n=xe(),r=At((s,o)=>{const a=new Fe(e(o),void 0);return s.tail=a,a},n,t),i=xe();return r.tail=i,De(n)}function Tp(e,t){return(r=>{e:for(;;){const i=r;if(It(i))return;{const s=e(an(i));if(s==null){r=De(i);continue e}else return s}}})(t)}function Jr(e,t){return Tp(n=>e(n)?ke(n):void 0,t)}function ns(e,t){return((r,i)=>{e:for(;;){const s=r,o=i;if(It(o))return;if(e(an(o)))return s;r=s+1,i=De(o);continue e}})(0,t)}function Pp(e,t){const n=ns(e,t);return n==null?(wc(),-1):I(n)|0}function Op(e,t){return vp(e,ir(t))}function Mp(e,t){const n=Op(e,t);return n==null?(wc(),-1):I(n)|0}function Dp(e,t){return((r,i)=>{e:for(;;){const s=r,o=i;if(It(o))return;if(s===e)return ke(an(o));r=s+1,i=De(o);continue e}})(0,t)}function Bo(e,t){const n=xe(),r=At((s,o)=>{if(e(o)){const a=new Fe(o,void 0);return s.tail=a,a}else return s},n,t),i=xe();return r.tail=i,De(n)}function Np(e,t){const n=xe(),r=xe(),i=n,s=At((l,u)=>{let f,c;const p=l[0],m=l[1];return e(u)?[(f=new Fe(u,void 0),p.tail=f,f),m]:[p,(c=new Fe(u,void 0),m.tail=c,c)]},[i,r],t),o=xe();s[0].tail=o;const a=xe();return s[1].tail=a,[De(i),De(r)]}function Rp(e,t){const n=xe(),r=At((s,o)=>{const a=e(o);if(a==null)return s;{const l=new Fe(I(a),void 0);return s.tail=l,l}},n,t),i=xe();return r.tail=i,De(n)}function Bp(e,t,n){return ns(r=>n.Equals(e,r),t)!=null}function yc(e,t){return ns(e,t)!=null}const Lp="Enumeration already finished.",Vp="Enumeration has not started. Call MoveNext.",_c="The input sequence has an insufficient number of elements.",Fp="Reset is not supported on this enumerator.";function Wp(){throw new Error(Fp)}function Lo(){throw new Error(Vp)}function Vo(){throw new Error(Lp)}class jp{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=de(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+xt(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{oe(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Lr(de(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Up(e){return new jp(e)}class zp{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"(){Wp()}Dispose(){this.dispose()}}function rs(e,t,n){return new zp(e,t,n)}function Hp(e){let t,n,r=!1,i=!1,s;const o=()=>{if(i=!0,n!=null){const a=I(n);try{oe(a)}finally{n=void 0}}if(t!=null){const a=I(t);try{oe(a)}finally{t=void 0}}};return rs(()=>(r?i&&Vo():Lo(),s!=null?I(s):Vo()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=I(f);if(c["System.Collections.IEnumerator.MoveNext"]())s=ke(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{oe(c)}finally{n=void 0}}else{const c=I(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),de(a)):(o(),l=!1)}else t=de(e)}return I(l)}},()=>{i||o()})}function Gp(e,t){return rs(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{oe(t)}finally{}})}function vc(e,t,n){let r=!1,i,s=ke(e());const o=()=>{if(s!=null){const l=I(s);try{n(l)}finally{s=void 0}}},a=()=>{try{o()}finally{i=void 0}};return rs(()=>(r||Lo(),i!=null?I(i):Vo()),()=>{if(r||(r=!0),s!=null){const l=I(s);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(i=u,!0):(a(),!1)}else return!1},o)}function qp(e,t){let n,r=t;return rs(()=>{if(n!=null){const i=I(n)[0];return I(n)[1],i}else return Lo()},()=>(n=e(r),n!=null?(I(n)[0],r=I(n)[1],!0):!1),()=>{})}function Yp(e,t){t==null&&$p(e)}function or(e){return Up(e)}function ln(e){return Yp("source",e),de(e)}function A(e){return or(()=>de(e()))}function Fo(e){return or(()=>Hp(e))}function Jp(e,t){return or(()=>qp(e,t))}function is(){return A(()=>new Array(0))}function v(e){return A(()=>wp(e))}function G3(e){return e}function Wo(e){return e instanceof Fe?ir(e):Array.from(e)}function ce(e){return ht(e)?_(e):e instanceof Fe?e:Ap(e)}function Zp(e,t,n){return or(()=>vc(e,t,n))}function bc(e,t,n){return or(()=>{let r=-1;return vc(e,i=>(r=r+1|0,t(r,i)),n)})}function j(e,t){return Fo([e,t])}function Xp(e,t,n){const r=ln(t);try{const i=ln(n);try{let s=0,o=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&o&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(o=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:o?1:a?-1:0)|0}finally{oe(i)}}finally{oe(r)}}function Cn(e,t,n){const r=ln(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{oe(r)}}function Zr(e,t,n){const r=ln(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{oe(r)}}function Sn(e,t){Zr((n,r)=>{e(r)},void 0,t)}function Kp(e,t){Zr((n,r)=>(e(n,r),n+1|0),0,t)}function Ce(e,t){return Zp(()=>ln(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ke(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function Qp(e,t){return bc(()=>ln(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ke(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function e1(e){return A(()=>yp(Wo(e)))}function t1(e,t){return or(()=>{const n=ln(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(_c+"\\nParameter name: source");return Gp(()=>{},n)}catch(r){throw oe(n),r}})}function n1(e,t){return bc(()=>ln(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ke(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(_c+"\\nParameter name: source")}else return},n=>{oe(n)})}function Cc(e,t){return A(()=>Fo(Ce(e,t)))}const kn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function jo(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 r1(e,t){switch(t){case kn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case kn.SnakeCase:return jo(e,"_");case kn.SnakeCaseAllCaps:return jo(e,"_").toUpperCase();case kn.KebabCase:return jo(e,"-");case kn.None:default:return e}}function gt(e,t=kn.None){const n={},r=t;function i(o){throw new Error("Cannot infer key and value of "+String(o))}function s(o,a,l){o=r1(o,a),n[o]=l}for(let o of e){let a=kn.None;if(o==null&&i(o),o instanceof N){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:i(o);break;case 1:s(o[0],a,!0);break;case 2:const l=o[1];s(o[0],a,l);break;default:s(o[0],a,o.slice(1))}else typeof o=="string"?s(o,a,!0):i(o)}return n}function i1(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Xr(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}const s1=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"})),o1=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"})),a1=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"})),l1=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"})),u1=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)"})))),c1=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 ar(e){return ce(A(()=>j(v(["className","text-primary-base"]),A(()=>e))))}function Kr(e){const t=gt(ar(e),1);return d(s1,t)}function f1(e){const t=gt(ar(e),1);return d(o1,t)}function d1(e){const t=gt(ar(e),1);return d(a1,t)}function h1(e){const t=gt(ar(e),1);return d(l1,t)}function m1(e){const t=gt(ar(e),1);return d(u1,t)}function Uo(e){const t=gt(ar(e),1);return d(c1,t)}var zo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(zo||(zo={}));function p1(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Sc(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 $1(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 g1(e,t){if(t&zo.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 w1(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,s,o]=i;if(n=n||g1(s,t),!$1(n).test(o))return p1(i,n)}return null}function Ho(e,t,n,r,i){const s=w1(e,t,i);if(s!=null){let o=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(o)){const[a,l]=Sc(!0,r);!n&&s.radix!==10&&o>=a&&o<=l&&(o=o<<32-r>>32-r);const[u,f]=Sc(n,r);if(o>=u&&o<=f)return o}}throw new Error(`The input string ${e} was not in a correct format.`)}function lr(e,t,n,r,i){try{return i.contents=Ho(e,t,n,r),!0}catch{return!1}}const C=Di,y1=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"})),_1=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 v1(e){const t=gt(e,1);return d(y1,t)}function kc(e){const t=gt(e,1);return d(_1,t)}function un(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 Qr(e){let t;const n=on(i=>i.Phone,e.Support),r=on(i=>i.Email,e.Support);return d("p",S(_([["className","text-sm text-gray-900 whitespace-pre-wrap leading-5"],(t=ce(A(()=>j(v(d("span",{children:[`Need help? Contact ${be(e.CompanyName,"your employer")}`]})),A(()=>j(n==null?r==null?v(d("span",{children:[" for assistance"]})):j(v(d("span",{children:[" at "]})),A(()=>{let i;return j((i=n,i==null?v(K()):v(d("span",{children:[`${i}`]}))),A(()=>j(n!=null&&r!=null?v(d("span",{children:[" or "]})):v(K()),A(()=>{const s=r;if(s==null)return v(K());{const o=s;return v(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})):j(v(d("span",{children:[" at "]})),A(()=>{let i;return j((i=n,i==null?v(K()):v(d("span",{children:[`${i}`]}))),A(()=>j(n!=null&&r!=null?v(d("span",{children:[" or "]})):v(K()),A(()=>{const s=r;if(s==null)return v(K());{const o=s;return v(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})),A(()=>v(d("span",{children:["."]})))))))),["children",C.Children.toArray(Array.from(t))])])))}function Go(e,t,n,r){let i;return d("button",S(_([["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 ${be(e,"")}`],["type","button"],["onClick",s=>{t()}],["disabled",n],(i=ce(A(()=>n?v(v1([["className","animate-spin"]])):r)),["children",C.Children.toArray(Array.from(i))])])))}const b1=kc([["className","text-primary-base animate-spin"]]),C1=e=>{yn(()=>{const t=e();return()=>{t.Dispose()}})},S1=(e,t)=>{yn(()=>{const n=e();return()=>{n.Dispose()}},t)},k1=e=>{_n(()=>{const t=e();return()=>{t.Dispose()}})},x1=C1,xc=S1,I1=k1;function A1(e,t,n,r){const i=C.memo(e,Q(be(Ee(kt,n),K())));return Sn(s=>{e.displayName=s},qi(t)),s=>{const o=E1(r,s);return C.createElement(i,o)}}function E1(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function ss(e){return{Dispose(){e()}}}function T1(e){return C.useState(e)}function P1(e){x1(e)}function qo(e,t){xc(e,t)}function O1(e){I1(t=>(e(),ss(()=>{})))}function ur(e){const t=C.useRef(!1);Yo(()=>{t.current||(t.current=!0,e())},[])}function M1(e){const t=C.useRef(void 0),n=C.useRef(!1),r=C.useRef(!1);n.current&&(r.current=!0),qo(()=>{let i;return n.current?i=void 0:(n.current=!0,t.current=ke(e()),i=r.current?t.current:void 0),{Dispose(){Sn(s=>{oe(s)},qi(i))}}},[])}function Yo(e,t){xc(n=>(e(),ss(()=>{})),t)}function D1(e,t){const n=be(t,[]);return C.useCallback(e,n)}function Ic(e){return C.useRef(e)}function N1(e,t,n){return A1(e,void 0,Gi(n),Gi(t))}function R1(e){const t=Ic(e),n=D1(r=>t.current(r),[]);return O1(()=>{t.current=e}),n}function os(e){return C.useState(e)}function as(e,t,n){const r=[m1([]),un(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}),be(n,K())];return d(Se,{},...r)}function Jo(e,t,n){return as(e,t,Ee(r=>{let i;return d("div",S(_([["className","mt-8"],(i=[Qr(r)],["children",C.Children.toArray(Array.from(i))])])))},n))}function B1(e){let t;const n=e.reissueMagicLink,r=os(!1);return as("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",S(_([["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:s=>{r[0]||(r[1](!0),n())},children:"sign in with email instead"}),d("span",{children:["."]})],["children",C.Children.toArray(Array.from(t))])]))))}function L1(){return as("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 Ac(e){return Jo("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 V1(e){return Jo("Invite no longer active","It looks like your employer may have cancelled your invite, and you no longer have access.",e)}function F1(e){return Jo("Invite expired","Your invite has now expired and you no longer have access.",e)}function Zo(){return as("Something went wrong","We are unable to load our application at this time. Please wait a few minutes before trying again.",void 0)}const W1="workflows-app",Xo="fade-in",Ko=d("div",S(_([["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=_([(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:C.Children.toArray(Array.from(e))})),d("p",{children:[`Copyright © ${Po(Ku())} Flare. ABN 46 607 120 892.`]})];return["children",C.Children.toArray(Array.from(n))]})()])));function j1(){let e,t;return d("div",S(_([["className",ge(" ",[Xo,"min-h-full flex flex-col justify-between w-full sm:w-[640px] mx-auto text-center"])],(e=[d("div",S(_([["className","flex flex-col mt-10 mx-4 sm:mt-20 justify-center items-center"],(t=[kc([["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",C.Children.toArray(Array.from(t))])]))),d("div",{className:"mb-6 sm:mb-8 px-4",children:C.Children.toArray([Ko])})],["children",C.Children.toArray(Array.from(e))])])))}const U1=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ec=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,z1=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Te(e){function t(r){return r.replace(Ec,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(U1.test(n))return hp(n,"{","}","(",")");if(Ec.test(n))return t(n);if(z1.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 H1(e,t){try{return t.contents=Te(e),!0}catch{return!1}}class G1{constructor(t,n){const r=new Ye(K());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=de(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Qo(r.contents,s[0],s[1])}}finally{oe(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return de(this)}GetEnumerator(){return de(Fo(this.hashMap.values()))}[Symbol.iterator](){return Lr(de(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Qo(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Tc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=ls(this,t[0]);let i;switch(r!=null&&M(I(r)[1],t[1])?(i=0,I(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Kp((i,s)=>{pt(t,n+i,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Pc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=ls(n,t[0]);return r!=null?(M(I(r)[1],t[1])&&ea(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Qo(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Dc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Oc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Mc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Wo(A(()=>Ce(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return ea(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=ls(this,t);if(i!=null){const s=I(i);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Wo(A(()=>Ce(n=>n[1],t)))}get size(){return Pc(this)|0}clear(){Tc(this)}delete(t){return ea(this,t)}entries(){return Ce(n=>[n[0],n[1]],this)}get(t){return Oc(this,t)}has(t){return Dc(this,t)}keys(){return Ce(n=>n[0],this)}set(t,n){const r=this;return Mc(r,t,n),r}values(){return Ce(n=>n[1],this)}forEach(t,n){const r=this;Sn(i=>{t(i[1],i[0],r)},r)}}function ei(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=K();return r=[i1(e.hashMap,n,new Ye(()=>i,s=>{i=s})),i],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function ls(e,t){const n=ei(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Xr(e.hashMap,n[1])[n[2]];default:return}}function Tc(e){e.hashMap.clear()}function Pc(e){let t=0,n=de(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{oe(n)}return t|0}function Oc(e,t){const n=ls(e,t);if(n!=null)return I(n)[1];throw new Error("The item was not found in collection")}function Mc(e,t,n){const r=ei(e,t);r[0]?r[2]>-1?Xr(e.hashMap,r[1])[r[2]]=[t,n]:Xr(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Qo(e,t,n){const r=ei(e,t);if(r[0]){if(r[2]>-1)throw new Error(cc("An item with the same key has already been added. Key: {0}",t));Xr(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Dc(e,t){const n=ei(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function ea(e,t){const n=ei(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Xr(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function q1(e){return new h(0,[e])}function Nc(e){return new h(1,[e])}class h extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function wt(e,t){return t.tag===0?q1(e(t.fields[0])):Nc(t.fields[0])}function Rc(e,t){return t.tag===0?e(t.fields[0]):Nc(t.fields[0])}const Y1="#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ƒ£ē︳𐀡%𐀡",J1="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 Z1(){const t=[...Y1].map(s=>(s.codePointAt(0)??0)-35),n=[...J1].map(s=>(s.codePointAt(0)??0)-35),r=new Uint32Array(t),i=new Uint8Array(n);for(let s=1;s<r.length;++s)r[s]+=r[s-1];return s=>{let o=r.length,a=0;for(;o-a>1;){const l=Math.floor((o+a)/2),u=r[l];if(s<u)o=l;else if(s===u){o=a=l;break}else u<s&&(a=l)}return i[a]}}const X1=256,K1=Z1();function Q1(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const ta=e=>t$(e,0);function e$(e,t){const n=Q1(e,t);return K1(n)}function t$(e,t){return(1<<e$(e,t)&X1)!==0}function n$(e,t){const n=ap(nc(e),t);if(n!=null)return P(ce(A(()=>Ce(r=>r||"",n))))}function r$(e){let t;const n=n$(".*?@(.*)",e);switch(n!=null?O(n)?t=1:O(P(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function Bc(e,t){return fc(t)?new h(1,[Ve(Le("%s cannot be null or empty"))(e)]):new h(0,[t])}function i$(e){const t=r$(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 xn=e=>({tag:"ok",value:e}),ti=e=>({tag:"error",error:e});class We{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 We.isAbsoluteUri(t)?xn(new We({original:t,value:new URL(t),kind:n})):ti("Invalid URI: The format of the URI could not be determined.");case 2:return We.isAbsoluteUri(t)?ti("URI is not a relative path."):xn(new We({original:t,value:t,kind:n}));case 0:return We.isAbsoluteUri(t)?xn(new We({original:t,value:new URL(t),kind:1})):xn(new We({original:t,value:t,kind:2}));default:return n}}static tryCreateWithBase(t,n){return t.uri.kind!==1?ti("Base URI should have Absolute kind"):typeof n=="string"?xn(new We({original:new URL(n,t.uri.value).toString(),value:new URL(n,t.uri.value),kind:1})):n.uri.kind===2?xn(new We({original:new URL(n.uri.value,t.uri.value).toString(),value:new URL(n.uri.value,t.uri.value),kind:1})):xn(t)}static tryCreateImpl(t,n=1){return typeof t=="string"?typeof n!="number"?ti("Kind must be specified when the baseUri is a string."):We.tryCreateWithKind(t,n):typeof n=="number"?ti("Kind should not be specified when the baseUri is an absolute Uri."):We.tryCreateWithBase(t,n)}static create(t,n=1){const r=We.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 i=We.tryCreateImpl(t,n);switch(i.tag){case"ok":return r.contents=i.value,!0;case"error":return!1;default:return i}}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 s$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProfileId"]}}function Lc(e){return new s$(e)}function Vc(e){return e.fields[0]}class o$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["InviteCode"]}}function a$(e){return!Hr(e)}function Fc(e){return a$(e)?new h(0,[new o$(e)]):new h(1,["Invalid invite code format."])}class Wc extends R{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}class l$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Logo"]}}class u$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CompanyName"]}}class jc extends R{constructor(t,n){super(),this.Email=t,this.Phone=n}}class c$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class f$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Phone"]}}const Uc=e=>wt(t=>new c$(t),Rc(i$,Bc("Email",e)));function d$(e){return e.fields[0]}const zc=e=>wt(t=>new f$(t),Bc("Phone",e));function h$(e){return e.fields[0]}function Hc(e){return Hr(e)?new h(1,["Invalid company name."]):new h(0,[new u$(e)])}function ni(e){return e.fields[0]}function m$(e){try{const t=We.create(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch{return[!1,void 0]}}function Gc(e){return m$(e)[0]?new h(0,[new l$(e)]):new h(1,["Invalid logo url."])}function p$(e){return e.fields[0]}class $$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SecondFactorCode"]}}function g$(e){return new $$(e)}class w$ extends R{constructor(t,n,r,i){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=i}}class y$ extends R{constructor(t,n,r,i){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=i}}function _$(e){return new qc(0,[e])}function v$(e){return new qc(1,[e])}class qc extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}class na extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function b$(e){return _$(e)}function C$(e){return v$(e)}class Et extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessStepId"]}}class Tt extends R{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}const Ue=new Tt(new Et("personal-details"),"Personal Details","apollo-personal-details-app"),ut=new Tt(new Et("emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),ct=new Tt(new Et("bank"),"Bank","bank-component"),ft=new Tt(new Et("tax"),"Tax","tax-component"),Pe=new Tt(new Et("super"),"Super","super-selection-app"),In=new Tt(new Et("app-workplace-linking"),"App Workplace Linking","workplace-link"),S$=new Et("benefits-onboarding"),us=new Tt(S$,"Benefits","benefits-onboarding"),jt=new Tt(new Et("workplace-policy"),"Workplace-policy","apollo-workplace-policies-app"),An=new Tt(new Et("Benefits-Discrete"),"Benefits","benefits-onboarding");function Yc(e){return new Et(e)}function cs(e){return e.fields[0]}class Oe extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessConfigId"]}}class Me extends R{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}const Jc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000000")),"onboarding-default",_([ct,ft,Pe])),Zc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000001")),"PEBTS",_([Ue,ut,ct,ft,Pe])),Xc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000002")),"PS",_([Ue,Pe])),Kc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000003")),"BS",_([ct,Pe])),Qc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000004")),"Super",T(Pe)),ra=new Me(new Oe(Te("00000000-0000-0000-0001-000000000000")),"App Workplace Linking",T(In)),ef=new Me(new Oe(Te("00000000-0000-0000-0000-000000000005")),"Tax",T(ft)),tf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000006")),"PBTS",_([Ue,ct,ft,Pe])),nf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000007")),"PEBTSPo",_([Ue,ut,ct,ft,Pe,jt])),rf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000008")),"PEBSPo",_([Ue,ut,ct,Pe,jt])),sf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000009")),"PESPo",_([Ue,ut,Pe,jt])),of=new Me(new Oe(Te("00000000-0000-0000-0000-000000000010")),"PETSPo",_([Ue,ut,ft,Pe,jt])),fs=new Me(new Oe(Te("00000000-0000-0000-0002-000000000000")),"Bo",T(An)),af=new Me(new Oe(Te("00000000-0000-0000-0000-000000000011")),"PETS",_([Ue,ut,ft,Pe])),lf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000012")),"PEBS",_([Ue,ut,ct,Pe])),uf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000013")),"PES",_([Ue,ut,Pe])),cf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000014")),"PBTSPo",_([Ue,ct,ft,Pe,jt])),k$=new G1([[Jc.Id,Jc],[Zc.Id,Zc],[Xc.Id,Xc],[Kc.Id,Kc],[Qc.Id,Qc],[ra.Id,ra],[ef.Id,ef],[tf.Id,tf],[nf.Id,nf],[rf.Id,rf],[sf.Id,sf],[of.Id,of],[fs.Id,fs],[af.Id,af],[lf.Id,lf],[uf.Id,uf],[cf.Id,cf]],{Equals:M,GetHashCode:bo});function x$(e){return M(e,fs)?!1:!M(e,ra)}function I$(e){const t=new Oe(e);return Cn(t,k$.keys(),{Equals:M,GetHashCode:bo})?new h(0,[t]):new h(1,[Ve(sc("Invalid Type %A%P()",[e]))])}function ia(e){return e.fields[0]}class ff extends R{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}class ri extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function sa(e){return e.tag===2}class A$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessInstanceId"]}}function df(e){return new A$(e)}function cr(e){return e.fields[0]}class E$ extends R{constructor(t,n){super(),this.Name=t,this.Value=n}}class T$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagName"]}}class P$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagValue"]}}function O$(e){return Hr(e)?new h(1,["Tag name is empty"]):e.length<100?new h(0,[new T$(e)]):new h(1,["Tag name is too long"])}function M$(e){return Hr(e)?new h(1,["Tag value is empty"]):e.length<100?new h(0,[new P$(e)]):new h(1,["Tag value is too long"])}function D$(e,t){const n=O$(e);if(n.tag===1)return new h(1,[n.fields[0]]);{const r=M$(t);return r.tag===1?new h(1,[r.fields[0]]):new h(0,[new E$(n.fields[0],r.fields[0])])}}class N$ extends R{constructor(t,n,r,i,s,o,a,l,u,f,c){super(),this.Id=t,this.Configuration=n,this.DateCreated=r,this.Status=i,this.Invite=s,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}class R$ extends R{constructor(t){super(),this.BenefitsOnboarding=t}}class fr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}class hf extends R{constructor(t){super(),this.Category=t}}class mf extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function B$(e){switch(e.tag){case 1:return"InfoRequest";case 2:return"AppInvite";case 3:return"BenefitsExisting";case 4:return"BenefitsOnboarding";default:return"Default"}}function L$(e,t){const n=Jr(s=>M(s.Id,e),t.Configuration.Steps),r=Ve(sc("Invalid ProcessStep Id %A%P()",[e])),i=n;return i==null?new h(1,[r]):new h(0,[i])}function V$(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return le();default:{const n=Xe(r=>r[0],t.fields[0].CompletedSteps);return Bo(r=>Bp(r.Id,n,{Equals:M,GetHashCode:bo}),e.Configuration.Steps)}}}function pf(){return qu(document.getElementById("external-loading-page-container"))}function $f(){return pf()!=null}function F$(){let e,t;const n=pf();Sn((e=(t=document.body,r=>t.removeChild(r)),r=>{e(r)}),qi(n))}var En=[],W$=function(){return En.some(function(e){return e.activeTargets.length>0})},j$=function(){return En.some(function(e){return e.skippedTargets.length>0})},gf="ResizeObserver loop completed with undelivered notifications.",U$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:gf}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=gf),window.dispatchEvent(e)},ii;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ii||(ii={}));var Tn=function(e){return Object.freeze(e)},z$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Tn(this)}return e}(),wf=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Tn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,s=t.right,o=t.bottom,a=t.left,l=t.width,u=t.height;return{x:n,y:r,top:i,right:s,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},yf=function(e){if(oa(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,s=i.offsetWidth,o=i.offsetHeight;return!(s||o||e.getClientRects().length)},_f=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)},H$=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},si=typeof window<"u"?window:{},ds=new WeakMap,vf=/auto|scroll/,G$=/^tb|vertical/,q$=/msie|trident/i.test(si.navigator&&si.navigator.userAgent),Pt=function(e){return parseFloat(e||"0")},dr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new z$((n?t:e)||0,(n?e:t)||0)},bf=Tn({devicePixelContentBoxSize:dr(),borderBoxSize:dr(),contentBoxSize:dr(),contentRect:new wf(0,0,0,0)}),Cf=function(e,t){if(t===void 0&&(t=!1),ds.has(e)&&!t)return ds.get(e);if(yf(e))return ds.set(e,bf),bf;var n=getComputedStyle(e),r=oa(e)&&e.ownerSVGElement&&e.getBBox(),i=!q$&&n.boxSizing==="border-box",s=G$.test(n.writingMode||""),o=!r&&vf.test(n.overflowY||""),a=!r&&vf.test(n.overflowX||""),l=r?0:Pt(n.paddingTop),u=r?0:Pt(n.paddingRight),f=r?0:Pt(n.paddingBottom),c=r?0:Pt(n.paddingLeft),p=r?0:Pt(n.borderTopWidth),m=r?0:Pt(n.borderRightWidth),$=r?0:Pt(n.borderBottomWidth),g=r?0:Pt(n.borderLeftWidth),w=c+u,b=l+f,y=g+m,x=p+$,B=a?e.offsetHeight-x-e.clientHeight:0,V=o?e.offsetWidth-y-e.clientWidth:0,te=i?w+y:0,Ke=i?b+x:0,Re=r?r.width:Pt(n.width)-te-V,qe=r?r.height:Pt(n.height)-Ke-B,dt=Re+w+V+y,Tr=qe+b+B+x,Bh=Tn({devicePixelContentBoxSize:dr(Math.round(Re*devicePixelRatio),Math.round(qe*devicePixelRatio),s),borderBoxSize:dr(dt,Tr,s),contentBoxSize:dr(Re,qe,s),contentRect:new wf(c,l,Re,qe)});return ds.set(e,Bh),Bh},Sf=function(e,t,n){var r=Cf(e,n),i=r.borderBoxSize,s=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case ii.DEVICE_PIXEL_CONTENT_BOX:return o;case ii.BORDER_BOX:return i;default:return s}},Y$=function(){function e(t){var n=Cf(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Tn([n.borderBoxSize]),this.contentBoxSize=Tn([n.contentBoxSize]),this.devicePixelContentBoxSize=Tn([n.devicePixelContentBoxSize])}return e}(),kf=function(e){if(yf(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=[];En.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var f=new Y$(u.target),c=kf(u.target);a.push(f),u.lastReportedSize=Sf(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 i=r[n];i()}return e},xf=function(e){En.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(kf(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},Z$=function(){var e=0;for(xf(e);W$();)e=J$(),xf(e);return j$()&&U$(),e>0},aa,If=[],X$=function(){return If.splice(0).forEach(function(e){return e()})},K$=function(e){if(!aa){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return X$()}).observe(n,r),aa=function(){n.textContent="".concat(t?t--:t++)}}If.push(e),aa()},Q$=function(e){K$(function(){requestAnimationFrame(e)})},hs=0,eg=function(){return!!hs},tg=250,ng={attributes:!0,characterData:!0,childList:!0,subtree:!0},Af=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ef=function(e){return e===void 0&&(e=0),Date.now()+e},la=!1,rg=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=tg),!la){la=!0;var r=Ef(t);Q$(function(){var i=!1;try{i=Z$()}finally{if(la=!1,t=r-Ef(),!eg())return;i?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,ng)};document.body?n():si.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Af.forEach(function(n){return si.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Af.forEach(function(n){return si.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ua=new rg,Tf=function(e){!hs&&e>0&&ua.start(),hs+=e,!hs&&ua.stop()},ig=function(e){return!oa(e)&&!H$(e)&&getComputedStyle(e).display==="inline"},sg=function(){function e(t,n){this.target=t,this.observedBox=n||ii.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Sf(this.target,this.observedBox,!0);return ig(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),og=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),ms=new WeakMap,Pf=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ps=function(){function e(){}return e.connect=function(t,n){var r=new og(t,n);ms.set(t,r)},e.observe=function(t,n,r){var i=ms.get(t),s=i.observationTargets.length===0;Pf(i.observationTargets,n)<0&&(s&&En.push(i),i.observationTargets.push(new sg(n,r&&r.box)),Tf(1),ua.schedule())},e.unobserve=function(t,n){var r=ms.get(t),i=Pf(r.observationTargets,n),s=r.observationTargets.length===1;i>=0&&(s&&En.splice(En.indexOf(r),1),r.observationTargets.splice(i,1),Tf(-1))},e.disconnect=function(t){var n=this,r=ms.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Of=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.");ps.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(!_f(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ps.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(!_f(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ps.unobserve(this,t)},e.prototype.disconnect=function(){ps.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class ag{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,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class oi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,oi.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 Ot(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new oi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Fi(n))}});else try{e(t)}catch(n){t.onError(Fi(n))}}}function lg(e,t){return Ot(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Fi(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function ug(e){return Ot(t=>t.onSuccess(e))}class cg{Bind(t,n){return lg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Ot(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const s=n(i.value);return i=r.next(),s}))}Return(t){return ug(t)}ReturnFrom(t){return t}TryFinally(t,n){return Ot(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Ot(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(s){r.onError(Fi(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Ot(t=>t.onSuccess(void 0))}}const E=new cg;function fa(e){}function fg(e){return Ot(t=>e()(t))}function dg(e){return Nf(t=>e.then(t[0]).catch(n=>(n instanceof oi?t[2]:t[1])(n)))}const Mf=new ag;function Df(e){return Ot(t=>{e({onSuccess:n=>t.onSuccess(b$(n)),onError:n=>t.onSuccess(C$(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Nf(e){return Ot(t=>e([t.onSuccess,t.onError,t.onCancel]))}function hg(e){return fg(()=>dg(Promise.all(Array.from(e,t=>pg(t)))))}function $s(e){return Ot(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new oi)})})}function mg(e,t){return Bf(e,t)}function Rf(e,t){return mg(e,t)}function Bf(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const s=new ca;e({onSuccess:t||fa,onError:n||fa,onCancel:r||fa,cancelToken:i||Mf,trampoline:s})}function pg(e,t){return new Promise((n,r)=>Bf(e,n,r,r,Mf))}class Lf extends R{constructor(t,n,r){super(),this.instanceId=t|0,this.name=n,this.type=r}}function $g(e){return new Lf(cr(e.Id),e.Configuration.Name,ia(e.Configuration.Id))}function gg(e,t){const n={};return n.type="contentResized",n.sender="flare",n.height=e,n.width=t,n}function wg(e,t,n,r){const i={};return i.type="workflowSubmitSuccess",i.sender="flare",i.workflow=new Lf(cr(e),t,ia(n)),i.profileId=Vc(r),i}function yg(e,t,n,r){const i={};return i.type="stepSubmitSuccess",i.sender="flare",i.workflow=$g(n),i.profileId=Vc(r),i.step={name:t,type:cs(e)},i}function _g(){const e={};return e.type="appReady",e.sender="flare",e}function gs(e){$f()||window.parent.postMessage(e,"*")}function vg(e,t){Rf(E.Delay(()=>E.Bind($s(e),()=>(t(),E.Zero()))))}function da(){gs(gg(document.body.offsetHeight,-1))}function bg(){(window.ResizeObserver?new window.ResizeObserver(()=>{da()}):new Of(()=>{da()})).observe(document.body)}function Cg(e,t,n){const r=L$(e,t);r.tag===1||gs(yg(e,r.fields[0].DisplayName,t,n))}function ha(e,t,n,r){gs(wg(e,t,n,r))}function Ut(e){$f()&&vg(e,()=>{F$(),gs(_g()),da()})}/*!
3
+ `)+" }"}function xm(e){const t=Object.values(e).map(n=>Ft(n));return Vr(t)}function Im(e,t){if(e===t)return!0;if(Ni(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!M(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Am(e,t){if(e===t)return 0;if(Ni(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=ot(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class R{toJSON(){return Sm(this)}toString(){return km(this)}GetHashCode(){return xm(this)}Equals(t){return Im(this,t)}CompareTo(t){return Am(this,t)}}class Ye{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 Em{constructor(t){this.message=t}}function Tm(e){return e instanceof Em||e instanceof Error}function Pm(e){return e instanceof Promise}function Fi(e){return Tm(e)||Pm(e)?e:new Error(String(e))}const Zn=Symbol("numeric");function Ru(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Zn])}function Om(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ko(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Zn]().multiply(t)}function Wi(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Zn]().toFixed(t)}function ji(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Zn]().toPrecision(t)}function Ui(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Zn]().toExponential(t)}function zi(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Zn]().toHex()}class Mm{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Be{constructor(t,n,r,i,s,o,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=s,this.cases=o,this.enumCases=a}toString(){return pe(this)}GetHashCode(){return Bu(this)}Equals(t){return xo(this,t)}}function Qe(e){return e.generics!=null?e.generics:[]}function Bu(e){const t=Ri(e.fullname),n=Qe(e).map(Bu);return Vr([t,...n])}function xo(e,t){return e.fullname===""?t.fullname===""&&Co(Wr(e),Wr(t),([n,r],[i,s])=>n===i&&xo(r,s)):e.fullname===t.fullname&&Co(Qe(e),Qe(t),xo)}function Wt(e,t,n,r){return new Be(e,t,n,r)}function ne(e,t,n,r){return new Be(e,t,n,void 0,r)}function Je(...e){return new Be("",void 0,void 0,void 0,()=>e)}function at(e,t,n,r){const i=new Be(e,t,n,void 0,void 0,()=>{const s=n.prototype.cases();return r().map((o,a)=>new Mm(i,a,s[a],o))});return i}function Dm(...e){return new Be("System.Tuple`"+e.length,e)}function J(e){return new Be("Microsoft.FSharp.Core.FSharpOption`1",[e])}function sn(e){return new Be("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Nm=new Be("System.Object"),z=new Be("System.String"),lt=new Be("System.Boolean"),Hi=new Be("System.Int32"),Rm=new Be("System.Double");function Xn(e){if(Array.isArray(e))return e[0];if(e instanceof Be){const t=Fr(e);if(t!=null)return Xn(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function pe(e){const t=Fr(e);return t!=null?pe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>pe(n)).join(",")+"]"}function Lu(e){return Fr(e)!=null}function Fr(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Vu(e){return e.generics!=null&&e.generics.length>0}function Io(e){return e.enumCases!=null&&e.enumCases.length>0}function Fu(e){return e.generics==null?e:new Be(e.fullname,e.generics.map(()=>Nm))}function Wu(e){var t;return(t=e.generics)==null?void 0:t[0]}function Kn(e){if(Io(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function Bm(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 Qn(e,t){const n=parseInt(t,10);return Bm(e,isNaN(n)?t:n)[1]}function ju(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Wr(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Uu(e){if(Ao(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function zu(e){return e instanceof Be?e.cases!=null:e instanceof N}function Hu(e){return e instanceof Be?e.fields!=null:e instanceof R}function Ao(e){return e.fullname.startsWith("System.Tuple")}function Lm(e,t){const r=ju(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Gu(e){return e.fields==null?[]:e.fields}function Vm(e,t){return e[t[0]]}function H3(e){return e}function Fm(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 Wm(e,t){const n=Wr(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,[i,s],o)=>(r[i]=t[o],r),{})}function jm(e,t){return e}class vn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Ft(this.value)}Equals(t){return t==null?!1:M(this.value,t instanceof vn?t.value:t)}CompareTo(t){return t==null?1:ot(this.value,t instanceof vn?t.value:t)}}function I(e){if(e==null)throw new Error("Option has no value");return e instanceof vn?e.value:e}function Gi(e){return e instanceof vn?e.value:e}function ke(e){return e==null||e instanceof vn?new vn(e):e}function qu(e){return e??void 0}function qi(e){return e==null?[]:[I(e)]}function be(e,t){return e!=null?I(e):t}function Um(e,t){return e!=null?I(e):t()}function Yu(e,t){return e??t}function Ee(e,t){return t!=null?ke(e(I(t))):void 0}function on(e,t){return t!=null?e(I(t)):void 0}const zm=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Hm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Gm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qm=["January","February","March","April","May","June","July","August","September","October","November","December"];function et(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Ju(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Ym(e,t){let n=t;const r=e[t];let i="",s=!1;for(;t<e.length;){t++;const o=e[t];if(o===r){s=!0;break}else if(o==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=o}if(!s)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Eo(e,t,n){let r=0,i=0,s="";const o=n?bn(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=et(t,r,"d"),r+=i,i){case 1:s+=To(o);break;case 2:s+=ae(To(o),2);break;case 3:s+=zm[tc(o)];break;case 4:s+=Hm[tc(o)];break}break;case"f":if(i=et(t,r,"f"),r+=i,i<=3){const w=10**(3-i);s+=ae(Math.floor(Xi(o)/w),i)}else i<=7&&(s+=(""+Xi(o)).padEnd(i,"0"));break;case"F":if(i=et(t,r,"F"),r+=i,i<=3){const w=10**(3-i),b=Math.floor(Xi(o)/w);b!=0&&(s+=ae(b,i))}else if(i<=7){const w=Xi(o);w!=0&&(s+=ae(w,3))}break;case"g":i=et(t,r,"g"),r+=i,i<=2&&(s+="A.D.");break;case"h":switch(i=et(t,r,"h"),r+=i,i){case 1:s+=Zi(o)%12;break;case 2:s+=ae(Zi(o)%12,2);break}break;case"H":switch(i=et(t,r,"H"),r+=i,i){case 1:s+=Zi(o);break;case 2:s+=ae(Zi(o),2);break}break;case"K":switch(i=et(t,r,"K"),r+=i,i){case 1:switch(Zu(o)){case 1:s+="Z";break;case 2:s+=er(o.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=et(t,r,"m"),r+=i,i){case 1:s+=Qu(o);break;case 2:s+=ae(Qu(o),2);break}break;case"M":switch(i=et(t,r,"M"),r+=i,i){case 1:s+=jr(o);break;case 2:s+=ae(jr(o),2);break;case 3:s+=Gm[jr(o)-1];break;case 4:s+=qm[jr(o)-1];break}break;case"s":switch(i=et(t,r,"s"),r+=i,i){case 1:s+=ec(o);break;case 2:s+=ae(ec(o),2);break}break;case"t":switch(i=et(t,r,"t"),r+=i,i){case 1:s+=o.getHours()<12?"A":"P";break;case 2:s+=o.getHours()<12?"AM":"PM";break}break;case"y":switch(i=et(t,r,"y"),r+=i,i){case 1:s+=o.getFullYear()%100;break;case 2:s+=ae(o.getFullYear()%100,2);break;case 3:s+=ae(o.getFullYear(),3);break;case 4:s+=ae(o.getFullYear(),4);break;case 5:s+=ae(o.getFullYear(),5);break}break;case"z":i=et(t,r,"z"),r+=i;let l="";switch(Zu(o)){case 1:l="+00:00";break;case 2:l=er(o.getTimezoneOffset()*-6e4);break;case 0:l=er(sp(o).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(i){case 1:s+=`${u}${f}`;break;case 2:s+=`${u}${ae(f,2)}`;break;default:s+=`${u}${ae(f,2)}:${ae(c,2)}`;break}break;case":":s+=":",r++;break;case"/":s+="/",r++;break;case"'":case'"':const[p,m]=Ym(t,r);s+=p,r+=m;break;case"%":const $=Ju(t,r);if($>=0&&$!==37)r+=2,s+=Eo(o,String.fromCharCode($),n);else throw new Error("Invalid format string");break;case"\\":const g=Ju(t,r);if(g>=0)r+=2,s+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,s+=a;break}}return s}function Zu(e){return e.kind||0}function er(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ae(n,2)+":"+ae(r,2)}function Yi(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 Jm(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ae(e.getFullYear(),4)+"-"+ae(e.getMonth()+1,2)+"-"+ae(e.getDate(),2)+"T"+ae(e.getHours(),2)+":"+ae(e.getMinutes(),2)+":"+ae(e.getSeconds(),2)+"."+ae(e.getMilliseconds(),3)+(n?er(e.getTimezoneOffset()*-6e4):"")}}function Zm(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+er(t)}function Xm(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," ")+er(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return Yi(n,"first");case"T":case"t":return Yi(n,"second");case"O":case"o":return Zm(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Eo(n,t,!0)}function Km(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?Yi(e,"first"):e.toLocaleDateString();case"T":case"t":return n?Yi(e,"second"):e.toLocaleTimeString();case"O":case"o":return Jm(e,n);default:throw new Error("Unrecognized Date print format")}else return Eo(e,t,n)}function Ji(e,t,n){return e.offset!=null?Xm(e,t):Km(e,t)}function bn(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Qm(){return bn(-621355968e5,1)}function Xu(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 i=/^\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(i!=null){let s,o=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);o=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(o+=720)}if(i[4]!=null){if(i[1]!=null)s=new Date(i[1]+" UTC");else{const a=new Date;s=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,o-=a*60}}else if(i[1]!=null)s=new Date(i[1]);else{const a=new Date;s=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(s.getTime()+o*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-s.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function ep(e,t=!1){const[n,r]=Xu(e),i=r!=null?t&&r==="Z"?1:2:0;return bn(n.getTime(),i)}function tp(e,t){try{return t.contents=ep(e),!0}catch{return!1}}function np(e,t,n,r=0,i=0,s=0,o=0,a){const l=a===1?new Date(Date.UTC(e,t-1,n,r,i,s,o)):new Date(e,t-1,n,r,i,s,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 bn(u,a)}function rp(){return bn(Date.now(),2)}function Ku(){return op(rp())}function ip(e){return e.kind===1?e:bn(e.getTime(),1)}function sp(e){return e.kind===2?e:bn(e.getTime(),2)}function op(e){return np(Po(e),jr(e),To(e),0,0,0,0,e.kind)}function To(e){return e.kind===1?e.getUTCDate():e.getDate()}function Zi(e){return e.kind===1?e.getUTCHours():e.getHours()}function Xi(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Qu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function jr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function ec(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Po(e){return e.kind===1?e.getUTCFullYear():e.getFullYear()}function tc(e){return e.kind===1?e.getUTCDay():e.getDay()}function nc(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Ki(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function ap(e,t,n=0){return e.lastIndex=n,e.exec(t)}function rc(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 i,s=-1;for(;(i=e.exec(t))!=null;)i.index===s?e.lastIndex++:(s=i.index,r.push(i));return r}function lp(e,t,n,r,i=0){function s(){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=nc(t,r??0),t=o,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,s);if(n=n.replace(/\$0/g,o=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let o;const a=t.substring(i),l=rc(e,a),u=rc.length>r?(o=l[r-1],a.substring(0,o.index+o[0].length)):a;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const Ur=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,zr=/(?:(^|[^%])%([0+\- ]*)(\d+)?(?:\.(\d+))?(\w))?%P\(\)/g,up=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ic(e,t){return Om(e,t)<0}function tr(e,t,n){function r(s){return s===!0||s===1||s===3||s===5}function i(s){return s===4||s===5}return e==null?t==null?0:-1:t==null?1:i(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 cp(...e){switch(e.length){case 2:return tr(e[0],e[1],!1);case 3:return tr(e[0],e[1],e[2]);case 4:return tr(e[0],e[1],e[2]===!0);case 5:return tr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),!1);case 6:return tr(e[0].substr(e[1],e[4]),e[2].substr(e[3],e[4]),e[5]);case 7:return tr(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 Le(e){return{input:e,cont:fp(e)}}function sc(e,t){let n=0,r=0,i="";zr.lastIndex=0;let s=zr.exec(e);for(;s;){const o=s.index+(s[1]||"").length;i+=e.substring(r,o).replace(/%%/g,"%");const[,,a,l,u,f]=s;r=zr.lastIndex,i+=lc(t[n++],a,l,u,f),zr.lastIndex=r-1,s=zr.exec(e)}return i+=e.substring(r).replace(/%%/g,"%"),i}function oc(e,t){return typeof t=="string"?e(t):t.cont(e)}function Ve(e){return oc(t=>t,e)}function ac(e){return oc(t=>{throw new Error(t)},e)}function lc(e,t,n,r,i){let s="";if(t=t||"",i=i||"",Ru(e))switch(i.toLowerCase()!=="x"&&(ic(e,0)?(e=ko(e,-1),s="-"):t.indexOf(" ")>=0?s=" ":t.indexOf("+")>=0&&(s="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=Wi(e,r);break;case"g":case"G":e=r!=null?ji(e,r):ji(e);break;case"e":case"E":e=r!=null?Ui(e,r):Ui(e);break;case"x":e=zi(e);break;case"X":e=zi(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ji(e):e=xt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=s+e;else{const o=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!o?" ":"0";l==="0"?(e=Gr(e,n-s.length,l,a),e=s+e):e=Gr(s+e,n,l,a)}return e}function uc(e,t,n,r="",i=-1){return(...s)=>{let o=r;const a=t.slice(),l=n.slice();for(const u of s){const[,,f,c,p,m]=l[0];let $=c;if(i>=0)$=i,i=-1;else if($==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}o+=a[0],o+=lc(u,f,$,p,m),a.splice(0,1),l.splice(0,1)}return l.length===0?(o+=a[0],e(o)):uc(e,a,l,o,i)}}function fp(e){return t=>{Ur.lastIndex=0;const n=[],r=[];let i=0,s=Ur.exec(e);for(;s;){const o=s.index+(s[1]||"").length;n.push(e.substring(i,o).replace(/%%/g,"%")),r.push(s),i=Ur.lastIndex,Ur.lastIndex-=1,s=Ur.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),uc(t,n,r))}}function cc(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(up,(r,i,s,o,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(Ru(u))switch(a=a==null?null:parseInt(a,10),o){case"f":case"F":a=a??2,u=Wi(u,a);break;case"g":case"G":u=a!=null?ji(u,a):ji(u);break;case"e":case"E":u=a!=null?Ui(u,a):Ui(u);break;case"p":case"P":a=a??2,u=Wi(ko(u,100),a)+" %";break;case"d":case"D":u=a!=null?Oo(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?Oo(zi(u),a,"0"):zi(u),o==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,m)=>{ic(u,0)&&(u=ko(u,-1),f="-"),m=m==null?"":m.substring(1),u=Wi(u,Math.max(m.length,0));let[$,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;$=Oo($,w,"0");const b=m.replace(/#+$/,"").length;if(b>g.length?g=dp(g,b,"0"):b<g.length&&(g=g.substring(0,b)+g.substring(b).replace(/0+$/,"")),p.indexOf(",")>0){const y=$.length%3,x=Math.floor($.length/3);let B=y>0?$.substr(0,y)+(x>0?",":""):"";for(let V=0;V<x;V++)B+=$.substr(y+V*3,3)+(V<x-1?",":"");$=B}return g.length>0?$+"."+g:$}),u=f+u}}else u instanceof Date?u=Ji(u,l||o):u=xt(u);return s=parseInt((s||" ").substring(1),10),isNaN(s)||(u=Gr(String(u),Math.abs(s)," ",s<0)),u})}function fc(e){return typeof e!="string"||e.length===0}function Hr(e){return typeof e!="string"||/^\s*$/.test(e)}function ge(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Gr(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function Oo(e,t,n){return Gr(e,t,n)}function dp(e,t,n){return Gr(e,t,n,!0)}function dc(e,t,n){return e.replace(new RegExp(Ki(t),"g"),n)}function Qi(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 i=(r&1)===1,s=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Ki),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=s?e.substring(u).trim():e.substring(u);(!i||c.length>0)&&o.push(c),l=!1}else{const c=s?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||c.length>0)&&(n!=null&&o.length+1===n?(o.push(s?e.substring(u).trim():e.substring(u)),l=!1):o.push(c)),u=a.lastIndex}}while(l);return o}function hp(e,...t){if(t.length===0)return e.trim();const n="["+Ki(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function mp(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Ki(t.join(""))+"]+$"),"")}function Mo(e,t){return t.split("").filter(n=>e(n)).join("")}function pp(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 $p(e){throw new Error(e)}function hc(e,t){return new Array(t)}function mc(e,t){return e>t?e:t}const Do="Collection was empty.",gp="An index satisfying the predicate was not found in the collection.";function es(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function nr(e,t,n){const r=t.length|0,i=hc(n,r);for(let s=0;s<=r-1;s++)pt(i,s,e(ee(s,t)));return i}function wp(e,t){const n=hc(t,1);return pt(n,0,e),n}function yp(e){return e.slice().reverse()}function _p(e,t){return t.find(e)}function vp(e,t){return(r=>{e:for(;;){const i=r;if(i<0)return;if(e(ee(i,t)))return i;r=i-1;continue e}})(t.length-1)}function bp(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const s=e(ee(i,t));if(s!=null){const o=I(s);r.push(o)}}return M(n,K())?r:nr(i=>i,r,n)}function ts(e,t,n){const r=e;return n.reduce(r,t)}function No(e,t,n){return t==null}function ee(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 pt(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 pc(e,t){if(!(e<0||e>=t.length))return ke(t[e])}function $c(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class Fe extends R{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+ge("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,s)=>{e:for(;;){const o=i,a=s,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=I(l),c=I(u);if(M(o.head,a.head)){i=f,s=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,s)=>{e:for(;;){const o=r,a=i,l=s,u=l.tail;if(u!=null){const f=I(u);if(o>18)return a|0;r=o+1,i=(a<<1)+Ft(l.head)+631*o,s=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,s)=>{e:for(;;){const o=i,a=s,l=o.tail,u=a.tail;if(l!=null)if(u!=null){const f=I(l),c=I(u),p=ot(o.head,a.head)|0;if(p===0){i=f,s=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Sp(this)}[Symbol.iterator](){return Lr(de(this))}"System.Collections.IEnumerable.GetEnumerator"(){return de(this)}}class Cp{constructor(t){this.xs=t,this.it=this.xs,this.current=K()}"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=I(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=K()}Dispose(){}}function Sp(e){return new Cp(e)}function xe(){return new Fe(K(),void 0)}function qr(e,t){return new Fe(e,t)}function It(e){return e.tail==null}function gc(e){return((n,r)=>{e:for(;;){const i=n,o=r.tail;if(o!=null){n=i+1,r=I(o);continue e}else return i|0}})(0,e)|0}function an(e){if(e.tail!=null)return e.head;throw new Error(Do+"\\nParameter name: list")}function De(e){const t=e.tail;if(t!=null)return I(t);throw new Error(Do+"\\nParameter name: list")}function wc(){throw new Error(gp)}function le(){return xe()}function Ze(e,t){return qr(e,t)}function T(e){return qr(e,xe())}function O(e){return It(e)}function rr(e){return gc(e)}function k(e){return an(e)}function P(e){return De(e)}function kp(e){e:for(;;){const t=e;if(It(t))return;{const n=De(t);if(It(n))return ke(an(t));e=n;continue e}}}function xp(e){const t=kp(e);if(t==null)throw new Error(Do);return I(t)}function ir(e){const t=gc(e)|0,n=es(new Array(t),0,t,null);return((i,s)=>{e:for(;;){const o=i,a=s;if(!It(a)){pt(n,o,an(a)),i=o+1,s=De(a);continue e}break}})(0,e),n}function At(e,t,n){let r=t,i=n;for(;!It(i);)r=e(r,k(i)),i=De(i);return r}function sr(e){return At((t,n)=>qr(n,t),xe(),e)}function Ip(e,t,n){return $c(e,ir(t),n)}function Yr(e,t){At((n,r)=>{e(r)},void 0,t)}function ye(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=qr(ee(r,e),n);return n}function _(e){return ye(e,xe())}function Ap(e){let t,n;if(ht(e))return _(e);if(e instanceof Fe)return e;{const r=xe();let i=r;const s=de(e);try{for(;s["System.Collections.IEnumerator.MoveNext"]();){const l=s["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new Fe(l,void 0),t.tail=n,n)}}finally{oe(s)}const o=i,a=xe();return o.tail=a,De(r)}}function Ro(e){const t=xe();let n=t;const r=o=>{n=At((a,l)=>{const u=new Fe(l,void 0);return a.tail=u,u},n,o)};if(ht(e))e.forEach(r);else if(e instanceof Fe)Yr(r,e);else{const o=de(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();)r(o["System.Collections.Generic.IEnumerator`1.get_Current"]())}finally{oe(o)}}const i=n,s=xe();return i.tail=s,De(t)}function $t(e,t){return At((n,r)=>qr(r,n),t,sr(e))}function Ep(e,t){let n,r;const i=xe();let s=i,o=t;for(;!It(o);){let u=e(an(o));for(;!It(u);)s=(n=s,r=new Fe(an(u),void 0),n.tail=r,r),u=De(u);o=De(o)}const a=s,l=xe();return a.tail=l,De(i)}function Xe(e,t){const n=xe(),r=At((s,o)=>{const a=new Fe(e(o),void 0);return s.tail=a,a},n,t),i=xe();return r.tail=i,De(n)}function Tp(e,t){return(r=>{e:for(;;){const i=r;if(It(i))return;{const s=e(an(i));if(s==null){r=De(i);continue e}else return s}}})(t)}function Jr(e,t){return Tp(n=>e(n)?ke(n):void 0,t)}function ns(e,t){return((r,i)=>{e:for(;;){const s=r,o=i;if(It(o))return;if(e(an(o)))return s;r=s+1,i=De(o);continue e}})(0,t)}function Pp(e,t){const n=ns(e,t);return n==null?(wc(),-1):I(n)|0}function Op(e,t){return vp(e,ir(t))}function Mp(e,t){const n=Op(e,t);return n==null?(wc(),-1):I(n)|0}function Dp(e,t){return((r,i)=>{e:for(;;){const s=r,o=i;if(It(o))return;if(s===e)return ke(an(o));r=s+1,i=De(o);continue e}})(0,t)}function Bo(e,t){const n=xe(),r=At((s,o)=>{if(e(o)){const a=new Fe(o,void 0);return s.tail=a,a}else return s},n,t),i=xe();return r.tail=i,De(n)}function Np(e,t){const n=xe(),r=xe(),i=n,s=At((l,u)=>{let f,c;const p=l[0],m=l[1];return e(u)?[(f=new Fe(u,void 0),p.tail=f,f),m]:[p,(c=new Fe(u,void 0),m.tail=c,c)]},[i,r],t),o=xe();s[0].tail=o;const a=xe();return s[1].tail=a,[De(i),De(r)]}function Rp(e,t){const n=xe(),r=At((s,o)=>{const a=e(o);if(a==null)return s;{const l=new Fe(I(a),void 0);return s.tail=l,l}},n,t),i=xe();return r.tail=i,De(n)}function Bp(e,t,n){return ns(r=>n.Equals(e,r),t)!=null}function yc(e,t){return ns(e,t)!=null}const Lp="Enumeration already finished.",Vp="Enumeration has not started. Call MoveNext.",_c="The input sequence has an insufficient number of elements.",Fp="Reset is not supported on this enumerator.";function Wp(){throw new Error(Fp)}function Lo(){throw new Error(Vp)}function Vo(){throw new Error(Lp)}class jp{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=de(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+xt(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{oe(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return Lr(de(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Up(e){return new jp(e)}class zp{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"(){Wp()}Dispose(){this.dispose()}}function rs(e,t,n){return new zp(e,t,n)}function Hp(e){let t,n,r=!1,i=!1,s;const o=()=>{if(i=!0,n!=null){const a=I(n);try{oe(a)}finally{n=void 0}}if(t!=null){const a=I(t);try{oe(a)}finally{t=void 0}}};return rs(()=>(r?i&&Vo():Lo(),s!=null?I(s):Vo()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const c=I(f);if(c["System.Collections.IEnumerator.MoveNext"]())s=ke(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{oe(c)}finally{n=void 0}}else{const c=I(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),de(a)):(o(),l=!1)}else t=de(e)}return I(l)}},()=>{i||o()})}function Gp(e,t){return rs(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{oe(t)}finally{}})}function vc(e,t,n){let r=!1,i,s=ke(e());const o=()=>{if(s!=null){const l=I(s);try{n(l)}finally{s=void 0}}},a=()=>{try{o()}finally{i=void 0}};return rs(()=>(r||Lo(),i!=null?I(i):Vo()),()=>{if(r||(r=!0),s!=null){const l=I(s);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(i=u,!0):(a(),!1)}else return!1},o)}function qp(e,t){let n,r=t;return rs(()=>{if(n!=null){const i=I(n)[0];return I(n)[1],i}else return Lo()},()=>(n=e(r),n!=null?(I(n)[0],r=I(n)[1],!0):!1),()=>{})}function Yp(e,t){t==null&&$p(e)}function or(e){return Up(e)}function ln(e){return Yp("source",e),de(e)}function A(e){return or(()=>de(e()))}function Fo(e){return or(()=>Hp(e))}function Jp(e,t){return or(()=>qp(e,t))}function is(){return A(()=>new Array(0))}function v(e){return A(()=>wp(e))}function G3(e){return e}function Wo(e){return e instanceof Fe?ir(e):Array.from(e)}function ce(e){return ht(e)?_(e):e instanceof Fe?e:Ap(e)}function Zp(e,t,n){return or(()=>vc(e,t,n))}function bc(e,t,n){return or(()=>{let r=-1;return vc(e,i=>(r=r+1|0,t(r,i)),n)})}function j(e,t){return Fo([e,t])}function Xp(e,t,n){const r=ln(t);try{const i=ln(n);try{let s=0,o=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;s===0&&o&&a;)s=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,s===0&&(o=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(s!==0?s:o?1:a?-1:0)|0}finally{oe(i)}}finally{oe(r)}}function Cn(e,t,n){const r=ln(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{oe(r)}}function Zr(e,t,n){const r=ln(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{oe(r)}}function Sn(e,t){Zr((n,r)=>{e(r)},void 0,t)}function Kp(e,t){Zr((n,r)=>(e(n,r),n+1|0),0,t)}function Ce(e,t){return Zp(()=>ln(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ke(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function Qp(e,t){return bc(()=>ln(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ke(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{oe(n)})}function e1(e){return A(()=>yp(Wo(e)))}function t1(e,t){return or(()=>{const n=ln(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(_c+"\\nParameter name: source");return Gp(()=>{},n)}catch(r){throw oe(n),r}})}function n1(e,t){return bc(()=>ln(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ke(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(_c+"\\nParameter name: source")}else return},n=>{oe(n)})}function Cc(e,t){return A(()=>Fo(Ce(e,t)))}const kn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function jo(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 r1(e,t){switch(t){case kn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case kn.SnakeCase:return jo(e,"_");case kn.SnakeCaseAllCaps:return jo(e,"_").toUpperCase();case kn.KebabCase:return jo(e,"-");case kn.None:default:return e}}function gt(e,t=kn.None){const n={},r=t;function i(o){throw new Error("Cannot infer key and value of "+String(o))}function s(o,a,l){o=r1(o,a),n[o]=l}for(let o of e){let a=kn.None;if(o==null&&i(o),o instanceof N){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:i(o);break;case 1:s(o[0],a,!0);break;case 2:const l=o[1];s(o[0],a,l);break;default:s(o[0],a,o.slice(1))}else typeof o=="string"?s(o,a,!0):i(o)}return n}function i1(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Xr(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}const s1=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"})),o1=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"})),a1=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"})),l1=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"})),u1=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)"})))),c1=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 ar(e){return ce(A(()=>j(v(["className","text-primary-base"]),A(()=>e))))}function Kr(e){const t=gt(ar(e),1);return d(s1,t)}function f1(e){const t=gt(ar(e),1);return d(o1,t)}function d1(e){const t=gt(ar(e),1);return d(a1,t)}function h1(e){const t=gt(ar(e),1);return d(l1,t)}function m1(e){const t=gt(ar(e),1);return d(u1,t)}function Uo(e){const t=gt(ar(e),1);return d(c1,t)}var zo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(zo||(zo={}));function p1(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function Sc(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 $1(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 g1(e,t){if(t&zo.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 w1(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,s,o]=i;if(n=n||g1(s,t),!$1(n).test(o))return p1(i,n)}return null}function Ho(e,t,n,r,i){const s=w1(e,t,i);if(s!=null){let o=Number.parseInt(s.sign+s.digits,s.radix);if(!Number.isNaN(o)){const[a,l]=Sc(!0,r);!n&&s.radix!==10&&o>=a&&o<=l&&(o=o<<32-r>>32-r);const[u,f]=Sc(n,r);if(o>=u&&o<=f)return o}}throw new Error(`The input string ${e} was not in a correct format.`)}function lr(e,t,n,r,i){try{return i.contents=Ho(e,t,n,r),!0}catch{return!1}}const C=Di,y1=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"})),_1=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 v1(e){const t=gt(e,1);return d(y1,t)}function kc(e){const t=gt(e,1);return d(_1,t)}function un(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 Qr(e){let t;const n=on(i=>i.Phone,e.Support),r=on(i=>i.Email,e.Support);return d("p",S(_([["className","text-sm text-gray-900 whitespace-pre-wrap leading-5"],(t=ce(A(()=>j(v(d("span",{children:[`Need help? Contact ${be(e.CompanyName,"your employer")}`]})),A(()=>j(n==null?r==null?v(d("span",{children:[" for assistance"]})):j(v(d("span",{children:[" at "]})),A(()=>{let i;return j((i=n,i==null?v(K()):v(d("span",{children:[`${i}`]}))),A(()=>j(n!=null&&r!=null?v(d("span",{children:[" or "]})):v(K()),A(()=>{const s=r;if(s==null)return v(K());{const o=s;return v(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})):j(v(d("span",{children:[" at "]})),A(()=>{let i;return j((i=n,i==null?v(K()):v(d("span",{children:[`${i}`]}))),A(()=>j(n!=null&&r!=null?v(d("span",{children:[" or "]})):v(K()),A(()=>{const s=r;if(s==null)return v(K());{const o=s;return v(d("a",{className:"text-primary-base underline underline-offset-3 cursor-pointer",href:`mailto:${o}`,children:o}))}}))))})),A(()=>v(d("span",{children:["."]})))))))),["children",C.Children.toArray(Array.from(t))])])))}function Go(e,t,n,r){let i;return d("button",S(_([["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 ${be(e,"")}`],["type","button"],["onClick",s=>{t()}],["disabled",n],(i=ce(A(()=>n?v(v1([["className","animate-spin"]])):r)),["children",C.Children.toArray(Array.from(i))])])))}const b1=kc([["className","text-primary-base animate-spin"]]),C1=e=>{yn(()=>{const t=e();return()=>{t.Dispose()}})},S1=(e,t)=>{yn(()=>{const n=e();return()=>{n.Dispose()}},t)},k1=e=>{_n(()=>{const t=e();return()=>{t.Dispose()}})},x1=C1,xc=S1,I1=k1;function A1(e,t,n,r){const i=C.memo(e,Q(be(Ee(kt,n),K())));return Sn(s=>{e.displayName=s},qi(t)),s=>{const o=E1(r,s);return C.createElement(i,o)}}function E1(e,t){if(e==null)return t;{const n=e;return t.key=n(t),t}}function ss(e){return{Dispose(){e()}}}function T1(e){return C.useState(e)}function P1(e){x1(e)}function qo(e,t){xc(e,t)}function O1(e){I1(t=>(e(),ss(()=>{})))}function ur(e){const t=C.useRef(!1);Yo(()=>{t.current||(t.current=!0,e())},[])}function M1(e){const t=C.useRef(void 0),n=C.useRef(!1),r=C.useRef(!1);n.current&&(r.current=!0),qo(()=>{let i;return n.current?i=void 0:(n.current=!0,t.current=ke(e()),i=r.current?t.current:void 0),{Dispose(){Sn(s=>{oe(s)},qi(i))}}},[])}function Yo(e,t){xc(n=>(e(),ss(()=>{})),t)}function D1(e,t){const n=be(t,[]);return C.useCallback(e,n)}function Ic(e){return C.useRef(e)}function N1(e,t,n){return A1(e,void 0,Gi(n),Gi(t))}function R1(e){const t=Ic(e),n=D1(r=>t.current(r),[]);return O1(()=>{t.current=e}),n}function os(e){return C.useState(e)}function as(e,t,n){const r=[m1([]),un(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}),be(n,K())];return d(Se,{},...r)}function Jo(e,t,n){return as(e,t,Ee(r=>{let i;return d("div",S(_([["className","mt-8"],(i=[Qr(r)],["children",C.Children.toArray(Array.from(i))])])))},n))}function B1(e){let t;const n=e.reissueMagicLink,r=os(!1);return as("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",S(_([["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:s=>{r[0]||(r[1](!0),n())},children:"sign in with email instead"}),d("span",{children:["."]})],["children",C.Children.toArray(Array.from(t))])]))))}function L1(){return as("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 Ac(e){return Jo("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 V1(e){return Jo("Invite no longer active","It looks like your employer may have cancelled your invite, and you no longer have access.",e)}function F1(e){return Jo("Invite expired","Your invite has now expired and you no longer have access.",e)}function Zo(){return as("Something went wrong","We are unable to load our application at this time. Please wait a few minutes before trying again.",void 0)}const W1="workflows-app",Xo="fade-in",Ko=d("div",S(_([["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=_([(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:C.Children.toArray(Array.from(e))})),d("p",{children:[`Copyright © ${Po(Ku())} Flare. ABN 46 607 120 892.`]})];return["children",C.Children.toArray(Array.from(n))]})()])));function j1(){let e,t;return d("div",S(_([["className",ge(" ",[Xo,"min-h-full flex flex-col justify-between w-full sm:w-[640px] mx-auto text-center"])],(e=[d("div",S(_([["className","flex flex-col mt-10 mx-4 sm:mt-20 justify-center items-center"],(t=[kc([["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",C.Children.toArray(Array.from(t))])]))),d("div",{className:"mb-6 sm:mb-8 px-4",children:C.Children.toArray([Ko])})],["children",C.Children.toArray(Array.from(e))])])))}const U1=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Ec=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,z1=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Te(e){function t(r){return r.replace(Ec,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(U1.test(n))return hp(n,"{","}","(",")");if(Ec.test(n))return t(n);if(z1.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 H1(e,t){try{return t.contents=Te(e),!0}catch{return!1}}class G1{constructor(t,n){const r=new Ye(K());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=de(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Qo(r.contents,s[0],s[1])}}finally{oe(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return de(this)}GetEnumerator(){return de(Fo(this.hashMap.values()))}[Symbol.iterator](){return Lr(de(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Qo(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){Tc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=ls(this,t[0]);let i;switch(r!=null&&M(I(r)[1],t[1])?(i=0,I(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Kp((i,s)=>{pt(t,n+i,s)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Pc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=ls(n,t[0]);return r!=null?(M(I(r)[1],t[1])&&ea(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Qo(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Dc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Oc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Mc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Wo(A(()=>Ce(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return ea(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=ls(this,t);if(i!=null){const s=I(i);return n.contents=s[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Wo(A(()=>Ce(n=>n[1],t)))}get size(){return Pc(this)|0}clear(){Tc(this)}delete(t){return ea(this,t)}entries(){return Ce(n=>[n[0],n[1]],this)}get(t){return Oc(this,t)}has(t){return Dc(this,t)}keys(){return Ce(n=>n[0],this)}set(t,n){const r=this;return Mc(r,t,n),r}values(){return Ce(n=>n[1],this)}forEach(t,n){const r=this;Sn(i=>{t(i[1],i[0],r)},r)}}function ei(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=K();return r=[i1(e.hashMap,n,new Ye(()=>i,s=>{i=s})),i],r[0]?[!0,n,r[1].findIndex(s=>e.comparer.Equals(t,s[0]))]:[!1,n,-1]}function ls(e,t){const n=ei(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Xr(e.hashMap,n[1])[n[2]];default:return}}function Tc(e){e.hashMap.clear()}function Pc(e){let t=0,n=de(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{oe(n)}return t|0}function Oc(e,t){const n=ls(e,t);if(n!=null)return I(n)[1];throw new Error("The item was not found in collection")}function Mc(e,t,n){const r=ei(e,t);r[0]?r[2]>-1?Xr(e.hashMap,r[1])[r[2]]=[t,n]:Xr(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Qo(e,t,n){const r=ei(e,t);if(r[0]){if(r[2]>-1)throw new Error(cc("An item with the same key has already been added. Key: {0}",t));Xr(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Dc(e,t){const n=ei(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function ea(e,t){const n=ei(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Xr(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function q1(e){return new h(0,[e])}function Nc(e){return new h(1,[e])}class h extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function wt(e,t){return t.tag===0?q1(e(t.fields[0])):Nc(t.fields[0])}function Rc(e,t){return t.tag===0?e(t.fields[0]):Nc(t.fields[0])}const Y1="#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ƒ£ē︳𐀡%𐀡",J1="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 Z1(){const t=[...Y1].map(s=>(s.codePointAt(0)??0)-35),n=[...J1].map(s=>(s.codePointAt(0)??0)-35),r=new Uint32Array(t),i=new Uint8Array(n);for(let s=1;s<r.length;++s)r[s]+=r[s-1];return s=>{let o=r.length,a=0;for(;o-a>1;){const l=Math.floor((o+a)/2),u=r[l];if(s<u)o=l;else if(s===u){o=a=l;break}else u<s&&(a=l)}return i[a]}}const X1=256,K1=Z1();function Q1(e,t){if(t<e.length)return e.charCodeAt(t);throw new Error("Index out of range.")}const ta=e=>t$(e,0);function e$(e,t){const n=Q1(e,t);return K1(n)}function t$(e,t){return(1<<e$(e,t)&X1)!==0}function n$(e,t){const n=ap(nc(e),t);if(n!=null)return P(ce(A(()=>Ce(r=>r||"",n))))}function r$(e){let t;const n=n$(".*?@(.*)",e);switch(n!=null?O(n)?t=1:O(P(n))?t=0:t=1:t=1,t){case 0:return e;default:return}}function Bc(e,t){return fc(t)?new h(1,[Ve(Le("%s cannot be null or empty"))(e)]):new h(0,[t])}function i$(e){const t=r$(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 xn=e=>({tag:"ok",value:e}),ti=e=>({tag:"error",error:e});class We{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 We.isAbsoluteUri(t)?xn(new We({original:t,value:new URL(t),kind:n})):ti("Invalid URI: The format of the URI could not be determined.");case 2:return We.isAbsoluteUri(t)?ti("URI is not a relative path."):xn(new We({original:t,value:t,kind:n}));case 0:return We.isAbsoluteUri(t)?xn(new We({original:t,value:new URL(t),kind:1})):xn(new We({original:t,value:t,kind:2}));default:return n}}static tryCreateWithBase(t,n){return t.uri.kind!==1?ti("Base URI should have Absolute kind"):typeof n=="string"?xn(new We({original:new URL(n,t.uri.value).toString(),value:new URL(n,t.uri.value),kind:1})):n.uri.kind===2?xn(new We({original:new URL(n.uri.value,t.uri.value).toString(),value:new URL(n.uri.value,t.uri.value),kind:1})):xn(t)}static tryCreateImpl(t,n=1){return typeof t=="string"?typeof n!="number"?ti("Kind must be specified when the baseUri is a string."):We.tryCreateWithKind(t,n):typeof n=="number"?ti("Kind should not be specified when the baseUri is an absolute Uri."):We.tryCreateWithBase(t,n)}static create(t,n=1){const r=We.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 i=We.tryCreateImpl(t,n);switch(i.tag){case"ok":return r.contents=i.value,!0;case"error":return!1;default:return i}}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 s$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProfileId"]}}function Lc(e){return new s$(e)}function Vc(e){return e.fields[0]}class o$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["InviteCode"]}}function a$(e){return!Hr(e)}function Fc(e){return a$(e)?new h(0,[new o$(e)]):new h(1,["Invalid invite code format."])}class Wc extends R{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}class l$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Logo"]}}class u$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CompanyName"]}}class jc extends R{constructor(t,n){super(),this.Email=t,this.Phone=n}}class c$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Email"]}}class f$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["Phone"]}}const Uc=e=>wt(t=>new c$(t),Rc(i$,Bc("Email",e)));function d$(e){return e.fields[0]}const zc=e=>wt(t=>new f$(t),Bc("Phone",e));function h$(e){return e.fields[0]}function Hc(e){return Hr(e)?new h(1,["Invalid company name."]):new h(0,[new u$(e)])}function ni(e){return e.fields[0]}function m$(e){try{const t=We.create(e);return t.isAbsoluteUri?[!0,t]:[!1,void 0]}catch{return[!1,void 0]}}function Gc(e){return m$(e)[0]?new h(0,[new l$(e)]):new h(1,["Invalid logo url."])}function p$(e){return e.fields[0]}class $$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SecondFactorCode"]}}function g$(e){return new $$(e)}class w$ extends R{constructor(t,n,r,i){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=i}}class y$ extends R{constructor(t,n,r,i){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=i}}function _$(e){return new qc(0,[e])}function v$(e){return new qc(1,[e])}class qc extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}class na extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of3","Choice2Of3","Choice3Of3"]}}function b$(e){return _$(e)}function C$(e){return v$(e)}class Et extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessStepId"]}}class Tt extends R{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}const Ue=new Tt(new Et("personal-details"),"Personal Details","apollo-personal-details-app"),ut=new Tt(new Et("emergency-contacts"),"Emergency Contacts","apollo-emergency-contacts-app"),ct=new Tt(new Et("bank"),"Bank","bank-component"),ft=new Tt(new Et("tax"),"Tax","tax-component"),Pe=new Tt(new Et("super"),"Super","super-selection-app"),In=new Tt(new Et("app-workplace-linking"),"App Workplace Linking","workplace-link"),S$=new Et("benefits-onboarding"),us=new Tt(S$,"Benefits","benefits-onboarding"),jt=new Tt(new Et("workplace-policy"),"Workplace-policy","apollo-workplace-policies-app"),An=new Tt(new Et("Benefits-Discrete"),"Benefits","benefits-onboarding");function Yc(e){return new Et(e)}function cs(e){return e.fields[0]}class Oe extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessConfigId"]}}class Me extends R{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}const Jc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000000")),"onboarding-default",_([ct,ft,Pe])),Zc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000001")),"PEBTS",_([Ue,ut,ct,ft,Pe])),Xc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000002")),"PS",_([Ue,Pe])),Kc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000003")),"BS",_([ct,Pe])),Qc=new Me(new Oe(Te("00000000-0000-0000-0000-000000000004")),"Super",T(Pe)),ra=new Me(new Oe(Te("00000000-0000-0000-0001-000000000000")),"App Workplace Linking",T(In)),ef=new Me(new Oe(Te("00000000-0000-0000-0000-000000000005")),"Tax",T(ft)),tf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000006")),"PBTS",_([Ue,ct,ft,Pe])),nf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000007")),"PEBTSPo",_([Ue,ut,ct,ft,Pe,jt])),rf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000008")),"PEBSPo",_([Ue,ut,ct,Pe,jt])),sf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000009")),"PESPo",_([Ue,ut,Pe,jt])),of=new Me(new Oe(Te("00000000-0000-0000-0000-000000000010")),"PETSPo",_([Ue,ut,ft,Pe,jt])),fs=new Me(new Oe(Te("00000000-0000-0000-0002-000000000000")),"Bo",T(An)),af=new Me(new Oe(Te("00000000-0000-0000-0000-000000000011")),"PETS",_([Ue,ut,ft,Pe])),lf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000012")),"PEBS",_([Ue,ut,ct,Pe])),uf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000013")),"PES",_([Ue,ut,Pe])),cf=new Me(new Oe(Te("00000000-0000-0000-0000-000000000014")),"PBTSPo",_([Ue,ct,ft,Pe,jt])),k$=new G1([[Jc.Id,Jc],[Zc.Id,Zc],[Xc.Id,Xc],[Kc.Id,Kc],[Qc.Id,Qc],[ra.Id,ra],[ef.Id,ef],[tf.Id,tf],[nf.Id,nf],[rf.Id,rf],[sf.Id,sf],[of.Id,of],[fs.Id,fs],[af.Id,af],[lf.Id,lf],[uf.Id,uf],[cf.Id,cf]],{Equals:M,GetHashCode:bo});function x$(e){return M(e,fs)?!1:!M(e,ra)}class ff extends R{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}class ri extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function ia(e){return e.tag===2}class I$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ProcessInstanceId"]}}function df(e){return new I$(e)}function cr(e){return e.fields[0]}class A$ extends R{constructor(t,n){super(),this.Name=t,this.Value=n}}class E$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagName"]}}class T$ extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["TagValue"]}}function P$(e){return Hr(e)?new h(1,["Tag name is empty"]):e.length<100?new h(0,[new E$(e)]):new h(1,["Tag name is too long"])}function O$(e){return Hr(e)?new h(1,["Tag value is empty"]):e.length<100?new h(0,[new T$(e)]):new h(1,["Tag value is too long"])}function M$(e,t){const n=P$(e);if(n.tag===1)return new h(1,[n.fields[0]]);{const r=O$(t);return r.tag===1?new h(1,[r.fields[0]]):new h(0,[new A$(n.fields[0],r.fields[0])])}}class D$ extends R{constructor(t,n,r,i,s,o,a,l,u,f,c){super(),this.Id=t,this.Configuration=n,this.DateCreated=r,this.Status=i,this.Invite=s,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}class N$ extends R{constructor(t){super(),this.BenefitsOnboarding=t}}class fr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}class hf extends R{constructor(t){super(),this.Category=t}}class mf extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function R$(e){switch(e.tag){case 1:return"InfoRequest";case 2:return"AppInvite";case 3:return"BenefitsExisting";case 4:return"BenefitsOnboarding";default:return"Default"}}function B$(e){const t=new Oe(e);return Cn(t,k$.keys(),{Equals:M,GetHashCode:bo})?new h(0,[t]):new h(1,[Ve(sc("Invalid Type %A%P()",[e]))])}function sa(e){return e.fields[0]}function L$(e,t){const n=Jr(s=>M(s.Id,e),t.Configuration.Steps),r=Ve(sc("Invalid ProcessStep Id %A%P()",[e])),i=n;return i==null?new h(1,[r]):new h(0,[i])}function V$(e){const t=e.Status;switch(t.tag){case 2:return e.Configuration.Steps;case 3:case 0:return le();default:{const n=Xe(r=>r[0],t.fields[0].CompletedSteps);return Bo(r=>Bp(r.Id,n,{Equals:M,GetHashCode:bo}),e.Configuration.Steps)}}}function pf(){return qu(document.getElementById("external-loading-page-container"))}function $f(){return pf()!=null}function F$(){let e,t;const n=pf();Sn((e=(t=document.body,r=>t.removeChild(r)),r=>{e(r)}),qi(n))}var En=[],W$=function(){return En.some(function(e){return e.activeTargets.length>0})},j$=function(){return En.some(function(e){return e.skippedTargets.length>0})},gf="ResizeObserver loop completed with undelivered notifications.",U$=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:gf}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=gf),window.dispatchEvent(e)},ii;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ii||(ii={}));var Tn=function(e){return Object.freeze(e)},z$=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Tn(this)}return e}(),wf=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Tn(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,s=t.right,o=t.bottom,a=t.left,l=t.width,u=t.height;return{x:n,y:r,top:i,right:s,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},yf=function(e){if(oa(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,s=i.offsetWidth,o=i.offsetHeight;return!(s||o||e.getClientRects().length)},_f=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)},H$=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},si=typeof window<"u"?window:{},ds=new WeakMap,vf=/auto|scroll/,G$=/^tb|vertical/,q$=/msie|trident/i.test(si.navigator&&si.navigator.userAgent),Pt=function(e){return parseFloat(e||"0")},dr=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new z$((n?t:e)||0,(n?e:t)||0)},bf=Tn({devicePixelContentBoxSize:dr(),borderBoxSize:dr(),contentBoxSize:dr(),contentRect:new wf(0,0,0,0)}),Cf=function(e,t){if(t===void 0&&(t=!1),ds.has(e)&&!t)return ds.get(e);if(yf(e))return ds.set(e,bf),bf;var n=getComputedStyle(e),r=oa(e)&&e.ownerSVGElement&&e.getBBox(),i=!q$&&n.boxSizing==="border-box",s=G$.test(n.writingMode||""),o=!r&&vf.test(n.overflowY||""),a=!r&&vf.test(n.overflowX||""),l=r?0:Pt(n.paddingTop),u=r?0:Pt(n.paddingRight),f=r?0:Pt(n.paddingBottom),c=r?0:Pt(n.paddingLeft),p=r?0:Pt(n.borderTopWidth),m=r?0:Pt(n.borderRightWidth),$=r?0:Pt(n.borderBottomWidth),g=r?0:Pt(n.borderLeftWidth),w=c+u,b=l+f,y=g+m,x=p+$,B=a?e.offsetHeight-x-e.clientHeight:0,V=o?e.offsetWidth-y-e.clientWidth:0,te=i?w+y:0,Ke=i?b+x:0,Re=r?r.width:Pt(n.width)-te-V,qe=r?r.height:Pt(n.height)-Ke-B,dt=Re+w+V+y,Tr=qe+b+B+x,Bh=Tn({devicePixelContentBoxSize:dr(Math.round(Re*devicePixelRatio),Math.round(qe*devicePixelRatio),s),borderBoxSize:dr(dt,Tr,s),contentBoxSize:dr(Re,qe,s),contentRect:new wf(c,l,Re,qe)});return ds.set(e,Bh),Bh},Sf=function(e,t,n){var r=Cf(e,n),i=r.borderBoxSize,s=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case ii.DEVICE_PIXEL_CONTENT_BOX:return o;case ii.BORDER_BOX:return i;default:return s}},Y$=function(){function e(t){var n=Cf(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Tn([n.borderBoxSize]),this.contentBoxSize=Tn([n.contentBoxSize]),this.devicePixelContentBoxSize=Tn([n.devicePixelContentBoxSize])}return e}(),kf=function(e){if(yf(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=[];En.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(u){var f=new Y$(u.target),c=kf(u.target);a.push(f),u.lastReportedSize=Sf(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 i=r[n];i()}return e},xf=function(e){En.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(kf(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},Z$=function(){var e=0;for(xf(e);W$();)e=J$(),xf(e);return j$()&&U$(),e>0},aa,If=[],X$=function(){return If.splice(0).forEach(function(e){return e()})},K$=function(e){if(!aa){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return X$()}).observe(n,r),aa=function(){n.textContent="".concat(t?t--:t++)}}If.push(e),aa()},Q$=function(e){K$(function(){requestAnimationFrame(e)})},hs=0,eg=function(){return!!hs},tg=250,ng={attributes:!0,characterData:!0,childList:!0,subtree:!0},Af=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ef=function(e){return e===void 0&&(e=0),Date.now()+e},la=!1,rg=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=tg),!la){la=!0;var r=Ef(t);Q$(function(){var i=!1;try{i=Z$()}finally{if(la=!1,t=r-Ef(),!eg())return;i?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,ng)};document.body?n():si.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Af.forEach(function(n){return si.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Af.forEach(function(n){return si.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),ua=new rg,Tf=function(e){!hs&&e>0&&ua.start(),hs+=e,!hs&&ua.stop()},ig=function(e){return!oa(e)&&!H$(e)&&getComputedStyle(e).display==="inline"},sg=function(){function e(t,n){this.target=t,this.observedBox=n||ii.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Sf(this.target,this.observedBox,!0);return ig(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),og=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),ms=new WeakMap,Pf=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ps=function(){function e(){}return e.connect=function(t,n){var r=new og(t,n);ms.set(t,r)},e.observe=function(t,n,r){var i=ms.get(t),s=i.observationTargets.length===0;Pf(i.observationTargets,n)<0&&(s&&En.push(i),i.observationTargets.push(new sg(n,r&&r.box)),Tf(1),ua.schedule())},e.unobserve=function(t,n){var r=ms.get(t),i=Pf(r.observationTargets,n),s=r.observationTargets.length===1;i>=0&&(s&&En.splice(En.indexOf(r),1),r.observationTargets.splice(i,1),Tf(-1))},e.disconnect=function(t){var n=this,r=ms.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Of=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.");ps.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(!_f(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ps.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(!_f(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ps.unobserve(this,t)},e.prototype.disconnect=function(){ps.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class ag{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,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class oi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,oi.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 Ot(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new oi);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Fi(n))}});else try{e(t)}catch(n){t.onError(Fi(n))}}}function lg(e,t){return Ot(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Fi(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function ug(e){return Ot(t=>t.onSuccess(e))}class cg{Bind(t,n){return lg(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Ot(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const s=n(i.value);return i=r.next(),s}))}Return(t){return ug(t)}ReturnFrom(t){return t}TryFinally(t,n){return Ot(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Ot(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(s){r.onError(Fi(s))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Ot(t=>t.onSuccess(void 0))}}const E=new cg;function fa(e){}function fg(e){return Ot(t=>e()(t))}function dg(e){return Nf(t=>e.then(t[0]).catch(n=>(n instanceof oi?t[2]:t[1])(n)))}const Mf=new ag;function Df(e){return Ot(t=>{e({onSuccess:n=>t.onSuccess(b$(n)),onError:n=>t.onSuccess(C$(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Nf(e){return Ot(t=>e([t.onSuccess,t.onError,t.onCancel]))}function hg(e){return fg(()=>dg(Promise.all(Array.from(e,t=>pg(t)))))}function $s(e){return Ot(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new oi)})})}function mg(e,t){return Bf(e,t)}function Rf(e,t){return mg(e,t)}function Bf(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const s=new ca;e({onSuccess:t||fa,onError:n||fa,onCancel:r||fa,cancelToken:i||Mf,trampoline:s})}function pg(e,t){return new Promise((n,r)=>Bf(e,n,r,r,Mf))}class Lf extends R{constructor(t,n,r){super(),this.instanceId=t|0,this.name=n,this.type=r}}function $g(e){return new Lf(cr(e.Id),e.Configuration.Name,sa(e.Configuration.Id))}function gg(e,t){const n={};return n.type="contentResized",n.sender="flare",n.height=e,n.width=t,n}function wg(e,t,n,r){const i={};return i.type="workflowSubmitSuccess",i.sender="flare",i.workflow=new Lf(cr(e),t,sa(n)),i.profileId=Vc(r),i}function yg(e,t,n,r){const i={};return i.type="stepSubmitSuccess",i.sender="flare",i.workflow=$g(n),i.profileId=Vc(r),i.step={name:t,type:cs(e)},i}function _g(){const e={};return e.type="appReady",e.sender="flare",e}function gs(e){$f()||window.parent.postMessage(e,"*")}function vg(e,t){Rf(E.Delay(()=>E.Bind($s(e),()=>(t(),E.Zero()))))}function da(){gs(gg(document.body.offsetHeight,-1))}function bg(){(window.ResizeObserver?new window.ResizeObserver(()=>{da()}):new Of(()=>{da()})).observe(document.body)}function Cg(e,t,n){const r=L$(e,t);r.tag===1||gs(yg(e,r.fields[0].DisplayName,t,n))}function ha(e,t,n,r){gs(wg(e,t,n,r))}function Ut(e){$f()&&vg(e,()=>{F$(),gs(_g()),da()})}/*!
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.
@@ -772,7 +772,7 @@ 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 br=v_;function b_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var C_=typeof Object.is=="function"?Object.is:b_,S_=br.useState,k_=br.useEffect,x_=br.useLayoutEffect,I_=br.useDebugValue;function A_(e,t){var n=t(),r=S_({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return x_(function(){i.value=n,i.getSnapshot=t,Qa(i)&&s({inst:i})},[e,n,t]),k_(function(){return Qa(i)&&s({inst:i}),e(function(){Qa(i)&&s({inst:i})})},[e]),I_(n),n}function Qa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!C_(e,n)}catch{return!0}}function E_(e,t){return t()}var T_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E_:A_;m0.useSyncExternalStore=br.useSyncExternalStore!==void 0?br.useSyncExternalStore:T_,h0.exports=m0;var P_=h0.exports;class O_{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),s=[];this.finalDispatch=void 0;let o;const a=g_(i)(this.arg);let l=a[0],u=a[1];o=[[l,f=>{const c=this.finalDispatch;c==null?s.push(f):c(f)},!1,s],u],this.state=o[0],this.cmd=o[1],this.subscribe=f=>{let c=!1;const p=vo(this.state[0]);return d0(this.arg,c0((m,$)=>{const g=this.state;this.finalDispatch=$,this.state=[m,g[1],!0,s],m!==g[0]&&f()},w_((m,$)=>{const g=this.cmd;return this.cmd=H(),[this.state[0],g]},(m,$,g)=>m($)(this.state[0]),So(m=>m),So(m=>m),Q(m=>m),m=>[$=>m[0]($)?!0:p&&c,$=>{const g=$;vo(g)?oe(g):m[1]($)}],i))),()=>{c=!0}}}}function p0(e,t,n){return new O_(e,t,n)}function M_(e){return e.state}function D_(e){return e.subscribe}function N_(e,t,n){return M(e.arg,t)?!M(e.dependencies,n):!0}function el(e,t,n){const r=Yn(()=>p0(e,t,n)),i=r[0];N_(i,t,n)&&r[1](p0(e,t,n));const s=P_.useSyncExternalStore(D_(i),()=>M_(i)),o=s[2],a=s[3],l=s[1];return yn(()=>{if(o&&a.length>0){let u=de(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{oe(u)}vm(a)}},[o,a]),[s[0],l]}let tl=class extends R{constructor(t,n){super(),this.Email=t,this.Phone=n}};function R_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.SupportDto",[],tl,()=>[["Email",J(z)],["Phone",J(z)]])}function B_(e){return new tl(Ee(d$,e.Email),Ee(h$,e.Phone))}let nl=class extends R{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}};function Dn(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteBrandingDto",[],nl,()=>[["CompanyName",J(z)],["Logo",J(z)],["Support",J(R_())]])}function L_(e){return new nl(Ee(ni,e.CompanyName),Ee(p$,e.Logo),Ee(B_,e.Support))}class $0 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function Nn(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteJourneyTypeDto",[],$0,()=>[[["Item",hi()]],[["Item",hi()]],[["Item",hi()]],[["Item",hi()]],[["Item",hi()]]])}let g0=class extends R{constructor(t){super(),this.Category=t}};function hi(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.JourneyTypeDetailsDto",[],g0,()=>[["Category",J(z)]])}class w0 extends R{constructor(t){super(),this.MagicCode=t}}function V_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeRequestDto",[],w0,()=>[["MagicCode",z]])}class F_ extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PassThrough","MagicCodeExpired","MagicCodeNotRecognised","InviteExpired","WorkflowCompleted","WorkflowAbandoned","ProfileStateInvalidForWorkflowCompletion","InviteNotFound"]}}function W_(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeOutcomeDto",[],F_,()=>[[["Item",Je(["AuthCode",z],["Branding",J(Dn())],["FirstName",z],["IsInitialMagicLinkUsed",lt],["JourneyType",Nn()],["ProcessConfigId",z])]],[["Item",Je(["Branding",J(Dn())],["FirstName",z],["IsInitialMagicLinkUsed",lt],["JourneyType",Nn()],["OneTimeCodeOptionAvailable",lt],["ProcessConfigId",z])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[]])}function j_(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 U_(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}}function z_(e){switch(e.tag){case 1:return e.fields[0].ProcessConfigId;case 2:return;case 3:return;case 4:return;case 5:return;case 6:return;case 7:return;default:return e.fields[0].ProcessConfigId}}class H_ extends R{constructor(t,n){super(),this.CssOverrides=t,this.Outcome=n}}function G_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeResponseDto",[],H_,()=>[["CssOverrides",sn(z)],["Outcome",W_()]])}class y0 extends R{constructor(t,n){super(),this.MagicCode=t,this.IsChange=n}}function q_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeRequestDto",[],y0,()=>[["MagicCode",z],["IsChange",lt]])}class Y_ extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MagicCodeIssued","MagicCodeNotRecognised","MagicCodeIssuingThrottled","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function J_(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeOutcomeDto",[],Y_,()=>[[["Item",Je(["MaskedEmail",z])]],[],[["Item",Je(["MaskedEmail",z])]],[],[],[],[],[]])}class Z_ extends R{constructor(t){super(),this.Outcome=t}}function X_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeResponseDto",[],Z_,()=>[["Outcome",J_()]])}class _0 extends R{constructor(t,n){super(),this.MagicCode=t,this.IsResend=n}}function K_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeRequestDto",[],_0,()=>[["MagicCode",z],["IsResend",lt]])}class Q_ extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeIssued","OneTimeCodeOptionNotAvailable","OneTimeCodeLocked","OneTimeCodeIssuingThrottled","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function e2(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeOutcomeDto",[],Q_,()=>[[["Item",Je(["MaskedPhone",z])]],[],[],[["Item",Je(["MaskedPhone",z])]],[],[],[],[],[],[]])}class t2 extends R{constructor(t){super(),this.Outcome=t}}function n2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeResponseDto",[],t2,()=>[["Outcome",e2()]])}class v0 extends R{constructor(t){super(),this.OneTimeCode=t|0}}function r2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeRequestDto",[],v0,()=>[["OneTimeCode",Hi]])}class i2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeMatched","OneTimeCodeFailed","OneTimeCodeExpired","OneTimeCodeNotCurrentlyIssued","OneTimeCodeAlreadyUsed","OneTimeCodeLocked","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function s2(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeOutcomeDto",[],i2,()=>[[["Item",Je(["AuthCode",z])]],[["Item",Je(["RemainingAttempts",Hi])]],[],[],[],[],[],[],[],[],[]])}class o2 extends R{constructor(t){super(),this.Outcome=t}}function a2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeResponseDto",[],o2,()=>[["Outcome",s2()]])}class b0 extends R{constructor(t,n){super(),this.MagicCode=t,this.IsPassThrough=n}}function l2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressRequestDto",[],b0,()=>[["MagicCode",z],["IsPassThrough",lt]])}class u2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Progressed","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function c2(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressOutcomeDto",[],u2,()=>[[],[],[],[],[],[],[]])}class f2 extends R{constructor(t){super(),this.Outcome=t}}function d2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressResponseDto",[],f2,()=>[["Outcome",c2()]])}let Cr=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}};class _e extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class h2 extends R{constructor(t,n){super(),this.InviteToken=t,this.MagicCode=n}}function m2(e){const t=Qi(e,["."],void 0,0);if(!No((n,r)=>n===r,t)&&t.length===2){const n=ee(1,t);return new h(0,[new h2(ee(0,t),n)])}else return new h(1,["Invalid link"])}class re extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeLocked","NoAccess","UnrecognisedLink","WorkflowAbandoned","InviteExpired","SomethingWentWrong"]}}let G=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Welcome","CheckYourInbox","CodeEntry","AccessLinkExpired","WorkflowCompleted","Error"]}};class rl extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CheckYourInbox","CodeEntry","Onboarding"]}}let il=class extends R{constructor(t,n,r,i,s){super(),this.CssOverrides=t,this.Page=n,this.Branding=r,this.ProcessConfigId=i,this.JourneyType=s}},U=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NavigatePage","ValidateMagicLink","ReissueMagicLink","IssueOneTimeCode","ValidateOneTimeCode","ProgressFromWelcome","NavigateToAuthCodeExchange"]}};function p2(e,t,n){e:for(;;){const r=e,i=t,s=n;if(O(s)){const o=r;return o.tag===1?new h(1,[o.fields[0]]):new h(0,[sr(o.fields[0])])}else{let o;const a=i(k(s));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,[Ze(a.fields[0],l.fields[0])])}if(o.tag===1)return o;e=o,t=i,n=P(s);continue e}}}function $2(e,t){return p2(new h(0,[le()]),e,t)}function Sr(e){return $2(t=>t,e)}class g2 extends R{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function w2(){return ne("Workflows.Business.Aggregates.CommonDto.InviteBrandingDto",[],g2,()=>[["CompanyName",J(z)],["Logo",J(z)],["Support",J(_2())]])}class y2 extends R{constructor(t,n){super(),this.Email=t,this.Phone=n}}function _2(){return ne("Workflows.Business.Aggregates.CommonDto.SupportDto",[],y2,()=>[["Email",J(z)],["Phone",J(z)]])}function v2(e){let t;const n=e.Email;if(n!=null){const r=Uc(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 i=e.Phone;if(i!=null){const s=zc(i);r=s.tag===1?new h(1,[s.fields[0]]):new h(0,[s.fields[0]])}else r=new h(0,[void 0]);return r.tag===1?new h(1,[r.fields[0]]):new h(0,[new jc(t.fields[0],r.fields[0])])}}function b2(e){let t;const n=e.Logo;if(n!=null){const r=Gc(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 i=e.CompanyName;if(i!=null){const s=Hc(i);r=s.tag===1?new h(1,[s.fields[0]]):new h(0,[s.fields[0]])}else r=new h(0,[void 0]);if(r.tag===1)return new h(1,[r.fields[0]]);{let s;const o=e.Support;if(o!=null){const a=v2(o);s=a.tag===1?new h(1,[a.fields[0]]):new h(0,[a.fields[0]])}else s=new h(0,[void 0]);return s.tag===1?new h(1,[s.fields[0]]):new h(0,[new Wc(r.fields[0],t.fields[0],s.fields[0])])}}}class C2 extends R{constructor(t,n,r,i){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=i}}function S2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],C2,()=>[["Code",z],["DateIssued",Wt("System.DateTime")],["NumberOfAttempts",Hi],["DateOfLastAttempt",J(Wt("System.DateTime"))]])}function k2(e){return new w$(g$(e.Code),e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)}class x2 extends R{constructor(t,n,r,i){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=i}}function I2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],x2,()=>[["Code",z],["DateIssued",Wt("System.DateTime")],["SecondFactor",J(S2())],["Branding",J(w2())]])}function A2(e){const t=Fc(e.Code);if(t.tag===1)return new h(1,[t.fields[0]]);{let n;const r=e.SecondFactor;n=r==null?void 0:k2(r);let i;const s=e.Branding;if(s!=null){const o=b2(s);i=o.tag===1?new h(1,[o.fields[0]]):new h(0,[o.fields[0]])}else i=new h(0,[void 0]);return i.tag===1?new h(1,[i.fields[0]]):new h(0,[new y$(t.fields[0],e.DateIssued,n,i.fields[0])])}}class E2 extends R{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}function T2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],E2,()=>[["Id",z],["DisplayName",z],["ComponentTagName",z]])}function P2(e){return new h(0,[new Tt(Yc(e.Id),e.DisplayName,e.ComponentTagName)])}function O2(e){return Sr(Xe(P2,e))}class M2 extends R{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}function D2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],M2,()=>[["ActivatedDates",sn(Wt("System.DateTime"))],["CompletedSteps",sn(Dm(z,Wt("System.DateTime")))]])}function N2(e){const t=Sr(Xe(n=>new h(0,[[Yc(n[0]),n[1]]]),e.CompletedSteps));return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new ff(e.ActivatedDates,t.fields[0])])}class R2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function B2(){return at("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],R2,()=>[[],[["Item",D2()]],[["Item",Wt("System.DateTime")]],[["Item",Wt("System.DateTime")]]])}function L2(e){switch(e.tag){case 1:{const t=N2(e.fields[0]);return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new ri(1,[t.fields[0]])])}case 2:return new h(0,[new ri(2,[e.fields[0]])]);case 3:return new h(0,[new ri(3,[e.fields[0]])]);default:return new h(0,[new ri(0,[])])}}class V2 extends R{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}function F2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],V2,()=>[["Id",Wt("System.Guid")],["Name",z],["Steps",sn(T2())]])}function W2(e){const t=O2(e.Steps);if(t.tag===1)return new h(1,[t.fields[0]]);{const n=I$(e.Id);return n.tag===1?new h(1,[n.fields[0]]):new h(0,[new Me(n.fields[0],e.Name,t.fields[0])])}}class j2 extends R{constructor(t,n){super(),this.Name=t,this.Value=n}}function U2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],j2,()=>[["Name",z],["Value",z]])}function z2(e){return D$(e.Name,e.Value)}class H2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function G2(){return at("Workflows.Business.Aggregates.ProcessInstanceList.Dto.BenefitsOnboardingShowOptionsDto",[],H2,()=>[[],[]])}class q2 extends R{constructor(t){super(),this.BenefitsOnboarding=t}}function Y2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.StepsConfigurationDto",[],q2,()=>[["BenefitsOnboarding",J(Je(["Show",G2()]))]])}function J2(e){let t,n;return new R$((t=e.BenefitsOnboarding,t==null?void 0:(n=t,{Show:n.Show.tag===1?new mf(1,[]):new mf(0,[])})))}class Z2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function X2(){return at("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDto",[],Z2,()=>[[["Item",mi()]],[["Item",mi()]],[["Item",mi()]],[["Item",mi()]],[["Item",mi()]]])}class K2 extends R{constructor(t){super(),this.Category=t}}function mi(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDetailsDto",[],K2,()=>[["Category",J(z)]])}function pi(e){return new hf(e.Category)}function Q2(e){if(e==null)return new fr(0,[new hf(void 0)]);switch(e.tag){case 1:{const t=e.fields[0];return new fr(1,[pi(t)])}case 2:{const t=e.fields[0];return new fr(2,[pi(t)])}case 3:{const t=e.fields[0];return new fr(3,[pi(t)])}case 4:{const t=e.fields[0];return new fr(4,[pi(t)])}default:{const t=e.fields[0];return new fr(0,[pi(t)])}}}class ev extends R{constructor(t,n,r,i,s,o,a,l,u,f,c){super(),this.Id=t|0,this.DateCreated=n,this.Configuration=r,this.Status=i,this.Invite=s,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}function C0(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],ev,()=>[["Id",Hi],["DateCreated",Wt("System.DateTime")],["Configuration",F2()],["Status",B2()],["Invite",J(I2())],["Tags",J(sn(U2()))],["Creator",J(z)],["StepsConfiguration",J(Y2())],["JourneyType",J(X2())],["IsBenefitsStepEnabled",J(lt)],["PaySetupComplete",J(lt)]])}function S0(e){let t,n;const r=W2(e.Configuration);if(r.tag===1)return new h(1,[r.fields[0]]);{const i=r.fields[0],s=L2(e.Status);if(s.tag===1)return new h(1,[s.fields[0]]);{const o=s.fields[0];let a;if(o.tag===1){const l=o.fields[0],u=Sr(Xe(f=>{const c=[f[0],f[1]],p=c[0];return yc(m=>M(m.Id,p),i.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 ri(1,[new ff(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=A2(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=Sr(Xe(z2,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 N$(df(e.Id),i,e.DateCreated,a.fields[0],l.fields[0],f.fields[0],(t=e.Creator,t==null?void 0:Lc(t)),(n=e.StepsConfiguration,n==null?void 0:J2(n)),Q2(e.JourneyType),e.IsBenefitsStepEnabled,e.PaySetupComplete)])}}}}}class $i extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}class tv extends R{constructor(t,n,r,i){super(),this.CssOverrides=t,this.ProcessInstance=n,this.IsBenefitsEnabled=r,this.Branding=i}}class Rn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}function nv(){return at("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandTypeDto",[],Rn,()=>[[["Item",z]],[["Item",z]],[],[["Item",lt]],[["Item",lt]],[["Item",lt]]])}function rv(e){switch(e.tag){case 1:return new Rn(1,[cs(e.fields[0])]);case 2:return new Rn(2,[]);case 3:return new Rn(3,[e.fields[0]]);case 4:return new Rn(4,[e.fields[0]]);case 5:return new Rn(5,[e.fields[0]]);default:return new Rn(0,[cs(e.fields[0])])}}const iv=S0;class sv extends R{constructor(t,n,r,i){super(),this.CssOverrides=t,this.ProcessInstanceDto=n,this.IsBenefitsEnabled=r,this.Branding=i}}function ov(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],sv,()=>[["CssOverrides",sn(z)],["ProcessInstanceDto",C0()],["IsBenefitsEnabled",lt],["Branding",J(lv())]])}class av extends R{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function lv(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Branding",[],av,()=>[["CompanyName",J(z)],["Logo",J(z)],["Support",J(cv())]])}class uv extends R{constructor(t,n){super(),this.Email=t,this.Phone=n}}function cv(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Support",[],uv,()=>[["Email",J(z)],["Phone",J(z)]])}function fv(e){let t,n,r,i,s,o,a,l,u,f,c,p,m,$,g,w,b,y;return new Wc((t=(n=(r=e.CompanyName,r==null?void 0:Hc(r)),n!=null?(i=n,i.tag===1?new h(1,[i.fields[0]]):new h(0,[i.fields[0]])):new h(0,[void 0])),t.tag===1?void 0:t.fields[0]),(s=(o=(a=e.Logo,a==null?void 0:Gc(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])),s.tag===1?void 0:s.fields[0]),(u=e.Support,u==null?void 0:(f=u,new jc((c=(p=(m=f.Email,m==null?void 0:Uc(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=(b=f.Phone,b==null?void 0:zc(b)),w!=null?(y=w,y.tag===1?new h(1,[y.fields[0]]):new h(0,[y.fields[0]])):new h(0,[void 0])),g.tag===1?void 0:g.fields[0])))))}function dv(e){let t,n;return new tv(e.CssOverrides,(t=S0(e.ProcessInstanceDto),t.tag===1?(()=>{throw new Error(t.fields[0])})():t.fields[0]),e.IsBenefitsEnabled,(n=e.Branding,n==null?void 0:fv(n)))}class Ns extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WorkflowInstanceStepActivated","BenefitsStepActivated","BenefitsStepCompleted"]}}function hv(){return at("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventTypeDto",[],Ns,()=>[[["Item",z]],[],[]])}function sl(e,t){if(t.startsWith(e))return t}function k0(e,t){if(t.endsWith(e))return t}function mv(e){return t=>{let n,r;return n=sl("/",t),n!=null?(r=n,r):"/"+t}}function Rs(e,t){return mv()(ge("/",Xe(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function ol(e,t,n){t===1?history.pushState(void 0,"",Rs(e)):history.replaceState(void 0,"",Rs(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function x0(e,t){return Ep(n=>{if(Hr(n))return le();{const r=mp(n,"#");if(r==="?")return le();if(sl("?",r)!=null)return T(r);{const i=r.split("?");if(!No((s,o)=>s===o,i)&&i.length===1){const s=ee(0,i);return T(decodeURIComponent(s))}else if(!No((s,o)=>s===o,i)&&i.length===2)if(ee(1,i)===""){const s=ee(0,i);return T(decodeURIComponent(s))}else{const s=ee(0,i),o=ee(1,i);return _([decodeURIComponent(s),"?"+o])}else return le()}}},_(Qi(sl("#",e)!=null?pp(e,1,e.length-1):t===1&&(k0("#",e)!=null||k0("#/",e)!=null)?"":e,["/"],void 0,0)))}function pv(e,t,n){return t(x0(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const $v=N1(e=>{const t=R1(r=>{const i=be(e.onUrlChanged,s=>{});pv(be(e.hashMode,1),i)});M1(()=>(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),ss(()=>{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)}))),ur(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??K()});function mn(e){try{const t=new URLSearchParams(e);return ce(A(()=>Ce(n=>[ee(0,n),ee(1,n)],t.entries())))}catch{return}}class Bs extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Autodev","Test","Prod","Sandbox"]}}function gv(e){const t=_(Qi(e,["."],void 0,0));let n;if(O(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 Bs(0,[])]);case 1:return new h(0,[new Bs(1,[])]);case 2:return new h(0,[new Bs(2,[])]);case 3:return new h(0,[new Bs(3,[])]);default:return new h(1,["Invalid environment"])}}const al=document.getElementById("workflows-app"),wv=al.getAttribute("data-identity-url"),Bn=al.getAttribute("data-backend-url"),yv=_(["workflows","app"]),_v=_(["workflows","embed","v1.0","app"]),vv="apollo-workflows-app";class Ln extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Embedded","Standalone","Unknown"]}}function ll(){return at("Workflows.UI.Config.AppMode",[],Ln,()=>[[],[],[]])}class I0 extends R{constructor(t){super(),this.AppMode=t}}function bv(){return ne("Workflows.UI.Config.WorkflowActivationContext",[],I0,()=>[["AppMode",ll()]])}class A0 extends R{constructor(t,n){super(),this.Commands=t,this.AppMode=n}}function Cv(){return ne("Workflows.UI.Config.ProcessInstanceCommandDto",[],A0,()=>[["Commands",sn(nv())],["AppMode",ll()]])}class E0 extends R{constructor(t,n){super(),this.Events=t,this.AppMode=n}}function Sv(){return ne("Workflows.UI.Config.WorkflowAnalyticsEventDto",[],E0,()=>[["Events",sn(hv())],["AppMode",ll()]])}function ul(e){switch(e.tag){case 1:return Rs(yv);default:return Rs(_v)}}function kv(e){return`${window.location.protocol}//${window.location.host}${ul(e)}`}gv(We.create(Bn).host);class Dt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class T0 extends N{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Nt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class gi extends R{constructor(t,n,r,i,s,o,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=s,this.overridenResponseType=o,this.timeout=a,this.content=l}}class kr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class P0 extends R{constructor(t,n,r,i,s,o){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=s,this.content=o}}class O0{constructor(t,n){this.k=t,this.v=n}}function Ls(e,t){return new O0(e,t)}function ze(e){return e.k}function it(e){return e.v}class Ie extends O0{constructor(t,n,r,i,s){super(t,n),this.left=r,this.right=i,this.h=s|0}}function Vs(e,t,n,r,i){return new Ie(e,t,n,r,i)}function He(e){return e.left}function Ge(e){return e.right}function Vn(e){return e.h}function Y3(){}function M0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=I(r);if(i instanceof Ie){const s=i;e=M0(n+1,He(s)),t=Ge(s);continue e}else return n+1|0}else return n|0}}function xv(e){return M0(0,e)}function Ct(e,t,n,r){let i,s,o;const a=e;if(a!=null){const c=I(a);o=c instanceof Ie?(i=c,Vn(i)):1}else o=0;let l;const u=r;if(u!=null){const c=I(u);l=c instanceof Ie?(s=c,Vn(s)):1}else l=0;const f=(o<l?l:o)|0;return f===0?Ls(t,n):Vs(t,n,e,r,f+1)}function D0(e,t,n,r){let i,s,o,a,l,u,f,c,p;const m=e;if(m!=null){const w=I(m);p=w instanceof Ie?(i=w,Vn(i)):1}else p=0;let $;const g=r;if(g!=null){const w=I(g);$=w instanceof Ie?(s=w,Vn(s)):1}else $=0;if($>p+2){const w=I(r);if(w instanceof Ie){const b=w;if(o=He(b),(o!=null?(a=I(o),a instanceof Ie?(l=a,Vn(l)):1):0)>p+1){const y=I(He(b));if(y instanceof Ie){const x=y;return Ct(Ct(e,t,n,He(x)),ze(x),it(x),Ct(Ge(x),ze(b),it(b),Ge(b)))}else throw new Error("internal error: Map.rebalance")}else return Ct(Ct(e,t,n,He(b)),ze(b),it(b),Ge(b))}else throw new Error("internal error: Map.rebalance")}else if(p>$+2){const w=I(e);if(w instanceof Ie){const b=w;if(u=Ge(b),(u!=null?(f=I(u),f instanceof Ie?(c=f,Vn(c)):1):0)>$+1){const y=I(Ge(b));if(y instanceof Ie){const x=y;return Ct(Ct(He(b),ze(b),it(b),He(x)),ze(x),it(x),Ct(Ge(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ct(He(b),ze(b),it(b),Ct(Ge(b),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ct(e,t,n,r)}function xr(e,t,n,r){if(r!=null){const i=I(r),s=e.Compare(t,ze(i))|0;if(i instanceof Ie){const o=i;return s<0?D0(xr(e,t,n,He(o)),ze(o),it(o),Ge(o)):s===0?Vs(t,n,He(o),Ge(o),Vn(o)):D0(He(o),ze(o),it(o),xr(e,t,n,Ge(o)))}else return s<0?Vs(t,n,void 0,r,2):s===0?Ls(t,n):Vs(t,n,r,void 0,2)}else return Ls(t,n)}function N0(e,t,n){e:for(;;){const r=e,i=t,s=n;if(s!=null){const o=I(s),a=r.Compare(i,ze(o))|0;if(a===0)return ke(it(o));if(o instanceof Ie){const l=o;e=r,t=i,n=a<0?He(l):Ge(l);continue e}else return}else return}}function Iv(e,t,n){const r=N0(e,t,n);if(r==null)throw new Error;return I(r)}function Av(e,t,n){e:for(;;){const r=e,i=t,s=n;if(s!=null){const o=I(s),a=r.Compare(i,ze(o))|0;if(o instanceof Ie){const l=o;if(a<0){e=r,t=i,n=He(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ge(l);continue e}}else return a===0}else return!1}}function R0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=I(r);if(i instanceof Ie){const s=i;R0(n,He(s)),n(ze(s),it(s)),e=n,t=Ge(s);continue e}else n(ze(i),it(i))}break}}function Ev(e,t){R0(e,t)}function Tv(e,t,n){let r=n;Ev((i,s)=>{pt(t,r,[i,s]),r=r+1|0},e)}function Pv(e,t){return At((n,r)=>xr(e,r[0],r[1],n),void 0,t)}function Ov(e,t,n){e:for(;;){const r=e,i=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const o=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=xr(r,o[0],o[1],i),n=s;continue e}else return i}}function Mv(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=ee(r,t);n=xr(e,i[0],i[1],n)}return n}function B0(e,t){if(ht(t))return Mv(e,t);if(t instanceof Fe)return Pv(e,t);{const n=de(t);try{return Ov(e,void 0,n)}finally{oe(n)}}}class Dv extends R{constructor(t,n){super(),this.stack=t,this.started=n}}function L0(e){e:for(;;){const t=e;if(O(t))return le();{const n=P(t),r=k(t);if(r!=null){const i=I(r);if(i instanceof Ie){const s=i;e=ye([He(s),Ls(ze(s),it(s)),Ge(s)],n);continue e}else return t}else{e=n;continue e}}}}function V0(e){return new Dv(L0(T(e)),!1)}function Nv(){throw new Error("enumeration not started")}function Rv(){throw new Error("enumeration already finished")}function F0(e){if(e.started){const t=e.stack;if(O(t))return Rv();if(k(t)!=null){const n=I(k(t));if(n instanceof Ie)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ze(n),it(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Nv()}function Bv(e){if(e.started){const t=e.stack;if(O(t))return!1;if(k(t)!=null){if(I(k(t))instanceof Ie)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=L0(P(t)),!O(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function W0(e){let t=V0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return F0(t)},"System.Collections.IEnumerator.get_Current"(){return F0(t)},"System.Collections.IEnumerator.MoveNext"(){return Bv(t)},"System.Collections.IEnumerator.Reset"(){t=V0(e)},Dispose(){}}}class Fs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Wv(this)|0}Equals(t){const n=this;if(t instanceof Fs){const r=t,i=de(n);try{const s=de(r);try{const o=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return M(l[0],u[0])&&M(l[1],u[1])?o():!1}else return!0;else return!1};return o()}finally{oe(s)}}finally{oe(i)}}else return!1}toString(){return"map ["+ge("; ",Ce(n=>cc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return W0(this.tree)}[Symbol.iterator](){return Lr(de(this))}"System.Collections.IEnumerable.GetEnumerator"(){return W0(this.tree)}CompareTo(t){const n=this;if(t instanceof Fs)return Xp((i,s)=>{const o=n.comparer.Compare(i[0],s[0])|0;return(o!==0?o:ot(i[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return U0(n,t[0])&&M(j0(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Tv(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return cl(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return cl(this)|0}get size(){return cl(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ce(n=>[n[0],n[1]],this)}get(t){return j0(this,t)}has(t){return U0(this,t)}keys(){return Ce(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ce(n=>n[1],this)}forEach(t,n){const r=this;Sn(i=>{t(i[1],i[0],r)},r)}}function Ws(e,t){return new Fs(e,t)}function Lv(e){return Ws(e,void 0)}function Vv(e,t,n){return Ws(e.comparer,xr(e.comparer,t,n,e.tree))}function j0(e,t){return Iv(e.comparer,t,e.tree)}function cl(e){return xv(e.tree)}function U0(e,t){return Av(e.comparer,t,e.tree)}function Fv(e,t){return N0(e.comparer,t,e.tree)}function Wv(e){const t=(i,s)=>(i<<1)+s+631;let n=0;const r=de(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ft(i[0]))|0,n=t(n,Ft(i[1]))|0}}finally{oe(r)}return n|0}function z0(e,t,n){return Vv(n,e,t)}function H0(e,t){return Fv(t,e)}function jv(e,t){return Ws(t,B0(t,e))}function Uv(e,t){return Ws(t,B0(t,e))}function fl(e){return Lv(e)}function js(e){return new T0("Content-Type",e)}function zv(e){return new T0("Authorization",e)}const Fn=new gi("",new Dt(0,[]),le(),!1,void 0,void 0,void 0,new Nt(0,[]));new P0(0,"","","",fl({Compare:Bi}),new kr(0,[""]));function G0(e,t){return fc(t)?new Array(0):Qi(t,[e],void 0,0)}function Hv(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 Yt(e){return new gi(e,Fn.method,Fn.headers,Fn.withCredentials,Fn.overridenMimeType,Fn.overridenResponseType,Fn.timeout,Fn.content)}function Jt(e,t){return new gi(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function wi(e,t){return new gi(t.url,t.method,$t(t.headers,T(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zt(e,t){return new gi(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function yi(e){return Nf(t=>{const n=new XMLHttpRequest;n.open(Hv(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 kr(0,[n.responseText]):m==="text"?new kr(0,[n.responseText]):m==="arraybuffer"?new kr(2,[n.response]):m==="blob"?new kr(1,[n.response]):new kr(3,[n.response])),$=Uv(bp(g=>{const w=_(G0(":",g));if(!O(w))return[k(w).toLocaleLowerCase(),ge(":",P(w)).trim()]},G0(`\r
775
+ */var br=v_;function b_(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var C_=typeof Object.is=="function"?Object.is:b_,S_=br.useState,k_=br.useEffect,x_=br.useLayoutEffect,I_=br.useDebugValue;function A_(e,t){var n=t(),r=S_({inst:{value:n,getSnapshot:t}}),i=r[0].inst,s=r[1];return x_(function(){i.value=n,i.getSnapshot=t,Qa(i)&&s({inst:i})},[e,n,t]),k_(function(){return Qa(i)&&s({inst:i}),e(function(){Qa(i)&&s({inst:i})})},[e]),I_(n),n}function Qa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!C_(e,n)}catch{return!0}}function E_(e,t){return t()}var T_=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?E_:A_;m0.useSyncExternalStore=br.useSyncExternalStore!==void 0?br.useSyncExternalStore:T_,h0.exports=m0;var P_=h0.exports;class O_{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),s=[];this.finalDispatch=void 0;let o;const a=g_(i)(this.arg);let l=a[0],u=a[1];o=[[l,f=>{const c=this.finalDispatch;c==null?s.push(f):c(f)},!1,s],u],this.state=o[0],this.cmd=o[1],this.subscribe=f=>{let c=!1;const p=vo(this.state[0]);return d0(this.arg,c0((m,$)=>{const g=this.state;this.finalDispatch=$,this.state=[m,g[1],!0,s],m!==g[0]&&f()},w_((m,$)=>{const g=this.cmd;return this.cmd=H(),[this.state[0],g]},(m,$,g)=>m($)(this.state[0]),So(m=>m),So(m=>m),Q(m=>m),m=>[$=>m[0]($)?!0:p&&c,$=>{const g=$;vo(g)?oe(g):m[1]($)}],i))),()=>{c=!0}}}}function p0(e,t,n){return new O_(e,t,n)}function M_(e){return e.state}function D_(e){return e.subscribe}function N_(e,t,n){return M(e.arg,t)?!M(e.dependencies,n):!0}function el(e,t,n){const r=Yn(()=>p0(e,t,n)),i=r[0];N_(i,t,n)&&r[1](p0(e,t,n));const s=P_.useSyncExternalStore(D_(i),()=>M_(i)),o=s[2],a=s[3],l=s[1];return yn(()=>{if(o&&a.length>0){let u=de(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{oe(u)}vm(a)}},[o,a]),[s[0],l]}let tl=class extends R{constructor(t,n){super(),this.Email=t,this.Phone=n}};function R_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.SupportDto",[],tl,()=>[["Email",J(z)],["Phone",J(z)]])}function B_(e){return new tl(Ee(d$,e.Email),Ee(h$,e.Phone))}let nl=class extends R{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}};function Dn(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteBrandingDto",[],nl,()=>[["CompanyName",J(z)],["Logo",J(z)],["Support",J(R_())]])}function L_(e){return new nl(Ee(ni,e.CompanyName),Ee(p$,e.Logo),Ee(B_,e.Support))}class $0 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function Nn(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.InviteJourneyTypeDto",[],$0,()=>[[["Item",hi()]],[["Item",hi()]],[["Item",hi()]],[["Item",hi()]],[["Item",hi()]]])}let g0=class extends R{constructor(t){super(),this.Category=t}};function hi(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.JourneyTypeDetailsDto",[],g0,()=>[["Category",J(z)]])}class w0 extends R{constructor(t){super(),this.MagicCode=t}}function V_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeRequestDto",[],w0,()=>[["MagicCode",z]])}class F_ extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PassThrough","MagicCodeExpired","MagicCodeNotRecognised","InviteExpired","WorkflowCompleted","WorkflowAbandoned","ProfileStateInvalidForWorkflowCompletion","InviteNotFound"]}}function W_(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeOutcomeDto",[],F_,()=>[[["Item",Je(["AuthCode",z],["Branding",J(Dn())],["FirstName",z],["IsInitialMagicLinkUsed",lt],["JourneyType",Nn()],["ProcessConfigId",z])]],[["Item",Je(["Branding",J(Dn())],["FirstName",z],["IsInitialMagicLinkUsed",lt],["JourneyType",Nn()],["OneTimeCodeOptionAvailable",lt],["ProcessConfigId",z])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[["Item",Je(["Branding",J(Dn())],["JourneyType",Nn()])]],[]])}function j_(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 U_(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}}function z_(e){switch(e.tag){case 1:return e.fields[0].ProcessConfigId;case 2:return;case 3:return;case 4:return;case 5:return;case 6:return;case 7:return;default:return e.fields[0].ProcessConfigId}}class H_ extends R{constructor(t,n){super(),this.CssOverrides=t,this.Outcome=n}}function G_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateMagicCodeResponseDto",[],H_,()=>[["CssOverrides",sn(z)],["Outcome",W_()]])}class y0 extends R{constructor(t,n){super(),this.MagicCode=t,this.IsChange=n}}function q_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeRequestDto",[],y0,()=>[["MagicCode",z],["IsChange",lt]])}class Y_ extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["MagicCodeIssued","MagicCodeNotRecognised","MagicCodeIssuingThrottled","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function J_(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeOutcomeDto",[],Y_,()=>[[["Item",Je(["MaskedEmail",z])]],[],[["Item",Je(["MaskedEmail",z])]],[],[],[],[],[]])}class Z_ extends R{constructor(t){super(),this.Outcome=t}}function X_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ReissueMagicCodeResponseDto",[],Z_,()=>[["Outcome",J_()]])}class _0 extends R{constructor(t,n){super(),this.MagicCode=t,this.IsResend=n}}function K_(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeRequestDto",[],_0,()=>[["MagicCode",z],["IsResend",lt]])}class Q_ extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeIssued","OneTimeCodeOptionNotAvailable","OneTimeCodeLocked","OneTimeCodeIssuingThrottled","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function e2(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeOutcomeDto",[],Q_,()=>[[["Item",Je(["MaskedPhone",z])]],[],[],[["Item",Je(["MaskedPhone",z])]],[],[],[],[],[],[]])}class t2 extends R{constructor(t){super(),this.Outcome=t}}function n2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.IssueOneTimeCodeResponseDto",[],t2,()=>[["Outcome",e2()]])}class v0 extends R{constructor(t){super(),this.OneTimeCode=t|0}}function r2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeRequestDto",[],v0,()=>[["OneTimeCode",Hi]])}class i2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeMatched","OneTimeCodeFailed","OneTimeCodeExpired","OneTimeCodeNotCurrentlyIssued","OneTimeCodeAlreadyUsed","OneTimeCodeLocked","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function s2(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeOutcomeDto",[],i2,()=>[[["Item",Je(["AuthCode",z])]],[["Item",Je(["RemainingAttempts",Hi])]],[],[],[],[],[],[],[],[],[]])}class o2 extends R{constructor(t){super(),this.Outcome=t}}function a2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ValidateOneTimeCodeResponseDto",[],o2,()=>[["Outcome",s2()]])}class b0 extends R{constructor(t,n){super(),this.MagicCode=t,this.IsPassThrough=n}}function l2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressRequestDto",[],b0,()=>[["MagicCode",z],["IsPassThrough",lt]])}class u2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Progressed","MagicCodeNotRecognised","InviteExpired","ProfileStateInvalidForWorkflowCompletion","InviteNotFound","WorkflowCompleted","WorkflowAbandoned"]}}function c2(){return at("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressOutcomeDto",[],u2,()=>[[],[],[],[],[],[],[]])}class f2 extends R{constructor(t){super(),this.Outcome=t}}function d2(){return ne("Workflows.Business.Aggregates.WorkflowInvite.ApiDto.ProgressResponseDto",[],f2,()=>[["Outcome",c2()]])}let Cr=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved"]}};class _e extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Started","Finished"]}}class h2 extends R{constructor(t,n){super(),this.InviteToken=t,this.MagicCode=n}}function m2(e){const t=Qi(e,["."],void 0,0);if(!No((n,r)=>n===r,t)&&t.length===2){const n=ee(1,t);return new h(0,[new h2(ee(0,t),n)])}else return new h(1,["Invalid link"])}class re extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["OneTimeCodeLocked","NoAccess","UnrecognisedLink","WorkflowAbandoned","InviteExpired","SomethingWentWrong"]}}let G=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Welcome","CheckYourInbox","CodeEntry","AccessLinkExpired","WorkflowCompleted","Error"]}};class rl extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CheckYourInbox","CodeEntry","Onboarding"]}}let il=class extends R{constructor(t,n,r,i,s){super(),this.CssOverrides=t,this.Page=n,this.Branding=r,this.ProcessConfigId=i,this.JourneyType=s}},U=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NavigatePage","ValidateMagicLink","ReissueMagicLink","IssueOneTimeCode","ValidateOneTimeCode","ProgressFromWelcome","NavigateToAuthCodeExchange"]}};function p2(e,t,n){e:for(;;){const r=e,i=t,s=n;if(O(s)){const o=r;return o.tag===1?new h(1,[o.fields[0]]):new h(0,[sr(o.fields[0])])}else{let o;const a=i(k(s));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,[Ze(a.fields[0],l.fields[0])])}if(o.tag===1)return o;e=o,t=i,n=P(s);continue e}}}function $2(e,t){return p2(new h(0,[le()]),e,t)}function Sr(e){return $2(t=>t,e)}class g2 extends R{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function w2(){return ne("Workflows.Business.Aggregates.CommonDto.InviteBrandingDto",[],g2,()=>[["CompanyName",J(z)],["Logo",J(z)],["Support",J(_2())]])}class y2 extends R{constructor(t,n){super(),this.Email=t,this.Phone=n}}function _2(){return ne("Workflows.Business.Aggregates.CommonDto.SupportDto",[],y2,()=>[["Email",J(z)],["Phone",J(z)]])}function v2(e){let t;const n=e.Email;if(n!=null){const r=Uc(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 i=e.Phone;if(i!=null){const s=zc(i);r=s.tag===1?new h(1,[s.fields[0]]):new h(0,[s.fields[0]])}else r=new h(0,[void 0]);return r.tag===1?new h(1,[r.fields[0]]):new h(0,[new jc(t.fields[0],r.fields[0])])}}function b2(e){let t;const n=e.Logo;if(n!=null){const r=Gc(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 i=e.CompanyName;if(i!=null){const s=Hc(i);r=s.tag===1?new h(1,[s.fields[0]]):new h(0,[s.fields[0]])}else r=new h(0,[void 0]);if(r.tag===1)return new h(1,[r.fields[0]]);{let s;const o=e.Support;if(o!=null){const a=v2(o);s=a.tag===1?new h(1,[a.fields[0]]):new h(0,[a.fields[0]])}else s=new h(0,[void 0]);return s.tag===1?new h(1,[s.fields[0]]):new h(0,[new Wc(r.fields[0],t.fields[0],s.fields[0])])}}}class C2 extends R{constructor(t,n,r,i){super(),this.Code=t,this.DateIssued=n,this.NumberOfAttempts=r|0,this.DateOfLastAttempt=i}}function S2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.SecondFactorDto",[],C2,()=>[["Code",z],["DateIssued",Wt("System.DateTime")],["NumberOfAttempts",Hi],["DateOfLastAttempt",J(Wt("System.DateTime"))]])}function k2(e){return new w$(g$(e.Code),e.DateIssued,e.NumberOfAttempts,e.DateOfLastAttempt)}class x2 extends R{constructor(t,n,r,i){super(),this.Code=t,this.DateIssued=n,this.SecondFactor=r,this.Branding=i}}function I2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Invite.Dto.InviteDto",[],x2,()=>[["Code",z],["DateIssued",Wt("System.DateTime")],["SecondFactor",J(S2())],["Branding",J(w2())]])}function A2(e){const t=Fc(e.Code);if(t.tag===1)return new h(1,[t.fields[0]]);{let n;const r=e.SecondFactor;n=r==null?void 0:k2(r);let i;const s=e.Branding;if(s!=null){const o=b2(s);i=o.tag===1?new h(1,[o.fields[0]]):new h(0,[o.fields[0]])}else i=new h(0,[void 0]);return i.tag===1?new h(1,[i.fields[0]]):new h(0,[new y$(t.fields[0],e.DateIssued,n,i.fields[0])])}}class E2 extends R{constructor(t,n,r){super(),this.Id=t,this.DisplayName=n,this.ComponentTagName=r}}function T2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessStepConfigDto",[],E2,()=>[["Id",z],["DisplayName",z],["ComponentTagName",z]])}function P2(e){return new h(0,[new Tt(Yc(e.Id),e.DisplayName,e.ComponentTagName)])}function O2(e){return Sr(Xe(P2,e))}class M2 extends R{constructor(t,n){super(),this.ActivatedDates=t,this.CompletedSteps=n}}function D2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ActiveProcessInstanceDto",[],M2,()=>[["ActivatedDates",sn(Wt("System.DateTime"))],["CompletedSteps",sn(Dm(z,Wt("System.DateTime")))]])}function N2(e){const t=Sr(Xe(n=>new h(0,[[Yc(n[0]),n[1]]]),e.CompletedSteps));return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new ff(e.ActivatedDates,t.fields[0])])}class R2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Inactive","Active","Complete","Abandoned"]}}function B2(){return at("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceStatusDto",[],R2,()=>[[],[["Item",D2()]],[["Item",Wt("System.DateTime")]],[["Item",Wt("System.DateTime")]]])}function L2(e){switch(e.tag){case 1:{const t=N2(e.fields[0]);return t.tag===1?new h(1,[t.fields[0]]):new h(0,[new ri(1,[t.fields[0]])])}case 2:return new h(0,[new ri(2,[e.fields[0]])]);case 3:return new h(0,[new ri(3,[e.fields[0]])]);default:return new h(0,[new ri(0,[])])}}class V2 extends R{constructor(t,n,r){super(),this.Id=t,this.Name=n,this.Steps=r}}function F2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessConfigDto",[],V2,()=>[["Id",Wt("System.Guid")],["Name",z],["Steps",sn(T2())]])}function W2(e){const t=O2(e.Steps);if(t.tag===1)return new h(1,[t.fields[0]]);{const n=B$(e.Id);return n.tag===1?new h(1,[n.fields[0]]):new h(0,[new Me(n.fields[0],e.Name,t.fields[0])])}}class j2 extends R{constructor(t,n){super(),this.Name=t,this.Value=n}}function U2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.TagDto",[],j2,()=>[["Name",z],["Value",z]])}function z2(e){return M$(e.Name,e.Value)}class H2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WhenEnabled","Always"]}}function G2(){return at("Workflows.Business.Aggregates.ProcessInstanceList.Dto.BenefitsOnboardingShowOptionsDto",[],H2,()=>[[],[]])}class q2 extends R{constructor(t){super(),this.BenefitsOnboarding=t}}function Y2(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.StepsConfigurationDto",[],q2,()=>[["BenefitsOnboarding",J(Je(["Show",G2()]))]])}function J2(e){let t,n;return new N$((t=e.BenefitsOnboarding,t==null?void 0:(n=t,{Show:n.Show.tag===1?new mf(1,[]):new mf(0,[])})))}class Z2 extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","InfoRequest","AppInvite","BenefitsExisting","BenefitsOnboarding"]}}function X2(){return at("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDto",[],Z2,()=>[[["Item",mi()]],[["Item",mi()]],[["Item",mi()]],[["Item",mi()]],[["Item",mi()]]])}class K2 extends R{constructor(t){super(),this.Category=t}}function mi(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.JourneyTypeDetailsDto",[],K2,()=>[["Category",J(z)]])}function pi(e){return new hf(e.Category)}function Q2(e){if(e==null)return new fr(0,[new hf(void 0)]);switch(e.tag){case 1:{const t=e.fields[0];return new fr(1,[pi(t)])}case 2:{const t=e.fields[0];return new fr(2,[pi(t)])}case 3:{const t=e.fields[0];return new fr(3,[pi(t)])}case 4:{const t=e.fields[0];return new fr(4,[pi(t)])}default:{const t=e.fields[0];return new fr(0,[pi(t)])}}}class ev extends R{constructor(t,n,r,i,s,o,a,l,u,f,c){super(),this.Id=t|0,this.DateCreated=n,this.Configuration=r,this.Status=i,this.Invite=s,this.Tags=o,this.Creator=a,this.StepsConfiguration=l,this.JourneyType=u,this.IsBenefitsStepEnabled=f,this.PaySetupComplete=c}}function C0(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.Dto.ProcessInstanceDto",[],ev,()=>[["Id",Hi],["DateCreated",Wt("System.DateTime")],["Configuration",F2()],["Status",B2()],["Invite",J(I2())],["Tags",J(sn(U2()))],["Creator",J(z)],["StepsConfiguration",J(Y2())],["JourneyType",J(X2())],["IsBenefitsStepEnabled",J(lt)],["PaySetupComplete",J(lt)]])}function S0(e){let t,n;const r=W2(e.Configuration);if(r.tag===1)return new h(1,[r.fields[0]]);{const i=r.fields[0],s=L2(e.Status);if(s.tag===1)return new h(1,[s.fields[0]]);{const o=s.fields[0];let a;if(o.tag===1){const l=o.fields[0],u=Sr(Xe(f=>{const c=[f[0],f[1]],p=c[0];return yc(m=>M(m.Id,p),i.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 ri(1,[new ff(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=A2(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=Sr(Xe(z2,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 D$(df(e.Id),i,e.DateCreated,a.fields[0],l.fields[0],f.fields[0],(t=e.Creator,t==null?void 0:Lc(t)),(n=e.StepsConfiguration,n==null?void 0:J2(n)),Q2(e.JourneyType),e.IsBenefitsStepEnabled,e.PaySetupComplete)])}}}}}class $i extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}class tv extends R{constructor(t,n,r,i){super(),this.CssOverrides=t,this.ProcessInstance=n,this.IsBenefitsEnabled=r,this.Branding=i}}class Rn extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["CompleteStep","CompleteStepV2","Complete","ViewPaySetupPage","CompletePaySetup","ResumePaySetup"]}}function nv(){return at("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.ProcessInstanceCommandTypeDto",[],Rn,()=>[[["Item",z]],[["Item",z]],[],[["Item",lt]],[["Item",lt]],[["Item",lt]]])}function rv(e){switch(e.tag){case 1:return new Rn(1,[cs(e.fields[0])]);case 2:return new Rn(2,[]);case 3:return new Rn(3,[e.fields[0]]);case 4:return new Rn(4,[e.fields[0]]);case 5:return new Rn(5,[e.fields[0]]);default:return new Rn(0,[cs(e.fields[0])])}}const iv=S0;class sv extends R{constructor(t,n,r,i){super(),this.CssOverrides=t,this.ProcessInstanceDto=n,this.IsBenefitsEnabled=r,this.Branding=i}}function ov(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.ProcessInstanceContextDto",[],sv,()=>[["CssOverrides",sn(z)],["ProcessInstanceDto",C0()],["IsBenefitsEnabled",lt],["Branding",J(lv())]])}class av extends R{constructor(t,n,r){super(),this.CompanyName=t,this.Logo=n,this.Support=r}}function lv(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Branding",[],av,()=>[["CompanyName",J(z)],["Logo",J(z)],["Support",J(cv())]])}class uv extends R{constructor(t,n){super(),this.Email=t,this.Phone=n}}function cv(){return ne("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Read.Support",[],uv,()=>[["Email",J(z)],["Phone",J(z)]])}function fv(e){let t,n,r,i,s,o,a,l,u,f,c,p,m,$,g,w,b,y;return new Wc((t=(n=(r=e.CompanyName,r==null?void 0:Hc(r)),n!=null?(i=n,i.tag===1?new h(1,[i.fields[0]]):new h(0,[i.fields[0]])):new h(0,[void 0])),t.tag===1?void 0:t.fields[0]),(s=(o=(a=e.Logo,a==null?void 0:Gc(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])),s.tag===1?void 0:s.fields[0]),(u=e.Support,u==null?void 0:(f=u,new jc((c=(p=(m=f.Email,m==null?void 0:Uc(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=(b=f.Phone,b==null?void 0:zc(b)),w!=null?(y=w,y.tag===1?new h(1,[y.fields[0]]):new h(0,[y.fields[0]])):new h(0,[void 0])),g.tag===1?void 0:g.fields[0])))))}function dv(e){let t,n;return new tv(e.CssOverrides,(t=S0(e.ProcessInstanceDto),t.tag===1?(()=>{throw new Error(t.fields[0])})():t.fields[0]),e.IsBenefitsEnabled,(n=e.Branding,n==null?void 0:fv(n)))}class Ns extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WorkflowInstanceStepActivated","BenefitsStepActivated","BenefitsStepCompleted"]}}function hv(){return at("Workflows.Business.Aggregates.ProcessInstanceList.ApiDto.Backend.Write.WorkflowAnalyticsEventTypeDto",[],Ns,()=>[[["Item",z]],[],[]])}function sl(e,t){if(t.startsWith(e))return t}function k0(e,t){if(t.endsWith(e))return t}function mv(e){return t=>{let n,r;return n=sl("/",t),n!=null?(r=n,r):"/"+t}}function Rs(e,t){return mv()(ge("/",Xe(n=>n.indexOf("?")>=0||n.startsWith("#")||n.startsWith("/")?n:encodeURIComponent(n),e)))}function ol(e,t,n){t===1?history.pushState(void 0,"",Rs(e)):history.replaceState(void 0,"",Rs(e));const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)}function x0(e,t){return Ep(n=>{if(Hr(n))return le();{const r=mp(n,"#");if(r==="?")return le();if(sl("?",r)!=null)return T(r);{const i=r.split("?");if(!No((s,o)=>s===o,i)&&i.length===1){const s=ee(0,i);return T(decodeURIComponent(s))}else if(!No((s,o)=>s===o,i)&&i.length===2)if(ee(1,i)===""){const s=ee(0,i);return T(decodeURIComponent(s))}else{const s=ee(0,i),o=ee(1,i);return _([decodeURIComponent(s),"?"+o])}else return le()}}},_(Qi(sl("#",e)!=null?pp(e,1,e.length-1):t===1&&(k0("#",e)!=null||k0("#/",e)!=null)?"":e,["/"],void 0,0)))}function pv(e,t,n){return t(x0(e===2?window.location.pathname+window.location.search:window.location.hash,e))}const $v=N1(e=>{const t=R1(r=>{const i=be(e.onUrlChanged,s=>{});pv(be(e.hashMode,1),i)});M1(()=>(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),ss(()=>{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)}))),ur(()=>{const r=document.createEvent("CustomEvent");r.initEvent("CUSTOM_NAVIGATION_EVENT",!0,!0),window.dispatchEvent(r)});const n=e.application;return n??K()});function mn(e){try{const t=new URLSearchParams(e);return ce(A(()=>Ce(n=>[ee(0,n),ee(1,n)],t.entries())))}catch{return}}class Bs extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Autodev","Test","Prod","Sandbox"]}}function gv(e){const t=_(Qi(e,["."],void 0,0));let n;if(O(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 Bs(0,[])]);case 1:return new h(0,[new Bs(1,[])]);case 2:return new h(0,[new Bs(2,[])]);case 3:return new h(0,[new Bs(3,[])]);default:return new h(1,["Invalid environment"])}}const al=document.getElementById("workflows-app"),wv=al.getAttribute("data-identity-url"),Bn=al.getAttribute("data-backend-url"),yv=_(["workflows","app"]),_v=_(["workflows","embed","v1.0","app"]),vv="apollo-workflows-app";class Ln extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Embedded","Standalone","Unknown"]}}function ll(){return at("Workflows.UI.Config.AppMode",[],Ln,()=>[[],[],[]])}class I0 extends R{constructor(t){super(),this.AppMode=t}}function bv(){return ne("Workflows.UI.Config.WorkflowActivationContext",[],I0,()=>[["AppMode",ll()]])}class A0 extends R{constructor(t,n){super(),this.Commands=t,this.AppMode=n}}function Cv(){return ne("Workflows.UI.Config.ProcessInstanceCommandDto",[],A0,()=>[["Commands",sn(nv())],["AppMode",ll()]])}class E0 extends R{constructor(t,n){super(),this.Events=t,this.AppMode=n}}function Sv(){return ne("Workflows.UI.Config.WorkflowAnalyticsEventDto",[],E0,()=>[["Events",sn(hv())],["AppMode",ll()]])}function ul(e){switch(e.tag){case 1:return Rs(yv);default:return Rs(_v)}}function kv(e){return`${window.location.protocol}//${window.location.host}${ul(e)}`}gv(We.create(Bn).host);class Dt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class T0 extends N{constructor(t,n){super(),this.tag=0,this.fields=[t,n]}cases(){return["Header"]}}class Nt extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class gi extends R{constructor(t,n,r,i,s,o,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=s,this.overridenResponseType=o,this.timeout=a,this.content=l}}class kr extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class P0 extends R{constructor(t,n,r,i,s,o){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=s,this.content=o}}class O0{constructor(t,n){this.k=t,this.v=n}}function Ls(e,t){return new O0(e,t)}function ze(e){return e.k}function it(e){return e.v}class Ie extends O0{constructor(t,n,r,i,s){super(t,n),this.left=r,this.right=i,this.h=s|0}}function Vs(e,t,n,r,i){return new Ie(e,t,n,r,i)}function He(e){return e.left}function Ge(e){return e.right}function Vn(e){return e.h}function Y3(){}function M0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=I(r);if(i instanceof Ie){const s=i;e=M0(n+1,He(s)),t=Ge(s);continue e}else return n+1|0}else return n|0}}function xv(e){return M0(0,e)}function Ct(e,t,n,r){let i,s,o;const a=e;if(a!=null){const c=I(a);o=c instanceof Ie?(i=c,Vn(i)):1}else o=0;let l;const u=r;if(u!=null){const c=I(u);l=c instanceof Ie?(s=c,Vn(s)):1}else l=0;const f=(o<l?l:o)|0;return f===0?Ls(t,n):Vs(t,n,e,r,f+1)}function D0(e,t,n,r){let i,s,o,a,l,u,f,c,p;const m=e;if(m!=null){const w=I(m);p=w instanceof Ie?(i=w,Vn(i)):1}else p=0;let $;const g=r;if(g!=null){const w=I(g);$=w instanceof Ie?(s=w,Vn(s)):1}else $=0;if($>p+2){const w=I(r);if(w instanceof Ie){const b=w;if(o=He(b),(o!=null?(a=I(o),a instanceof Ie?(l=a,Vn(l)):1):0)>p+1){const y=I(He(b));if(y instanceof Ie){const x=y;return Ct(Ct(e,t,n,He(x)),ze(x),it(x),Ct(Ge(x),ze(b),it(b),Ge(b)))}else throw new Error("internal error: Map.rebalance")}else return Ct(Ct(e,t,n,He(b)),ze(b),it(b),Ge(b))}else throw new Error("internal error: Map.rebalance")}else if(p>$+2){const w=I(e);if(w instanceof Ie){const b=w;if(u=Ge(b),(u!=null?(f=I(u),f instanceof Ie?(c=f,Vn(c)):1):0)>$+1){const y=I(Ge(b));if(y instanceof Ie){const x=y;return Ct(Ct(He(b),ze(b),it(b),He(x)),ze(x),it(x),Ct(Ge(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ct(He(b),ze(b),it(b),Ct(Ge(b),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Ct(e,t,n,r)}function xr(e,t,n,r){if(r!=null){const i=I(r),s=e.Compare(t,ze(i))|0;if(i instanceof Ie){const o=i;return s<0?D0(xr(e,t,n,He(o)),ze(o),it(o),Ge(o)):s===0?Vs(t,n,He(o),Ge(o),Vn(o)):D0(He(o),ze(o),it(o),xr(e,t,n,Ge(o)))}else return s<0?Vs(t,n,void 0,r,2):s===0?Ls(t,n):Vs(t,n,r,void 0,2)}else return Ls(t,n)}function N0(e,t,n){e:for(;;){const r=e,i=t,s=n;if(s!=null){const o=I(s),a=r.Compare(i,ze(o))|0;if(a===0)return ke(it(o));if(o instanceof Ie){const l=o;e=r,t=i,n=a<0?He(l):Ge(l);continue e}else return}else return}}function Iv(e,t,n){const r=N0(e,t,n);if(r==null)throw new Error;return I(r)}function Av(e,t,n){e:for(;;){const r=e,i=t,s=n;if(s!=null){const o=I(s),a=r.Compare(i,ze(o))|0;if(o instanceof Ie){const l=o;if(a<0){e=r,t=i,n=He(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ge(l);continue e}}else return a===0}else return!1}}function R0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=I(r);if(i instanceof Ie){const s=i;R0(n,He(s)),n(ze(s),it(s)),e=n,t=Ge(s);continue e}else n(ze(i),it(i))}break}}function Ev(e,t){R0(e,t)}function Tv(e,t,n){let r=n;Ev((i,s)=>{pt(t,r,[i,s]),r=r+1|0},e)}function Pv(e,t){return At((n,r)=>xr(e,r[0],r[1],n),void 0,t)}function Ov(e,t,n){e:for(;;){const r=e,i=t,s=n;if(s["System.Collections.IEnumerator.MoveNext"]()){const o=s["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=xr(r,o[0],o[1],i),n=s;continue e}else return i}}function Mv(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=ee(r,t);n=xr(e,i[0],i[1],n)}return n}function B0(e,t){if(ht(t))return Mv(e,t);if(t instanceof Fe)return Pv(e,t);{const n=de(t);try{return Ov(e,void 0,n)}finally{oe(n)}}}class Dv extends R{constructor(t,n){super(),this.stack=t,this.started=n}}function L0(e){e:for(;;){const t=e;if(O(t))return le();{const n=P(t),r=k(t);if(r!=null){const i=I(r);if(i instanceof Ie){const s=i;e=ye([He(s),Ls(ze(s),it(s)),Ge(s)],n);continue e}else return t}else{e=n;continue e}}}}function V0(e){return new Dv(L0(T(e)),!1)}function Nv(){throw new Error("enumeration not started")}function Rv(){throw new Error("enumeration already finished")}function F0(e){if(e.started){const t=e.stack;if(O(t))return Rv();if(k(t)!=null){const n=I(k(t));if(n instanceof Ie)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ze(n),it(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Nv()}function Bv(e){if(e.started){const t=e.stack;if(O(t))return!1;if(k(t)!=null){if(I(k(t))instanceof Ie)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=L0(P(t)),!O(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!O(e.stack)}function W0(e){let t=V0(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return F0(t)},"System.Collections.IEnumerator.get_Current"(){return F0(t)},"System.Collections.IEnumerator.MoveNext"(){return Bv(t)},"System.Collections.IEnumerator.Reset"(){t=V0(e)},Dispose(){}}}class Fs{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Wv(this)|0}Equals(t){const n=this;if(t instanceof Fs){const r=t,i=de(n);try{const s=de(r);try{const o=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===s["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=s["System.Collections.Generic.IEnumerator`1.get_Current"]();return M(l[0],u[0])&&M(l[1],u[1])?o():!1}else return!0;else return!1};return o()}finally{oe(s)}}finally{oe(i)}}else return!1}toString(){return"map ["+ge("; ",Ce(n=>cc("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return W0(this.tree)}[Symbol.iterator](){return Lr(de(this))}"System.Collections.IEnumerable.GetEnumerator"(){return W0(this.tree)}CompareTo(t){const n=this;if(t instanceof Fs)return Xp((i,s)=>{const o=n.comparer.Compare(i[0],s[0])|0;return(o!==0?o:ot(i[1],s[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return U0(n,t[0])&&M(j0(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Tv(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return cl(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return cl(this)|0}get size(){return cl(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Ce(n=>[n[0],n[1]],this)}get(t){return j0(this,t)}has(t){return U0(this,t)}keys(){return Ce(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Ce(n=>n[1],this)}forEach(t,n){const r=this;Sn(i=>{t(i[1],i[0],r)},r)}}function Ws(e,t){return new Fs(e,t)}function Lv(e){return Ws(e,void 0)}function Vv(e,t,n){return Ws(e.comparer,xr(e.comparer,t,n,e.tree))}function j0(e,t){return Iv(e.comparer,t,e.tree)}function cl(e){return xv(e.tree)}function U0(e,t){return Av(e.comparer,t,e.tree)}function Fv(e,t){return N0(e.comparer,t,e.tree)}function Wv(e){const t=(i,s)=>(i<<1)+s+631;let n=0;const r=de(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Ft(i[0]))|0,n=t(n,Ft(i[1]))|0}}finally{oe(r)}return n|0}function z0(e,t,n){return Vv(n,e,t)}function H0(e,t){return Fv(t,e)}function jv(e,t){return Ws(t,B0(t,e))}function Uv(e,t){return Ws(t,B0(t,e))}function fl(e){return Lv(e)}function js(e){return new T0("Content-Type",e)}function zv(e){return new T0("Authorization",e)}const Fn=new gi("",new Dt(0,[]),le(),!1,void 0,void 0,void 0,new Nt(0,[]));new P0(0,"","","",fl({Compare:Bi}),new kr(0,[""]));function G0(e,t){return fc(t)?new Array(0):Qi(t,[e],void 0,0)}function Hv(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 Yt(e){return new gi(e,Fn.method,Fn.headers,Fn.withCredentials,Fn.overridenMimeType,Fn.overridenResponseType,Fn.timeout,Fn.content)}function Jt(e,t){return new gi(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function wi(e,t){return new gi(t.url,t.method,$t(t.headers,T(e)),t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zt(e,t){return new gi(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function yi(e){return Nf(t=>{const n=new XMLHttpRequest;n.open(Hv(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 kr(0,[n.responseText]):m==="text"?new kr(0,[n.responseText]):m==="arraybuffer"?new kr(2,[n.response]):m==="blob"?new kr(1,[n.response]):new kr(3,[n.response])),$=Uv(bp(g=>{const w=_(G0(":",g));if(!O(w))return[k(w).toLocaleLowerCase(),ge(":",P(w)).trim()]},G0(`\r
776
776
  `,n.getAllResponseHeaders())),{Compare:Bi}),new P0(f,l,c,n.responseURL,$,p)))};const r=de(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{oe(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const s=e.overridenResponseType;if(s!=null)switch(s.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const 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(ke(a.fields[0]));break}case 3:{n.send(ke(a.fields[0]));break}case 2:{n.send(ke(a.fields[0]));break}default:n.send()}})}function _i(e){return e<0?Math.ceil(e):Math.floor(e)}function q0(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return Gv(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function Gv(e){return Number(BigInt(e)/10000n)}function qv(e){return _i(e/864e5)}function Yv(e){return _i(e%864e5/36e5)}function Jv(e){return _i(e%36e5/6e4)}function Zv(e){return _i(e%6e4/1e3)}function Xv(e){return _i(e%1e3)}function Kv(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(qv(e)),i=Math.abs(Yv(e)),s=Math.abs(Jv(e)),o=Math.abs(Zv(e)),a=Math.abs(Xv(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:ae(i,2)}:${ae(s,2)}:${ae(o,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+ae(a,3):"."+dm(a,3,7)}`}function Qv(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 q0(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 i=0,s=0,o=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(o=+r[7]),r[8]!=null)switch(r[8].length){case 1:s=+r[8]*100;break;case 2:s=+r[8]*10;break;case 3:s=+r[8];break;case 4:s=+r[8]/10;break;case 5:s=+r[8]/100;break;case 6:s=+r[8]/1e3;break;case 7:s=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*q0(i,l,u,o,s)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function eb(e,t){try{return t.contents=Qv(e),!0}catch{return!1}}class L extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Ne extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Y0(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function J0(e,t){switch(e.tag){case 2:return lp(Y0(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Y0(t)}}function tb(e){return e}const Z0=K();function Us(e){return Array.from(e)}function nb(e){return Ji(e,"O")}function rb(e){return Kv(e)}function ib(){return K()}function sb(e){return Ji(e,"O")}function Xt(e,t){return JSON.stringify(t,void 0,ke(e))}function ob(e){return t=>Um(Ee(e,t),()=>Z0)}function X0(e,t,n,r){let i;const s=new Ye(K());let o;const a=pe(r);o=a===""?e:z0(a,s,e);let l;if(Hu(r)){const u=nr(f=>{const c=J0(t,Xn(f)),p=Kt(o,t,n,f[1]);return m=>$=>{const g=Vm(m,f);return(!n||n&&g!=null)&&($[c]=p(g)),$}},Wr(r));l=f=>Zr((c,p)=>p(f)(c),{},u)}else if(zu(r))l=u=>{const f=Lm(u,r),c=f[0],p=f[1],m=p.length|0;if(m===0)return Xn(c);{const $=m|0,g=Gu(c),w=es(new Array($+1),0,$+1,null);pt(w,0,Xn(c));for(let b=1;b<=$;b++){const y=Kt(o,t,n,ee(b-1,g)[1]);pt(w,b,y(ee(b-1,p)))}return w}};else throw new Error((i=pe(r),Ve(Le(`Cannot generate auto encoder for %s. Please pass an extra encoder.
777
777
 
778
778
  Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return s.contents=l,l}function Kt(e,t,n,r){const i=pe(r),s=H0(i,e);if(s==null)if(Lu(r)){const o=Kt(e,t,n,Fr(r));return a=>Us(Ce(o,a))}else if(Io(r))switch(pe(Wu(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=pe(r);return ac(Le(`Cannot generate auto encoder for %s.
@@ -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(Vu(r))if(Ao(r)){const f=nr(c=>St(e,t,!1,c),Uu(r));return c=>p=>Array.isArray(p)?wt(m=>jm(ir(m)),fh(0,f,c,p)):new h(1,[[c,new L(0,["an array",p])]])}else switch(pe(Fu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=St(e,t,!0,ee(0,Qe(r))),c=>p=>bb(Q(i),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=St(e,t,!1,ee(0,Qe(r))),c=>p=>lh(Q(s),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return o=St(e,t,!1,ee(0,Qe(r))),c=>p=>Cb(Q(o),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=St(e,t,!1,ee(0,Qe(r))),p=St(e,t,!1,ee(1,Qe(r)));let m;const $=_([g=>w=>Pb(Q(c),Q(p),g,w),(a=Ib(Q(c),Q(p)),g=>w=>lh(Q(a),g,w))]);return m=g=>w=>Sb($,g,w),g=>w=>xb(Ab,Q(m),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=St(e,t,!1,ee(0,Qe(r)));return p=>m=>{const $=uh(Q(c),p,m);return $.tag===0?new h(0,[Eb($.fields[0])]):new h(1,[$.fields[0]])}}default:return hh(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>$b(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>pb(f,c);case"System.String":return f=>c=>eh(f,c);case"System.Char":return f=>c=>hb(f,c);case"System.SByte":return th;case"System.Byte":return nh;case"System.Int16":return rh;case"System.UInt16":return ih;case"System.Int32":return sh;case"System.UInt32":return oh;case"System.Double":return f=>c=>gb(f,c);case"System.Single":return f=>c=>wb(f,c);case"System.DateTime":return f=>c=>yb(f,c);case"System.DateTimeOffset":return f=>c=>_b(f,c);case"System.TimeSpan":return f=>c=>vb(f,c);case"System.Guid":return f=>c=>mb(f,c);case"System.Object":return f=>c=>new h(0,[c]);default:return hh(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Ob(e){return fl({Compare:Bi})}function tn(e,t,n){const r=be(t,new Ne(0,[]));return St(Ob(),r,!1,e)}class Mb{constructor(t){this.magicLink=t,this.backendUrl=`${Bn}/workflows/public-backend/invites/${this.magicLink.InviteToken}`}}function Db(e){return new Mb(e)}function Nb(e){return E.Delay(()=>{let t,n;const r=bi(e,(t=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/magic-link/validate`)),Zt(new Nt(1,[(n=new w0(e.magicLink.MagicCode),Xt(0,Qt(V_(),new Ne(1,[]),void 0,void 0)(n)))]),t)));return E.Bind(r,i=>{const s=i;if(s.tag===1)return E.Return(new h(1,[s.fields[0]]));{let o;const a=s.fields[0];return o=a.statusCode===200?en(Q(tn(G_(),new Ne(1,[]))),a.responseText):new h(1,["Unexpected response from backend"]),E.Return(o)}})})}function Rb(e,t){return E.Delay(()=>{let n,r;const i=bi(e,(n=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/magic-link/reissue`)),Zt(new Nt(1,[(r=new y0(e.magicLink.MagicCode,t),Xt(0,Qt(q_(),new Ne(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(i,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(Q(tn(X_(),new Ne(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),E.Return(a)}})})}function Bb(e,t){return E.Delay(()=>{let n,r;const i=bi(e,(n=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/one-time-code/issue`)),Zt(new Nt(1,[(r=new _0(e.magicLink.MagicCode,t),Xt(0,Qt(K_(),new Ne(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(i,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(Q(tn(n2(),new Ne(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),E.Return(a)}})})}function Lb(e,t){return E.Delay(()=>{let n,r;const i=bi(e,(n=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/one-time-code/validate`)),Zt(new Nt(1,[(r=new v0(t),Xt(0,Qt(r2(),new Ne(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(i,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(Q(tn(a2(),new Ne(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),E.Return(a)}})})}function Vb(e,t){return E.Delay(()=>{let n,r;const i=bi(e,(n=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/progress`)),Zt(new Nt(1,[(r=new b0(e.magicLink.MagicCode,t),Xt(0,Qt(l2(),new Ne(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(i,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(Q(tn(d2(),new Ne(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),E.Return(a)}})})}function bi(e,t){return E.Delay(()=>{let n;const r=yi(t);return n=E.Bind(r,i=>E.Return(new h(0,[i]))),E.Bind(n,i=>{const s=i;if(s.tag===1)return E.Return(new h(1,[s.fields[0]]));{const o=s.fields[0];if(o.statusCode===429||o.statusCode>=500){let a;const l=$s(2e3);return a=E.Bind(l,u=>E.Return(new h(0,[u]))),E.Bind(a,u=>{const f=u;if(f.tag===1)return E.Return(new h(1,[f.fields[0]]));{const c=yi(t);return E.Bind(c,p=>E.Return(new h(0,[p])))}})}else return E.Return(new h(0,[o]))}})})}class Fb extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AuthCode"]}}function dl(e){return new Fb(e)}function Wb(e){return e.fields[0]}class mh extends R{constructor(t,n,r,i,s,o){super(),this.id_token=t,this.access_token=n,this.expires_in=r,this.refresh_token=i,this.scope=s,this.token_type=o}}function hl(){return ne("Workflows.UI.Auth.Types.Credentials",[],mh,()=>[["id_token",z],["access_token",z],["expires_in",Rm],["refresh_token",J(z)],["scope",z],["token_type",z]])}let Wn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SignIn","SignInWithCurrentAuth","NavigateToOnboarding"]}};function jb(){return[new il(le(),new G(0,[]),void 0,void 0,new $0(0,[new g0(void 0)])),T(e=>{e(new U(1,[new _e(0,[])]))})]}function Ub(e,t,n,r,i){let s,o,a,l,u,f,c;const p=Db(e);switch(r.tag){case 1:if(r.fields[0].tag===1){if(r.fields[0].fields[0].tag===1)return[i,T(m=>{m(new U(0,[new G(6,[new re(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 U(0,[new G(1,[g.FirstName,new rl(1,[])])]):new U(0,[new G(1,[g.FirstName,new rl(0,[])])]):w?new U(3,[!1,new _e(0,[])]):new U(0,[new G(4,[])]);break}case 4:{m=new U(0,[new G(5,[])]);break}case 2:case 7:{m=new U(0,[new G(6,[new re(2,[])])]);break}case 3:{m=new U(0,[new G(6,[new re(4,[])])]);break}case 5:{m=new U(0,[new G(6,[new re(3,[])])]);break}case 6:{m=new U(0,[new G(6,[new re(1,[])])]);break}default:{const g=$.fields[0];g.IsInitialMagicLinkUsed?(n(dl(g.AuthCode)),m=new U(0,[new G(1,[g.FirstName,new rl(2,[])])])):m=new U(6,[g.AuthCode])}}return[new il(r.fields[0].fields[0].fields[0].CssOverrides,i.Page,j_(r.fields[0].fields[0].fields[0].Outcome),z_(r.fields[0].fields[0].fields[0].Outcome),be(U_(r.fields[0].fields[0].fields[0].Outcome),i.JourneyType)),T(g=>{g(m)})]}}else return[i,bt(m=>{je(m)},()=>Nb(p),void 0,m=>new U(1,[new _e(1,[m])]),m=>new U(1,[new _e(1,[new h(1,[m.message])])]))];case 2:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[i,T(m=>{m(new U(0,[new G(6,[new re(5,[])])]))})]:[i,(s=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 re(2,[])]):o.tag===5?new G(6,[new re(2,[])]):o.tag===3?new G(6,[new re(4,[])]):o.tag===4?new G(6,[new re(1,[])]):o.tag===6?new G(5,[]):o.tag===7?new G(6,[new re(3,[])]):new G(2,[o.fields[0].MaskedEmail]))]),T(m=>{m(s)}))]:[i,bt(m=>{je(m)},m=>Rb(p,m),r.fields[0],m=>new U(2,[r.fields[0],new _e(1,[m])]),m=>new U(2,[r.fields[0],new _e(1,[new h(1,[m.message])])]))];case 3:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[i,T(m=>{m(new U(0,[new G(6,[new re(5,[])])]))})]:[i,(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 re(0,[])]):l.tag===3?r.fields[0]?i.Page:new G(3,[l.fields[0].MaskedPhone]):l.tag===4?new G(6,[new re(2,[])]):l.tag===7?new G(6,[new re(2,[])]):l.tag===5?new G(6,[new re(4,[])]):l.tag===6?new G(6,[new re(1,[])]):l.tag===8?new G(5,[]):l.tag===9?new G(6,[new re(3,[])]):r.fields[0]?i.Page:new G(3,[l.fields[0].MaskedPhone]))]),T(m=>{m(a)}))]:[i,bt(m=>{je(m)},m=>Bb(p,m),r.fields[0],m=>new U(3,[r.fields[0],new _e(1,[m])]),m=>new U(3,[r.fields[0],new _e(1,[new h(1,[m.message])])]))];case 4:return r.fields[2].tag===1?r.fields[2].fields[0].tag===1?[i,T(m=>{m(new U(0,[new G(6,[new re(5,[])])]))})]:[i,(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}),H()):T(m=>{m(new U(0,[new G(6,[new re(0,[])])]))}):u.tag===5?T(m=>{m(new U(0,[new G(6,[new re(0,[])])]))}):u.tag===2?(r.fields[1]({}),H()):u.tag===3?(r.fields[1]({}),H()):u.tag===4?(r.fields[1]({}),H()):u.tag===6?T(m=>{m(new U(0,[new G(6,[new re(4,[])])]))}):u.tag===7?T(m=>{m(new U(0,[new G(6,[new re(1,[])])]))}):u.tag===8?T(m=>{m(new U(0,[new G(6,[new re(2,[])])]))}):u.tag===9?T(m=>{m(new U(0,[new G(5,[])]))}):u.tag===10?T(m=>{m(new U(0,[new G(6,[new re(0,[])])]))}):T(m=>{m(new U(6,[u.fields[0].AuthCode]))}))]:[i,bt(m=>{je(m)},m=>Lb(p,m),r.fields[0],m=>new U(4,[r.fields[0],r.fields[1],new _e(1,[m])]),m=>new U(4,[r.fields[0],r.fields[1],new _e(1,[new h(1,[m.message])])]))];case 5:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[i,T(m=>{m(new U(0,[new G(6,[new re(5,[])])]))})]:[i,(f=(c=r.fields[1].fields[0].fields[0].Outcome,c.tag===1?new U(0,[new G(6,[new re(2,[])])]):c.tag===4?new U(0,[new G(6,[new re(2,[])])]):c.tag===2?new U(0,[new G(6,[new re(4,[])])]):c.tag===3?new U(0,[new G(6,[new re(1,[])])]):c.tag===5?new U(0,[new G(5,[])]):c.tag===6?new U(0,[new G(6,[new re(0,[])])]):r.fields[0].tag===1?new U(3,[!1,new _e(0,[])]):r.fields[0].tag===2?new U(6,[void 0]):new U(2,[!1,new _e(0,[])])),T(m=>{m(f)}))]:[i,bt(m=>{je(m)},m=>Vb(p,m),r.fields[0].tag===1?!1:r.fields[0].tag===2,m=>new U(5,[r.fields[0],new _e(1,[m])]),m=>new U(5,[r.fields[0],new _e(1,[new h(1,[m.message])])]))];case 6:return t(Ee(dl,r.fields[0])),[i,H()];default:return[new il(i.CssOverrides,r.fields[0],i.Branding,i.ProcessConfigId,i.JourneyType),H()]}}function zb(e,t,n,r,i){const s=os(!1),o=Ee(f=>d("span",{className:"font-semibold",children:`${f}`}),on(f=>f.CompanyName,t)),a=be(Ee(f=>f===ia(fs.Id),n),!1),l=r.tag===1?`Hi, ${e}`:r.tag===3?`Hi, ${e}`:r.tag===4?`Hi, ${e}`:r.tag===2?a?`Hi, ${e}`:`${e}, join your workplace benefits program`:`Welcome, ${e}`,u=ce(A(()=>{let f,c;return j((f=r,f.tag===1?v(Kr([])):f.tag===3?v(Kr([])):f.tag===4?v(Kr([])):f.tag===2?v(a?Kr([]):d("div",S(_([["className","sm:w-[700px]"],(c=[d("img",{src:"/workflows/app/app-invite/welcome.png"})],["children",C.Children.toArray(Array.from(c))])])))):v(Kr([]))),A(()=>j(v(un(l)),A(()=>{let p;return j(v(d("div",S(_([["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"],(p=ce(A(()=>{let m;return r.tag===1?j(v(be(o,d("span",{children:["Your employer"]}))),A(()=>j(v(d("span",{children:[" has requested additional information from you."]})),A(()=>v(d("p",{children:["Sign in to complete your information request."]})))))):r.tag===3?v(d("p",{children:["Sign in to set up your benefits."]})):r.tag===4?v(d("p",{children:["Sign in to set up your benefits."]})):r.tag===2?v(a?d("p",{children:["Sign in to set up your benefits."]}):(m="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:[m]}))):j(v(d("p",{children:["Congratulations on the new role!"]})),A(()=>{let $;return v(($=_([d("span",{children:["Sign in to complete your onboarding with "]}),be(o,d("span",{children:["your employer"]})),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from($))})))}))})),["children",C.Children.toArray(Array.from(p))])])))),A(()=>v(Go(void 0,()=>{s[1](!0),i()},s[0],[d("span",{children:[r.tag===1||r.tag===3||r.tag===4?"Sign in":r.tag===2?a?"Sign in":"Continue":"Sign in"]})]))))}))))}));return d(Se,{},...u)}function Hb(e,t){let n,r,i,s;const o=[d1([]),un("Check your inbox"),d("div",S(_([(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=[(i=_([d("span",{children:["We’ve sent a temporary access link to "]}),d("span",{className:"font-semibold",children:dc(e,"*","•")}),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from(i))})),d("p",{children:["Click the link to confirm your email address and sign in. The link is valid for 5 minutes."]})],["children",C.Children.toArray(Array.from(r))])]))),d("div",S(_([["className","text-sm text-gray-900 whitespace-pre-wrap mt-10 sm:mt-14 space-y-4 leading-5"],(s=ce(A(()=>j(v(d("p",{children:["Can’t see the email? Check your spam folder."]})),A(()=>{const a=t;return a==null?v(K()):v(Qr(a))})))),["children",C.Children.toArray(Array.from(s))])])))];return d(Se,{},...o)}let nn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ResendTimerTick","SignIn","IncorrectOneTimeCodeCallback","SetCodeInvalid","SetCodeInputValue","SetReissueLinkInProgress"]}},jn=class extends R{constructor(t,n,r,i,s,o){super(),this.AttemptsRemaining=t,this.CodeInvalid=n,this.CodeInputValue=r,this.ResendTimer=i,this.SignInInProgress=s,this.ReissueLinkInProgress=o}};function Gb(){return[new jn(void 0,!1,"",void 0,!1,!1),H()]}function qb(e,t,n){let r;switch(t.tag){case 1:{const i=Mo(ta,n.CodeInputValue);return i.length===6?(e([Ho(i,511,!1,32),t.fields[0]]),[new jn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,!0,n.ReissueLinkInProgress),H()]):[n,T(s=>{s(new nn(3,[!0]))})]}case 2:return[new jn(t.fields[0],n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),T(i=>{i(new nn(3,[!0]))})];case 3:{const i=t.fields[0];return[new jn(n.AttemptsRemaining,i,i?"":n.CodeInputValue,n.ResendTimer,!1,n.ReissueLinkInProgress),H()]}case 4:return[new jn(n.AttemptsRemaining,n.CodeInvalid,t.fields[0],n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),H()];case 5:return[new jn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,!0),H()];default:{const i=Ms(a=>{je(a)},()=>E.Delay(()=>E.Bind($s(1e3),()=>E.Return(void 0))),void 0,()=>new nn(0,[]));let s;const o=n.ResendTimer;return s=o!=null?o>0?(r=o|0,[r-1,i]):[void 0,H()]:[20,i],[new jn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,s[0],n.SignInInProgress,n.ReissueLinkInProgress),s[1]]}}}function zs(e){e.target.id==="one-time-code-input"||e.key!=="Enter"&&document.getElementById("one-time-code-input").focus()}function Yb(){document.addEventListener("keypress",e=>{zs(e)}),document.addEventListener("paste",e=>{zs(e)})}const Jb={Dispose(){document.removeEventListener("keypress",e=>{zs(e)}),document.removeEventListener("paste",e=>{zs(e)})}};function Zb(e){const t=e.reissueLink,n=e.reissueOneTimeCode,r=e.validateOneTimeCode,i=e.maskedPhone,s=el(()=>Ds(Gb,(f,c)=>qb(r,f,c),(f,c)=>{}),void 0,void 0),o=s[0],a=s[1];qo(()=>(Yb(),Jb),new Array(0));const l=()=>{a(new nn(1,[f=>{a(new nn(2,[f.AttemptsRemaining]))}]))},u=ce(A(()=>j(v(f1([])),A(()=>j(v(un("Enter your security code")),A(()=>{let f,c,p;return j(v(d("div",S(_([(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=_([d("span",{children:["We’ve sent a security code to your mobile number ending in •••"]}),d("span",{className:"font-semibold",children:Mo(ta,i)}),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from(p))})),d("p",{children:["Enter your code to sign in."]})],["children",C.Children.toArray(Array.from(c))])])))),A(()=>{let m;return j(v(d("div",S(_([["className","mt-8 flex relative"],(m=ce(A(()=>{let $;return j(v(d("input",S(_([["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(ta,g.target.value);a(new nn(4,[w])),w.length===6&&l()}],($=o.CodeInputValue,["ref",g=>{g!=null&&!M(g.value,$)&&(g.value=$)}])])))),A(()=>Cc(g=>{const w=Ee(y=>y,pc(g,o.CodeInputValue.split(""))),b=Ee(y=>y,pc(g-1,o.CodeInputValue.split("")));return v(d("div",{key:g,className:ge(" ",ce(A(()=>j(v("flex justify-center items-center text-xl w-10 h-12 rounded-md ring-inset ring-1 transition ease-in"),A(()=>j(o.CodeInvalid?v("ring-red-600"):v("ring-gray-400"),A(()=>j(v(g===2?"mr-4":g===5?"":"mr-2"),A(()=>w!=null||b!=null||g===0?v("peer-focus:ring-2 peer-focus:ring-primary-base"):is()))))))))),children:be(w,"")}))},l0(0,1,5))))})),["children",C.Children.toArray(Array.from(m))])])))),A(()=>{let $;return j(o.CodeInvalid?v(d("p",S(_([["className","w-[288px] text-red-600 mt-2 leading-5"],($=ce(A(()=>j(v("The code you entered is invalid"),A(()=>{let g;return j((g=o.AttemptsRemaining,g==null?v(K()):v(`, you have ${g} attempts remaining`)),A(()=>j(v("."),A(()=>o.AttemptsRemaining==null?v(" Try again or click on the link below to resend the code."):v(K())))))})))),["children",C.Children.toArray(Array.from($))])])))):is(),A(()=>j(v(Go("sm:w-[288px] mt-6",l,o.SignInInProgress,[d("span",{children:["Continue"]})])),A(()=>{let g;return v(d("div",S(_([["className","mt-8 sm:mt-14 text-sm text-gray-900 whitespace-pre-wrap leading-5 space-y-4"],(g=ce(A(()=>{let w,b;return j((w=o.ResendTimer,w!=null?v(d("p",{children:[`Message sent. Wait ${w} seconds before trying again.`]})):v((b=_([d("span",{children:["Didn’t get the code? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:y=>{n(),a(new nn(0,[]))},children:"Resend message"}),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from(b))})))),A(()=>{let y;return v((y=_([d("span",{children:["Still having trouble? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:x=>{o.ReissueLinkInProgress||(a(new nn(5,[])),t())},children:"Sign in with email instead"}),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from(y))})))}))})),["children",C.Children.toArray(Array.from(g))])]))))}))))}))}))}))))));return d(Se,{},...u)}function Xb(e){const t=e.reissueLink,n=e.brandingOption,r=os(!1),i=ce(A(()=>j(v(h1([])),A(()=>j(v(un("Access link timed-out")),A(()=>{let s,o;return j(v(d("div",S(_([(s="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",s]),(o=[d("p",{children:["Your 5-minute temporary access link has timed-out."]}),d("p",{children:["Get a new link to continue."]})],["children",C.Children.toArray(Array.from(o))])])))),A(()=>j(v(Go("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?v(K()):v(Qr(a))}))))}))))));return d(Se,{},...i)}function Hs(e,t){const n=be(on(i=>i.CompanyName,e),"your employer"),r=ce(A(()=>j(v(Uo([])),A(()=>j(v(un("You’re all done")),A(()=>{let i;return j(v(d("div",S(_([["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"],(i=[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",C.Children.toArray(Array.from(i))])])))),A(()=>{const s=e;return s==null?v(K()):v(Qr(s))}))}))))));return d(Se,{},...r)}function ph(){let e,t,n,r,i,s,o,a,l;return d("div",S(_([["className","flex lg:min-w-[1024px] xl:min-w-[1280px] max-w-screen-xl justify-center"],(e=[d("div",S(_([["className","flex flex-col justify-center items-center"],(t=[Uo([]),un("You’re all set!"),d("div",S(_([["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",S(_([["className","hidden lg:flex justify-center lg:py-8"],(r=[d("img",{className:"h-40",src:"/workflows/app/app-invite/qr.png"})],["children",C.Children.toArray(Array.from(r))])]))),d("div",S(_([["className","flex items-center justify-center lg:hidden"],(i=[d("img",{className:"w-[280px]",src:"/workflows/app/app-invite/completed.png"})],["children",C.Children.toArray(Array.from(i))])]))),d("p",S(_([["className","font-semibold pt-5 lg:pt-0"],(s=[d("span",{className:"lg:hidden",children:"Download the Flare App"}),d("span",{className:"hidden lg:block",children:"Scan to download"})],["children",C.Children.toArray(Array.from(s))])]))),d("p",{children:"Available on iOS and Android"})],["children",C.Children.toArray(Array.from(n))])]))),d("div",S(_([["className","flex space-x-6"],(o=[d("a",S(_([["href","https://apps.apple.com/au/app/flare/id1587276031"],["target","_blank"],["rel","noreferrer"],(a=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/app-store.png"})],["children",C.Children.toArray(Array.from(a))])]))),d("a",S(_([["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",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(t))])]))),d("img",{className:"hidden lg:block w-[640px]",src:"/workflows/app/app-invite/completed.png"})],["children",C.Children.toArray(Array.from(e))])])))}function ml(){let e;const t=[Uo([]),un("You’re all done"),d("div",S(_([["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"],(e=[d("p",{children:["You’ve finished setting up your benefits."]}),d("p",{children:["You can now close this window."]})],["children",C.Children.toArray(Array.from(e))])]))),Qr(new nl("Flare",void 0,new tl("support@flarehr.com",void 0)))];return d(Se,{},...t)}function Kb(e){const t=e.startAuthCodeExchangeBackground,n=e.navigateAuthCodeExchangePage,r=e.magicLink,i=el(()=>Ds(jb,(l,u)=>Ub(r,n,t,l,u),(l,u)=>{}),void 0,void 0),s=i[0],o=i[1],a=ce(A(()=>j(Ce(l=>d("style",{children:[l]}),s.CssOverrides),A(()=>{const l=s.Page;switch(l.tag){case 1:return v(zb(l.fields[0],s.Branding,s.ProcessConfigId,s.JourneyType,()=>{o(new U(5,[l.fields[1],new _e(0,[])]))}));case 2:return v(Hb(l.fields[0],s.Branding));case 3:return v(d(Zb,{maskedPhone:l.fields[0],validateOneTimeCode:u=>{o(new U(4,[u[0],u[1],new _e(0,[])]))},reissueOneTimeCode:()=>{o(new U(3,[!0,new _e(0,[])]))},reissueLink:()=>{o(new U(2,[!0,new _e(0,[])]))}}));case 4:return v(d(Xb,{brandingOption:Gi(s.Branding),reissueLink:()=>{o(new U(2,[!1,new _e(0,[])]))}}));case 5:switch(s.JourneyType.tag){case 1:return v(Hs(s.Branding,"information request"));case 2:return v(ph());case 3:case 4:return v(ml());default:return v(Hs(s.Branding,"onboarding"))}case 6:return l.fields[0].tag===1?v(L1()):l.fields[0].tag===0?v(d(B1,{reissueMagicLink:()=>{o(new U(2,[!0,new _e(0,[])]))}})):l.fields[0].tag===5?v(Zo()):l.fields[0].tag===2?v(Ac(s.Branding)):l.fields[0].tag===3?v(V1(s.Branding)):v(F1(s.Branding));default:return v(b1)}}))));return d(Se,{},...a)}function Qb(e){let t,n,r;const i=e.startAuthCodeExchangeBackground,s=e.navigateAuthCodeExchangePage,o=e.inviteCode;return ur(()=>{Ut(0)}),d("div",S(_([(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",S(_([["className","flex flex-col items-center justify-center sm:max-w-[640px]"],(r=ce(A(()=>{const a=m2(o);return a.tag===0?v(d(Kb,{magicLink:a.fields[0],navigateAuthCodeExchangePage:s,startAuthCodeExchangeBackground:i})):v(Ac(void 0))})),["children",C.Children.toArray(Array.from(r))])]))),Ko],["children",C.Children.toArray(Array.from(n))])])))}class W extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","LegacyInvite","InviteV2","AuthCodeExchange","AuthCodeExchangeWithCurrentAuth","NotFound","LoggedOut"]}}function eC(e){let t,n,r;if(O(e))t=2;else if(k(e)==="workflows")if(O(P(e)))t=2;else switch(k(P(e))){case"app":{t=0,n=P(P(e));break}case"embed":{O(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 na(1,[n]);case 1:return new na(0,[r]);default:return new na(2,[void 0])}}function tC(e){const t=mn(e);if(t!=null)return Ee(r=>r[1],Jr(r=>r[0]==="code",t))}function $h(e){let t,n,r,i,s,o,a;const l=eC(e);switch(l.tag){case 1:return[O(l.fields[0])?O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):(t=mn(k(l.fields[0])),t!=null?O(t)?O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):k(t)[0]==="invite"?O(P(t))?O(P(l.fields[0]))?(n=k(t)[1],r=Fc(n),r.tag===1?new W(5,[]):new W(1,[])):O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[]))),new Ln(1,[])];case 2:return[new W(5,[]),new Ln(2,[])];default:return[O(l.fields[0])?new W(0,[]):O(P(l.fields[0]))?new W(0,[]):(o=tC(k(P(l.fields[0]))),o!=null?O(P(P(l.fields[0])))?(a=o,new W(3,[dl(a)])):new W(0,[]):new W(0,[])),new Ln(0,[])]}}let Un=class extends R{constructor(t,n,r){super(),this.CurrentPage=t,this.Credentials=n,this.AppMode=r}},pn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UrlChanged","NavigateAuthCodeExchangePage","NavigateAuthCodeExchangePageWithCurrentAuth","AuthMsg","StartAuthCodeExchangeBackground","DisplayLoggedOut"]}};function nC(){let e;return ur(()=>{Ut(0)}),d("div",S(_([["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",C.Children.toArray(Array.from(e))])])))}class Ci extends Error{}Ci.prototype.name="InvalidTokenError";function rC(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 iC(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 rC(t)}catch{return atob(t)}}function sC(e,t){if(typeof e!="string")throw new Ci("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 Ci(`Invalid token specified: missing part #${n+1}`);let i;try{i=iC(r)}catch(s){throw new Ci(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Ci(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}class $n extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}class gh extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class ve extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","WorkplaceLinking","BenefitsOnboarding","WorkplacePolicies","DiscreteBenefits"]}}class Si extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Hidden","Incomplete","Complete"]}}function pl(e){return e?new Si(1,[]):new Si(0,[])}class se extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Disabled","Active","Locked","CompletedAndDisabled"]}}function wh(e){return M(e,Ue)?new h(0,[new ve(0,[])]):M(e,ut)?new h(0,[new ve(1,[])]):M(e,ct)?new h(0,[new ve(2,[])]):M(e,ft)?new h(0,[new ve(3,[])]):M(e,Pe)?new h(0,[new ve(4,[])]):M(e,In)?new h(0,[new ve(5,[])]):M(e,jt)?new h(0,[new ve(7,[])]):M(e,An)?new h(0,[new ve(8,[])]):new h(1,["Invalid step"])}function oC(e){switch(e.tag){case 1:return ut;case 2:return ct;case 3:return ft;case 4:return Pe;case 5:return In;case 6:return us;case 7:return jt;case 8:return An;default:return Ue}}function yh(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 In.DisplayName;case 6:return"Workplace benefits";case 7:return"Fair Work";case 8:return An.DisplayName;default:return"Employee profile"}}function _h(e){switch(e.tag){case 1:return"Contacts";case 2:return"Bank";case 3:return"Tax";case 4:return"Super";case 5:return In.DisplayName;case 6:return"Benefits";case 7:return"Fair Work";case 8:return An.DisplayName;default:return"Profile"}}function vh(e){switch(e.tag){case 1:return ut;case 2:return ct;case 3:return ft;case 4:return Pe;case 5:return In;case 6:return us;case 7:return jt;case 8:return An;default:return Ue}}function aC(e){switch(e.tag){case 5:case 6:case 8:return!1;default:return!0}}function lC(e,t){return e.tag===0?t:$t(t,T(new ve(6,[])))}class Ir extends R{constructor(t,n){super(),this.Id=t,this.Status=n}}function zn(e){return yh(e.Id)}function uC(e){return _h(e.Id)}function cC(e){return vh(e.Id).ComponentTagName}function fC(e){return vh(e.Id).Id}function dC(e){return aC(e.Id)}function hC(e){if(e.Id.tag===0)return e}function mC(e){if(e.Id.tag===1)return e}function pC(e){return Jr(t=>M(t.Status,new se(2,[])),e)}function $C(e){return((n,r)=>{e:for(;;){const i=n,s=r;if(O(i))return s;if(M(k(i).Status,new se(2,[])))return Ro([s,T(k(i)),P(i)]);if(M(k(i).Status,new se(1,[])))return Ro([s,T(new Ir(k(i).Id,new se(2,[]))),P(i)]);n=P(i),r=$t(s,T(k(i)));continue e}})(e,le())}function $l(e,t){const n=be(e.PaySetupComplete,!1);let r;const i=Sr(Xe(wh,e.Configuration.Steps));if(r=i.tag===1?new h(1,[i.fields[0]]):new h(0,[lC(t,i.fields[0])]),r.tag===1)return new h(1,[r.fields[0]]);{const s=Sr(Xe(wh,V$(e)));return s.tag===1?new h(1,[s.fields[0]]):new h(0,[$C(Xe(o=>n&&dC(o)&&M(o.Status,new se(0,[]))?new Ir(o.Id,new se(4,[])):o,Xe(o=>yc(a=>M(a,o.Id),s.fields[0])?new Ir(o.Id,new se(0,[])):o,Xe(o=>M(o.Id,new ve(6,[]))&&!n?new Ir(o.Id,new se(3,[])):o,Xe(o=>new Ir(o,new se(1,[])),r.fields[0])))))])}}class bh extends R{constructor(t,n,r,i,s,o,a,l,u,f,c){super(),this.AppMode=t,this.JourneyType=n,this.Branding=r,this.IsBenefitsStepEnabled=i,this.IsPaySetupCompatible=s,this.IsPaySetupComplete=o,this.Status=a,this.ProcessInstanceId=l,this.InstanceName=u,this.ProcessConfigId=f,this.Steps=c}}function Ch(e){switch(e.Status.tag){case 3:return!1;case 0:return!1;case 1:return be(e.PaySetupComplete,!1);default:return!0}}function gC(e,t){let n;const r=[t.ProcessInstance,pl(t.IsBenefitsEnabled)];return n=$l(r[0],r[1]),n.tag===1?new h(1,[n.fields[0]]):new h(0,[new bh(e,t.ProcessInstance.JourneyType,t.Branding,t.IsBenefitsEnabled,x$(t.ProcessInstance.Configuration),Ch(t.ProcessInstance),t.ProcessInstance.Status,t.ProcessInstance.Id,t.ProcessInstance.Configuration.Name,t.ProcessInstance.Configuration.Id,n.fields[0])])}function wC(e,t){let n;const r=[t,pl(e.IsBenefitsStepEnabled)];return n=$l(r[0],r[1]),n.tag===1?new h(1,[n.fields[0]]):new h(0,[new bh(e.AppMode,e.JourneyType,e.Branding,e.IsBenefitsStepEnabled,e.IsPaySetupCompatible,Ch(t),t.Status,e.ProcessInstanceId,e.InstanceName,e.ProcessConfigId,n.fields[0])])}function gl(e,t){const n=e;return n.tag===1?new h(1,[n.fields[0]]):wC(t,n.fields[0])}let me=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","StepList","Step","PaySetupCompleteConfirmation","Oops","ErrorPage","AllDone"]}};function Hn(e){switch(e.tag){case 1:return e.fields[0];case 2:return e.fields[1];case 3:return e.fields[0];case 4:return;case 5:return;case 6:return e.fields[0];default:return}}class X extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Activate","ChangeCurrentView","CloseStepListView","StepCompletionEventCallback","CompleteStep","ConfirmPaySetupComplete","ResumePaySetup","CompletePaySetup","PaySetupCompleted","CompleteWorkflow","ShowAllDoneAndNotifyComplete","SendAnalyticsEvent","AppendTrailingSlashToUrl","CompleteBenefitsOnboardingStep","CommandSuccess","CommandFailure"]}}class Ae extends R{constructor(t,n,r,i,s){super(),this.ProfileId=t,this.ProcessInstanceId=n,this.CurrentView=r,this.CssOverrides=i,this.BenefitsOnboarding=s}}function wl(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 yl(e){if(e<640)return ke(void 0)}function _l(e){return((n,r)=>{e:for(;;){const i=n,s=r;let o,a,l,u;if(O(i))o=0;else{const f=hC(k(i));if(f!=null)if(O(P(i)))o=2;else{const c=mC(k(P(i)));c!=null?(o=1,a=c,l=f,u=P(P(i))):o=2}else o=2}switch(o){case 0:return s;case 1:{n=u,r=$t(s,T(M(a.Status,new se(2,[]))?new Ir(l.Id,new se(2,[])):l));continue e}default:if(O(i))throw new Error("Match failure");n=P(i),r=$t(s,T(k(i)));continue e}}})(e,le())}function Ar(e){let t,n;return d("div",S(_([(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:C.Children.toArray([e])}),Ko],["children",C.Children.toArray(Array.from(n))])])))}function yC(e,t){let n,r;const i=e.tag===2?e.fields[0]:void 0;let s;if(i==null)s=void 0;else{const f=i;s=on(c=>Dp(c+1,t.Steps),ns(c=>M(f,c),t.Steps))}const o=Ee(f=>new X(1,[new me(2,[f,t])]),Jr(f=>M(f.Status,new se(2,[])),t.Steps));let a,l,u;switch(i!=null&&s!=null?(r=s,M(i.Status,new se(2,[]))&&(M(r.Status,new se(1,[]))?!0:M(r.Status,new se(3,[])))?(a=0,l=i):(a=1,u=s)):a=2,a){case 0:return new X(1,[(n=[l,t],new me(2,[n[0],n[1]]))]);case 1:return M(u.Status,new se(3,[]))?void 0:new X(1,[new me(2,[u,t])]);default:return o}}function _C(e,t){let n;const r=e.IsPaySetupCompatible&&!e.IsPaySetupComplete&&rr(e.Steps)!==1;let i;if(r)switch(t.tag){case 1:case 0:{i=0;break}default:i=1}else i=1;switch(i){case 0:return n=[e,{Branding:Gi(e.Branding),InjectedBenefits:e.IsBenefitsStepEnabled}],new X(5,[n[0],n[1]]);default:return}}function vC(e){if(sa(e.Status))return new X(10,[e])}function vl(e,t,n){return be(Yu(Yu(vC(t),yC(e,t)),_C(t,n)),new X(9,[new $n(0,[])]))}function bC(e){const t=cr(e)|0;return Ve(Le("%s/workflows/backend/%i"))(Bn)(t)}function CC(e){const t=cr(e)|0;return Ve(Le("%s/workflows/backend/process-instances/%i/activate"))(Bn)(t)}function SC(e){const t=cr(e)|0;return Ve(Le("%s/workflows/backend/process-instances/%i/analytics-events"))(Bn)(t)}function bl(e,t){return E.Delay(()=>{const n=wi(zv(Ve(Le("Bearer %s"))(e)),t);let r;const i=yi(n);return r=E.Bind(i,s=>E.Return(new h(0,[s]))),E.Bind(r,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=yi(n);return E.Bind(l,u=>E.Return(new h(0,[u])))}else return E.Return(new h(0,[a]))}})})}function ki(e,t,n,r){return E.Delay(()=>{let i,s;const o=bl(n,(i=Zt(new Nt(1,[(s=new A0(T(rv(e)),r),Xt(0,Qt(Cv(),new Ne(1,[]),void 0,void 0)(s)))]),Jt(new Dt(1,[]),Yt(bC(t)))),wi(js("application/json"),i)));return E.Bind(o,a=>{const l=a;if(l.tag===1)return E.Return(new h(1,[l.fields[0]]));{const u=l.fields[0];if(u.statusCode===200){let f;const c=en(Q(tn(C0(),new Ne(1,[]))),u.responseText);return f=c.tag===1?new h(1,[c.fields[0]]):iv(c.fields[0]),E.Return(f)}else return E.Return(new h(1,["Unexpected response from backend"]))}})})}function kC(e,t,n){return E.Delay(()=>{let r,i;const s=bl(t,(r=Zt(new Nt(1,[(i=new I0(n),Xt(0,Qt(bv(),new Ne(1,[]),void 0,void 0)(i)))]),Jt(new Dt(1,[]),Yt(CC(e)))),wi(js("application/json"),r)));return E.Bind(s,o=>{const a=o;if(a.tag===1)return E.Return(new h(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){let u;const f=en(Q(tn(ov(),new Ne(1,[]))),l.responseText);return u=f.tag===1?new h(1,[f.fields[0]]):new h(0,[dv(f.fields[0])]),E.Return(u)}else return E.Return(new h(1,["Unexpected response from backend"]))}})})}function xC(e,t,n,r){let i;const s=E.Delay(()=>{let o,a;return bl(e,(o=Zt(new Nt(1,[(a=new E0(T(n),r),Xt(0,Qt(Sv(),new Ne(1,[]),void 0,void 0)(a)))]),Jt(new Dt(1,[]),Yt(SC(t)))),wi(js("application/json"),o)))});return i=E.Bind(s,o=>{let a;const l=o;return a=l.tag===1?new h(1,[l.fields[0]]):new h(0,[void l.fields[0]]),E.Return(a)}),E.Bind(i,o=>{const a=o;return a.tag===1||a.fields[0],E.Return()})}function IC(e,t,n){return kC(e,t,n)}function AC(e,t,n,r){return ki(new $i(1,[n]),t,r,e)}function EC(e,t,n,r){return ki(new $i(3,[r]),t,n,e)}function TC(e,t,n,r){return ki(new $i(4,[r]),t,n,e)}function PC(e,t,n,r){return ki(new $i(5,[r]),t,n,e)}function OC(e,t,n){return ki(new $i(2,[]),t,n,e)}function MC(e){const t=sC(e);return[new Ae(Lc(t.sub),df(t.workflow.instanceId),new me(0,[]),le(),new Si(0,[])),T(n=>{n(new X(0,[new gh(0,[void 0])]))})]}function Cl(e,t){if(e.tag===2){const n=oC(e.fields[0].Id);if(M(n.Id,us.Id))return T(r=>{r(new X(11,[t,new Ns(1,[])]))});{const r=new X(11,[t,new Ns(0,[cs(n.Id)])]);return T(i=>{i(r)})}}else return H()}function DC(e,t,n,r,i){let s,o,a,l,u,f,c,p,m,$,g,w,b;switch(r.tag){case 1:return[new Ae(i.ProfileId,i.ProcessInstanceId,r.fields[0],i.CssOverrides,i.BenefitsOnboarding),Cl(r.fields[0],i.ProcessInstanceId)];case 2:{const y=vl(i.CurrentView,r.fields[0],i.BenefitsOnboarding);return[i,T(x=>{x(y)})]}case 11:return je(xC(t,r.fields[0],r.fields[1],n)),[i,H()];case 3:{const y=Hn(i.CurrentView);if(y!=null){const x=y;return[i,(s=r.fields[0].target,o=Jr(B=>cp(cC(B),s.tagName,5)===0,x.Steps),o==null?H():M(o.Id,new ve(6,[]))?T(B=>{B(new X(13,[]))}):(a=o,l=new X(4,[fC(a),new $n(0,[])]),T(B=>{B(l)})))]}else return[i,H()]}case 13:{const y=Hn(i.CurrentView);let x,B;switch(y!=null?M(i.BenefitsOnboarding,new Si(0,[]))?x=1:(x=0,B=y):x=1,x){case 0:return[new Ae(i.ProfileId,i.ProcessInstanceId,i.CurrentView,i.CssOverrides,new Si(2,[])),o0(_([T(V=>{V(new X(11,[i.ProcessInstanceId,new Ns(2,[])]))}),T(V=>{V(new X(9,[new $n(0,[])]))}),T(V=>{V(new X(1,[new me(6,[B])]))})]))];default:return[i,H()]}}case 4:switch(r.fields[1].tag){case 1:return[i,H()];case 2:{const y=r.fields[1].fields[0],x=y;x.tag===1?x.fields[0]:Cg(r.fields[0],x.fields[0],i.ProfileId);const B=Hn(i.CurrentView);if(B==null)return[i,H()];{const V=gl(y,B);return V.tag===1?[new Ae(i.ProfileId,i.ProcessInstanceId,new me(4,[]),i.CssOverrides,i.BenefitsOnboarding),H()]:[i,(u=vl(i.CurrentView,V.fields[0],i.BenefitsOnboarding),T(te=>{te(u)}))]}}case 3:return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(5,[]),i.CssOverrides,i.BenefitsOnboarding),H()];default:return[i,bt(y=>{je(y)},y=>AC(n,i.ProcessInstanceId,r.fields[0],y),t,y=>new X(4,[r.fields[0],new $n(2,[y])]),y=>new X(4,[r.fields[0],new $n(3,[y])]))]}case 5:return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(3,[r.fields[0]]),i.CssOverrides,i.BenefitsOnboarding),bt(y=>{je(y)},y=>EC(n,i.ProcessInstanceId,t,y),r.fields[1].InjectedBenefits,y=>new X(14,[]),y=>new X(15,[y]))];case 6:{const y=Hn(i.CurrentView);if(y==null)return[i,H()];{const x=y,B=bt(te=>{je(te)},te=>PC(n,i.ProcessInstanceId,t,te),r.fields[0].InjectedBenefits,te=>new X(14,[]),te=>new X(15,[te])),V=new me(2,[xp(Bo(te=>M(te.Status,new se(0,[]))?!0:M(te.Status,new se(4,[])),x.Steps)),x]);return[new Ae(i.ProfileId,i.ProcessInstanceId,V,i.CssOverrides,i.BenefitsOnboarding),o0(_([B,Cl(V,i.ProcessInstanceId)]))]}}case 7:return[i,bt(y=>{je(y)},Vi(e)(i.ProcessInstanceId)(t),r.fields[0].InjectedBenefits,y=>new X(8,[y]),y=>new X(15,[y]))];case 8:{const y=Hn(i.CurrentView);if(y==null)return[i,H()];{const x=gl(r.fields[0],y);if(x.tag===1)return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(4,[]),i.CssOverrides,i.BenefitsOnboarding),H()];{const B=vl(i.CurrentView,x.fields[0],i.BenefitsOnboarding);return[i,T(V=>{V(B)})]}}}case 9:switch(r.fields[0].tag){case 1:return[i,H()];case 2:if(r.fields[0].fields[0].tag===1)return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(5,[]),i.CssOverrides,i.BenefitsOnboarding),H()];{ha(r.fields[0].fields[0].fields[0].Id,r.fields[0].fields[0].fields[0].Configuration.Name,r.fields[0].fields[0].fields[0].Configuration.Id,i.ProfileId);const y=Hn(i.CurrentView);if(y==null)return[i,H()];{const x=gl(new h(0,[r.fields[0].fields[0].fields[0]]),y);return x.tag===1?[new Ae(i.ProfileId,i.ProcessInstanceId,new me(5,[]),i.CssOverrides,i.BenefitsOnboarding),H()]:[new Ae(i.ProfileId,i.ProcessInstanceId,new me(6,[x.fields[0]]),i.CssOverrides,i.BenefitsOnboarding),H()]}}case 3:return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(5,[]),i.CssOverrides,i.BenefitsOnboarding),H()];default:{const y=Hn(i.CurrentView);let x,B;switch(y!=null&&sa(y.Status)?(x=0,B=y):x=1,x){case 0:return ha(B.ProcessInstanceId,B.InstanceName,B.ProcessConfigId,i.ProfileId),[i,H()];default:return[i,bt(V=>{je(V)},V=>OC(n,i.ProcessInstanceId,V),t,V=>new X(9,[new $n(2,[V])]),V=>new X(9,[new $n(3,[V])]))]}}}case 10:return ha(r.fields[0].ProcessInstanceId,r.fields[0].InstanceName,r.fields[0].ProcessConfigId,i.ProfileId),[new Ae(i.ProfileId,i.ProcessInstanceId,new me(6,[r.fields[0]]),i.CssOverrides,i.BenefitsOnboarding),H()];case 12:return[i,(f=window.location.pathname+"/"+window.location.search+window.location.hash,a0(y=>{ol(T(f),1)}))];case 14:return[i,H()];case 15:return[i,H()];default:if(r.fields[0].tag===1){if(r.fields[0].fields[0].tag===1)return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(4,[]),i.CssOverrides,i.BenefitsOnboarding),H()];{let y;const x=pl(r.fields[0].fields[0].fields[0].IsBenefitsEnabled);let B;const V=[r.fields[0].fields[0].fields[0].ProcessInstance,x];if(B=$l(V[0],V[1]),B.tag===1)y=new h(1,[B.fields[0]]);else{const te=B.fields[0],Ke=gC(n,r.fields[0].fields[0].fields[0]);y=Ke.tag===1?new h(1,[Ke.fields[0]]):new h(0,[(c=Ke.fields[0],p=sa(r.fields[0].fields[0].fields[0].ProcessInstance.Status),m=pC(te),m==null?c.IsPaySetupComplete?p?[new Ae(i.ProfileId,i.ProcessInstanceId,new me(6,[c]),r.fields[0].fields[0].fields[0].CssOverrides,x),H()]:(Ut(0),[new Ae(i.ProfileId,i.ProcessInstanceId,new me(6,[c]),r.fields[0].fields[0].fields[0].CssOverrides,x),T(Re=>{Re(new X(9,[new $n(0,[])]))})]):[new Ae(i.ProfileId,i.ProcessInstanceId,new me(3,[c]),r.fields[0].fields[0].fields[0].CssOverrides,x),H()]:($=(g=m,w=al.clientWidth,b=rr(te)|0,b===1?(document.title=zn(g),new me(2,[g,c])):yl(w)!=null?new me(1,[c]):new me(2,[g,c])),[new Ae(i.ProfileId,i.ProcessInstanceId,$,r.fields[0].fields[0].fields[0].CssOverrides,x),Cl($,i.ProcessInstanceId)]))])}return y.tag===1?[new Ae(i.ProfileId,i.ProcessInstanceId,new me(4,[]),i.CssOverrides,i.BenefitsOnboarding),H()]:y.fields[0]}}else return[i,Ms(y=>{je(y)},()=>IC(i.ProcessInstanceId,t,n),void 0,y=>new X(0,[new gh(1,[y])]))]}}function NC(e,t,n,r){return DC((i,s,o)=>TC(t,i,s,o),e,t,n,r)}const RC=d("div",S(_([["className","text-primary-base"],(()=>{let e,t,n;const r=[d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=T(d("g",S(T((t=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:16,fill:"currentColor"}),d("path",S(_([(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",C.Children.toArray(Array.from(t))]))))),["children",C.Children.toArray(Array.from(e))])])))];return["children",C.Children.toArray(Array.from(r))]})()]))),BC=d("div",S(_([["className","text-primary-base"],(()=>{let e,t,n,r;const i=[d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=T(d("g",S(T((t=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"currentColor",strokeWidth:2}),d("path",S(_([(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",S(_([(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",C.Children.toArray(Array.from(t))]))))),["children",C.Children.toArray(Array.from(e))])])))];return["children",C.Children.toArray(Array.from(i))]})()]))),LC=d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n;const r=T(d("g",S(T((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",S(_([(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",S(_([(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",C.Children.toArray(Array.from(e))])))));return["children",C.Children.toArray(Array.from(r))]})()]))),Sh=d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(d("g",S(T((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2})]),["children",C.Children.toArray(Array.from(e))])))));return["children",C.Children.toArray(Array.from(t))]})()]))),VC=d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=T(d("g",S(T((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",S(_([(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",C.Children.toArray(Array.from(e))])))));return["children",C.Children.toArray(Array.from(n))]})()])));function Sl(e,t){let n;return d("div",S(_([["className","w-full h-6 rounded justify-start items-center inline-flex"],(n=[d("div",{className:ge(" ",[e,"text-lg font-medium leading-normal"]),children:t})],["children",C.Children.toArray(Array.from(n))])])))}function FC(e){return Sl("text-gray-900",e)}function kl(e){return Sl("text-gray-500",e)}function WC(e){return Sl("text-primary-base",e)}function jC(e){switch(e.Status.tag){case 0:return FC(zn(e));case 1:return kl(zn(e));case 3:return kl(zn(e));case 4:return kl(zn(e));default:return WC(zn(e))}}function kh(e){let t;return d("div",S(_([["className","w-8 h-6 flex-col justify-center items-center inline-flex"],(t=[d("div",{className:ge(" ",[e,"w-0.5 h-6 relative"])})],["children",C.Children.toArray(Array.from(t))])])))}const UC=kh("bg-gray-300"),xh=kh("bg-primary-base");function zC(e){const t=M(e.Id,new ve(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 xh;case 1:return xh;default:return UC}}function Ih(e,t,n){let r,i,s;const o=M(n.Status,new se(0,[]))?!0:M(n.Status,new se(2,[]));return d("button",S(_([["className",ge(" ",["group h-8 justify-start items-center space-x-4 inline-flex focus:outline-none"])],["type","button"],["disabled",!o],["onClick",a=>{let l;e(new X(1,[(l=[n,t],new me(2,[l[0],l[1]]))]))}],(r=[d("div",S(_([["className","w-8 h-8 relative"],(i=ce(A(()=>{const a=n.Status;return a.tag===0?v(RC):a.tag===1?v(Sh):a.tag===3?M(n.Id,new ve(6,[]))?v(LC):v(Sh):a.tag===4?v(VC):v(BC)})),["children",C.Children.toArray(Array.from(i))])]))),d("div",S(_([["className",ge(" ",ce(A(()=>j(v("rounded justify-start items-center flex"),A(()=>o?v("group-focus:outline-none group-focus:ring-2 group-focus:ring-offset-4 group-focus:ring-primary-focus"):is())))))],(s=[jC(n)],["children",C.Children.toArray(Array.from(s))])])))],["children",C.Children.toArray(Array.from(r))])])))}function HC(e){let t,n,r,i=!1,s=0;const o=de(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:{i=M(u.Status,new se(0,[]))?!0:M(u.Status,new se(4,[]));break}default:(M(u.Status,new se(0,[]))||M(u.Status,new se(4,[])))&&(s=s+1|0)}}}finally{oe(o)}r=s+(i?1:0);const a=rr(_l(e.Steps))|0,l=u=>d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:u});return d("div",S(_([(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=ce(A(()=>{let u,f;return j((u=e.Branding,M(e.AppMode,new Ln(0,[]))?v(K()):u!=null&&u.CompanyName!=null?(f=u.CompanyName,v(l(ni(f)))):v(l(wl(e.JourneyType)))),A(()=>v(d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:`${r}/${a} sections complete`}))))})),["children",C.Children.toArray(Array.from(n))])])))}function GC(e,t){return((r,i)=>{e:for(;;){const s=r,o=i;if(O(s))return o;if(O(P(s)))return $t(o,T(Ih(e,t,k(s))));r=Ze(k(P(s)),P(P(s))),i=$t(o,_([Ih(e,t,k(s)),zC(k(P(s)))]));continue e}})(_l(t.Steps),le())}function qC(e){let t,n,r;const i=e.dispatch,s=e.detail,o=Ic(void 0),a=os(!1);return P1(()=>{const l=window.ResizeObserver?new window.ResizeObserver(()=>{const u=document.body.offsetWidth;yl(u)!=null||a[0]===!1&&(a[1](!0),i(new X(2,[s])))}):new Of(()=>{const u=document.body.offsetWidth;yl(u)!=null||a[0]===!1&&(a[1](!0),i(new X(2,[s])))});return Sn(u=>{l.observe(u)},qi(o.current)),{Dispose(){l.disconnect()}}}),d("div",S(_([["ref",o],["className","absolute top-0 bottom-0 left-0 right-0"],(t=[d("div",S(_([["className","w-full h-full bg-white flex-col justify-start items-start inline-flex"],(n=[HC(s),d("div",S(_([["className","p-6 bg-white flex-col justify-start items-start inline-flex"],(r=GC(i,s),["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}class Er extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","journey-type"]}}class YC extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["app-base-url"]}}class JC extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["workflows-instance-id"]}}function Ah(e){const t=e.children,n=e.effect,r=e.props,i=e.step;ur(n);const s=i.tag===1?ut.ComponentTagName:i.tag===2?ct.ComponentTagName:i.tag===3?ft.ComponentTagName:i.tag===4?Pe.ComponentTagName:i.tag===5?In.ComponentTagName:i.tag===6?us.ComponentTagName:i.tag===7?jt.ComponentTagName:i.tag===8?An.ComponentTagName:Ue.ComponentTagName;return d(s,gt(r,1),...t)}class xi extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Mobile","MobileLandscape","Tablet","Desktop","WideScreen"]}}class ZC extends R{constructor(t,n,r,i){super(),this.MobileLandscape=t|0,this.Tablet=n|0,this.Desktop=r|0,this.WideScreen=i|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 Gs(e){const t=T1(()=>window.matchMedia(e).matches);return qo(()=>{const n=window.matchMedia(e),r=()=>{t[1](n.matches)};return r(),n.addListener(r),ss(()=>{n.removeListener(r)})},[e]),t[0]}function QC(e){const t=KC(be(e,XC)),n=Gs(t[0]),r=Gs(t[1]),i=Gs(t[2]),s=Gs(t[3]);return n?new xi(0,[]):r?new xi(1,[]):i?new xi(2,[]):s?new xi(3,[]):new xi(4,[])}const e3=d("svg",S(_([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=T(d("g",S(T((e=_([d("rect",{width:16,height:16,fill:"white"}),d("path",S(_([(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",C.Children.toArray(Array.from(e))])))));return["children",C.Children.toArray(Array.from(n))]})()])));function t3(e,t,n){let r,i,s,o,a;const l=t.Steps;let u;const f=Pp($=>M($.Id,n.Id),l)/rr(l)*100;u=Ve(Le("%.0f%%"))(f);let c;const p=Mp($=>M($.Status,new se(2,[]))?!0:M($.Status,new se(0,[])),l)/rr(l)*100;c=Ve(Le("%.0f%%"))(p);const m=M(n.Id,new ve(1,[]))?yh(new ve(0,[])):zn(n);return d("div",S(_([(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]),(i=[d("div",S(_([["className","self-stretch justify-start items-center space-x-3 inline-flex"],(s=[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:$=>{e(new X(1,[new me(1,[t])]))},children:C.Children.toArray([e3])}),d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:m})],["children",C.Children.toArray(Array.from(s))])]))),d("div",S(_([["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",S(_([["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:c}}),d("div",{className:"w-2 h-2 top-0 absolute bg-primary-base rounded-full",style:{left:u}})],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(i))])])))}const n3=d("div",S(_([["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",C.Children.toArray(Array.from(e))]})()]))),r3=d("div",{className:"relative h-0.5 w-2 bg-gray-300"}),Eh=d("div",{className:"relative h-0.5 w-2 bg-primary-base"}),i3=d("div",S(_([["className","w-4 h-4 relative"],(()=>{let e,t,n;const r=[d("svg",S(_([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(e=_([d("path",S(_([(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",S(_([(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",C.Children.toArray(Array.from(e))])])))];return["children",C.Children.toArray(Array.from(r))]})()])));function Th(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 Eh;case 2:return Eh;case 3:return i3;default:return r3}}const Ph=d("div",{className:"relative h-0.5 w-full"}),s3=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 xl(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 Ph;default:return s3}}function Oh(e){let t,n;return d("div",S(_([["className","inline-flex h-11 w-10 flex-col items-center justify-start"],(t=[d("div",S(_([["className","inline-flex h-4 items-center justify-center self-stretch"],(n=[d("div",{className:ge(" ",[e,"relative h-0.5 w-10"])})],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}const a3=Oh("bg-gray-300"),l3=Oh("bg-primary-base");function u3(e){switch(e.tag){case 0:case 4:case 2:return l3;default:return a3}}function Mh(e,t,n,r){let i,s;const o=!e&&(M(n.Status,new se(0,[]))?!0:M(n.Status,new se(2,[]))),a=e?"text-primary-base":M(n.Status,new se(2,[]))||M(n.Status,new se(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=dc(_h(n.Id).toLocaleLowerCase()," ","-");return u=Ve(Le("step-%s"))(f),d("div",S(_([["className",ge(" ",["h-11 flex-col justify-start items-center inline-flex"])],(i=[d("div",{className:"h-4 inline-flex items-center justify-center self-stretch",children:C.Children.toArray(Array.from(r))}),d("button",S(_([["type","button"],["disabled",!o],["data-testid",u],["className",ge(" ",["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",kt(t)(n)],(s=ce(A(()=>j(v(o?l:K()),A(()=>v(d("div",{className:ge(" ",[a,"text-sm font-medium leading-tight whitespace-nowrap"]),children:uC(n)})))))),["children",C.Children.toArray(Array.from(s))])])))],["children",C.Children.toArray(Array.from(i))])])))}function c3(e,t,n){const r=M(n.Id,new ve(1,[]))?new ve(0,[]):n.Id,i=(o,a)=>{let l;e(new X(1,[(l=[o,t],new me(2,[l[0],l[1]]))]))};return sr(((o,a,l)=>{e:for(;;){const u=o,f=a,c=l;if(O(u))return c;if(O(P(u))){const p=xl(f),m=M(k(u).Id,r);return $t(c,T(Mh(m,i,k(u),_([Ph,Th(m,M(k(u).Id,new ve(6,[])),k(u).Status),p]))))}else{const p=xl(f),m=M(k(u).Id,r),$=Th(m,M(k(u).Id,new ve(6,[])),k(u).Status);o=P(u),a=k(u).Status,l=$t(c,_([Mh(m,i,k(u),_([xl(k(u).Status),$,p])),u3(k(u).Status)]));continue e}}})(sr(_l(t.Steps)),void 0,le()))}function f3(e,t,n){let r,i,s;const o=d("div",S(_([["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:wl(t.JourneyType)}),be(Ee(l=>d("div",{className:"hidden lg:inline text-center text-gray-900 text-base font-semibold leading-normal",children:l}),Ee(ni,on(l=>l.CompanyName,t.Branding))),K())],["children",C.Children.toArray(Array.from(r))])]))),a=d("div",{className:"grow shrink basis-0"});return d("div",S(_([(i="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",i]),(s=ce(A(()=>j(M(t.AppMode,new Ln(0,[]))?v(a):v(o),A(()=>{let l;return j(v(d("div",S(_([["className","bg-white justify-center items-start flex"],(l=c3(e,t,n),["children",C.Children.toArray(Array.from(l))])])))),A(()=>v(d("div",{className:"grow shrink basis-0"}))))})))),["children",C.Children.toArray(Array.from(s))])])))}function d3(e){let t;const n=e.body,r=e.currentStep,i=e.detail,s=e.dispatch;return d("div",S(_([["className","w-full flex-col justify-start items-center inline-flex bg-white"],(t=ce(A(()=>j(rr(i.Steps)===1?v(K()):QC().tag===0?v(t3(s,i,r)):v(f3(s,i,r)),A(()=>v(d("div",{className:"p-4 max-w-7xl mx-auto w-full",children:n})))))),["children",C.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=gt(e,1);return d(h3,t)}function $3(e){const t=gt(e,1);return d(m3,t)}function g3(e){return d("div",{className:"absolute top-0 bottom-0 left-0 right-0",children:C.Children.toArray([e])})}function w3(e,t){let n;return d("button",S(_([["type","button"],["data-testid","submit-btn"],["className",ge(" ",["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",C.Children.toArray(Array.from(n))])])))}function y3(e,t){let n;return d("button",S(_([["type","button"],["className",ge(" ",["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",C.Children.toArray(Array.from(n))])])))}function qs(e,t,n,r,i){let s,o,a,l,u,f,c,p,m,$,g,w,b,y,x;return g3(d("div",S(_([["className","w-full h-full md:pb-8 bg-white flex-col justify-start items-start md:items-center inline-flex"],(s=[d("div",S(_([(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",S(_([["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",B=>{i(new X(6,[{InjectedBenefits:r}]))}],(u=[$3([])],["children",C.Children.toArray(Array.from(u))])])))],["children",C.Children.toArray(Array.from(a))])]))),d("div",S(_([(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",S(_([["className","self-stretch h-64 md:h-56 flex-col justify-start items-center space-y-8 flex"],(p=[d("div",S(_([["className","self-stretch h-64 flex-col justify-start items-center space-y-6 flex"],(m=[d("div",S(_([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex"],($=[d("div",S(_([["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",S(_([["className","w-8 h-8 left-2 top-2 absolute"],(w=[d("div",S(_([["className","w-7 h-7 left-px top-0.5 absolute"],(b=[p3([["className","text-primary-base"]])],["children",C.Children.toArray(Array.from(b))])])))],["children",C.Children.toArray(Array.from(w))])])))],["children",C.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",C.Children.toArray(Array.from($))])]))),d("div",S(_([["className","self-stretch h-40 md:h-24 flex-col justify-start items-center space-y-3 md:space-y-4 flex"],(y=[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",C.Children.toArray(Array.from(y))])])))],["children",C.Children.toArray(Array.from(m))])])))],["children",C.Children.toArray(Array.from(p))])]))),d("div",S(_([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex cursor-pointer"],(x=[w3(r?"Submit and continue":"Submit",B=>{i(new X(7,[{InjectedBenefits:r}]))}),y3("Keep editing",B=>{i(new X(6,[{InjectedBenefits:r}]))})],["children",C.Children.toArray(Array.from(x))])])))],["children",C.Children.toArray(Array.from(c))])])))],["children",C.Children.toArray(Array.from(s))])]))))}function _3(e){let t,n;const r=e.dispatch,i=e.wd,s=i.IsBenefitsStepEnabled;return i.AppMode.tag===1?s?qs("Before you continue",(t=on(o=>o.CompanyName,i.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 ${ni(t)} and continue to access your workplace benefits`),"Once you submit, you’ll be unable to view or edit your details",!0,r):qs("Submit your details",(n=on(o=>o.CompanyName,i.Branding),n==null?"Submit to finalise your pay information to your employer":`Submit to finalise your pay information to ${ni(n)}`),"Once you submit, you’ll be unable to view or edit your details.",!1,r):s?qs("Before you continue","Submit to finalise your pay information to your employer and continue to access your workplace benefits","",!0,r):qs("Submit your details","Submit to finalise your pay information to your employer","",!1,r)}function Ys(e,t){let n;return d("div",S(_([["className",ge(" ",["animate-pulse w-full relative",e,t])],(n=[d("div",{className:ge(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",C.Children.toArray(Array.from(n))])])))}const v3=Ys("h-9","max-w-96"),Dh=Ys("h-6","max-w-96"),b3=Ys("h-80","max-w-96"),C3=Ys("h-10","max-w-48"),S3=(()=>{let e,t,n;const r=[d("div",S(_([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[d("div",S(_([["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:C.Children.toArray([Dh,Dh])})],["children",C.Children.toArray(Array.from(n))])]))),b3,C3],["children",C.Children.toArray(Array.from(t))])])))];return d(Se,{},...r)})();function k3(e){const t=e.accessToken,n=e.appMode;let r;const i=MC(t);r=el(()=>Ds(()=>i,(u,f)=>NC(t,n,u,f),(u,f)=>{}),void 0,[]);const s=r[0],o=r[1],a=(u,f)=>{let c;return d("div",S(_([["className","w-full min-h-[600px] mx-auto bg-white"],(c=ce(A(()=>j(Ce(p=>d("style",{children:[p]}),s.CssOverrides),A(()=>j(u,A(()=>is())))))),["children",C.Children.toArray(Array.from(c))])])))};Yo(()=>{bg()},[]),Yo(()=>{const u=s.CurrentView;let f;switch(u.tag){case 1:case 3:{f=2;break}case 2:{M(u.fields[0].Id,new ve(4,[]))?(f=0,u.fields[0]):M(u.fields[0].Id,new ve(5,[]))?(f=1,u.fields[0]):f=2;break}default:f=3}switch(f){case 0:break;case 1:break;case 2:{ol(T(ul(n)),2);break}}},[s.CurrentView]),ur(()=>{window.addEventListener("step-completion",u=>{o(new X(3,[u]))})});const l=s.CurrentView;switch(l.tag){case 1:return Ut(0),a([d(qC,{detail:l.fields[0],dispatch:o})]);case 2:{const u=l.fields[1],f=l.fields[0],c=B$(u.JourneyType);let p;const m=f.Id;return p=m.tag===4?d(Ah,{step:new ve(4,[]),props:[new Er(1,[t]),new Er(0,[`${Bn}/super-selection/backend/v1.0/`]),new Er(2,[c]),new YC(ul(n))],effect:()=>{o(new X(12,[])),Ut(2500)},children:[]}):d(Ah,{step:m,props:[new Er(1,[t]),new Er(0,[Bn]),new Er(2,[c]),new JC(rn(cr(s.ProcessInstanceId)))],effect:()=>{Ut(1500)},children:[]}),a([d(d3,{dispatch:o,detail:u,currentStep:f,body:p})])}case 3:return Ut(0),a([d(_3,{wd:l.fields[0],dispatch:o})]);case 4:return Ut(0),a([d("div",{className:"text-center mt-5",children:"We had an issue. Please try again shortly."})]);case 5:return Ar(Zo());case 6:{const u=l.fields[0],f=u.JourneyType,c=Ee(L_,u.Branding);return a(ce(A(()=>u.AppMode.tag===0?v(S3):f.tag===1?v(Ar(Hs(c,"information request"))):f.tag===2?v(Ar(ph())):f.tag===3||f.tag===4?v(Ar(ml())):v(Ar(Hs(c,"onboarding"))))))}default:return d("div",{children:["Please wait..."]})}}function x3(e){return{render:function(t){Mi(t,e)},unmount:function(){mo(e)}}}class I3 extends R{constructor(t,n,r){super(),this.model=t,this.render=n,this.equal=r}}class A3 extends st{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 i=new I3(n,()=>t(n,r),e);return d(A3,i)}const T3=(()=>{try{return Ho(_u.slice(void 0,2),511,!1,32)>=18}catch{return!1}})();function P3(e,t,n){let r;return c0(Q(T3?(r=x3(document.getElementById(t)),i=>s=>{r.render(e(o=>a=>o===a,f0(n),i,s))}):i=>s=>{Mi(e(o=>a=>o===a,f0(n),i,s),document.getElementById(t))}),n)}function O3(e,t){return P3((n,r,i,s)=>E3(Q(n),Q(r),i,s),e,t)}function M3(e,t){const n=encodeURIComponent(Wb(t)),r=encodeURIComponent(vv),i=encodeURIComponent(kv(new Ln(0,[])));return E.Delay(()=>{let s,o;const a=yi(Zt(new Nt(1,[`grant_type=authorization_code&code=${n}&client_id=${r}&redirect_uri=${i}`]),(s=Jt(new Dt(1,[]),Yt(`${wv}/connect/token`)),wi(js("application/x-www-form-urlencoded"),s))));return o=E.Bind(a,l=>E.Return(new h(0,[l]))),E.Bind(o,l=>{const u=l;if(u.tag===1)return E.Return(new h(1,[u.fields[0]]));{const f=u.fields[0];if(f.statusCode===200){const c=en(Q(tn(hl(),void 0)),f.responseText);return E.Return(c)}else return E.Return(new h(1,["Unexpected result from backend"]))}})})}function D3(){return new Cr(0,[])}function Il(e){return $s(e)}function N3(e,t){return E.Delay(()=>{let n;return E.Bind(hg([(n=M3(e,t),E.Bind(n,r=>E.Return(r))),E.Delay(()=>E.Bind(Il(2e3),()=>E.Return(void 0)))]),r=>E.Return(ee(0,r)))})}function R3(e,t,n){let r;switch(e.tag){case 1:switch(t.tag){case 1:return[t,Ms(i=>{je(i)},Il,1e3,()=>new Wn(1,[]))];case 2:return t.fields[0].tag===1?[t,H()]:[t,Ms(i=>{je(i)},Il,2e3,()=>new Wn(2,[]))];default:return[new Cr(2,[new h(1,["No current authenticated user"])]),H()]}case 2:return[t,(r=window.location.pathname,a0(i=>{ol(T(r),1)}))];default:if(e.fields[0].tag===1)return e.fields[0].fields[0].tag===1?[new Cr(2,[new h(1,[`SignIn failed: ${e.fields[0].fields[0].fields[0]}`])]),H()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new Cr(2,[new h(0,[e.fields[0].fields[0].fields[0]])]),e.fields[2]?H():T(i=>{i(new Wn(2,[]))})]);switch(t.tag){case 1:return[t,H()];default:return[new Cr(1,[]),bt(i=>{je(i)},i=>N3(i[0],i[1]),[n,e.fields[1]],i=>{const s=[new _e(1,[i]),e.fields[1],e.fields[2]];return new Wn(0,[s[0],s[1],s[2]])},i=>{const s=[new _e(1,[new h(1,[i.message])]),e.fields[1],e.fields[2]];return new Wn(0,[s[0],s[1],s[2]])})]}}}function B3(){const e=qu(window.sessionStorage.getItem("credentials"));if(e!=null){const t=e,n=en(Q(tn(hl(),void 0)),t);return n.tag===1?void 0:n.fields[0]}}function L3(e){let t;const n=["credentials",(t=new mh(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),Xt(0,Qt(hl(),void 0,void 0,void 0)(t)))];window.sessionStorage.setItem(n[0],n[1])}function Nh(e,t){return Xa(n=>new pn(3,[n]),T(n=>{n(new Wn(0,[new _e(0,[]),e,t]))}))}function Al(e){return Nh(e,!1)}function V3(e){return Nh(e,!0)}function F3(){const e=$h(x0(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new Un(t,D3(),n);switch(t.tag){case 4:case 1:case 2:case 5:case 6:return[r,H()];case 0:{const i=B3();let s;switch(n.tag){case 0:case 2:{s=1;break}default:i==null?s=1:s=0}switch(s){case 0:return[new Un(r.CurrentPage,new Cr(2,[new h(0,[i])]),r.AppMode),H()];default:return[r,T(o=>{o(new pn(5,[]))})]}}default:return[r,Al(t.fields[0])]}}function W3(e,t){switch(e.tag){case 1:{const n=e.fields[0];return[new Un(new W(3,[n]),t.Credentials,t.AppMode),Al(n)]}case 2:return[new Un(new W(4,[]),t.Credentials,t.AppMode),Xa(n=>new pn(3,[n]),T(n=>{n(new Wn(1,[]))}))];case 3:{const n=R3(e.fields[0],t.Credentials,t.AppMode),r=n[0];let i,s;switch(r.tag===2&&r.fields[0].tag===0&&t.AppMode.tag===1?(i=0,s=r.fields[0].fields[0]):i=1,i){case 0:{L3(s);break}}return[new Un(t.CurrentPage,r,t.AppMode),Xa(o=>new pn(3,[o]),n[1])]}case 4:return[t,V3(e.fields[0])];case 5:return[new Un(new W(6,[]),t.Credentials,t.AppMode),H()];default:{const n=$h(e.fields[0])[0],r=new Un(n,t.Credentials,t.AppMode);return n.tag===3?[r,Al(n.fields[0])]:[r,H()]}}}const Rh=d("div",S(_([["className","flex flex-col justify-center items-center pt-10"],(()=>{const e=[Zo()];return["children",C.Children.toArray(Array.from(e))]})()])));function j3(e){switch(e.CurrentPage.tag){case 3:case 4:case 2:return T("bg-white h-full");default:return le()}}function U3(e){switch(e.tag){case 1:return d("style",{children:[`
809
+ `))(c);return m=>p(m)}}else if(Vu(r))if(Ao(r)){const f=nr(c=>St(e,t,!1,c),Uu(r));return c=>p=>Array.isArray(p)?wt(m=>jm(ir(m)),fh(0,f,c,p)):new h(1,[[c,new L(0,["an array",p])]])}else switch(pe(Fu(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=St(e,t,!0,ee(0,Qe(r))),c=>p=>bb(Q(i),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return s=St(e,t,!1,ee(0,Qe(r))),c=>p=>lh(Q(s),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return o=St(e,t,!1,ee(0,Qe(r))),c=>p=>Cb(Q(o),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=St(e,t,!1,ee(0,Qe(r))),p=St(e,t,!1,ee(1,Qe(r)));let m;const $=_([g=>w=>Pb(Q(c),Q(p),g,w),(a=Ib(Q(c),Q(p)),g=>w=>lh(Q(a),g,w))]);return m=g=>w=>Sb($,g,w),g=>w=>xb(Ab,Q(m),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=St(e,t,!1,ee(0,Qe(r)));return p=>m=>{const $=uh(Q(c),p,m);return $.tag===0?new h(0,[Eb($.fields[0])]):new h(1,[$.fields[0]])}}default:return hh(e,t,n,r)}else switch(l){case"System.Boolean":return f=>c=>$b(f,c);case"Microsoft.FSharp.Core.Unit":return f=>c=>pb(f,c);case"System.String":return f=>c=>eh(f,c);case"System.Char":return f=>c=>hb(f,c);case"System.SByte":return th;case"System.Byte":return nh;case"System.Int16":return rh;case"System.UInt16":return ih;case"System.Int32":return sh;case"System.UInt32":return oh;case"System.Double":return f=>c=>gb(f,c);case"System.Single":return f=>c=>wb(f,c);case"System.DateTime":return f=>c=>yb(f,c);case"System.DateTimeOffset":return f=>c=>_b(f,c);case"System.TimeSpan":return f=>c=>vb(f,c);case"System.Guid":return f=>c=>mb(f,c);case"System.Object":return f=>c=>new h(0,[c]);default:return hh(e,t,n,r)}else{const f=u;return c=>p=>f.contents(c)(p)}}function Ob(e){return fl({Compare:Bi})}function tn(e,t,n){const r=be(t,new Ne(0,[]));return St(Ob(),r,!1,e)}class Mb{constructor(t){this.magicLink=t,this.backendUrl=`${Bn}/workflows/public-backend/invites/${this.magicLink.InviteToken}`}}function Db(e){return new Mb(e)}function Nb(e){return E.Delay(()=>{let t,n;const r=bi(e,(t=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/magic-link/validate`)),Zt(new Nt(1,[(n=new w0(e.magicLink.MagicCode),Xt(0,Qt(V_(),new Ne(1,[]),void 0,void 0)(n)))]),t)));return E.Bind(r,i=>{const s=i;if(s.tag===1)return E.Return(new h(1,[s.fields[0]]));{let o;const a=s.fields[0];return o=a.statusCode===200?en(Q(tn(G_(),new Ne(1,[]))),a.responseText):new h(1,["Unexpected response from backend"]),E.Return(o)}})})}function Rb(e,t){return E.Delay(()=>{let n,r;const i=bi(e,(n=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/magic-link/reissue`)),Zt(new Nt(1,[(r=new y0(e.magicLink.MagicCode,t),Xt(0,Qt(q_(),new Ne(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(i,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(Q(tn(X_(),new Ne(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),E.Return(a)}})})}function Bb(e,t){return E.Delay(()=>{let n,r;const i=bi(e,(n=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/one-time-code/issue`)),Zt(new Nt(1,[(r=new _0(e.magicLink.MagicCode,t),Xt(0,Qt(K_(),new Ne(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(i,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(Q(tn(n2(),new Ne(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),E.Return(a)}})})}function Lb(e,t){return E.Delay(()=>{let n,r;const i=bi(e,(n=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/one-time-code/validate`)),Zt(new Nt(1,[(r=new v0(t),Xt(0,Qt(r2(),new Ne(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(i,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(Q(tn(a2(),new Ne(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),E.Return(a)}})})}function Vb(e,t){return E.Delay(()=>{let n,r;const i=bi(e,(n=Jt(new Dt(1,[]),Yt(`${e.backendUrl}/progress`)),Zt(new Nt(1,[(r=new b0(e.magicLink.MagicCode,t),Xt(0,Qt(l2(),new Ne(1,[]),void 0,void 0)(r)))]),n)));return E.Bind(i,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{let a;const l=o.fields[0];return a=l.statusCode===200?en(Q(tn(d2(),new Ne(1,[]))),l.responseText):new h(1,["Unexpected response from backend"]),E.Return(a)}})})}function bi(e,t){return E.Delay(()=>{let n;const r=yi(t);return n=E.Bind(r,i=>E.Return(new h(0,[i]))),E.Bind(n,i=>{const s=i;if(s.tag===1)return E.Return(new h(1,[s.fields[0]]));{const o=s.fields[0];if(o.statusCode===429||o.statusCode>=500){let a;const l=$s(2e3);return a=E.Bind(l,u=>E.Return(new h(0,[u]))),E.Bind(a,u=>{const f=u;if(f.tag===1)return E.Return(new h(1,[f.fields[0]]));{const c=yi(t);return E.Bind(c,p=>E.Return(new h(0,[p])))}})}else return E.Return(new h(0,[o]))}})})}class Fb extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["AuthCode"]}}function dl(e){return new Fb(e)}function Wb(e){return e.fields[0]}class mh extends R{constructor(t,n,r,i,s,o){super(),this.id_token=t,this.access_token=n,this.expires_in=r,this.refresh_token=i,this.scope=s,this.token_type=o}}function hl(){return ne("Workflows.UI.Auth.Types.Credentials",[],mh,()=>[["id_token",z],["access_token",z],["expires_in",Rm],["refresh_token",J(z)],["scope",z],["token_type",z]])}let Wn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["SignIn","SignInWithCurrentAuth","NavigateToOnboarding"]}};function jb(){return[new il(le(),new G(0,[]),void 0,void 0,new $0(0,[new g0(void 0)])),T(e=>{e(new U(1,[new _e(0,[])]))})]}function Ub(e,t,n,r,i){let s,o,a,l,u,f,c;const p=Db(e);switch(r.tag){case 1:if(r.fields[0].tag===1){if(r.fields[0].fields[0].tag===1)return[i,T(m=>{m(new U(0,[new G(6,[new re(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 U(0,[new G(1,[g.FirstName,new rl(1,[])])]):new U(0,[new G(1,[g.FirstName,new rl(0,[])])]):w?new U(3,[!1,new _e(0,[])]):new U(0,[new G(4,[])]);break}case 4:{m=new U(0,[new G(5,[])]);break}case 2:case 7:{m=new U(0,[new G(6,[new re(2,[])])]);break}case 3:{m=new U(0,[new G(6,[new re(4,[])])]);break}case 5:{m=new U(0,[new G(6,[new re(3,[])])]);break}case 6:{m=new U(0,[new G(6,[new re(1,[])])]);break}default:{const g=$.fields[0];g.IsInitialMagicLinkUsed?(n(dl(g.AuthCode)),m=new U(0,[new G(1,[g.FirstName,new rl(2,[])])])):m=new U(6,[g.AuthCode])}}return[new il(r.fields[0].fields[0].fields[0].CssOverrides,i.Page,j_(r.fields[0].fields[0].fields[0].Outcome),z_(r.fields[0].fields[0].fields[0].Outcome),be(U_(r.fields[0].fields[0].fields[0].Outcome),i.JourneyType)),T(g=>{g(m)})]}}else return[i,bt(m=>{je(m)},()=>Nb(p),void 0,m=>new U(1,[new _e(1,[m])]),m=>new U(1,[new _e(1,[new h(1,[m.message])])]))];case 2:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[i,T(m=>{m(new U(0,[new G(6,[new re(5,[])])]))})]:[i,(s=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 re(2,[])]):o.tag===5?new G(6,[new re(2,[])]):o.tag===3?new G(6,[new re(4,[])]):o.tag===4?new G(6,[new re(1,[])]):o.tag===6?new G(5,[]):o.tag===7?new G(6,[new re(3,[])]):new G(2,[o.fields[0].MaskedEmail]))]),T(m=>{m(s)}))]:[i,bt(m=>{je(m)},m=>Rb(p,m),r.fields[0],m=>new U(2,[r.fields[0],new _e(1,[m])]),m=>new U(2,[r.fields[0],new _e(1,[new h(1,[m.message])])]))];case 3:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[i,T(m=>{m(new U(0,[new G(6,[new re(5,[])])]))})]:[i,(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 re(0,[])]):l.tag===3?r.fields[0]?i.Page:new G(3,[l.fields[0].MaskedPhone]):l.tag===4?new G(6,[new re(2,[])]):l.tag===7?new G(6,[new re(2,[])]):l.tag===5?new G(6,[new re(4,[])]):l.tag===6?new G(6,[new re(1,[])]):l.tag===8?new G(5,[]):l.tag===9?new G(6,[new re(3,[])]):r.fields[0]?i.Page:new G(3,[l.fields[0].MaskedPhone]))]),T(m=>{m(a)}))]:[i,bt(m=>{je(m)},m=>Bb(p,m),r.fields[0],m=>new U(3,[r.fields[0],new _e(1,[m])]),m=>new U(3,[r.fields[0],new _e(1,[new h(1,[m.message])])]))];case 4:return r.fields[2].tag===1?r.fields[2].fields[0].tag===1?[i,T(m=>{m(new U(0,[new G(6,[new re(5,[])])]))})]:[i,(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}),H()):T(m=>{m(new U(0,[new G(6,[new re(0,[])])]))}):u.tag===5?T(m=>{m(new U(0,[new G(6,[new re(0,[])])]))}):u.tag===2?(r.fields[1]({}),H()):u.tag===3?(r.fields[1]({}),H()):u.tag===4?(r.fields[1]({}),H()):u.tag===6?T(m=>{m(new U(0,[new G(6,[new re(4,[])])]))}):u.tag===7?T(m=>{m(new U(0,[new G(6,[new re(1,[])])]))}):u.tag===8?T(m=>{m(new U(0,[new G(6,[new re(2,[])])]))}):u.tag===9?T(m=>{m(new U(0,[new G(5,[])]))}):u.tag===10?T(m=>{m(new U(0,[new G(6,[new re(0,[])])]))}):T(m=>{m(new U(6,[u.fields[0].AuthCode]))}))]:[i,bt(m=>{je(m)},m=>Lb(p,m),r.fields[0],m=>new U(4,[r.fields[0],r.fields[1],new _e(1,[m])]),m=>new U(4,[r.fields[0],r.fields[1],new _e(1,[new h(1,[m.message])])]))];case 5:return r.fields[1].tag===1?r.fields[1].fields[0].tag===1?[i,T(m=>{m(new U(0,[new G(6,[new re(5,[])])]))})]:[i,(f=(c=r.fields[1].fields[0].fields[0].Outcome,c.tag===1?new U(0,[new G(6,[new re(2,[])])]):c.tag===4?new U(0,[new G(6,[new re(2,[])])]):c.tag===2?new U(0,[new G(6,[new re(4,[])])]):c.tag===3?new U(0,[new G(6,[new re(1,[])])]):c.tag===5?new U(0,[new G(5,[])]):c.tag===6?new U(0,[new G(6,[new re(0,[])])]):r.fields[0].tag===1?new U(3,[!1,new _e(0,[])]):r.fields[0].tag===2?new U(6,[void 0]):new U(2,[!1,new _e(0,[])])),T(m=>{m(f)}))]:[i,bt(m=>{je(m)},m=>Vb(p,m),r.fields[0].tag===1?!1:r.fields[0].tag===2,m=>new U(5,[r.fields[0],new _e(1,[m])]),m=>new U(5,[r.fields[0],new _e(1,[new h(1,[m.message])])]))];case 6:return t(Ee(dl,r.fields[0])),[i,H()];default:return[new il(i.CssOverrides,r.fields[0],i.Branding,i.ProcessConfigId,i.JourneyType),H()]}}function zb(e,t,n,r,i){const s=os(!1),o=Ee(f=>d("span",{className:"font-semibold",children:`${f}`}),on(f=>f.CompanyName,t)),a=be(Ee(f=>f===sa(fs.Id),n),!1),l=r.tag===1?`Hi, ${e}`:r.tag===3?`Hi, ${e}`:r.tag===4?`Hi, ${e}`:r.tag===2?a?`Hi, ${e}`:`${e}, join your workplace benefits program`:`Welcome, ${e}`,u=ce(A(()=>{let f,c;return j((f=r,f.tag===1?v(Kr([])):f.tag===3?v(Kr([])):f.tag===4?v(Kr([])):f.tag===2?v(a?Kr([]):d("div",S(_([["className","sm:w-[700px]"],(c=[d("img",{src:"/workflows/app/app-invite/welcome.png"})],["children",C.Children.toArray(Array.from(c))])])))):v(Kr([]))),A(()=>j(v(un(l)),A(()=>{let p;return j(v(d("div",S(_([["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"],(p=ce(A(()=>{let m;return r.tag===1?j(v(be(o,d("span",{children:["Your employer"]}))),A(()=>j(v(d("span",{children:[" has requested additional information from you."]})),A(()=>v(d("p",{children:["Sign in to complete your information request."]})))))):r.tag===3?v(d("p",{children:["Sign in to set up your benefits."]})):r.tag===4?v(d("p",{children:["Sign in to set up your benefits."]})):r.tag===2?v(a?d("p",{children:["Sign in to set up your benefits."]}):(m="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:[m]}))):j(v(d("p",{children:["Congratulations on the new role!"]})),A(()=>{let $;return v(($=_([d("span",{children:["Sign in to complete your onboarding with "]}),be(o,d("span",{children:["your employer"]})),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from($))})))}))})),["children",C.Children.toArray(Array.from(p))])])))),A(()=>v(Go(void 0,()=>{s[1](!0),i()},s[0],[d("span",{children:[r.tag===1||r.tag===3||r.tag===4?"Sign in":r.tag===2?a?"Sign in":"Continue":"Sign in"]})]))))}))))}));return d(Se,{},...u)}function Hb(e,t){let n,r,i,s;const o=[d1([]),un("Check your inbox"),d("div",S(_([(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=[(i=_([d("span",{children:["We’ve sent a temporary access link to "]}),d("span",{className:"font-semibold",children:dc(e,"*","•")}),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from(i))})),d("p",{children:["Click the link to confirm your email address and sign in. The link is valid for 5 minutes."]})],["children",C.Children.toArray(Array.from(r))])]))),d("div",S(_([["className","text-sm text-gray-900 whitespace-pre-wrap mt-10 sm:mt-14 space-y-4 leading-5"],(s=ce(A(()=>j(v(d("p",{children:["Can’t see the email? Check your spam folder."]})),A(()=>{const a=t;return a==null?v(K()):v(Qr(a))})))),["children",C.Children.toArray(Array.from(s))])])))];return d(Se,{},...o)}let nn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ResendTimerTick","SignIn","IncorrectOneTimeCodeCallback","SetCodeInvalid","SetCodeInputValue","SetReissueLinkInProgress"]}},jn=class extends R{constructor(t,n,r,i,s,o){super(),this.AttemptsRemaining=t,this.CodeInvalid=n,this.CodeInputValue=r,this.ResendTimer=i,this.SignInInProgress=s,this.ReissueLinkInProgress=o}};function Gb(){return[new jn(void 0,!1,"",void 0,!1,!1),H()]}function qb(e,t,n){let r;switch(t.tag){case 1:{const i=Mo(ta,n.CodeInputValue);return i.length===6?(e([Ho(i,511,!1,32),t.fields[0]]),[new jn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,!0,n.ReissueLinkInProgress),H()]):[n,T(s=>{s(new nn(3,[!0]))})]}case 2:return[new jn(t.fields[0],n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),T(i=>{i(new nn(3,[!0]))})];case 3:{const i=t.fields[0];return[new jn(n.AttemptsRemaining,i,i?"":n.CodeInputValue,n.ResendTimer,!1,n.ReissueLinkInProgress),H()]}case 4:return[new jn(n.AttemptsRemaining,n.CodeInvalid,t.fields[0],n.ResendTimer,n.SignInInProgress,n.ReissueLinkInProgress),H()];case 5:return[new jn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,n.ResendTimer,n.SignInInProgress,!0),H()];default:{const i=Ms(a=>{je(a)},()=>E.Delay(()=>E.Bind($s(1e3),()=>E.Return(void 0))),void 0,()=>new nn(0,[]));let s;const o=n.ResendTimer;return s=o!=null?o>0?(r=o|0,[r-1,i]):[void 0,H()]:[20,i],[new jn(n.AttemptsRemaining,n.CodeInvalid,n.CodeInputValue,s[0],n.SignInInProgress,n.ReissueLinkInProgress),s[1]]}}}function zs(e){e.target.id==="one-time-code-input"||e.key!=="Enter"&&document.getElementById("one-time-code-input").focus()}function Yb(){document.addEventListener("keypress",e=>{zs(e)}),document.addEventListener("paste",e=>{zs(e)})}const Jb={Dispose(){document.removeEventListener("keypress",e=>{zs(e)}),document.removeEventListener("paste",e=>{zs(e)})}};function Zb(e){const t=e.reissueLink,n=e.reissueOneTimeCode,r=e.validateOneTimeCode,i=e.maskedPhone,s=el(()=>Ds(Gb,(f,c)=>qb(r,f,c),(f,c)=>{}),void 0,void 0),o=s[0],a=s[1];qo(()=>(Yb(),Jb),new Array(0));const l=()=>{a(new nn(1,[f=>{a(new nn(2,[f.AttemptsRemaining]))}]))},u=ce(A(()=>j(v(f1([])),A(()=>j(v(un("Enter your security code")),A(()=>{let f,c,p;return j(v(d("div",S(_([(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=_([d("span",{children:["We’ve sent a security code to your mobile number ending in •••"]}),d("span",{className:"font-semibold",children:Mo(ta,i)}),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from(p))})),d("p",{children:["Enter your code to sign in."]})],["children",C.Children.toArray(Array.from(c))])])))),A(()=>{let m;return j(v(d("div",S(_([["className","mt-8 flex relative"],(m=ce(A(()=>{let $;return j(v(d("input",S(_([["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(ta,g.target.value);a(new nn(4,[w])),w.length===6&&l()}],($=o.CodeInputValue,["ref",g=>{g!=null&&!M(g.value,$)&&(g.value=$)}])])))),A(()=>Cc(g=>{const w=Ee(y=>y,pc(g,o.CodeInputValue.split(""))),b=Ee(y=>y,pc(g-1,o.CodeInputValue.split("")));return v(d("div",{key:g,className:ge(" ",ce(A(()=>j(v("flex justify-center items-center text-xl w-10 h-12 rounded-md ring-inset ring-1 transition ease-in"),A(()=>j(o.CodeInvalid?v("ring-red-600"):v("ring-gray-400"),A(()=>j(v(g===2?"mr-4":g===5?"":"mr-2"),A(()=>w!=null||b!=null||g===0?v("peer-focus:ring-2 peer-focus:ring-primary-base"):is()))))))))),children:be(w,"")}))},l0(0,1,5))))})),["children",C.Children.toArray(Array.from(m))])])))),A(()=>{let $;return j(o.CodeInvalid?v(d("p",S(_([["className","w-[288px] text-red-600 mt-2 leading-5"],($=ce(A(()=>j(v("The code you entered is invalid"),A(()=>{let g;return j((g=o.AttemptsRemaining,g==null?v(K()):v(`, you have ${g} attempts remaining`)),A(()=>j(v("."),A(()=>o.AttemptsRemaining==null?v(" Try again or click on the link below to resend the code."):v(K())))))})))),["children",C.Children.toArray(Array.from($))])])))):is(),A(()=>j(v(Go("sm:w-[288px] mt-6",l,o.SignInInProgress,[d("span",{children:["Continue"]})])),A(()=>{let g;return v(d("div",S(_([["className","mt-8 sm:mt-14 text-sm text-gray-900 whitespace-pre-wrap leading-5 space-y-4"],(g=ce(A(()=>{let w,b;return j((w=o.ResendTimer,w!=null?v(d("p",{children:[`Message sent. Wait ${w} seconds before trying again.`]})):v((b=_([d("span",{children:["Didn’t get the code? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:y=>{n(),a(new nn(0,[]))},children:"Resend message"}),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from(b))})))),A(()=>{let y;return v((y=_([d("span",{children:["Still having trouble? "]}),d("span",{className:"text-primary-base underline underline-offset-3 cursor-pointer",onClick:x=>{o.ReissueLinkInProgress||(a(new nn(5,[])),t())},children:"Sign in with email instead"}),d("span",{children:["."]})]),d("p",{children:C.Children.toArray(Array.from(y))})))}))})),["children",C.Children.toArray(Array.from(g))])]))))}))))}))}))}))))));return d(Se,{},...u)}function Xb(e){const t=e.reissueLink,n=e.brandingOption,r=os(!1),i=ce(A(()=>j(v(h1([])),A(()=>j(v(un("Access link timed-out")),A(()=>{let s,o;return j(v(d("div",S(_([(s="text-base sm:text-lg text-gray-900 whitespace-pre-wrap leading-6 sm:leading-8 space-y-3 sm:space-y-4",["className",s]),(o=[d("p",{children:["Your 5-minute temporary access link has timed-out."]}),d("p",{children:["Get a new link to continue."]})],["children",C.Children.toArray(Array.from(o))])])))),A(()=>j(v(Go("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?v(K()):v(Qr(a))}))))}))))));return d(Se,{},...i)}function Hs(e,t){const n=be(on(i=>i.CompanyName,e),"your employer"),r=ce(A(()=>j(v(Uo([])),A(()=>j(v(un("You’re all done")),A(()=>{let i;return j(v(d("div",S(_([["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"],(i=[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",C.Children.toArray(Array.from(i))])])))),A(()=>{const s=e;return s==null?v(K()):v(Qr(s))}))}))))));return d(Se,{},...r)}function ph(){let e,t,n,r,i,s,o,a,l;return d("div",S(_([["className","flex lg:min-w-[1024px] xl:min-w-[1280px] max-w-screen-xl justify-center"],(e=[d("div",S(_([["className","flex flex-col justify-center items-center"],(t=[Uo([]),un("You’re all set!"),d("div",S(_([["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",S(_([["className","hidden lg:flex justify-center lg:py-8"],(r=[d("img",{className:"h-40",src:"/workflows/app/app-invite/qr.png"})],["children",C.Children.toArray(Array.from(r))])]))),d("div",S(_([["className","flex items-center justify-center lg:hidden"],(i=[d("img",{className:"w-[280px]",src:"/workflows/app/app-invite/completed.png"})],["children",C.Children.toArray(Array.from(i))])]))),d("p",S(_([["className","font-semibold pt-5 lg:pt-0"],(s=[d("span",{className:"lg:hidden",children:"Download the Flare App"}),d("span",{className:"hidden lg:block",children:"Scan to download"})],["children",C.Children.toArray(Array.from(s))])]))),d("p",{children:"Available on iOS and Android"})],["children",C.Children.toArray(Array.from(n))])]))),d("div",S(_([["className","flex space-x-6"],(o=[d("a",S(_([["href","https://apps.apple.com/au/app/flare/id1587276031"],["target","_blank"],["rel","noreferrer"],(a=[d("img",{className:"h-10 cursor-pointer",src:"/workflows/app/app-invite/app-store.png"})],["children",C.Children.toArray(Array.from(a))])]))),d("a",S(_([["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",C.Children.toArray(Array.from(l))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(t))])]))),d("img",{className:"hidden lg:block w-[640px]",src:"/workflows/app/app-invite/completed.png"})],["children",C.Children.toArray(Array.from(e))])])))}function ml(){let e;const t=[Uo([]),un("You’re all done"),d("div",S(_([["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"],(e=[d("p",{children:["You’ve finished setting up your benefits."]}),d("p",{children:["You can now close this window."]})],["children",C.Children.toArray(Array.from(e))])]))),Qr(new nl("Flare",void 0,new tl("support@flarehr.com",void 0)))];return d(Se,{},...t)}function Kb(e){const t=e.startAuthCodeExchangeBackground,n=e.navigateAuthCodeExchangePage,r=e.magicLink,i=el(()=>Ds(jb,(l,u)=>Ub(r,n,t,l,u),(l,u)=>{}),void 0,void 0),s=i[0],o=i[1],a=ce(A(()=>j(Ce(l=>d("style",{children:[l]}),s.CssOverrides),A(()=>{const l=s.Page;switch(l.tag){case 1:return v(zb(l.fields[0],s.Branding,s.ProcessConfigId,s.JourneyType,()=>{o(new U(5,[l.fields[1],new _e(0,[])]))}));case 2:return v(Hb(l.fields[0],s.Branding));case 3:return v(d(Zb,{maskedPhone:l.fields[0],validateOneTimeCode:u=>{o(new U(4,[u[0],u[1],new _e(0,[])]))},reissueOneTimeCode:()=>{o(new U(3,[!0,new _e(0,[])]))},reissueLink:()=>{o(new U(2,[!0,new _e(0,[])]))}}));case 4:return v(d(Xb,{brandingOption:Gi(s.Branding),reissueLink:()=>{o(new U(2,[!1,new _e(0,[])]))}}));case 5:switch(s.JourneyType.tag){case 1:return v(Hs(s.Branding,"information request"));case 2:return v(ph());case 3:case 4:return v(ml());default:return v(Hs(s.Branding,"onboarding"))}case 6:return l.fields[0].tag===1?v(L1()):l.fields[0].tag===0?v(d(B1,{reissueMagicLink:()=>{o(new U(2,[!0,new _e(0,[])]))}})):l.fields[0].tag===5?v(Zo()):l.fields[0].tag===2?v(Ac(s.Branding)):l.fields[0].tag===3?v(V1(s.Branding)):v(F1(s.Branding));default:return v(b1)}}))));return d(Se,{},...a)}function Qb(e){let t,n,r;const i=e.startAuthCodeExchangeBackground,s=e.navigateAuthCodeExchangePage,o=e.inviteCode;return ur(()=>{Ut(0)}),d("div",S(_([(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",S(_([["className","flex flex-col items-center justify-center sm:max-w-[640px]"],(r=ce(A(()=>{const a=m2(o);return a.tag===0?v(d(Kb,{magicLink:a.fields[0],navigateAuthCodeExchangePage:s,startAuthCodeExchangeBackground:i})):v(Ac(void 0))})),["children",C.Children.toArray(Array.from(r))])]))),Ko],["children",C.Children.toArray(Array.from(n))])])))}class W extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Home","LegacyInvite","InviteV2","AuthCodeExchange","AuthCodeExchangeWithCurrentAuth","NotFound","LoggedOut"]}}function eC(e){let t,n,r;if(O(e))t=2;else if(k(e)==="workflows")if(O(P(e)))t=2;else switch(k(P(e))){case"app":{t=0,n=P(P(e));break}case"embed":{O(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 na(1,[n]);case 1:return new na(0,[r]);default:return new na(2,[void 0])}}function tC(e){const t=mn(e);if(t!=null)return Ee(r=>r[1],Jr(r=>r[0]==="code",t))}function $h(e){let t,n,r,i,s,o,a;const l=eC(e);switch(l.tag){case 1:return[O(l.fields[0])?O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):(t=mn(k(l.fields[0])),t!=null?O(t)?O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):k(t)[0]==="invite"?O(P(t))?O(P(l.fields[0]))?(n=k(t)[1],r=Fc(n),r.tag===1?new W(5,[]):new W(1,[])):O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[])):O(l.fields[0])?new W(0,[]):(i=mn(k(l.fields[0])),i!=null?O(i)?new W(0,[]):k(i)[0]==="invite-code"?O(P(i))?O(P(l.fields[0]))?(s=k(i)[1],new W(2,[s])):new W(0,[]):new W(0,[]):new W(0,[]):new W(0,[]))),new Ln(1,[])];case 2:return[new W(5,[]),new Ln(2,[])];default:return[O(l.fields[0])?new W(0,[]):O(P(l.fields[0]))?new W(0,[]):(o=tC(k(P(l.fields[0]))),o!=null?O(P(P(l.fields[0])))?(a=o,new W(3,[dl(a)])):new W(0,[]):new W(0,[])),new Ln(0,[])]}}let Un=class extends R{constructor(t,n,r){super(),this.CurrentPage=t,this.Credentials=n,this.AppMode=r}},pn=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UrlChanged","NavigateAuthCodeExchangePage","NavigateAuthCodeExchangePageWithCurrentAuth","AuthMsg","StartAuthCodeExchangeBackground","DisplayLoggedOut"]}};function nC(){let e;return ur(()=>{Ut(0)}),d("div",S(_([["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",C.Children.toArray(Array.from(e))])])))}class Ci extends Error{}Ci.prototype.name="InvalidTokenError";function rC(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 iC(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 rC(t)}catch{return atob(t)}}function sC(e,t){if(typeof e!="string")throw new Ci("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 Ci(`Invalid token specified: missing part #${n+1}`);let i;try{i=iC(r)}catch(s){throw new Ci(`Invalid token specified: invalid base64 for part #${n+1} (${s.message})`)}try{return JSON.parse(i)}catch(s){throw new Ci(`Invalid token specified: invalid json for part #${n+1} (${s.message})`)}}class $n extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}class gh extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}class ve extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PersonalDetails","EmergencyContacts","Bank","Tax","Super","WorkplaceLinking","BenefitsOnboarding","WorkplacePolicies","DiscreteBenefits"]}}class Si extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Hidden","Incomplete","Complete"]}}function pl(e){return e?new Si(1,[]):new Si(0,[])}class se extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Disabled","Active","Locked","CompletedAndDisabled"]}}function wh(e){return M(e,Ue)?new h(0,[new ve(0,[])]):M(e,ut)?new h(0,[new ve(1,[])]):M(e,ct)?new h(0,[new ve(2,[])]):M(e,ft)?new h(0,[new ve(3,[])]):M(e,Pe)?new h(0,[new ve(4,[])]):M(e,In)?new h(0,[new ve(5,[])]):M(e,jt)?new h(0,[new ve(7,[])]):M(e,An)?new h(0,[new ve(8,[])]):new h(1,["Invalid step"])}function oC(e){switch(e.tag){case 1:return ut;case 2:return ct;case 3:return ft;case 4:return Pe;case 5:return In;case 6:return us;case 7:return jt;case 8:return An;default:return Ue}}function yh(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 In.DisplayName;case 6:return"Workplace benefits";case 7:return"Fair Work";case 8:return An.DisplayName;default:return"Employee profile"}}function _h(e){switch(e.tag){case 1:return"Contacts";case 2:return"Bank";case 3:return"Tax";case 4:return"Super";case 5:return In.DisplayName;case 6:return"Benefits";case 7:return"Fair Work";case 8:return An.DisplayName;default:return"Profile"}}function vh(e){switch(e.tag){case 1:return ut;case 2:return ct;case 3:return ft;case 4:return Pe;case 5:return In;case 6:return us;case 7:return jt;case 8:return An;default:return Ue}}function aC(e){switch(e.tag){case 5:case 6:case 8:return!1;default:return!0}}function lC(e,t){return e.tag===0?t:$t(t,T(new ve(6,[])))}class Ir extends R{constructor(t,n){super(),this.Id=t,this.Status=n}}function zn(e){return yh(e.Id)}function uC(e){return _h(e.Id)}function cC(e){return vh(e.Id).ComponentTagName}function fC(e){return vh(e.Id).Id}function dC(e){return aC(e.Id)}function hC(e){if(e.Id.tag===0)return e}function mC(e){if(e.Id.tag===1)return e}function pC(e){return Jr(t=>M(t.Status,new se(2,[])),e)}function $C(e){return((n,r)=>{e:for(;;){const i=n,s=r;if(O(i))return s;if(M(k(i).Status,new se(2,[])))return Ro([s,T(k(i)),P(i)]);if(M(k(i).Status,new se(1,[])))return Ro([s,T(new Ir(k(i).Id,new se(2,[]))),P(i)]);n=P(i),r=$t(s,T(k(i)));continue e}})(e,le())}function $l(e,t){const n=be(e.PaySetupComplete,!1);let r;const i=Sr(Xe(wh,e.Configuration.Steps));if(r=i.tag===1?new h(1,[i.fields[0]]):new h(0,[lC(t,i.fields[0])]),r.tag===1)return new h(1,[r.fields[0]]);{const s=Sr(Xe(wh,V$(e)));return s.tag===1?new h(1,[s.fields[0]]):new h(0,[$C(Xe(o=>n&&dC(o)&&M(o.Status,new se(0,[]))?new Ir(o.Id,new se(4,[])):o,Xe(o=>yc(a=>M(a,o.Id),s.fields[0])?new Ir(o.Id,new se(0,[])):o,Xe(o=>M(o.Id,new ve(6,[]))&&!n?new Ir(o.Id,new se(3,[])):o,Xe(o=>new Ir(o,new se(1,[])),r.fields[0])))))])}}class bh extends R{constructor(t,n,r,i,s,o,a,l,u,f,c){super(),this.AppMode=t,this.JourneyType=n,this.Branding=r,this.IsBenefitsStepEnabled=i,this.IsPaySetupCompatible=s,this.IsPaySetupComplete=o,this.Status=a,this.ProcessInstanceId=l,this.InstanceName=u,this.ProcessConfigId=f,this.Steps=c}}function Ch(e){switch(e.Status.tag){case 3:return!1;case 0:return!1;case 1:return be(e.PaySetupComplete,!1);default:return!0}}function gC(e,t){let n;const r=[t.ProcessInstance,pl(t.IsBenefitsEnabled)];return n=$l(r[0],r[1]),n.tag===1?new h(1,[n.fields[0]]):new h(0,[new bh(e,t.ProcessInstance.JourneyType,t.Branding,t.IsBenefitsEnabled,x$(t.ProcessInstance.Configuration),Ch(t.ProcessInstance),t.ProcessInstance.Status,t.ProcessInstance.Id,t.ProcessInstance.Configuration.Name,t.ProcessInstance.Configuration.Id,n.fields[0])])}function wC(e,t){let n;const r=[t,pl(e.IsBenefitsStepEnabled)];return n=$l(r[0],r[1]),n.tag===1?new h(1,[n.fields[0]]):new h(0,[new bh(e.AppMode,e.JourneyType,e.Branding,e.IsBenefitsStepEnabled,e.IsPaySetupCompatible,Ch(t),t.Status,e.ProcessInstanceId,e.InstanceName,e.ProcessConfigId,n.fields[0])])}function gl(e,t){const n=e;return n.tag===1?new h(1,[n.fields[0]]):wC(t,n.fields[0])}let me=class extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Initialising","StepList","Step","PaySetupCompleteConfirmation","Oops","ErrorPage","AllDone"]}};function Hn(e){switch(e.tag){case 1:return e.fields[0];case 2:return e.fields[1];case 3:return e.fields[0];case 4:return;case 5:return;case 6:return e.fields[0];default:return}}class X extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Activate","ChangeCurrentView","CloseStepListView","StepCompletionEventCallback","CompleteStep","ConfirmPaySetupComplete","ResumePaySetup","CompletePaySetup","PaySetupCompleted","CompleteWorkflow","ShowAllDoneAndNotifyComplete","SendAnalyticsEvent","AppendTrailingSlashToUrl","CompleteBenefitsOnboardingStep","CommandSuccess","CommandFailure"]}}class Ae extends R{constructor(t,n,r,i,s){super(),this.ProfileId=t,this.ProcessInstanceId=n,this.CurrentView=r,this.CssOverrides=i,this.BenefitsOnboarding=s}}function wl(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 yl(e){if(e<640)return ke(void 0)}function _l(e){return((n,r)=>{e:for(;;){const i=n,s=r;let o,a,l,u;if(O(i))o=0;else{const f=hC(k(i));if(f!=null)if(O(P(i)))o=2;else{const c=mC(k(P(i)));c!=null?(o=1,a=c,l=f,u=P(P(i))):o=2}else o=2}switch(o){case 0:return s;case 1:{n=u,r=$t(s,T(M(a.Status,new se(2,[]))?new Ir(l.Id,new se(2,[])):l));continue e}default:if(O(i))throw new Error("Match failure");n=P(i),r=$t(s,T(k(i)));continue e}}})(e,le())}function Ar(e){let t,n;return d("div",S(_([(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:C.Children.toArray([e])}),Ko],["children",C.Children.toArray(Array.from(n))])])))}function yC(e,t){let n,r;const i=e.tag===2?e.fields[0]:void 0;let s;if(i==null)s=void 0;else{const f=i;s=on(c=>Dp(c+1,t.Steps),ns(c=>M(f,c),t.Steps))}const o=Ee(f=>new X(1,[new me(2,[f,t])]),Jr(f=>M(f.Status,new se(2,[])),t.Steps));let a,l,u;switch(i!=null&&s!=null?(r=s,M(i.Status,new se(2,[]))&&(M(r.Status,new se(1,[]))?!0:M(r.Status,new se(3,[])))?(a=0,l=i):(a=1,u=s)):a=2,a){case 0:return new X(1,[(n=[l,t],new me(2,[n[0],n[1]]))]);case 1:return M(u.Status,new se(3,[]))?void 0:new X(1,[new me(2,[u,t])]);default:return o}}function _C(e,t){let n;const r=e.IsPaySetupCompatible&&!e.IsPaySetupComplete&&rr(e.Steps)!==1;let i;if(r)switch(t.tag){case 1:case 0:{i=0;break}default:i=1}else i=1;switch(i){case 0:return n=[e,{Branding:Gi(e.Branding),InjectedBenefits:e.IsBenefitsStepEnabled}],new X(5,[n[0],n[1]]);default:return}}function vC(e){if(ia(e.Status))return new X(10,[e])}function vl(e,t,n){return be(Yu(Yu(vC(t),yC(e,t)),_C(t,n)),new X(9,[new $n(0,[])]))}function bC(e){const t=cr(e)|0;return Ve(Le("%s/workflows/backend/%i"))(Bn)(t)}function CC(e){const t=cr(e)|0;return Ve(Le("%s/workflows/backend/process-instances/%i/activate"))(Bn)(t)}function SC(e){const t=cr(e)|0;return Ve(Le("%s/workflows/backend/process-instances/%i/analytics-events"))(Bn)(t)}function bl(e,t){return E.Delay(()=>{const n=wi(zv(Ve(Le("Bearer %s"))(e)),t);let r;const i=yi(n);return r=E.Bind(i,s=>E.Return(new h(0,[s]))),E.Bind(r,s=>{const o=s;if(o.tag===1)return E.Return(new h(1,[o.fields[0]]));{const a=o.fields[0];if(a.statusCode===429||a.statusCode>=500){const l=yi(n);return E.Bind(l,u=>E.Return(new h(0,[u])))}else return E.Return(new h(0,[a]))}})})}function ki(e,t,n,r){return E.Delay(()=>{let i,s;const o=bl(n,(i=Zt(new Nt(1,[(s=new A0(T(rv(e)),r),Xt(0,Qt(Cv(),new Ne(1,[]),void 0,void 0)(s)))]),Jt(new Dt(1,[]),Yt(bC(t)))),wi(js("application/json"),i)));return E.Bind(o,a=>{const l=a;if(l.tag===1)return E.Return(new h(1,[l.fields[0]]));{const u=l.fields[0];if(u.statusCode===200){let f;const c=en(Q(tn(C0(),new Ne(1,[]))),u.responseText);return f=c.tag===1?new h(1,[c.fields[0]]):iv(c.fields[0]),E.Return(f)}else return E.Return(new h(1,["Unexpected response from backend"]))}})})}function kC(e,t,n){return E.Delay(()=>{let r,i;const s=bl(t,(r=Zt(new Nt(1,[(i=new I0(n),Xt(0,Qt(bv(),new Ne(1,[]),void 0,void 0)(i)))]),Jt(new Dt(1,[]),Yt(CC(e)))),wi(js("application/json"),r)));return E.Bind(s,o=>{const a=o;if(a.tag===1)return E.Return(new h(1,[a.fields[0]]));{const l=a.fields[0];if(l.statusCode===200){let u;const f=en(Q(tn(ov(),new Ne(1,[]))),l.responseText);return u=f.tag===1?new h(1,[f.fields[0]]):new h(0,[dv(f.fields[0])]),E.Return(u)}else return E.Return(new h(1,["Unexpected response from backend"]))}})})}function xC(e,t,n,r){let i;const s=E.Delay(()=>{let o,a;return bl(e,(o=Zt(new Nt(1,[(a=new E0(T(n),r),Xt(0,Qt(Sv(),new Ne(1,[]),void 0,void 0)(a)))]),Jt(new Dt(1,[]),Yt(SC(t)))),wi(js("application/json"),o)))});return i=E.Bind(s,o=>{let a;const l=o;return a=l.tag===1?new h(1,[l.fields[0]]):new h(0,[void l.fields[0]]),E.Return(a)}),E.Bind(i,o=>{const a=o;return a.tag===1||a.fields[0],E.Return()})}function IC(e,t,n){return kC(e,t,n)}function AC(e,t,n,r){return ki(new $i(1,[n]),t,r,e)}function EC(e,t,n,r){return ki(new $i(3,[r]),t,n,e)}function TC(e,t,n,r){return ki(new $i(4,[r]),t,n,e)}function PC(e,t,n,r){return ki(new $i(5,[r]),t,n,e)}function OC(e,t,n){return ki(new $i(2,[]),t,n,e)}function MC(e){const t=sC(e);return[new Ae(Lc(t.sub),df(t.workflow.instanceId),new me(0,[]),le(),new Si(0,[])),T(n=>{n(new X(0,[new gh(0,[void 0])]))})]}function Cl(e,t){if(e.tag===2){const n=oC(e.fields[0].Id);if(M(n.Id,us.Id))return T(r=>{r(new X(11,[t,new Ns(1,[])]))});{const r=new X(11,[t,new Ns(0,[cs(n.Id)])]);return T(i=>{i(r)})}}else return H()}function DC(e,t,n,r,i){let s,o,a,l,u,f,c,p,m,$,g,w,b;switch(r.tag){case 1:return[new Ae(i.ProfileId,i.ProcessInstanceId,r.fields[0],i.CssOverrides,i.BenefitsOnboarding),Cl(r.fields[0],i.ProcessInstanceId)];case 2:{const y=vl(i.CurrentView,r.fields[0],i.BenefitsOnboarding);return[i,T(x=>{x(y)})]}case 11:return je(xC(t,r.fields[0],r.fields[1],n)),[i,H()];case 3:{const y=Hn(i.CurrentView);if(y!=null){const x=y;return[i,(s=r.fields[0].target,o=Jr(B=>cp(cC(B),s.tagName,5)===0,x.Steps),o==null?H():M(o.Id,new ve(6,[]))?T(B=>{B(new X(13,[]))}):(a=o,l=new X(4,[fC(a),new $n(0,[])]),T(B=>{B(l)})))]}else return[i,H()]}case 13:{const y=Hn(i.CurrentView);let x,B;switch(y!=null?M(i.BenefitsOnboarding,new Si(0,[]))?x=1:(x=0,B=y):x=1,x){case 0:return[new Ae(i.ProfileId,i.ProcessInstanceId,i.CurrentView,i.CssOverrides,new Si(2,[])),o0(_([T(V=>{V(new X(11,[i.ProcessInstanceId,new Ns(2,[])]))}),T(V=>{V(new X(9,[new $n(0,[])]))}),T(V=>{V(new X(1,[new me(6,[B])]))})]))];default:return[i,H()]}}case 4:switch(r.fields[1].tag){case 1:return[i,H()];case 2:{const y=r.fields[1].fields[0],x=y;x.tag===1?x.fields[0]:Cg(r.fields[0],x.fields[0],i.ProfileId);const B=Hn(i.CurrentView);if(B==null)return[i,H()];{const V=gl(y,B);return V.tag===1?[new Ae(i.ProfileId,i.ProcessInstanceId,new me(4,[]),i.CssOverrides,i.BenefitsOnboarding),H()]:[i,(u=vl(i.CurrentView,V.fields[0],i.BenefitsOnboarding),T(te=>{te(u)}))]}}case 3:return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(5,[]),i.CssOverrides,i.BenefitsOnboarding),H()];default:return[i,bt(y=>{je(y)},y=>AC(n,i.ProcessInstanceId,r.fields[0],y),t,y=>new X(4,[r.fields[0],new $n(2,[y])]),y=>new X(4,[r.fields[0],new $n(3,[y])]))]}case 5:return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(3,[r.fields[0]]),i.CssOverrides,i.BenefitsOnboarding),bt(y=>{je(y)},y=>EC(n,i.ProcessInstanceId,t,y),r.fields[1].InjectedBenefits,y=>new X(14,[]),y=>new X(15,[y]))];case 6:{const y=Hn(i.CurrentView);if(y==null)return[i,H()];{const x=y,B=bt(te=>{je(te)},te=>PC(n,i.ProcessInstanceId,t,te),r.fields[0].InjectedBenefits,te=>new X(14,[]),te=>new X(15,[te])),V=new me(2,[xp(Bo(te=>M(te.Status,new se(0,[]))?!0:M(te.Status,new se(4,[])),x.Steps)),x]);return[new Ae(i.ProfileId,i.ProcessInstanceId,V,i.CssOverrides,i.BenefitsOnboarding),o0(_([B,Cl(V,i.ProcessInstanceId)]))]}}case 7:return[i,bt(y=>{je(y)},Vi(e)(i.ProcessInstanceId)(t),r.fields[0].InjectedBenefits,y=>new X(8,[y]),y=>new X(15,[y]))];case 8:{const y=Hn(i.CurrentView);if(y==null)return[i,H()];{const x=gl(r.fields[0],y);if(x.tag===1)return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(4,[]),i.CssOverrides,i.BenefitsOnboarding),H()];{const B=vl(i.CurrentView,x.fields[0],i.BenefitsOnboarding);return[i,T(V=>{V(B)})]}}}case 9:switch(r.fields[0].tag){case 1:return[i,H()];case 2:if(r.fields[0].fields[0].tag===1)return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(5,[]),i.CssOverrides,i.BenefitsOnboarding),H()];{ha(r.fields[0].fields[0].fields[0].Id,r.fields[0].fields[0].fields[0].Configuration.Name,r.fields[0].fields[0].fields[0].Configuration.Id,i.ProfileId);const y=Hn(i.CurrentView);if(y==null)return[i,H()];{const x=gl(new h(0,[r.fields[0].fields[0].fields[0]]),y);return x.tag===1?[new Ae(i.ProfileId,i.ProcessInstanceId,new me(5,[]),i.CssOverrides,i.BenefitsOnboarding),H()]:[new Ae(i.ProfileId,i.ProcessInstanceId,new me(6,[x.fields[0]]),i.CssOverrides,i.BenefitsOnboarding),H()]}}case 3:return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(5,[]),i.CssOverrides,i.BenefitsOnboarding),H()];default:{const y=Hn(i.CurrentView);let x,B;switch(y!=null&&ia(y.Status)?(x=0,B=y):x=1,x){case 0:return ha(B.ProcessInstanceId,B.InstanceName,B.ProcessConfigId,i.ProfileId),[i,H()];default:return[i,bt(V=>{je(V)},V=>OC(n,i.ProcessInstanceId,V),t,V=>new X(9,[new $n(2,[V])]),V=>new X(9,[new $n(3,[V])]))]}}}case 10:return ha(r.fields[0].ProcessInstanceId,r.fields[0].InstanceName,r.fields[0].ProcessConfigId,i.ProfileId),[new Ae(i.ProfileId,i.ProcessInstanceId,new me(6,[r.fields[0]]),i.CssOverrides,i.BenefitsOnboarding),H()];case 12:return[i,(f=window.location.pathname+"/"+window.location.search+window.location.hash,a0(y=>{ol(T(f),1)}))];case 14:return[i,H()];case 15:return[i,H()];default:if(r.fields[0].tag===1){if(r.fields[0].fields[0].tag===1)return[new Ae(i.ProfileId,i.ProcessInstanceId,new me(4,[]),i.CssOverrides,i.BenefitsOnboarding),H()];{let y;const x=pl(r.fields[0].fields[0].fields[0].IsBenefitsEnabled);let B;const V=[r.fields[0].fields[0].fields[0].ProcessInstance,x];if(B=$l(V[0],V[1]),B.tag===1)y=new h(1,[B.fields[0]]);else{const te=B.fields[0],Ke=gC(n,r.fields[0].fields[0].fields[0]);y=Ke.tag===1?new h(1,[Ke.fields[0]]):new h(0,[(c=Ke.fields[0],p=ia(r.fields[0].fields[0].fields[0].ProcessInstance.Status),m=pC(te),m==null?c.IsPaySetupComplete?p?[new Ae(i.ProfileId,i.ProcessInstanceId,new me(6,[c]),r.fields[0].fields[0].fields[0].CssOverrides,x),H()]:(Ut(0),[new Ae(i.ProfileId,i.ProcessInstanceId,new me(6,[c]),r.fields[0].fields[0].fields[0].CssOverrides,x),T(Re=>{Re(new X(9,[new $n(0,[])]))})]):[new Ae(i.ProfileId,i.ProcessInstanceId,new me(3,[c]),r.fields[0].fields[0].fields[0].CssOverrides,x),H()]:($=(g=m,w=al.clientWidth,b=rr(te)|0,b===1?(document.title=zn(g),new me(2,[g,c])):yl(w)!=null?new me(1,[c]):new me(2,[g,c])),[new Ae(i.ProfileId,i.ProcessInstanceId,$,r.fields[0].fields[0].fields[0].CssOverrides,x),Cl($,i.ProcessInstanceId)]))])}return y.tag===1?[new Ae(i.ProfileId,i.ProcessInstanceId,new me(4,[]),i.CssOverrides,i.BenefitsOnboarding),H()]:y.fields[0]}}else return[i,Ms(y=>{je(y)},()=>IC(i.ProcessInstanceId,t,n),void 0,y=>new X(0,[new gh(1,[y])]))]}}function NC(e,t,n,r){return DC((i,s,o)=>TC(t,i,s,o),e,t,n,r)}const RC=d("div",S(_([["className","text-primary-base"],(()=>{let e,t,n;const r=[d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=T(d("g",S(T((t=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:16,fill:"currentColor"}),d("path",S(_([(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",C.Children.toArray(Array.from(t))]))))),["children",C.Children.toArray(Array.from(e))])])))];return["children",C.Children.toArray(Array.from(r))]})()]))),BC=d("div",S(_([["className","text-primary-base"],(()=>{let e,t,n,r;const i=[d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(e=T(d("g",S(T((t=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"currentColor",strokeWidth:2}),d("path",S(_([(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",S(_([(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",C.Children.toArray(Array.from(t))]))))),["children",C.Children.toArray(Array.from(e))])])))];return["children",C.Children.toArray(Array.from(i))]})()]))),LC=d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t,n;const r=T(d("g",S(T((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",S(_([(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",S(_([(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",C.Children.toArray(Array.from(e))])))));return["children",C.Children.toArray(Array.from(r))]})()]))),Sh=d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e;const t=T(d("g",S(T((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2})]),["children",C.Children.toArray(Array.from(e))])))));return["children",C.Children.toArray(Array.from(t))]})()]))),VC=d("svg",S(_([["fill","none"],["height",32],["viewBox","0 0 32 32"],["width",32],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=T(d("g",S(T((e=_([d("rect",{width:32,height:32,fill:"white"}),d("circle",{cx:16,cx:16,cy:16,r:15,stroke:"#D1D5DB",strokeWidth:2}),d("path",S(_([(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",C.Children.toArray(Array.from(e))])))));return["children",C.Children.toArray(Array.from(n))]})()])));function Sl(e,t){let n;return d("div",S(_([["className","w-full h-6 rounded justify-start items-center inline-flex"],(n=[d("div",{className:ge(" ",[e,"text-lg font-medium leading-normal"]),children:t})],["children",C.Children.toArray(Array.from(n))])])))}function FC(e){return Sl("text-gray-900",e)}function kl(e){return Sl("text-gray-500",e)}function WC(e){return Sl("text-primary-base",e)}function jC(e){switch(e.Status.tag){case 0:return FC(zn(e));case 1:return kl(zn(e));case 3:return kl(zn(e));case 4:return kl(zn(e));default:return WC(zn(e))}}function kh(e){let t;return d("div",S(_([["className","w-8 h-6 flex-col justify-center items-center inline-flex"],(t=[d("div",{className:ge(" ",[e,"w-0.5 h-6 relative"])})],["children",C.Children.toArray(Array.from(t))])])))}const UC=kh("bg-gray-300"),xh=kh("bg-primary-base");function zC(e){const t=M(e.Id,new ve(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 xh;case 1:return xh;default:return UC}}function Ih(e,t,n){let r,i,s;const o=M(n.Status,new se(0,[]))?!0:M(n.Status,new se(2,[]));return d("button",S(_([["className",ge(" ",["group h-8 justify-start items-center space-x-4 inline-flex focus:outline-none"])],["type","button"],["disabled",!o],["onClick",a=>{let l;e(new X(1,[(l=[n,t],new me(2,[l[0],l[1]]))]))}],(r=[d("div",S(_([["className","w-8 h-8 relative"],(i=ce(A(()=>{const a=n.Status;return a.tag===0?v(RC):a.tag===1?v(Sh):a.tag===3?M(n.Id,new ve(6,[]))?v(LC):v(Sh):a.tag===4?v(VC):v(BC)})),["children",C.Children.toArray(Array.from(i))])]))),d("div",S(_([["className",ge(" ",ce(A(()=>j(v("rounded justify-start items-center flex"),A(()=>o?v("group-focus:outline-none group-focus:ring-2 group-focus:ring-offset-4 group-focus:ring-primary-focus"):is())))))],(s=[jC(n)],["children",C.Children.toArray(Array.from(s))])])))],["children",C.Children.toArray(Array.from(r))])])))}function HC(e){let t,n,r,i=!1,s=0;const o=de(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:{i=M(u.Status,new se(0,[]))?!0:M(u.Status,new se(4,[]));break}default:(M(u.Status,new se(0,[]))||M(u.Status,new se(4,[])))&&(s=s+1|0)}}}finally{oe(o)}r=s+(i?1:0);const a=rr(_l(e.Steps))|0,l=u=>d("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:u});return d("div",S(_([(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=ce(A(()=>{let u,f;return j((u=e.Branding,M(e.AppMode,new Ln(0,[]))?v(K()):u!=null&&u.CompanyName!=null?(f=u.CompanyName,v(l(ni(f)))):v(l(wl(e.JourneyType)))),A(()=>v(d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:`${r}/${a} sections complete`}))))})),["children",C.Children.toArray(Array.from(n))])])))}function GC(e,t){return((r,i)=>{e:for(;;){const s=r,o=i;if(O(s))return o;if(O(P(s)))return $t(o,T(Ih(e,t,k(s))));r=Ze(k(P(s)),P(P(s))),i=$t(o,_([Ih(e,t,k(s)),zC(k(P(s)))]));continue e}})(_l(t.Steps),le())}function qC(e){let t,n,r;const i=e.dispatch,s=e.detail,o=Ic(void 0),a=os(!1);return P1(()=>{const l=window.ResizeObserver?new window.ResizeObserver(()=>{const u=document.body.offsetWidth;yl(u)!=null||a[0]===!1&&(a[1](!0),i(new X(2,[s])))}):new Of(()=>{const u=document.body.offsetWidth;yl(u)!=null||a[0]===!1&&(a[1](!0),i(new X(2,[s])))});return Sn(u=>{l.observe(u)},qi(o.current)),{Dispose(){l.disconnect()}}}),d("div",S(_([["ref",o],["className","absolute top-0 bottom-0 left-0 right-0"],(t=[d("div",S(_([["className","w-full h-full bg-white flex-col justify-start items-start inline-flex"],(n=[HC(s),d("div",S(_([["className","p-6 bg-white flex-col justify-start items-start inline-flex"],(r=GC(i,s),["children",C.Children.toArray(Array.from(r))])])))],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}class Er extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["backend-url","access-token","journey-type"]}}class YC extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["app-base-url"]}}class JC extends N{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["workflows-instance-id"]}}function Ah(e){const t=e.children,n=e.effect,r=e.props,i=e.step;ur(n);const s=i.tag===1?ut.ComponentTagName:i.tag===2?ct.ComponentTagName:i.tag===3?ft.ComponentTagName:i.tag===4?Pe.ComponentTagName:i.tag===5?In.ComponentTagName:i.tag===6?us.ComponentTagName:i.tag===7?jt.ComponentTagName:i.tag===8?An.ComponentTagName:Ue.ComponentTagName;return d(s,gt(r,1),...t)}class xi extends N{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Mobile","MobileLandscape","Tablet","Desktop","WideScreen"]}}class ZC extends R{constructor(t,n,r,i){super(),this.MobileLandscape=t|0,this.Tablet=n|0,this.Desktop=r|0,this.WideScreen=i|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 Gs(e){const t=T1(()=>window.matchMedia(e).matches);return qo(()=>{const n=window.matchMedia(e),r=()=>{t[1](n.matches)};return r(),n.addListener(r),ss(()=>{n.removeListener(r)})},[e]),t[0]}function QC(e){const t=KC(be(e,XC)),n=Gs(t[0]),r=Gs(t[1]),i=Gs(t[2]),s=Gs(t[3]);return n?new xi(0,[]):r?new xi(1,[]):i?new xi(2,[]):s?new xi(3,[]):new xi(4,[])}const e3=d("svg",S(_([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(()=>{let e,t;const n=T(d("g",S(T((e=_([d("rect",{width:16,height:16,fill:"white"}),d("path",S(_([(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",C.Children.toArray(Array.from(e))])))));return["children",C.Children.toArray(Array.from(n))]})()])));function t3(e,t,n){let r,i,s,o,a;const l=t.Steps;let u;const f=Pp($=>M($.Id,n.Id),l)/rr(l)*100;u=Ve(Le("%.0f%%"))(f);let c;const p=Mp($=>M($.Status,new se(2,[]))?!0:M($.Status,new se(0,[])),l)/rr(l)*100;c=Ve(Le("%.0f%%"))(p);const m=M(n.Id,new ve(1,[]))?yh(new ve(0,[])):zn(n);return d("div",S(_([(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]),(i=[d("div",S(_([["className","self-stretch justify-start items-center space-x-3 inline-flex"],(s=[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:$=>{e(new X(1,[new me(1,[t])]))},children:C.Children.toArray([e3])}),d("div",{className:"text-center text-gray-900 text-base font-semibold leading-normal",children:m})],["children",C.Children.toArray(Array.from(s))])]))),d("div",S(_([["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",S(_([["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:c}}),d("div",{className:"w-2 h-2 top-0 absolute bg-primary-base rounded-full",style:{left:u}})],["children",C.Children.toArray(Array.from(a))])])))],["children",C.Children.toArray(Array.from(o))])])))],["children",C.Children.toArray(Array.from(i))])])))}const n3=d("div",S(_([["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",C.Children.toArray(Array.from(e))]})()]))),r3=d("div",{className:"relative h-0.5 w-2 bg-gray-300"}),Eh=d("div",{className:"relative h-0.5 w-2 bg-primary-base"}),i3=d("div",S(_([["className","w-4 h-4 relative"],(()=>{let e,t,n;const r=[d("svg",S(_([["fill","none"],["height",16],["viewBox","0 0 16 16"],["width",16],["xmlns","http://www.w3.org/2000/svg"],(e=_([d("path",S(_([(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",S(_([(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",C.Children.toArray(Array.from(e))])])))];return["children",C.Children.toArray(Array.from(r))]})()])));function Th(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 Eh;case 2:return Eh;case 3:return i3;default:return r3}}const Ph=d("div",{className:"relative h-0.5 w-full"}),s3=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 xl(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 Ph;default:return s3}}function Oh(e){let t,n;return d("div",S(_([["className","inline-flex h-11 w-10 flex-col items-center justify-start"],(t=[d("div",S(_([["className","inline-flex h-4 items-center justify-center self-stretch"],(n=[d("div",{className:ge(" ",[e,"relative h-0.5 w-10"])})],["children",C.Children.toArray(Array.from(n))])])))],["children",C.Children.toArray(Array.from(t))])])))}const a3=Oh("bg-gray-300"),l3=Oh("bg-primary-base");function u3(e){switch(e.tag){case 0:case 4:case 2:return l3;default:return a3}}function Mh(e,t,n,r){let i,s;const o=!e&&(M(n.Status,new se(0,[]))?!0:M(n.Status,new se(2,[]))),a=e?"text-primary-base":M(n.Status,new se(2,[]))||M(n.Status,new se(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=dc(_h(n.Id).toLocaleLowerCase()," ","-");return u=Ve(Le("step-%s"))(f),d("div",S(_([["className",ge(" ",["h-11 flex-col justify-start items-center inline-flex"])],(i=[d("div",{className:"h-4 inline-flex items-center justify-center self-stretch",children:C.Children.toArray(Array.from(r))}),d("button",S(_([["type","button"],["disabled",!o],["data-testid",u],["className",ge(" ",["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",kt(t)(n)],(s=ce(A(()=>j(v(o?l:K()),A(()=>v(d("div",{className:ge(" ",[a,"text-sm font-medium leading-tight whitespace-nowrap"]),children:uC(n)})))))),["children",C.Children.toArray(Array.from(s))])])))],["children",C.Children.toArray(Array.from(i))])])))}function c3(e,t,n){const r=M(n.Id,new ve(1,[]))?new ve(0,[]):n.Id,i=(o,a)=>{let l;e(new X(1,[(l=[o,t],new me(2,[l[0],l[1]]))]))};return sr(((o,a,l)=>{e:for(;;){const u=o,f=a,c=l;if(O(u))return c;if(O(P(u))){const p=xl(f),m=M(k(u).Id,r);return $t(c,T(Mh(m,i,k(u),_([Ph,Th(m,M(k(u).Id,new ve(6,[])),k(u).Status),p]))))}else{const p=xl(f),m=M(k(u).Id,r),$=Th(m,M(k(u).Id,new ve(6,[])),k(u).Status);o=P(u),a=k(u).Status,l=$t(c,_([Mh(m,i,k(u),_([xl(k(u).Status),$,p])),u3(k(u).Status)]));continue e}}})(sr(_l(t.Steps)),void 0,le()))}function f3(e,t,n){let r,i,s;const o=d("div",S(_([["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:wl(t.JourneyType)}),be(Ee(l=>d("div",{className:"hidden lg:inline text-center text-gray-900 text-base font-semibold leading-normal",children:l}),Ee(ni,on(l=>l.CompanyName,t.Branding))),K())],["children",C.Children.toArray(Array.from(r))])]))),a=d("div",{className:"grow shrink basis-0"});return d("div",S(_([(i="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",i]),(s=ce(A(()=>j(M(t.AppMode,new Ln(0,[]))?v(a):v(o),A(()=>{let l;return j(v(d("div",S(_([["className","bg-white justify-center items-start flex"],(l=c3(e,t,n),["children",C.Children.toArray(Array.from(l))])])))),A(()=>v(d("div",{className:"grow shrink basis-0"}))))})))),["children",C.Children.toArray(Array.from(s))])])))}function d3(e){let t;const n=e.body,r=e.currentStep,i=e.detail,s=e.dispatch;return d("div",S(_([["className","w-full flex-col justify-start items-center inline-flex bg-white"],(t=ce(A(()=>j(rr(i.Steps)===1?v(K()):QC().tag===0?v(t3(s,i,r)):v(f3(s,i,r)),A(()=>v(d("div",{className:"p-4 max-w-7xl mx-auto w-full",children:n})))))),["children",C.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=gt(e,1);return d(h3,t)}function $3(e){const t=gt(e,1);return d(m3,t)}function g3(e){return d("div",{className:"absolute top-0 bottom-0 left-0 right-0",children:C.Children.toArray([e])})}function w3(e,t){let n;return d("button",S(_([["type","button"],["data-testid","submit-btn"],["className",ge(" ",["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",C.Children.toArray(Array.from(n))])])))}function y3(e,t){let n;return d("button",S(_([["type","button"],["className",ge(" ",["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",C.Children.toArray(Array.from(n))])])))}function qs(e,t,n,r,i){let s,o,a,l,u,f,c,p,m,$,g,w,b,y,x;return g3(d("div",S(_([["className","w-full h-full md:pb-8 bg-white flex-col justify-start items-start md:items-center inline-flex"],(s=[d("div",S(_([(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",S(_([["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",B=>{i(new X(6,[{InjectedBenefits:r}]))}],(u=[$3([])],["children",C.Children.toArray(Array.from(u))])])))],["children",C.Children.toArray(Array.from(a))])]))),d("div",S(_([(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",S(_([["className","self-stretch h-64 md:h-56 flex-col justify-start items-center space-y-8 flex"],(p=[d("div",S(_([["className","self-stretch h-64 flex-col justify-start items-center space-y-6 flex"],(m=[d("div",S(_([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex"],($=[d("div",S(_([["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",S(_([["className","w-8 h-8 left-2 top-2 absolute"],(w=[d("div",S(_([["className","w-7 h-7 left-px top-0.5 absolute"],(b=[p3([["className","text-primary-base"]])],["children",C.Children.toArray(Array.from(b))])])))],["children",C.Children.toArray(Array.from(w))])])))],["children",C.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",C.Children.toArray(Array.from($))])]))),d("div",S(_([["className","self-stretch h-40 md:h-24 flex-col justify-start items-center space-y-3 md:space-y-4 flex"],(y=[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",C.Children.toArray(Array.from(y))])])))],["children",C.Children.toArray(Array.from(m))])])))],["children",C.Children.toArray(Array.from(p))])]))),d("div",S(_([["className","self-stretch h-24 flex-col justify-start items-center space-y-4 flex cursor-pointer"],(x=[w3(r?"Submit and continue":"Submit",B=>{i(new X(7,[{InjectedBenefits:r}]))}),y3("Keep editing",B=>{i(new X(6,[{InjectedBenefits:r}]))})],["children",C.Children.toArray(Array.from(x))])])))],["children",C.Children.toArray(Array.from(c))])])))],["children",C.Children.toArray(Array.from(s))])]))))}function _3(e){let t,n;const r=e.dispatch,i=e.wd,s=i.IsBenefitsStepEnabled;return i.AppMode.tag===1?s?qs("Before you continue",(t=on(o=>o.CompanyName,i.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 ${ni(t)} and continue to access your workplace benefits`),"Once you submit, you’ll be unable to view or edit your details",!0,r):qs("Submit your details",(n=on(o=>o.CompanyName,i.Branding),n==null?"Submit to finalise your pay information to your employer":`Submit to finalise your pay information to ${ni(n)}`),"Once you submit, you’ll be unable to view or edit your details.",!1,r):s?qs("Before you continue","Submit to finalise your pay information to your employer and continue to access your workplace benefits","",!0,r):qs("Submit your details","Submit to finalise your pay information to your employer","",!1,r)}function Ys(e,t){let n;return d("div",S(_([["className",ge(" ",["animate-pulse w-full relative",e,t])],(n=[d("div",{className:ge(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",C.Children.toArray(Array.from(n))])])))}const v3=Ys("h-9","max-w-96"),Dh=Ys("h-6","max-w-96"),b3=Ys("h-80","max-w-96"),C3=Ys("h-10","max-w-48"),S3=(()=>{let e,t,n;const r=[d("div",S(_([(e="w-full h-full px-8 py-20 bg-white rounded border border-zinc-200 flex-col justify-start items-center gap-10 inline-flex",["className",e]),(t=[d("div",S(_([["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:C.Children.toArray([Dh,Dh])})],["children",C.Children.toArray(Array.from(n))])]))),b3,C3],["children",C.Children.toArray(Array.from(t))])])))];return d(Se,{},...r)})();function k3(e){const t=e.accessToken,n=e.appMode;let r;const i=MC(t);r=el(()=>Ds(()=>i,(u,f)=>NC(t,n,u,f),(u,f)=>{}),void 0,[]);const s=r[0],o=r[1],a=(u,f)=>{let c;return d("div",S(_([["className","w-full min-h-[600px] mx-auto bg-white"],(c=ce(A(()=>j(Ce(p=>d("style",{children:[p]}),s.CssOverrides),A(()=>j(u,A(()=>is())))))),["children",C.Children.toArray(Array.from(c))])])))};Yo(()=>{bg()},[]),Yo(()=>{const u=s.CurrentView;let f;switch(u.tag){case 1:case 3:{f=2;break}case 2:{M(u.fields[0].Id,new ve(4,[]))?(f=0,u.fields[0]):M(u.fields[0].Id,new ve(5,[]))?(f=1,u.fields[0]):f=2;break}default:f=3}switch(f){case 0:break;case 1:break;case 2:{ol(T(ul(n)),2);break}}},[s.CurrentView]),ur(()=>{window.addEventListener("step-completion",u=>{o(new X(3,[u]))})});const l=s.CurrentView;switch(l.tag){case 1:return Ut(0),a([d(qC,{detail:l.fields[0],dispatch:o})]);case 2:{const u=l.fields[1],f=l.fields[0],c=R$(u.JourneyType);let p;const m=f.Id;return p=m.tag===4?d(Ah,{step:new ve(4,[]),props:[new Er(1,[t]),new Er(0,[`${Bn}/super-selection/backend/v1.0/`]),new Er(2,[c]),new YC(ul(n))],effect:()=>{o(new X(12,[])),Ut(2500)},children:[]}):d(Ah,{step:m,props:[new Er(1,[t]),new Er(0,[Bn]),new Er(2,[c]),new JC(rn(cr(s.ProcessInstanceId)))],effect:()=>{Ut(1500)},children:[]}),a([d(d3,{dispatch:o,detail:u,currentStep:f,body:p})])}case 3:return Ut(0),a([d(_3,{wd:l.fields[0],dispatch:o})]);case 4:return Ut(0),a([d("div",{className:"text-center mt-5",children:"We had an issue. Please try again shortly."})]);case 5:return Ar(Zo());case 6:{const u=l.fields[0],f=u.JourneyType,c=Ee(L_,u.Branding);return a(ce(A(()=>u.AppMode.tag===0?v(S3):f.tag===1?v(Ar(Hs(c,"information request"))):f.tag===2?v(Ar(ph())):f.tag===3||f.tag===4?v(Ar(ml())):v(Ar(Hs(c,"onboarding"))))))}default:return d("div",{children:["Please wait..."]})}}function x3(e){return{render:function(t){Mi(t,e)},unmount:function(){mo(e)}}}class I3 extends R{constructor(t,n,r){super(),this.model=t,this.render=n,this.equal=r}}class A3 extends st{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 i=new I3(n,()=>t(n,r),e);return d(A3,i)}const T3=(()=>{try{return Ho(_u.slice(void 0,2),511,!1,32)>=18}catch{return!1}})();function P3(e,t,n){let r;return c0(Q(T3?(r=x3(document.getElementById(t)),i=>s=>{r.render(e(o=>a=>o===a,f0(n),i,s))}):i=>s=>{Mi(e(o=>a=>o===a,f0(n),i,s),document.getElementById(t))}),n)}function O3(e,t){return P3((n,r,i,s)=>E3(Q(n),Q(r),i,s),e,t)}function M3(e,t){const n=encodeURIComponent(Wb(t)),r=encodeURIComponent(vv),i=encodeURIComponent(kv(new Ln(0,[])));return E.Delay(()=>{let s,o;const a=yi(Zt(new Nt(1,[`grant_type=authorization_code&code=${n}&client_id=${r}&redirect_uri=${i}`]),(s=Jt(new Dt(1,[]),Yt(`${wv}/connect/token`)),wi(js("application/x-www-form-urlencoded"),s))));return o=E.Bind(a,l=>E.Return(new h(0,[l]))),E.Bind(o,l=>{const u=l;if(u.tag===1)return E.Return(new h(1,[u.fields[0]]));{const f=u.fields[0];if(f.statusCode===200){const c=en(Q(tn(hl(),void 0)),f.responseText);return E.Return(c)}else return E.Return(new h(1,["Unexpected result from backend"]))}})})}function D3(){return new Cr(0,[])}function Il(e){return $s(e)}function N3(e,t){return E.Delay(()=>{let n;return E.Bind(hg([(n=M3(e,t),E.Bind(n,r=>E.Return(r))),E.Delay(()=>E.Bind(Il(2e3),()=>E.Return(void 0)))]),r=>E.Return(ee(0,r)))})}function R3(e,t,n){let r;switch(e.tag){case 1:switch(t.tag){case 1:return[t,Ms(i=>{je(i)},Il,1e3,()=>new Wn(1,[]))];case 2:return t.fields[0].tag===1?[t,H()]:[t,Ms(i=>{je(i)},Il,2e3,()=>new Wn(2,[]))];default:return[new Cr(2,[new h(1,["No current authenticated user"])]),H()]}case 2:return[t,(r=window.location.pathname,a0(i=>{ol(T(r),1)}))];default:if(e.fields[0].tag===1)return e.fields[0].fields[0].tag===1?[new Cr(2,[new h(1,[`SignIn failed: ${e.fields[0].fields[0].fields[0]}`])]),H()]:(window.gtag&&window.gtag("event","oidc_sign_in",{}),[new Cr(2,[new h(0,[e.fields[0].fields[0].fields[0]])]),e.fields[2]?H():T(i=>{i(new Wn(2,[]))})]);switch(t.tag){case 1:return[t,H()];default:return[new Cr(1,[]),bt(i=>{je(i)},i=>N3(i[0],i[1]),[n,e.fields[1]],i=>{const s=[new _e(1,[i]),e.fields[1],e.fields[2]];return new Wn(0,[s[0],s[1],s[2]])},i=>{const s=[new _e(1,[new h(1,[i.message])]),e.fields[1],e.fields[2]];return new Wn(0,[s[0],s[1],s[2]])})]}}}function B3(){const e=qu(window.sessionStorage.getItem("credentials"));if(e!=null){const t=e,n=en(Q(tn(hl(),void 0)),t);return n.tag===1?void 0:n.fields[0]}}function L3(e){let t;const n=["credentials",(t=new mh(e.id_token,e.access_token,e.expires_in,void 0,e.scope,e.token_type),Xt(0,Qt(hl(),void 0,void 0,void 0)(t)))];window.sessionStorage.setItem(n[0],n[1])}function Nh(e,t){return Xa(n=>new pn(3,[n]),T(n=>{n(new Wn(0,[new _e(0,[]),e,t]))}))}function Al(e){return Nh(e,!1)}function V3(e){return Nh(e,!0)}function F3(){const e=$h(x0(window.location.pathname+window.location.search,2)),t=e[0],n=e[1],r=new Un(t,D3(),n);switch(t.tag){case 4:case 1:case 2:case 5:case 6:return[r,H()];case 0:{const i=B3();let s;switch(n.tag){case 0:case 2:{s=1;break}default:i==null?s=1:s=0}switch(s){case 0:return[new Un(r.CurrentPage,new Cr(2,[new h(0,[i])]),r.AppMode),H()];default:return[r,T(o=>{o(new pn(5,[]))})]}}default:return[r,Al(t.fields[0])]}}function W3(e,t){switch(e.tag){case 1:{const n=e.fields[0];return[new Un(new W(3,[n]),t.Credentials,t.AppMode),Al(n)]}case 2:return[new Un(new W(4,[]),t.Credentials,t.AppMode),Xa(n=>new pn(3,[n]),T(n=>{n(new Wn(1,[]))}))];case 3:{const n=R3(e.fields[0],t.Credentials,t.AppMode),r=n[0];let i,s;switch(r.tag===2&&r.fields[0].tag===0&&t.AppMode.tag===1?(i=0,s=r.fields[0].fields[0]):i=1,i){case 0:{L3(s);break}}return[new Un(t.CurrentPage,r,t.AppMode),Xa(o=>new pn(3,[o]),n[1])]}case 4:return[t,V3(e.fields[0])];case 5:return[new Un(new W(6,[]),t.Credentials,t.AppMode),H()];default:{const n=$h(e.fields[0])[0],r=new Un(n,t.Credentials,t.AppMode);return n.tag===3?[r,Al(n.fields[0])]:[r,H()]}}}const Rh=d("div",S(_([["className","flex flex-col justify-center items-center pt-10"],(()=>{const e=[Zo()];return["children",C.Children.toArray(Array.from(e))]})()])));function j3(e){switch(e.CurrentPage.tag){case 3:case 4:case 2:return T("bg-white h-full");default:return le()}}function U3(e){switch(e.tag){case 1:return d("style",{children:[`
810
810
  html {
811
811
  height: 100%;
812
812
  height: 100dvh;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/workflows-app",
3
- "version": "4.55.0",
3
+ "version": "4.56.0",
4
4
  "description": "Flare Workflows App",
5
5
  "license": "UNLICENSED",
6
6
  "files": [