@flarehr/apollo-benefits-onboarding 1.82.122 → 1.83.123

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,9 +1,9 @@
1
- var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,n,r,o,i,a,s,l,c,u,d,p,f,m,h={},g=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?s.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return x(e,a,r,o,null)}function x(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function k(){return{current:null}}function E(e){return e.children}function S(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function T(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=y({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),M(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?C(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&N(r),r}function N(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return N(e)}}function A(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!O.__r++||d!==l.debounceRendering)&&((d=l.debounceRendering)||p)(O)}function O(){var e,t,n,r=[],o=[];for(u.sort(f);e=u.shift();)e.__d&&(n=u.length,t=T(e,r,o)||t,0===n||u.length>n?(B(r,t,o),o.length=r.length=0,t=void 0,u.sort(f)):t&&l.__c&&l.__c(t,g));t&&B(r,t,o),O.__r=0}function R(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,m,_,y=r&&r.__k||g,w=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?x(null,o,null,null,o):b(o)?x(E,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(o,n,a=r+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=C(i)),z(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=C(i)),z(i,i))}(n,t,y),l=n.__d,d=0;d<w;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:y[f.__i]||h,f.__i=d,M(e,f,p,o,i,a,s,l,c,u),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&H(p.ref,null,f),u.push(f.ref,f.__c||m,f)),null==_&&null!=m&&(_=m),65536&f.__u||p.__k===f.__k?l=P(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=_}function P(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=P(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function L(e,t){return t=t||[],null==e||"boolean"==typeof e||(b(e)?e.some((function(e){L(e,t)})):t.push(e)),t}function I(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function U(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||_.test(t)?n:n+"px"}function F(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?j:D,i)):e.removeEventListener(t,i?j:D,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function D(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(l.event?l.event(e):e)}}function j(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function M(e,t,n,r,o,i,a,c,u,d){var p,f,m,g,_,v,x,k,T,N,A,O,P,L,I,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=l.__b)&&p(t);e:if("function"==typeof U)try{if(k=t.props,T=(p=U.contextType)&&r[p.__c],N=p?T?T.props.value:p.__:r,n.__c?x=(f=t.__c=n.__c).__=f.__E:("prototype"in U&&U.prototype.render?t.__c=f=new U(k,N):(t.__c=f=new S(k,N),f.constructor=U,f.render=W),T&&T.sub(f),f.props=k,f.state||(f.state={}),f.context=N,f.__n=r,m=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=U.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=y({},f.__s)),y(f.__s,U.getDerivedStateFromProps(k,f.__s))),g=f.props,_=f.state,f.__v=t,m)null==U.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==U.getDerivedStateFromProps&&k!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(k,N),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(k,f.__s,N)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=k,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(k,f.__s,N),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,_,v)}))}if(f.context=N,f.props=k,f.__P=e,f.__e=!1,O=l.__r,P=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),L=0;L<f._sb.length;L++)f.__h.push(f._sb[L]);f._sb=[]}else do{f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=y(y({},r),f.getChildContext())),m||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,_)),R(e,b(I=null!=p&&p.type===E&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,u,d),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(D){t.__v=null,u||null!=i?(t.__e=c,t.__u|=u?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(D,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,l,c){var u,d,p,f,m,g,_,y=n.props,v=t.props,x=t.type;if("svg"===x&&(o=!0),null!=i)for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!x&&(x?m.localName===x:3===m.nodeType)){e=m,i[u]=null;break}if(null==e){if(null===x)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,v.is&&v),i=null,l=!1}if(null===x)y===v||l&&e.data===v||(e.data=v);else{if(i=i&&s.call(e.childNodes),y=n.props||h,!l&&null!=i)for(y={},u=0;u<e.attributes.length;u++)y[(m=e.attributes[u]).name]=m.value;for(u in y)m=y[u],"children"==u||("dangerouslySetInnerHTML"==u?p=m:"key"===u||u in v||F(e,u,null,m,o));for(u in v)m=v[u],"children"==u?f=m:"dangerouslySetInnerHTML"==u?d=m:"value"==u?g=m:"checked"==u?_=m:"key"===u||l&&"function"!=typeof m||y[u]===m||F(e,u,m,y[u],o);if(d)l||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),R(e,b(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&C(n,0),l,c),null!=i)for(u=i.length;u--;)null!=i[u]&&w(i[u]);l||(u="value",void 0!==g&&(g!==e[u]||"progress"===x&&!g||"option"===x&&g!==y[u])&&F(e,u,g,y[u],!1),u="checked",void 0!==_&&_!==e[u]&&F(e,u,_,y[u],!1))}return e}(n.__e,t,n,r,o,i,a,u,d);(p=l.diffed)&&p(t)}function B(e,t,n){for(var r=0;r<n.length;r++)H(n[r],n[++r],n[++r]);l.__c&&l.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){l.__e(n,t.__v)}}))}function H(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){l.__e(r,n)}}function z(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||H(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){l.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&z(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function q(e,t,n){var r,o,i,a;l.__&&l.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],M(t,e=(!r&&n||t).__k=v(E,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?s.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),e.__d=void 0,B(i,e,a)}function V(e,t){q(e,t,V)}function $(e,t,n){var r,o,i,a,l=y({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?s.call(arguments,2):n),x(e.type,l,r||e.key,o||e.ref,null)}function G(e,t){var n={__c:t="__cC"+m++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,A(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}s=g.slice,l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},c=0,S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},n),this.props)),e&&y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},S.prototype.render=E,u=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,m=0;var J=["context","children"];function K(e){return this.getChildContext=function(){return e.context},$(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,J))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(K,Y({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Z(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=v(te,{name:c},l):r[i]=l}var u=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:q)(this._vdom,this._root)}function Z(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Z(e)]=n,this._vdom=$(this._vdom,r),q(this._vdom,this._root)}}function ee(){q(this._vdom=null,this._root)}function te(e,t){var n=this;return v("slot",Y({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}const ne=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-Bit4myCA.png").href:new URL("assets/intro_allowance_experiment-Bit4myCA.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href);var re,oe,ie,ae,se=0,le=[],ce=[],ue=l,de=ue.__b,pe=ue.__r,fe=ue.diffed,me=ue.__c,he=ue.unmount,ge=ue.__;function _e(e,t){ue.__h&&ue.__h(oe,e,se||t),se=0;var n=oe.__H||(oe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ce}),n.__[e]}function be(e){return se=1,ye(Ue,e)}function ye(e,t,n){var r=_e(re++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ue(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=oe,!oe.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};oe.u=!0;var i=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},oe.shouldComponentUpdate=o}return r.__N||r.__}function we(e,t){var n=_e(re++,3);!ue.__s&&Ie(n.__H,t)&&(n.__=e,n.i=t,oe.__H.__h.push(n))}function ve(e,t){var n=_e(re++,4);!ue.__s&&Ie(n.__H,t)&&(n.__=e,n.i=t,oe.__h.push(n))}function xe(e){return se=5,Ee((function(){return{current:e}}),[])}function ke(e,t,n){se=6,ve((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Ee(e,t){var n=_e(re++,7);return Ie(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Se(e,t){return se=8,Ee((function(){return e}),t)}function Ce(e){var t=oe.context[e.__c],n=_e(re++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(oe)),t.props.value):e.__}function Te(e,t){ue.useDebugValue&&ue.useDebugValue(t?t(e):e)}function Ne(){var e=_e(re++,11);if(!e.__){for(var t=oe.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Ae(){for(var e;e=le.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pe),e.__H.__h.forEach(Le),e.__H.__h=[]}catch(Uo){e.__H.__h=[],ue.__e(Uo,e.__v)}}ue.__b=function(e){oe=null,de&&de(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ge&&ge(e,t)},ue.__r=function(e){pe&&pe(e),re=0;var t=(oe=e.__c).__H;t&&(ie===oe?(t.__h=[],oe.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ce,e.__N=e.i=void 0}))):(t.__h.forEach(Pe),t.__h.forEach(Le),t.__h=[],re=0)),ie=oe},ue.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==le.push(t)&&ae===ue.requestAnimationFrame||((ae=ue.requestAnimationFrame)||Re)(Ae)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ce&&(e.__=e.__V),e.i=void 0,e.__V=ce}))),ie=oe=null},ue.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Pe),e.__h=e.__h.filter((function(e){return!e.__||Le(e)}))}catch(fi){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ue.__e(fi,e.__v)}})),me&&me(e,t)},ue.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Pe(e)}catch(n){t=n}})),n.__H=void 0,t&&ue.__e(t,n.__v))};var Oe="function"==typeof requestAnimationFrame;function Re(e){var t,n=function(){clearTimeout(r),Oe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Oe&&(t=requestAnimationFrame(n))}function Pe(e){var t=oe,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),oe=t}function Le(e){var t=oe;e.__c=e.__(),oe=t}function Ie(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ue(e,t){return"function"==typeof t?t(e):t}function Fe(e,t){for(var n in t)e[n]=t[n];return e}function De(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function je(e,t){this.props=e,this.context=t}function Me(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:De(this.props,e)}function r(t){return this.shouldComponentUpdate=n,v(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(je.prototype=new S).isPureReactComponent=!0,je.prototype.shouldComponentUpdate=function(e,t){return De(this.props,e)||De(this.state,t)};var Be=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Be&&Be(e)};var He="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ze(e){function t(t){var n=Fe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=He,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var We=function(e,t){return null==e?null:L(L(e).map(t))},qe={map:We,forEach:We,count:function(e){return e?L(e).length:0},only:function(e){var t=L(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L},Ve=l.__e;l.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ve(e,t,n,r)};var $e=l.unmount;function Ge(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Fe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ge(e,t,n)}))),e}function Ye(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ye(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Je(){this.__u=0,this.t=null,this.__b=null}function Ke(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Xe(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return v(n,o)}return o.displayName="Lazy",o.__f=!0,o}function Ze(){this.u=null,this.o=null}l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),$e&&$e(e)},(Je.prototype=new S).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Ke(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ye(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Je.prototype.componentWillUnmount=function(){this.t=[]},Je.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]=Ge(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(E,null,e.fallback);return o&&(o.__u&=-33),[v(E,null,t.__a?null:e.children),o]};var Qe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 et(e){return this.getChildContext=function(){return e.context},e.children}function tt(e){var t=this,n=e.i;t.componentWillUnmount=function(){q(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:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),q(v(et,{context:t.context},e.__v),t.l)}function nt(e,t){var n=v(tt,{__v:e,i:t});return n.containerInfo=t,n}(Ze.prototype=new S).__a=function(e){var t=this,n=Ke(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Qe(t,e,r)):o()};n?n(i):i()}},Ze.prototype.render=function(e){this.u=null,this.o=new Map;var t=L(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Qe(e,n,t)}))};var rt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ot=/^(?: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]/,it=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,at=/[A-Z0-9]/g,st="undefined"!=typeof document,lt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ct(e,t,n){return null==t.__k&&(t.textContent=""),q(e,t),"function"==typeof n&&n(),e?e.__c:null}function ut(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}S.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(S.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var dt=l.event;function pt(){}function ft(){return this.cancelBubble}function mt(){return this.defaultPrevented}l.event=function(e){return dt&&(e=dt(e)),e.persist=pt,e.isPropagationStopped=ft,e.isDefaultPrevented=mt,e.nativeEvent=e};var ht,gt={enumerable:!1,configurable:!0,get:function(){return this.class}},_t=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||st&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||lt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":it.test(o)?o=a:-1===n.indexOf("-")&&ot.test(o)?o=o.replace(at,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=L(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=L(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",gt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=rt,_t&&_t(e)};var bt=l.__r;l.__r=function(e){bt&&bt(e),ht=e.__c};var yt=l.diffed;l.diffed=function(e){yt&&yt(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ht=null};var wt={ReactCurrentDispatcher:{current:{readContext:function(e){return ht.__n[e.__c].props.value}}}};function vt(e){return v.bind(null,e)}function xt(e){return!!e&&e.$$typeof===rt}function kt(e){return xt(e)&&e.type===E}function Et(e){return xt(e)?$.apply(null,arguments):e}function St(e){return!!e.__k&&(q(null,e),!0)}function Ct(e){return e&&(e.base||1===e.nodeType&&e)||null}var Tt=function(e,t){return e(t)},Nt=function(e,t){return e(t)},At=E;function Ot(e){e()}function Rt(e){return e}function Pt(){return[!1,Ot]}var Lt=ve,It=xt;function Ut(e,t){var n=t(),r=be({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ve((function(){o.__=n,o.v=t,Ft(o)&&i({h:o})}),[e,n,t]),we((function(){return Ft(o)&&i({h:o}),e((function(){Ft(o)&&i({h:o})}))}),[e]),n}function Ft(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Dt={useState:be,useId:Ne,useReducer:ye,useEffect:we,useLayoutEffect:ve,useInsertionEffect:Lt,useTransition:Pt,useDeferredValue:Rt,useSyncExternalStore:Ut,startTransition:Ot,useRef:xe,useImperativeHandle:ke,useMemo:Ee,useCallback:Se,useContext:Ce,useDebugValue:Te,version:"17.0.2",Children:qe,render:ct,hydrate:ut,unmountComponentAtNode:St,createPortal:nt,createElement:v,createContext:G,createFactory:vt,cloneElement:Et,createRef:k,Fragment:E,isValidElement:xt,isElement:It,isFragment:kt,findDOMNode:Ct,Component:S,PureComponent:je,memo:Me,forwardRef:ze,flushSync:Nt,unstable_batchedUpdates:Tt,StrictMode:At,Suspense:Je,SuspenseList:Ze,lazy:Xe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wt};const jt=Object.freeze(Object.defineProperty({__proto__:null,Children:qe,Component:S,Fragment:E,PureComponent:je,StrictMode:At,Suspense:Je,SuspenseList:Ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wt,cloneElement:Et,createContext:G,createElement:v,createFactory:vt,createPortal:nt,createRef:k,default:Dt,findDOMNode:Ct,flushSync:Nt,forwardRef:ze,hydrate:ut,isElement:It,isFragment:kt,isValidElement:xt,lazy:Xe,memo:Me,render:ct,startTransition:Ot,unmountComponentAtNode:St,unstable_batchedUpdates:Tt,useCallback:Se,useContext:Ce,useDebugValue:Te,useDeferredValue:Rt,useEffect:we,useErrorBoundary:function(e){var t=_e(re++,10),n=be();return t.__=e,oe.componentDidCatch||(oe.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ne,useImperativeHandle:ke,useInsertionEffect:Lt,useLayoutEffect:ve,useMemo:Ee,useReducer:ye,useRef:xe,useState:be,useSyncExternalStore:Ut,useTransition:Pt,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Mt=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",...e},v("path",{d:"M 25 2 C 12.309295 2 2 12.309295 2 25 C 2 37.690705 12.309295 48 25 48 C 37.690705 48 48 37.690705 48 25 C 48 12.309295 37.690705 2 25 2 z M 25 4 C 36.609824 4 46 13.390176 46 25 C 46 36.609824 36.609824 46 25 46 C 13.390176 46 4 36.609824 4 25 C 4 13.390176 13.390176 4 25 4 z M 25 11 A 3 3 0 0 0 22 14 A 3 3 0 0 0 25 17 A 3 3 0 0 0 28 14 A 3 3 0 0 0 25 11 z M 21 21 L 21 23 L 22 23 L 23 23 L 23 36 L 22 36 L 21 36 L 21 38 L 22 38 L 23 38 L 27 38 L 28 38 L 29 38 L 29 36 L 28 36 L 27 36 L 27 21 L 26 21 L 22 21 L 21 21 z"})),Bt=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-DyP_CJyB.png").href:new URL("assets/intro_allowance_experiment-DyP_CJyB.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href);class Ht extends Error{}function zt(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 function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Ht.prototype.name="InvalidTokenError";const Wt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),qt=e=>(window.addEventListener(Wt,e),()=>window.removeEventListener(Wt,e)),Vt=()=>{window.dispatchEvent(new Event(Wt))};function $t(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gt}=Object.prototype,{getPrototypeOf:Yt}=Object,Jt=(e=>t=>{const n=Gt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>Jt(t)===e),Xt=e=>t=>typeof t===e,{isArray:Zt}=Array,Qt=Xt("undefined");const en=Kt("ArrayBuffer");const tn=Xt("string"),nn=Xt("function"),rn=Xt("number"),on=e=>null!==e&&"object"==typeof e,an=e=>{if("object"!==Jt(e))return!1;const t=Yt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},sn=Kt("Date"),ln=Kt("File"),cn=Kt("Blob"),un=Kt("FileList"),dn=Kt("URLSearchParams"),[pn,fn,mn,hn]=["ReadableStream","Request","Response","Headers"].map(Kt);function gn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Zt(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function _n(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const bn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,yn=e=>!Qt(e)&&e!==bn;const wn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Yt(Uint8Array)),vn=Kt("HTMLFormElement"),xn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kn=Kt("RegExp"),En=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Sn="abcdefghijklmnopqrstuvwxyz",Cn="0123456789",Tn={DIGIT:Cn,ALPHA:Sn,ALPHA_DIGIT:Sn+Sn.toUpperCase()+Cn};const Nn=Kt("AsyncFunction"),An=(On="function"==typeof setImmediate,Rn=nn(bn.postMessage),On?setImmediate:Rn?(Pn=`axios@${Math.random()}`,Ln=[],bn.addEventListener("message",(({source:e,data:t})=>{e===bn&&t===Pn&&Ln.length&&Ln.shift()()}),!1),e=>{Ln.push(e),bn.postMessage(Pn,"*")}):e=>setTimeout(e));var On,Rn,Pn,Ln;const In="undefined"!=typeof queueMicrotask?queueMicrotask.bind(bn):"undefined"!=typeof process&&process.nextTick||An,Un={isArray:Zt,isArrayBuffer:en,isBuffer:function(e){return null!==e&&!Qt(e)&&null!==e.constructor&&!Qt(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||nn(e.append)&&("formdata"===(t=Jt(e))||"object"===t&&nn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&en(e.buffer),t},isString:tn,isNumber:rn,isBoolean:e=>!0===e||!1===e,isObject:on,isPlainObject:an,isReadableStream:pn,isRequest:fn,isResponse:mn,isHeaders:hn,isUndefined:Qt,isDate:sn,isFile:ln,isBlob:cn,isRegExp:kn,isFunction:nn,isStream:e=>on(e)&&nn(e.pipe),isURLSearchParams:dn,isTypedArray:wn,isFileList:un,forEach:gn,merge:function e(){const{caseless:t}=yn(this)&&this||{},n={},r=(r,o)=>{const i=t&&_n(n,o)||o;an(n[i])&&an(r)?n[i]=e(n[i],r):an(r)?n[i]=e({},r):Zt(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&gn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(gn(t,((t,r)=>{n&&nn(t)?e[r]=$t(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Yt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Jt,kindOfTest:Kt,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Zt(e))return e;let t=e.length;if(!rn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:vn,hasOwnProperty:xn,hasOwnProp:xn,reduceDescriptors:En,freezeMethods:e=>{En(e,((t,n)=>{if(nn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];nn(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Zt(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_n,global:bn,isContextDefined:yn,ALPHABET:Tn,generateString:(e=16,t=Tn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&nn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(on(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Zt(e)?[]:{};return gn(e,((e,t)=>{const i=n(e,r+1);!Qt(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Nn,isThenable:e=>e&&(on(e)||nn(e))&&nn(e.then)&&nn(e.catch),setImmediate:An,asap:In};function Fn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Un.inherits(Fn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Un.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Dn=Fn.prototype,jn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{jn[e]={value:e}})),Object.defineProperties(Fn,jn),Object.defineProperty(Dn,"isAxiosError",{value:!0}),Fn.from=(e,t,n,r,o,i)=>{const a=Object.create(Dn);return Un.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Fn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Mn(e){return Un.isPlainObject(e)||Un.isArray(e)}function Bn(e){return Un.endsWith(e,"[]")?e.slice(0,-2):e}function Hn(e,t,n){return e?e.concat(t).map((function(e,t){return e=Bn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const zn=Un.toFlatObject(Un,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Wn(e,t,n){if(!Un.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Un.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Un.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Un.isSpecCompliantForm(t);if(!Un.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Un.isDate(e))return e.toISOString();if(!s&&Un.isBlob(e))throw new Fn("Blob is not supported. Use a Buffer instead.");return Un.isArrayBuffer(e)||Un.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Un.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Un.isArray(e)&&function(e){return Un.isArray(e)&&!e.some(Mn)}(e)||(Un.isFileList(e)||Un.endsWith(n,"[]"))&&(s=Un.toArray(e)))return n=Bn(n),s.forEach((function(e,r){!Un.isUndefined(e)&&null!==e&&t.append(!0===a?Hn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Mn(e)||(t.append(Hn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(zn,{defaultVisitor:c,convertValue:l,isVisitable:Mn});if(!Un.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Un.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Un.forEach(n,(function(n,i){!0===(!(Un.isUndefined(n)||null===n)&&o.call(t,n,Un.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function qn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Vn(e,t){this._pairs=[],e&&Wn(e,this,t)}const $n=Vn.prototype;function Gn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yn(e,t,n){if(!t)return e;const r=n&&n.encode||Gn,o=n&&n.serialize;let i;if(i=o?o(t,n):Un.isURLSearchParams(t)?t.toString():new Vn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}$n.append=function(e,t){this._pairs.push([e,t])},$n.toString=function(e){const t=e?function(t){return e.call(this,t,qn)}:qn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Jn{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Un.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Kn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Vn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Zn="undefined"!=typeof window&&"undefined"!=typeof document,Qn=(er="undefined"!=typeof navigator&&navigator.product,Zn&&["ReactNative","NativeScript","NS"].indexOf(er)<0);var er;const tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nr=Zn&&window.location.href||"http://localhost",rr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zn,hasStandardBrowserEnv:Qn,hasStandardBrowserWebWorkerEnv:tr,origin:nr},Symbol.toStringTag,{value:"Module"})),...Xn};function or(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Un.isArray(r)?r.length:i,s)return Un.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Un.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Un.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Un.isFormData(e)&&Un.isFunction(e.entries)){const n={};return Un.forEachEntry(e,((e,r)=>{t(function(e){return Un.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ir={transitional:Kn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Un.isObject(e);o&&Un.isHTMLForm(e)&&(e=new FormData(e));if(Un.isFormData(e))return r?JSON.stringify(or(e)):e;if(Un.isArrayBuffer(e)||Un.isBuffer(e)||Un.isStream(e)||Un.isFile(e)||Un.isBlob(e)||Un.isReadableStream(e))return e;if(Un.isArrayBufferView(e))return e.buffer;if(Un.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Wn(e,new rr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return rr.isNode&&Un.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Un.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Wn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Un.isString(e))try{return(t||JSON.parse)(e),Un.trim(e)}catch(Xo){if("SyntaxError"!==Xo.name)throw Xo}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ir.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Un.isResponse(e)||Un.isReadableStream(e))return e;if(e&&Un.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Xo){if(n){if("SyntaxError"===Xo.name)throw Fn.from(Xo,Fn.ERR_BAD_RESPONSE,this,null,this.response);throw Xo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rr.classes.FormData,Blob:rr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Un.forEach(["delete","get","head","post","put","patch"],(e=>{ir.headers[e]={}}));const ar=Un.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sr=Symbol("internals");function lr(e){return e&&String(e).trim().toLowerCase()}function cr(e){return!1===e||null==e?e:Un.isArray(e)?e.map(cr):String(e)}function ur(e,t,n,r,o){return Un.isFunction(r)?r.call(this,t,n):(o&&(t=n),Un.isString(t)?Un.isString(r)?-1!==t.indexOf(r):Un.isRegExp(r)?r.test(t):void 0:void 0)}class dr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=lr(t);if(!o)throw new Error("header name must be a non-empty string");const i=Un.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=cr(e))}const i=(e,t)=>Un.forEach(e,((e,n)=>o(e,n,t)));if(Un.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Un.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ar[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Un.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=lr(e)){const n=Un.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Un.isFunction(t))return t.call(this,e,n);if(Un.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=lr(e)){const n=Un.findKey(this,e);return!(!n||void 0===this[n]||t&&!ur(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=lr(e)){const o=Un.findKey(n,e);!o||t&&!ur(0,n[o],o,t)||(delete n[o],r=!0)}}return Un.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ur(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Un.forEach(this,((r,o)=>{const i=Un.findKey(n,o);if(i)return t[i]=cr(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=cr(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Un.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Un.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[sr]=this[sr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=lr(e);t[r]||(!function(e,t){const n=Un.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Un.isArray(e)?e.forEach(r):r(e),this}}function pr(e,t){const n=this||ir,r=t||n,o=dr.from(r.headers);let i=r.data;return Un.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function fr(e){return!(!e||!e.__CANCEL__)}function mr(e,t,n){Fn.call(this,null==e?"canceled":e,Fn.ERR_CANCELED,t,n),this.name="CanceledError"}function hr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Fn("Request failed with status code "+n.status,[Fn.ERR_BAD_REQUEST,Fn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}dr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Un.reduceDescriptors(dr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Un.freezeMethods(dr),Un.inherits(mr,Fn,{__CANCEL__:!0});const gr=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},_r=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},br=e=>(...t)=>Un.asap((()=>e(...t))),yr=rr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Un.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),wr=rr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Un.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Un.isString(r)&&a.push("path="+r),Un.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function vr(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const xr=e=>e instanceof dr?{...e}:e;function kr(e,t){t=t||{};const n={};function r(e,t,n){return Un.isPlainObject(e)&&Un.isPlainObject(t)?Un.merge.call({caseless:n},e,t):Un.isPlainObject(t)?Un.merge({},t):Un.isArray(t)?t.slice():t}function o(e,t,n){return Un.isUndefined(t)?Un.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Un.isUndefined(t))return r(void 0,t)}function a(e,t){return Un.isUndefined(t)?Un.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(xr(e),xr(t),!0)};return Un.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Un.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Er=e=>{const t=kr({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=dr.from(s),t.url=Yn(vr(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Un.isFormData(r))if(rr.hasStandardBrowserEnv||rr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(rr.hasStandardBrowserEnv&&(o&&Un.isFunction(o)&&(o=o(t)),o||!1!==o&&yr(t.url))){const e=i&&a&&wr.read(a);e&&s.set(i,e)}return t},Sr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Er(e);let o=r.data;const i=dr.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=dr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());hr((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new Fn("Request aborted",Fn.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Fn("Network Error",Fn.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Kn;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Fn(t,o.clarifyTimeoutError?Fn.ETIMEDOUT:Fn.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Un.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Un.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),f&&([l,u]=gr(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=gr(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new mr(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);_&&-1===rr.protocols.indexOf(_)?n(new Fn("Unsupported protocol "+_+":",Fn.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Cr=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Fn?t:new mr(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Fn(`timeout ${t} of ms exceeded`,Fn.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Tr=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Nr=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Tr(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Ar="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Or=Ar&&"function"==typeof ReadableStream,Rr=Ar&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pr=(e,...t)=>{try{return!!e(...t)}catch(Xo){return!1}},Lr=Or&&Pr((()=>{let e=!1;const t=new Request(rr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ir=Or&&Pr((()=>Un.isReadableStream(new Response("").body))),Ur={stream:Ir&&(e=>e.body)};var Fr;Ar&&(Fr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ur[e]&&(Ur[e]=Un.isFunction(Fr[e])?t=>t[e]():(t,n)=>{throw new Fn(`Response type '${e}' is not supported`,Fn.ERR_NOT_SUPPORT,n)})})));const Dr=async(e,t)=>{const n=Un.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Un.isBlob(e)?e.size:Un.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Un.isArrayBufferView(e)||Un.isArrayBuffer(e)?e.byteLength:(Un.isURLSearchParams(e)&&(e+=""),Un.isString(e)?(await Rr(e)).byteLength:void 0))(t):n},jr={http:null,xhr:Sr,fetch:Ar&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Er(e);c=c?(c+"").toLowerCase():"text";let f,m,[h,g]=o||i||a?Cr([o,i],a):[];const _=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let b;try{if(l&&Lr&&"get"!==n&&"head"!==n&&0!==(b=await Dr(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Un.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=_r(b,gr(br(l)));r=Nr(n.body,65536,e,t,Rr)}}Un.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=Ir&&("stream"===c||"response"===c);if(Ir&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Un.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&_r(t,gr(br(s),!0))||[];o=new Response(Nr(o.body,65536,n,(()=>{r&&r(),i&&_()}),Rr),e)}c=c||"text";let a=await Ur[Un.findKey(Ur,c)||"text"](o,e);return!i&&_(),g&&g(),await new Promise(((t,n)=>{hr(t,n,{data:a,headers:dr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(y){if(_(),y&&"TypeError"===y.name&&/fetch/i.test(y.message))throw Object.assign(new Fn("Network Error",Fn.ERR_NETWORK,e,m),{cause:y.cause||y});throw Fn.from(y,y&&y.code,e,m)}})};Un.forEach(jr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Xo){}Object.defineProperty(e,"adapterName",{value:t})}}));const Mr=e=>`- ${e}`,Br=e=>Un.isFunction(e)||null===e||!1===e,Hr=e=>{e=Un.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Br(n)&&(r=jr[(t=String(n)).toLowerCase()],void 0===r))throw new Fn(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Fn("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Mr).join("\n"):" "+Mr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function zr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function Wr(e){zr(e),e.headers=dr.from(e.headers),e.data=pr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Hr(e.adapter||ir.adapter)(e).then((function(t){return zr(e),t.data=pr.call(e,e.transformResponse,t),t.headers=dr.from(t.headers),t}),(function(t){return fr(t)||(zr(e),t&&t.response&&(t.response.data=pr.call(e,e.transformResponse,t.response),t.response.headers=dr.from(t.response.headers))),Promise.reject(t)}))}const qr="1.7.4",Vr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Vr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const $r={};Vr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Fn(r(o," has been removed"+(t?" in "+t:"")),Fn.ERR_DEPRECATED);return t&&!$r[o]&&($r[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Gr={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Fn("options must be an object",Fn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Fn("option "+i+" must be "+n,Fn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Fn("Unknown option "+i,Fn.ERR_BAD_OPTION)}},validators:Vr},Yr=Gr.validators;class Jr{constructor(e){this.defaults=e,this.interceptors={request:new Jn,response:new Jn}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Xo){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=kr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Gr.assertOptions(n,{silentJSONParsing:Yr.transitional(Yr.boolean),forcedJSONParsing:Yr.transitional(Yr.boolean),clarifyTimeoutError:Yr.transitional(Yr.boolean)},!1),null!=r&&(Un.isFunction(r)?t.paramsSerializer={serialize:r}:Gr.assertOptions(r,{encode:Yr.function,serialize:Yr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Un.merge(o.common,o[t.method]);o&&Un.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=dr.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Wr.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=Wr.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Yn(vr((e=kr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Un.forEach(["delete","get","head","options"],(function(e){Jr.prototype[e]=function(t,n){return this.request(kr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Un.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(kr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Jr.prototype[e]=t(),Jr.prototype[e+"Form"]=t(!0)}));class Kr{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new mr(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Kr((function(t){e=t})),cancel:e}}}const Xr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xr).forEach((([e,t])=>{Xr[t]=e}));const Zr=function e(t){const n=new Jr(t),r=$t(Jr.prototype.request,n);return Un.extend(r,Jr.prototype,n,{allOwnKeys:!0}),Un.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(kr(t,n))},r}(ir);Zr.Axios=Jr,Zr.CanceledError=mr,Zr.CancelToken=Kr,Zr.isCancel=fr,Zr.VERSION=qr,Zr.toFormData=Wn,Zr.AxiosError=Fn,Zr.Cancel=Zr.CanceledError,Zr.all=function(e){return Promise.all(e)},Zr.spread=function(e){return function(t){return e.apply(null,t)}},Zr.isAxiosError=function(e){return Un.isObject(e)&&!0===e.isAxiosError},Zr.mergeConfig=kr,Zr.AxiosHeaders=dr,Zr.formToJSON=e=>or(Un.isHTMLForm(e)?new FormData(e):e),Zr.getAdapter=Hr,Zr.HttpStatusCode=Xr,Zr.default=Zr;class Qr{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,Zr.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const eo={backend:new class extends Qr{constructor(){super(...arguments),__publicField(this,"getIdToken",(()=>this.getClient().get("v1.0/auth/token").then((e=>e.data.token))))}url(e){return`${e}/flare-app-identity`}}};let to;class no{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(to||(to=await eo.backend.getIdToken()),e.headers.Authorization=`Bearer ${to}`,e.params={...e.params??{},client:"onboarding",source:"Onboarding",channel:"onboarding"},e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,Zr.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{...a,"X-PROFILE-ID":i}})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o))}getClient(){return __privateGet(this,t)}async getAccessToken(){return to||(to=await eo.backend.getIdToken()),to}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const ro=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Vt(),e};let oo=(a=class extends no{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,i,(async e=>e))}get canceledSignal(){if(!this._canceledSignal){const e=new AbortController;e.abort(),this._canceledSignal=e.signal}return this._canceledSignal}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t,n),this.getClient().interceptors.request.use(__privateGet(this,i))}async track(e,t){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t}).catch((e=>{}))}},i=new WeakMap,a);const io={backend:new class extends Qr{constructor(){super(...arguments),__publicField(this,"sourceId")}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t),this.getClient().interceptors.response.use((e=>e),ro),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}async command(e){await this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e})}},workplaceBackend:new oo};const ao={workplaceBackend:new class extends no{url(e){return`${e}/benefits-plan`}}},so=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new Ht("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Ht(`Invalid token specified: missing part #${n+1}`);let o;try{o=zt(r)}catch(Xo){throw new Ht(`Invalid token specified: invalid base64 for part #${n+1} (${Xo.message})`)}try{return JSON.parse(o)}catch(Xo){throw new Ht(`Invalid token specified: invalid json for part #${n+1} (${Xo.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};io.backend.initClient(e,o.backend,n),io.workplaceBackend.initClient(e,r,o.workplaceBackend),eo.backend.initClient(e,o.backend),ao.workplaceBackend.initClient(e,r,o.workplaceBackend)};var lo=0;function co(e,t,n,r,o,i){var a,s,c={};for(s in t)"ref"==s?a=t[s]:c[s]=t[s];var u={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--lo,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===c[s]&&(c[s]=a[s]);return l.vnode&&l.vnode(u),u}const uo={isLoading:!0,offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},updateIdentity:e=>({}),offersProgress:{update:()=>({}),hasEnrolled:()=>!1}},po=G(uo),fo=({children:e})=>{const[t,n]=be(),[r,o]=be(),[i,a]=be([]),s=Se((e=>{o(e?"authentication-succeeded":"authentication-failed")}),[]),l=Ee((()=>i.some((e=>"Perks"!==e.offerName&&e.isEnrolled))),[i]),c=Se(((e,t)=>{const n=[...i],r=n.findIndex((t=>t.offerName===e));-1!==r&&n.slice(r,1),n.push({offerName:e,isEnrolled:t}),a(n)}),[i]),u=Ee((()=>{return e=(null==t?void 0:t.identity.email)??"",n=l,{joinBenefits:{desktopImageUrl:ne,mobileImageUrl:Bt,title:"Your workplace benefits program",description:"Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia's most-loved brands.",specialBanner:{title:"Flare Benefits Allowance",icon:co(Mt,{}),subTitle:co("span",{children:["You have been allocated a ",co("b",{children:"$1,300"})," allowance as part of your benefits program. Set up your benefits today to be eligible for reimbursement."]})},buttonText:"Join your workplace"},setUpBenefits:{title:"Set up your Benefits Allowance today",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. To be eligible, you'll need to make your selections today.",buttonText:"Set up your benefits",progress:{title:"How it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Complete your benefits setup today*",description:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch within 30 days**",completed:!1},{title:"Get reimbursed after 90 days**",completed:!1}]},termsAndConditions:()=>co("div",{className:"flex flex-col gap-2",children:[co("span",{children:["* You must make selections today to be eligible for reimbursement. If you decline any benefit during today's process, you will not receive any reimbursement for that benefit. If you do not finish your benefits setup, you will not be eligible for any reimbursements."," "]}),co("span",{children:["** You must purchase the benefit within 30 days of joining your workplace benefits program to be eligible for reimbursement. Reimbursements will be distributed as a Flare Gift Card to your email address after you have held your plan/policy for 90 days. Detailed individual product eligibility requirements apply. See"," ",co("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/flare-benefits-allowance-terms",children:"Terms and Conditions"})," ","for more details"]})]})},summary:n?{title:"Congratulations, you've unlocked your benefits allowance",description:`We've sent an email to ${e} with more information about your benefits program and how you can get reimbursed as part of your allowance`,buttonText:"Finish benefits set up",progress:{title:"How this works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Complete your benefits setup today*",completed:!0},{title:"Purchase or switch within 30 days**",description:"Make sure you complete your benefit purchase in the first 30 days of your enrolment",completed:!1},{title:"Get reimbursed after 90 days**",completed:!1}]}}:{title:"You're all set!",description:"You've finished setting up your benefits plan. Continue to review your details and finish up your workplace onboarding.",buttonText:"Finish benefits set up"}};var e,n}),[null==t?void 0:t.identity.email,l]),d=Ee((()=>{if(!t)return uo;const e=t.offers.some((e=>"Perks"===e.name));let n=t.identity.isRegistered?"PreviouslyRegistered":"Unregistered";"authentication-succeeded"===r&&"Unregistered"===n?n="NewlyRegistered":"authentication-failed"===r&&(n="RegistrationAbandoned");const o={email:t.identity.email,phoneNumber:t.identity.phoneNumber??"",verifiedPhoneNumber:t.identity.verifiedPhoneNumber??"",registrationStatus:n};let i=t.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked";"authentication-succeeded"===r&&"Unlinked"===i&&(i="NewlyLinked");const a={employerName:t.workplace.employerName,linkingStatus:i};return{isLoading:!1,offers:t.offers,isComplete:t.isComplete,isAppEnabled:e,identity:o,workplace:a,featureFlags:{marketplaceScheme:"promotion"===t.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:u},marketplaceSubNavigation:t.featureFlags.marketplaceSubNavigation},updateIdentity:s,offersProgress:{hasEnrolled:()=>l,update:c}}}),[u,l,r,t,s,c]);return we((()=>{(async()=>{const e=await io.backend.init();n(e)})()}),[]),co(po.Provider,{value:d,children:e})},mo=e=>co("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[co("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),co("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-primary-base"})]}),ho='/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}span a{color:var(--fl-color-primary)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.m-0{margin:0}.m-0\\.5{margin:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.max-h-10{max-height:2.5rem}.max-h-12{max-height:3rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.min-h-12{min-height:3rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.max-w-10{max-width:2.5rem}.max-w-20{max-width:5rem}.max-w-6{max-width:1.5rem}.max-w-8{max-width:2rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.-translate-y-6{--tw-translate-y:-1.5rem}.-translate-y-6,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.\\!border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.border-transparent{border-color:transparent}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-teal-50{--tw-bg-opacity:1;background-color:rgb(240 253 250/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.fill-gray-200{fill:#e5e7eb}.fill-primary-base{fill:var(--fl-color-primary)}.fill-white{fill:#fff}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-bottom:0;padding-top:0}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.accent-primary-base{accent-color:var(--fl-color-primary)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.\\!shadow-none{--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-4:after{content:var(--tw-content);left:1rem}.after\\:top-8:after{content:var(--tw-content);top:2rem}.after\\:inline-block:after{content:var(--tw-content);display:inline-block}.after\\:h-\\[calc\\(100\\%-theme\\(height\\.8\\)\\)\\]:after{content:var(--tw-content);height:calc(100% - 2rem)}.after\\:w-0:after{content:var(--tw-content);width:0}.after\\:w-0\\.5:after{content:var(--tw-content);width:.125rem}.after\\:bg-gray-300:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.after\\:bg-primary-base:after{background-color:var(--fl-color-primary);content:var(--tw-content)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.hover\\:\\!bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:\\!ring-gray-200:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))!important}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.disabled\\:cursor-text:disabled{cursor:text}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:px-0:disabled{padding-left:0;padding-right:0}.disabled\\:text-gray-300:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}@media (min-width:768px){.md\\:mb-4{margin-bottom:1rem}.md\\:mt-0{margin-top:0}.md\\:mt-11{margin-top:2.75rem}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-\\[240px\\]{width:240px}.md\\:w-\\[300px\\]{width:300px}.md\\:w-auto{width:auto}.md\\:w-full{width:100%}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem}.md\\:leading-7,.md\\:text-lg{line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:transition-none{transition-property:none}}@media (min-width:1024px){.lg\\:-m-8{margin:-2rem}.lg\\:w-3\\/4{width:75%}}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:absolute:not(:last-child):after{position:absolute}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:left-10:not(:last-child):after{left:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:top-3:not(:last-child):after{top:.75rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:w-10:not(:last-child):after{width:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-b-2:not(:last-child):after{border-bottom-width:2px}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-solid:not(:last-child):after{border-style:solid}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-gray-200:not(:last-child):after{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:content-\\[\\"\\"\\]:not(:last-child):after{--tw-content:"";content:var(--tw-content)}';const go=e=>{const[t,n]=be(!1);return co("button",{"data-testid":e.testId,type:"button",class:`${e.class} inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white disabled:text-gray-300 bg-primary-base hover:bg-primary-hover disabled:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus w-full md:w-auto`,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){n(!0);try{await e.onClickPromise()}catch(r){}n(!1)}},children:[co("div",{class:""+(t?"invisible":""),children:e.children}),t&&co("div",{class:"absolute animate-spin",children:co(mo,{theme:"light"})})]})},_o=({className:e,children:t})=>co("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),bo=({className:e,children:t})=>co("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),yo=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},v("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})),wo=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return co("div",{...n,children:[co("h1",{className:"text-lg font-semibold mb-4",children:e}),co("ol",{children:t.map(((e,t)=>{const n=o===t;return co("li",{className:"relative flex-1 pb-6 "+(t!==r-1?`after:content-[''] after:w-0.5 after:h-[calc(100%-theme(height.8))] ${e.completed?"after:bg-primary-base":"after:bg-gray-300"} after:inline-block after:absolute after:top-8 after:left-4`:""),children:co("div",{className:"flex font-medium w-full",children:[co("span",{className:`w-8 min-w-8 max-w-8 h-8 min-h-8 max-h-8 ${e.completed?"bg-primary-base":"bg-white"} border-2 ${e.completed||n?"border-primary-base":"border-gray-300"} rounded-full flex justify-center items-center mr-3 text-sm ${n?"text-primary-base":"text-gray-500"}`,children:e.completed?co(yo,{className:"w-4 h-4 text-white"}):t+1}),co("div",{children:[co("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),co("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},e.title)}))})]})};var vo=Object.defineProperty,xo=(e,t,n)=>(((e,t,n)=>{t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ko=new class{constructor(){xo(this,"current",this.detect()),xo(this,"handoffState","pending"),xo(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Eo=(e,t)=>{ko.isServer?we(e,t):ve(e,t)};function So(e){let t=xe(e);return Eo((()=>{t.current=e}),[e]),t}let Co=function(e){let t=So(e);return Dt.useCallback(((...e)=>t.current(...e)),[t])};function To(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function No(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return To((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=No();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Ao(){let[e]=be(No);return we((()=>()=>e.dispose()),[e]),e}function Oo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in jt&&jt.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=be(ko.isHandoffComplete);return t&&!1===ko.isHandoffComplete&&n(!1),we((()=>{!0!==t&&n(!0)}),[t]),we((()=>ko.handoff()),[]),!e&&t}var Ro;let Po=null!=(Ro=Dt.useId)?Ro:function(){let e=Oo(),[t,n]=Dt.useState(e?()=>ko.nextId():null);return Eo((()=>{null===t&&n(ko.nextId())}),[t]),null!=t?""+t:void 0};function Lo(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Lo),r}let Io=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Uo,Fo,Do,jo=((Do=jo||{})[Do.First=1]="First",Do[Do.Previous=2]="Previous",Do[Do.Next=4]="Next",Do[Do.Last=8]="Last",Do[Do.WrapAround=16]="WrapAround",Do[Do.NoScroll=32]="NoScroll",Do),Mo=((Fo=Mo||{})[Fo.Error=0]="Error",Fo[Fo.Overflow=1]="Overflow",Fo[Fo.Success=2]="Success",Fo[Fo.Underflow=3]="Underflow",Fo),Bo=((Uo=Bo||{})[Uo.Previous=-1]="Previous",Uo[Uo.Next=1]="Next",Uo);var Ho=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ho||{}),zo=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(zo||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Wo=["textarea","input"].join(",");function qo(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Vo(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?qo(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Io)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Wo))&&n}(s)&&s.select(),2}function $o(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Go(e,t){let[n,r]=be((()=>$o(e)));return Eo((()=>{r($o(e))}),[e.type,e.as]),Eo((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}let Yo=Symbol();function Jo(...e){let t=xe(e);we((()=>{t.current=e}),[e]);let n=Co((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Yo])))?void 0:n}function Ko(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Xo,Zo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zo||{}),Qo=((Xo=Qo||{})[Xo.Unmount=0]="Unmount",Xo[Xo.Hidden=1]="Hidden",Xo);function ei({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:ni;let l=ri(t,e);if(i)return ti(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ti(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Lo(e?0:1,{0:()=>null,1:()=>ti({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return ti(l,n,r,a,s)}function ti(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=ai(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(i===E&&Object.keys(ii(l)).length>0){if(!xt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Ko(null==e?void 0:e.className(...t),l.className):Ko(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Et(u,Object.assign({},ri(u.props,ii(ai(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return v(i,Object.assign({},ai(l,["ref"]),i!==E&&c,i!==E&&d),u)}function ni(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function ri(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function oi(e){var t;return Object.assign(ze(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ii(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function ai(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var si=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(si||{});let li=oi((function(e,t){var n;let{features:r=1,...o}=e;return ei({ourProps:{ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})),ci=G(null);ci.displayName="OpenClosedContext";var ui=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ui||{});function di(){return Ce(ci)}function pi({value:e,children:t}){return Dt.createElement(ci.Provider,{value:e},t)}var fi,mi=((fi=mi||{}).Space=" ",fi.Enter="Enter",fi.Escape="Escape",fi.Backspace="Backspace",fi.Delete="Delete",fi.ArrowLeft="ArrowLeft",fi.ArrowUp="ArrowUp",fi.ArrowRight="ArrowRight",fi.ArrowDown="ArrowDown",fi.Home="Home",fi.End="End",fi.PageUp="PageUp",fi.PageDown="PageDown",fi.Tab="Tab",fi);function hi(){let e=xe(!1);return Eo((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function gi({onFocus:e}){let[t,n]=be(!0),r=hi();return t?Dt.createElement(li,{as:"button",type:"button",features:si.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;o=requestAnimationFrame((function t(){if(i--<=0)o&&cancelAnimationFrame(o);else if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1)}else o=requestAnimationFrame(t)}))}}):null}const _i=G(null);function bi({children:e}){let t=xe({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return v(_i.Provider,{value:t},e)}function yi(e){let t=Ce(_i);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=wt)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],i=r;for(;i;)o.push(i.index),i=i.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return we((()=>o),[]),r}var wi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wi||{}),vi=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(vi||{}),xi=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(xi||{});let ki={0(e,t){var n;let r=qo(e.tabs,(e=>e.current)),o=qo(e.panels,(e=>e.current)),i=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=Lo(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Lo(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=Lo(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===o?e.selectedIndex:o}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>i.includes(e)));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=qo([...e.tabs,t.tab],(e=>e.current)),i=null!=(n=o.indexOf(r))?n:e.selectedIndex;return-1===i&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:qo([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},Ei=G(null);function Si(e){let t=Ce(Ei);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Si),t}return t}Ei.displayName="TabsDataContext";let Ci=G(null);function Ti(e){let t=Ce(Ci);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ti),t}return t}function Ni(e,t){return Lo(t.type,ki,e,t)}Ci.displayName="TabsActionsContext";let Ai=E;let Oi=Zo.RenderStrategy|Zo.Static;let Ri=oi((function(e,t){var n,r;let o=Po(),{id:i=`headlessui-tabs-tab-${o}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:u,panels:d}=Si("Tab"),p=Ti("Tab"),f=Si("Tab"),m=xe(null),h=Jo(m,t);Eo((()=>p.registerTab(m)),[p,m]);let g=yi("tabs"),_=u.indexOf(m);-1===_&&(_=g);let b=_===c,y=Co((e=>{var t;let n=e();if(n===Mo.Success&&"auto"===l){let e=null==(t=function(e){return ko.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}(m))?void 0:t.activeElement,n=f.tabs.findIndex((t=>t.current===e));-1!==n&&p.change(n)}return n})),w=Co((e=>{let t=u.map((e=>e.current)).filter(Boolean);if(e.key===mi.Space||e.key===mi.Enter)return e.preventDefault(),e.stopPropagation(),void p.change(_);switch(e.key){case mi.Home:case mi.PageUp:return e.preventDefault(),e.stopPropagation(),y((()=>Vo(t,jo.First)));case mi.End:case mi.PageDown:return e.preventDefault(),e.stopPropagation(),y((()=>Vo(t,jo.Last)))}return y((()=>Lo(s,{vertical:()=>e.key===mi.ArrowUp?Vo(t,jo.Previous|jo.WrapAround):e.key===mi.ArrowDown?Vo(t,jo.Next|jo.WrapAround):Mo.Error,horizontal:()=>e.key===mi.ArrowLeft?Vo(t,jo.Previous|jo.WrapAround):e.key===mi.ArrowRight?Vo(t,jo.Next|jo.WrapAround):Mo.Error})))===Mo.Success?e.preventDefault():void 0})),v=xe(!1),x=Co((()=>{var e;v.current||(v.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),p.change(_),To((()=>{v.current=!1})))})),k=Co((e=>{e.preventDefault()})),E=Ee((()=>({selected:b})),[b]);return ei({ourProps:{ref:h,onKeyDown:w,onMouseDown:k,onClick:x,id:i,role:"tab",type:Go(e,m),"aria-controls":null==(r=null==(n=d[_])?void 0:n.current)?void 0:r.id,"aria-selected":b,tabIndex:b?0:-1},theirProps:a,slot:E,defaultTag:"button",name:"Tabs.Tab"})})),Pi=oi((function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:a=null,...s}=e;const l=r?"vertical":"horizontal",c=o?"manual":"auto";let u=null!==a,d=Jo(t),[p,f]=ye(Ni,{selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=Ee((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),h=So(i||(()=>{})),g=So(p.tabs),_=Ee((()=>({orientation:l,activation:c,...p})),[l,c,p]),b=Co((e=>(f({type:1,tab:e}),()=>f({type:2,tab:e})))),y=Co((e=>(f({type:3,panel:e}),()=>f({type:4,panel:e})))),w=Co((e=>{v.current!==e&&h.current(e),u||f({type:0,index:e})})),v=So(u?e.selectedIndex:p.selectedIndex),x=Ee((()=>({registerTab:b,registerPanel:y,change:w})),[]);Eo((()=>{f({type:0,index:null!=a?a:n})}),[a]),Eo((()=>{if(void 0===v.current||p.tabs.length<=0)return;let e=qo(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&w(e.indexOf(p.tabs[v.current]))}));let k={ref:d};return Dt.createElement(bi,null,Dt.createElement(Ci.Provider,{value:x},Dt.createElement(Ei.Provider,{value:_},_.tabs.length<=0&&Dt.createElement(gi,{onFocus:()=>{var e,t;for(let n of g.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),ei({ourProps:k,theirProps:s,slot:m,defaultTag:Ai,name:"Tabs"}))))})),Li=oi((function(e,t){let{orientation:n,selectedIndex:r}=Si("Tab.List");return ei({ourProps:{ref:Jo(t),role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),Ii=oi((function(e,t){let{selectedIndex:n}=Si("Tab.Panels");return ei({ourProps:{ref:Jo(t)},theirProps:e,slot:Ee((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),Ui=oi((function(e,t){var n,r,o,i;let a=Po(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:p}=Si("Tab.Panel"),f=Ti("Tab.Panel"),m=xe(null),h=Jo(m,t);Eo((()=>f.registerPanel(m)),[f,m]);let g=yi("panels"),_=p.indexOf(m);-1===_&&(_=g);let b=_===u,y=Ee((()=>({selected:b})),[b]),w={ref:h,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[_])?void 0:n.current)?void 0:r.id,tabIndex:b?l:-1};return b||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?ei({ourProps:w,theirProps:c,slot:y,defaultTag:"div",features:Oi,visible:b,name:"Tabs.Panel"}):Dt.createElement(li,{as:"span","aria-hidden":"true",...w})})),Fi=Object.assign(Ri,{Group:Pi,List:Li,Panels:Ii,Panel:Ui});function Di(e,...t){e&&t.length>0&&e.classList.add(...t)}function ji(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Mi(e,t,n,r){let o=n?"enter":"leave",i=No(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=Lo(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Lo(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Lo(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ji(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Di(e,...t.base,...s,...c),i.nextFrame((()=>{ji(e,...t.base,...s,...c),Di(e,...t.base,...s,...l),function(e,t){let n=No();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=i+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(ji(e,...t.base,...s),Di(e,...t.base,...t.entered),a())))})),i.dispose}function Bi(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Hi=G(null);Hi.displayName="TransitionContext";var zi=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zi||{});let Wi=G(null);function qi(e){return"children"in e?qi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Vi(e,t){let n=So(e),r=xe([]),o=hi(),i=Ao(),a=Co(((e,t=Qo.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Lo(t,{[Qo.Unmount](){r.current.splice(a,1)},[Qo.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!qi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=Co((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Qo.Unmount)})),l=xe([]),c=xe(Promise.resolve()),u=xe({enter:[],leave:[],idle:[]}),d=Co(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Co(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Ee((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function $i(){}Wi.displayName="NestingContext";let Gi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Yi(e){var t;let n={};for(let r of Gi)n[r]=null!=(t=e[r])?t:$i;return n}let Ji=Zo.RenderStrategy;let Ki=oi((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=xe(null),s=Jo(a,t);Oo();let l=di();if(void 0===n&&null!==l&&(n=(l&ui.Open)===ui.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=be(n?"visible":"hidden"),d=Vi((()=>{u("hidden")})),[p,f]=be(!0),m=xe([n]);Eo((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Ee((()=>({show:n,appear:r,initial:p})),[n,r,p]);we((()=>{if(n)u("visible");else if(qi(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let g={unmount:o},_=Co((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),b=Co((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return Dt.createElement(Wi.Provider,{value:d},Dt.createElement(Hi.Provider,{value:h},ei({ourProps:{...g,as:E,children:Dt.createElement(Xi,{ref:s,...g,...i,beforeEnter:_,beforeLeave:b})},theirProps:{},defaultTag:E,features:Ji,visible:"visible"===c,name:"Transition"})))})),Xi=oi((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=xe(null),_=Jo(g,t),b=null==(n=h.unmount)||n?Qo.Unmount:Qo.Hidden,{show:y,appear:w,initial:v}=function(){let e=Ce(Hi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,k]=be(y?"visible":"hidden"),E=function(){let e=Ce(Wi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:C}=E;we((()=>S(g)),[S,g]),we((()=>{if(b===Qo.Hidden&&g.current)return y&&"visible"!==x?void k("visible"):Lo(x,{hidden:()=>C(g),visible:()=>S(g)})}),[x,g,S,C,y,b]);let T=So({base:Bi(h.className),enter:Bi(l),enterFrom:Bi(c),enterTo:Bi(u),entered:Bi(d),leave:Bi(p),leaveFrom:Bi(f),leaveTo:Bi(m)}),N=function(e){let t=xe(Yi(e));return we((()=>{t.current=Yi(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=Oo();we((()=>{if(A&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,A]);let O=v&&!w,R=w&&y&&v,P=(()=>!A||O?"idle":y?"enter":"leave")(),L=function(e=0){let[t,n]=be(e),r=hi(),o=Se((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Se((e=>Boolean(t&e)),[t]),a=Se((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Se((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=Co((e=>Lo(e,{enter:()=>{L.addFlag(ui.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag(ui.Closing),N.current.beforeLeave()},idle:()=>{}}))),U=Co((e=>Lo(e,{enter:()=>{L.removeFlag(ui.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag(ui.Closing),N.current.afterLeave()},idle:()=>{}}))),F=Vi((()=>{k("hidden"),C(g)}),E),D=xe(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=hi(),s=Ao(),l=So(n);Eo((()=>{e&&(l.current="enter")}),[e]),Eo((()=>{let e=No();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Mi(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:T,direction:P,onStart:So((e=>{D.current=!0,F.onStart(g,e,I)})),onStop:So((e=>{D.current=!1,F.onStop(g,e,U),"leave"===e&&!qi(F)&&(k("hidden"),C(g))}))});let j=h,M={ref:_};return R?j={...j,className:Ko(h.className,...T.current.enter,...T.current.enterFrom)}:D.current&&(j.className=Ko(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),Dt.createElement(Wi.Provider,{value:F},Dt.createElement(pi,{value:Lo(x,{visible:ui.Open,hidden:ui.Closed})|L.flags},ei({ourProps:M,theirProps:j,defaultTag:"div",features:Ji,visible:"visible"===x,name:"Transition.Child"})))})),Zi=oi((function(e,t){let n=null!==Ce(Hi),r=null!==di();return Dt.createElement(Dt.Fragment,null,!n&&r?Dt.createElement(Ki,{ref:t,...e}):Dt.createElement(Xi,{ref:t,...e}))})),Qi=Object.assign(Ki,{Child:Zi,Root:Ki});const ea=({children:e})=>{const t=Dt.Children.toArray(e),n=t.find((e=>e.type===ta)),r=t.find((e=>e.type===na));return co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&co("div",{class:"flex items-center h-full",children:n})}),co(Qi,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&co("div",{class:"flex items-center h-full",children:r})})]})})},ta=({children:e})=>co(E,{children:e}),na=({children:e})=>co(E,{children:e});ea.Top=ta,ea.Bottom=na;const ra=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ce(po),n="allowance"===t.scheme?t.content.setUpBenefits:void 0;return co(E,{children:n&&co(ea,{children:[co(ea.Top,{children:co("div",{className:"flex flex-col gap-4",children:[co(_o,{children:n.title}),co(bo,{children:n.description})]})}),co(ea.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[n.progress&&co(wo,{title:n.progress.title,steps:n.progress.steps,className:"rounded-md px-6 py-4 lg:w-3/4",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"}}),co(go,{testId:"allowance_set_up_benefits_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:e,children:n.buttonText}),n.termsAndConditions&&co("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:co(n.termsAndConditions,{})})]})})]})})},oa=({icon:e,children:t,className:n,...r})=>co("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:co("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&co("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&co("span",{className:"text-left text-base",children:t})]})}),ia=(e,t)=>{switch(!0){case"started"===e:return io.backend.command({eventType:"Started",analyticsData:t});case"membership-accepted"===e:return io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return io.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await io.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await io.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return io.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"summary-viewed"===e.type:return io.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant,analyticsData:t});case"completed"===e:return io.backend.command({eventType:"Completed",analyticsData:t})}return Promise.resolve()},aa=()=>({trace:ia}),sa=e=>{const{trace:t}=aa(),{featureFlags:{marketplaceScheme:n}}=Ce(po),r="allowance"===n.scheme?n.content.joinBenefits:void 0;return co(E,{children:r&&co(ea,{children:[co(ea.Top,{children:[co("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.desktopImageUrl}),co("img",{class:"max-w-[30rem] w-full md:hidden",src:r.mobileImageUrl})]}),co(ea.Bottom,{children:co("div",{children:[co("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r.title}),co("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:r.description}),co(oa,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},icon:r.specialBanner.icon,children:co("div",{children:[co("p",{className:"font-semibold text-base text-gray-900",children:r.specialBanner.title}),co("span",{className:"font-normal text-base text-gray-900",children:r.specialBanner.subTitle})]})}),co(go,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onContinue()},children:r.buttonText})]})})]})})},la=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg?inline").href:new URL("assets/get-app-CQalMIl7.jpg?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),ca=()=>co("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[co("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:la}),co("div",{className:"flex flex-col gap-1",children:[co("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),co("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),co("a",{className:"focus:ring-2 focus:ring-primary-focus font-bold rounded-md self-start text-primary-base",target:"_blank",rel:"noreferrer",href:"https://flarehr.app.link/download",children:["Get the Flare App ","->"]})]})]}),ua=({onContinue:e})=>{const{offersProgress:{hasEnrolled:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r}}=Ce(po),{trace:o}=aa(),i=Ee((()=>{const e=t();switch(!0){case n&&e:return"allowance-accepted-app";case n&&!e:return"allowance-declined-app";case!n&&e:return"allowance-accepted-noapp";case!n&&!e:return"allowance-declined-noapp";default:throw"Invalid summary variant"}}),[t,n]);we((()=>{(async()=>{await o({type:"summary-viewed",data:{summaryVariant:i}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,i,o]);const a=Se((async()=>{await o("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}),[r,e,o]),s="allowance"===r.scheme?r.content.summary:void 0;return co(E,{children:s&&co(ea,{children:[co(ea.Top,{children:co("div",{className:"flex flex-col gap-4",children:[co(_o,{children:s.title}),co(bo,{children:s.description})]})}),co(ea.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[s.progress&&co(wo,{title:s.progress.title,steps:s.progress.steps,className:"rounded-md px-6 py-4 lg:w-3/4",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"}}),co(go,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:a,children:s.buttonText}),n&&co(ca,{})]})})]})})};var da=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(da||{});const pa=({className:e,children:t,...n})=>co("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),fa=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},v("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})),ma=({className:e,onClick:t,...n})=>{const[r,o]=be(!1);return co("button",{className:`inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ${e??""}`,onClick:Se((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[co("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&co("div",{class:"absolute animate-spin",children:co(mo,{theme:"primary"})})]})},ha=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Se((e=>{t.test(e.key)||e.preventDefault()}),[t]);return co(E,{children:co("div",{class:"relative",children:[o,co("input",{"data-testid":a.testId,type:"text",className:`border-0 ring-2 ring-gray-200 focus:outline-none text-base font-medium rounded-md shadow-sm ${e}`,value:r,onKeyPress:s,onChange:e=>n(e.currentTarget.value),...a}),i]})})},ga=e=>e.replace(/ /g,""),_a=e=>{const t=ga(e);return t.startsWith("04")&&10===t.length||t.startsWith("614")&&11===t.length||t.startsWith("+614")&&12===t.length||/^\+642\d{7,9}$/.test(t)},ba=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=aa(),[o,i]=be(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Ce(po),[n,r]=be((()=>e&&_a(e)?e:"")),o=Ee((()=>_a(n)),[n]),i=Ee((()=>ga(n)),[n]),a=Ee((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Ee((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Ee((()=>_a(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=be(s.isVerified);we((()=>{(async()=>{await r("sign-up-viewed")})()}),[r]);const u=Se((()=>{i("")}),[]),d=Se((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=Se((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),f=Se((()=>r("sign-up-declined").then(n)),[n,r]),m=Se((async()=>{c(!1)}),[]),h=co("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-xs text-green-700 font-bold",children:["Verified ",co(fa,{})]});return co(ea,{children:[co(ea.Top,{children:co("div",{className:"flex flex-col gap-5",children:[co(_o,{children:"Join your workplace benefits program"}),co(bo,{children:[s.isVerified?"Confirm ":"Enter "," your ",co("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),co(ea.Bottom,{children:co("div",{className:"mt-5 md:w-[300px] text-left",children:[co(pa,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),co(ha,{testId:"sign_in_mobile_number_text_input_mobile_number",allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",value:s.original,onChange:a,onfocusin:u,onfocusout:d,trailingIconElement:l&&h,disabled:l}),0!==o.length&&co("div",{className:"h-8 leading-none",children:co("span",{className:"text-xs text-rose-500",children:o})}),l&&co("div",{className:"mt-2 ml-2 mb-2 leading-none",children:co("span",{className:"text-xs",children:["Not your personal number?",co(ma,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),co("div",{children:co("span",{className:"font-medium text-sm text-gray-900 text-center",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",co("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",co("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),co(go,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),co(go,{testId:"sign_in_mobile_number_button_decline_to_send_otp",class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:f,children:"Not now"})]})})]})},ya=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/check-animated-QQOZQPLY.gif?inline").href:new URL("assets/check-animated-QQOZQPLY.gif?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),wa=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ce(po),n=Ee((()=>"allowance"===t.scheme?{title:"Account created successfully",description:"You now have access to your workplace benefits",isNextButtonHidden:!0}:{title:"You’ve joined your workplace benefits program",description:"You now have access to your workplace benefits",isNextButtonHidden:!1}),[t]);return we((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),co(ea,{children:[co(ea.Top,{children:co("img",{src:ya,className:"h-16 w-16"})}),co(ea.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[co(_o,{children:n.title}),co(bo,{children:n.description}),!n.isNextButtonHidden&&co(go,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]})},va=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},v("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),xa=({children:e,...t})=>co("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),ka=({open:e})=>co(xa,{open:e,children:co("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[co("span",{class:"animate-spin",children:co(mo,{size:"lg"})}),co(_o,{children:"Creating your account"}),co("div",{children:[co(bo,{children:"This can take up to 30 seconds."}),co(bo,{children:"Please don't navigate away or refresh your browser."})]})]})}),Ea=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=be("");return{otp:{valid:Ee((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=be(!1),[l,c]=be(""),{countdown:u,restart:d}=(e=>{const[t,n]=be(e),r=xe(),o=Se((()=>{clearInterval(r.current)}),[]);return we((()=>o),[o]),{countdown:t,restart:Se((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);we(d,[d]);const p=Se((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Se((()=>(c(""),n().then(d).catch(c))),[n,d]);return co(E,{children:[co(ka,{open:a}),co(ea,{children:[co(ea.Top,{children:co("div",{className:"flex flex-col gap-5",children:[co(_o,{children:"Verify your mobile number"}),co(bo,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),co(ea.Bottom,{children:co("div",{className:"mt-5 md:w-[300px] text-left",children:[co(pa,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),co(ha,{testId:"sign_in_otp_text_input_otp",allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",trailingIconElement:!1,onChange:i}),l&&co("span",{className:"text-xs text-rose-500",children:l}),co("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",co(ma,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==u&&co(E,{children:["in ",u," secs"]})]}),co(go,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),co(go,{testId:"sign_in_otp_button_decline_to_verify_otp",class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:async()=>{r()},children:co("span",{className:"flex gap-3",children:[co(va,{}),"Back"]})})]})})]})]})},Sa=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=be(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=be(0),n=Se((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Se((e=>{e<=2&&t(e)}),[e]);return{step:e,goBack:n,goToStep:r}})(),d=Se((e=>t(e.formatted).then((t=>{s(e.masked),u(t.isVerificationRequired?da.OTP:da.SUCCESS)}))),[u,t]),p=Se((e=>n(e).then((()=>{u(da.SUCCESS)}))),[u,n]);return co(E,{children:[l===da.PHONE_NUMBER&&co(ba,{phoneNumber:a,onSubmit:d,onDecline:i}),l===da.OTP&&co(Ea,{phoneNumber:a,onVerify:p,onResendOtp:r,onGoBack:c}),l===da.SUCCESS&&co(wa,{onContinue:o})]})},Ca="Onboarding",Ta="onboarding";var Na=(e=>(e.Auth_AccountDisabled="Sorry, your account has been deactivated. Please contact Flare if there are any issues.",e.Auth_AccountLocked="Sorry, your account is currently locked due to too many attempts. Please try again later.",e.Auth_Unregistered="Sorry, we are currently experiencing some issues. Please try again later.",e.Auth_InvalidVerificationCode="Your one time passcode doesn't look right. Please try again with a new one time passcode.",e.Auth_SessionExpired="Sorry, looks like your session has expired. Please try again.",e.Validation_InvalidPhoneNumber="Please enter a valid Australian mobile number beginning with 04.",e))(Na||{});const Aa=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Na[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Oa=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Ce(po),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>io.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:Ca,channel:Ta}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await io.backend.getClient().post("auth/verify",{otp:e,source:Ca,channel:Ta}).catch(Aa)},resendOtp:async()=>{await io.backend.getClient().post("auth/resend").catch(Aa)}};return co(E,{children:co(Sa,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Ra=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro-COqxd5jd.png").href:new URL("assets/intro-COqxd5jd.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Pa=e=>{const{trace:t}=aa(),{featureFlags:{marketplaceScheme:n}}=Ce(po);return co(ea,{children:[co(ea.Top,{children:co("img",{class:"max-w-[30rem] w-full",src:Ra})}),co(ea.Bottom,{children:co("div",{children:[co("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),co("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:"Because your workplace uses Flare you have access to a range of exclusive benefits that can save you thousands of dollars every year on your car, private health insurance, weekly grocery shop and more."}),co(go,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onStepComplete()},children:"Continue"})]})})]})};function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},La.apply(null,arguments)}function Ia(e,t){return(Ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ua(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
1
+ var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e,t,n,r,o,i,a,s,l,c,u,d,p,f,m,h={},g=[],_=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray;function b(e,t){for(var n in t)e[n]=t[n];return e}function w(e){var t=e.parentNode;t&&t.removeChild(e)}function v(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?s.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return x(e,a,r,o,null)}function x(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++c:o,__i:-1,__u:0};return null==o&&null!=l.vnode&&l.vnode(i),i}function k(){return{current:null}}function E(e){return e.children}function S(e,t){this.props=e,this.context=t}function C(e,t){if(null==t)return e.__?C(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?C(e):null}function T(e,t,n){var r,o=e.__v,i=o.__e,a=e.__P;if(a)return(r=b({},o)).__v=o.__v+1,l.vnode&&l.vnode(r),M(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?C(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&N(r),r}function N(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return N(e)}}function A(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!O.__r++||d!==l.debounceRendering)&&((d=l.debounceRendering)||p)(O)}function O(){var e,t,n,r=[],o=[];for(u.sort(f);e=u.shift();)e.__d&&(n=u.length,t=T(e,r,o)||t,0===n||u.length>n?(B(r,t,o),o.length=r.length=0,t=void 0,u.sort(f)):t&&l.__c&&l.__c(t,g));t&&B(r,t,o),O.__r=0}function R(e,t,n,r,o,i,a,s,l,c,u){var d,p,f,m,_,b=r&&r.__k||g,w=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?x(null,o,null,null,o):y(o)?x(E,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?x(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=I(o,n,a=r+d,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?d++:s>a?u>l-a?d+=s-a:d--:d=s<a&&s==a-1?s-a:0,s!==r+d&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=C(i)),z(i,i,!1),n[r]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=C(i)),z(i,i))}(n,t,b),l=n.__d,d=0;d<w;d++)null!=(f=n.__k[d])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:b[f.__i]||h,f.__i=d,M(e,f,p,o,i,a,s,l,c,u),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&H(p.ref,null,f),u.push(f.ref,f.__c||m,f)),null==_&&null!=m&&(_=m),65536&f.__u||p.__k===f.__k?l=P(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:m&&(l=m.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=_}function P(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=P(r[o],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function L(e,t){return t=t||[],null==e||"boolean"==typeof e||(y(e)?e.some((function(e){L(e,t)})):t.push(e)),t}function I(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type)return n;if(r>(null!=l&&0==(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&0==(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function U(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||_.test(t)?n:n+"px"}function F(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||U(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||U(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,i?j:D,i)):e.removeEventListener(t,i?j:D,i);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&"role"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function D(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(l.event?l.event(e):e)}}function j(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function M(e,t,n,r,o,i,a,c,u,d){var p,f,m,g,_,v,x,k,T,N,A,O,P,L,I,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(u=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=l.__b)&&p(t);e:if("function"==typeof U)try{if(k=t.props,T=(p=U.contextType)&&r[p.__c],N=p?T?T.props.value:p.__:r,n.__c?x=(f=t.__c=n.__c).__=f.__E:("prototype"in U&&U.prototype.render?t.__c=f=new U(k,N):(t.__c=f=new S(k,N),f.constructor=U,f.render=W),T&&T.sub(f),f.props=k,f.state||(f.state={}),f.context=N,f.__n=r,m=f.__d=!0,f.__h=[],f._sb=[]),null==f.__s&&(f.__s=f.state),null!=U.getDerivedStateFromProps&&(f.__s==f.state&&(f.__s=b({},f.__s)),b(f.__s,U.getDerivedStateFromProps(k,f.__s))),g=f.props,_=f.state,f.__v=t,m)null==U.getDerivedStateFromProps&&null!=f.componentWillMount&&f.componentWillMount(),null!=f.componentDidMount&&f.__h.push(f.componentDidMount);else{if(null==U.getDerivedStateFromProps&&k!==g&&null!=f.componentWillReceiveProps&&f.componentWillReceiveProps(k,N),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(k,f.__s,N)||t.__v===n.__v)){for(t.__v!==n.__v&&(f.props=k,f.state=f.__s,f.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),A=0;A<f._sb.length;A++)f.__h.push(f._sb[A]);f._sb=[],f.__h.length&&a.push(f);break e}null!=f.componentWillUpdate&&f.componentWillUpdate(k,f.__s,N),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,_,v)}))}if(f.context=N,f.props=k,f.__P=e,f.__e=!1,O=l.__r,P=0,"prototype"in U&&U.prototype.render){for(f.state=f.__s,f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),L=0;L<f._sb.length;L++)f.__h.push(f._sb[L]);f._sb=[]}else do{f.__d=!1,O&&O(t),p=f.render(f.props,f.state,f.context),f.state=f.__s}while(f.__d&&++P<25);f.state=f.__s,null!=f.getChildContext&&(r=b(b({},r),f.getChildContext())),m||null==f.getSnapshotBeforeUpdate||(v=f.getSnapshotBeforeUpdate(g,_)),R(e,y(I=null!=p&&p.type===E&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,u,d),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(D){t.__v=null,u||null!=i?(t.__e=c,t.__u|=u?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(D,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,l,c){var u,d,p,f,m,g,_,b=n.props,v=t.props,x=t.type;if("svg"===x&&(o=!0),null!=i)for(u=0;u<i.length;u++)if((m=i[u])&&"setAttribute"in m==!!x&&(x?m.localName===x:3===m.nodeType)){e=m,i[u]=null;break}if(null==e){if(null===x)return document.createTextNode(v);e=o?document.createElementNS("http://www.w3.org/2000/svg",x):document.createElement(x,v.is&&v),i=null,l=!1}if(null===x)b===v||l&&e.data===v||(e.data=v);else{if(i=i&&s.call(e.childNodes),b=n.props||h,!l&&null!=i)for(b={},u=0;u<e.attributes.length;u++)b[(m=e.attributes[u]).name]=m.value;for(u in b)m=b[u],"children"==u||("dangerouslySetInnerHTML"==u?p=m:"key"===u||u in v||F(e,u,null,m,o));for(u in v)m=v[u],"children"==u?f=m:"dangerouslySetInnerHTML"==u?d=m:"value"==u?g=m:"checked"==u?_=m:"key"===u||l&&"function"!=typeof m||b[u]===m||F(e,u,m,b[u],o);if(d)l||p&&(d.__html===p.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=""),R(e,y(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&C(n,0),l,c),null!=i)for(u=i.length;u--;)null!=i[u]&&w(i[u]);l||(u="value",void 0!==g&&(g!==e[u]||"progress"===x&&!g||"option"===x&&g!==b[u])&&F(e,u,g,b[u],!1),u="checked",void 0!==_&&_!==e[u]&&F(e,u,_,b[u],!1))}return e}(n.__e,t,n,r,o,i,a,u,d);(p=l.diffed)&&p(t)}function B(e,t,n){for(var r=0;r<n.length;r++)H(n[r],n[++r],n[++r]);l.__c&&l.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){l.__e(n,t.__v)}}))}function H(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){l.__e(r,n)}}function z(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||H(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){l.__e(i,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&z(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function W(e,t,n){return this.constructor(e,n)}function q(e,t,n){var r,o,i,a;l.__&&l.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],M(t,e=(!r&&n||t).__k=v(E,null,[e]),o||h,h,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?s.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),e.__d=void 0,B(i,e,a)}function V(e,t){q(e,t,V)}function $(e,t,n){var r,o,i,a,l=b({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:l[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(l.children=arguments.length>3?s.call(arguments,2):n),x(e.type,l,r||e.key,o||e.ref,null)}function G(e,t){var n={__c:t="__cC"+m++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,A(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function Y(){return(Y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}s=g.slice,l={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},c=0,S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=b({},this.state),"function"==typeof e&&(e=e(b({},n),this.props)),e&&b(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),A(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},S.prototype.render=E,u=[],p="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,f=function(e,t){return e.__v.__b-t.__v.__b},O.__r=0,m=0;var J=["context","children"];function K(e){return this.getChildContext=function(){return e.context},$(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,J))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(K,Y({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[Z(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=v(te,{name:c},l):r[i]=l}var u=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:q)(this._vdom,this._root)}function Z(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function Q(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[Z(e)]=n,this._vdom=$(this._vdom,r),q(this._vdom,this._root)}}function ee(){q(this._vdom=null,this._root)}function te(e,t){var n=this;return v("slot",Y({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}const ne=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-Bit4myCA.png").href:new URL("assets/intro_allowance_experiment-Bit4myCA.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href);var re,oe,ie,ae,se=0,le=[],ce=[],ue=l,de=ue.__b,pe=ue.__r,fe=ue.diffed,me=ue.__c,he=ue.unmount,ge=ue.__;function _e(e,t){ue.__h&&ue.__h(oe,e,se||t),se=0;var n=oe.__H||(oe.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:ce}),n.__[e]}function ye(e){return se=1,be(Ue,e)}function be(e,t,n){var r=_e(re++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ue(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=oe,!oe.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};oe.u=!0;var i=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},oe.shouldComponentUpdate=o}return r.__N||r.__}function we(e,t){var n=_e(re++,3);!ue.__s&&Ie(n.__H,t)&&(n.__=e,n.i=t,oe.__H.__h.push(n))}function ve(e,t){var n=_e(re++,4);!ue.__s&&Ie(n.__H,t)&&(n.__=e,n.i=t,oe.__h.push(n))}function xe(e){return se=5,Ee((function(){return{current:e}}),[])}function ke(e,t,n){se=6,ve((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Ee(e,t){var n=_e(re++,7);return Ie(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Se(e,t){return se=8,Ee((function(){return e}),t)}function Ce(e){var t=oe.context[e.__c],n=_e(re++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(oe)),t.props.value):e.__}function Te(e,t){ue.useDebugValue&&ue.useDebugValue(t?t(e):e)}function Ne(){var e=_e(re++,11);if(!e.__){for(var t=oe.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Ae(){for(var e;e=le.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pe),e.__H.__h.forEach(Le),e.__H.__h=[]}catch(Uo){e.__H.__h=[],ue.__e(Uo,e.__v)}}ue.__b=function(e){oe=null,de&&de(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ge&&ge(e,t)},ue.__r=function(e){pe&&pe(e),re=0;var t=(oe=e.__c).__H;t&&(ie===oe?(t.__h=[],oe.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=ce,e.__N=e.i=void 0}))):(t.__h.forEach(Pe),t.__h.forEach(Le),t.__h=[],re=0)),ie=oe},ue.diffed=function(e){fe&&fe(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==le.push(t)&&ae===ue.requestAnimationFrame||((ae=ue.requestAnimationFrame)||Re)(Ae)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==ce&&(e.__=e.__V),e.i=void 0,e.__V=ce}))),ie=oe=null},ue.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Pe),e.__h=e.__h.filter((function(e){return!e.__||Le(e)}))}catch(fi){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ue.__e(fi,e.__v)}})),me&&me(e,t)},ue.unmount=function(e){he&&he(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Pe(e)}catch(n){t=n}})),n.__H=void 0,t&&ue.__e(t,n.__v))};var Oe="function"==typeof requestAnimationFrame;function Re(e){var t,n=function(){clearTimeout(r),Oe&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Oe&&(t=requestAnimationFrame(n))}function Pe(e){var t=oe,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),oe=t}function Le(e){var t=oe;e.__c=e.__(),oe=t}function Ie(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Ue(e,t){return"function"==typeof t?t(e):t}function Fe(e,t){for(var n in t)e[n]=t[n];return e}function De(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function je(e,t){this.props=e,this.context=t}function Me(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:De(this.props,e)}function r(t){return this.shouldComponentUpdate=n,v(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(je.prototype=new S).isPureReactComponent=!0,je.prototype.shouldComponentUpdate=function(e,t){return De(this.props,e)||De(this.state,t)};var Be=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Be&&Be(e)};var He="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ze(e){function t(t){var n=Fe({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=He,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var We=function(e,t){return null==e?null:L(L(e).map(t))},qe={map:We,forEach:We,count:function(e){return e?L(e).length:0},only:function(e){var t=L(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:L},Ve=l.__e;l.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ve(e,t,n,r)};var $e=l.unmount;function Ge(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=Fe({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Ge(e,t,n)}))),e}function Ye(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ye(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function Je(){this.__u=0,this.t=null,this.__b=null}function Ke(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Xe(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return v(n,o)}return o.displayName="Lazy",o.__f=!0,o}function Ze(){this.u=null,this.o=null}l.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),$e&&$e(e)},(Je.prototype=new S).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Ke(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ye(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},Je.prototype.componentWillUnmount=function(){this.t=[]},Je.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]=Ge(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(E,null,e.fallback);return o&&(o.__u&=-33),[v(E,null,t.__a?null:e.children),o]};var Qe=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!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 et(e){return this.getChildContext=function(){return e.context},e.children}function tt(e){var t=this,n=e.i;t.componentWillUnmount=function(){q(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:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),q(v(et,{context:t.context},e.__v),t.l)}function nt(e,t){var n=v(tt,{__v:e,i:t});return n.containerInfo=t,n}(Ze.prototype=new S).__a=function(e){var t=this,n=Ke(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Qe(t,e,r)):o()};n?n(i):i()}},Ze.prototype.render=function(e){this.u=null,this.o=new Map;var t=L(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Ze.prototype.componentDidUpdate=Ze.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Qe(e,n,t)}))};var rt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ot=/^(?: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]/,it=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,at=/[A-Z0-9]/g,st="undefined"!=typeof document,lt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function ct(e,t,n){return null==t.__k&&(t.textContent=""),q(e,t),"function"==typeof n&&n(),e?e.__c:null}function ut(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}S.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(S.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var dt=l.event;function pt(){}function ft(){return this.cancelBubble}function mt(){return this.defaultPrevented}l.event=function(e){return dt&&(e=dt(e)),e.persist=pt,e.isPropagationStopped=ft,e.isDefaultPrevented=mt,e.nativeEvent=e};var ht,gt={enumerable:!1,configurable:!0,get:function(){return this.class}},_t=l.vnode;l.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={};for(var o in t){var i=t[o];if(!("value"===o&&"defaultValue"in t&&null==i||st&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var a=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===i?i="":"translate"===a&&"no"===i?i=!1:"ondoubleclick"===a?o="ondblclick":"onchange"!==a||"input"!==n&&"textarea"!==n||lt(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":it.test(o)?o=a:-1===n.indexOf("-")&&ot.test(o)?o=o.replace(at,"-$&").toLowerCase():null===i&&(i=void 0):a=o="oninput","oninput"===a&&r[o=a]&&(o="oninputCapture"),r[o]=i}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=L(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=L(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",gt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=rt,_t&&_t(e)};var yt=l.__r;l.__r=function(e){yt&&yt(e),ht=e.__c};var bt=l.diffed;l.diffed=function(e){bt&&bt(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),ht=null};var wt={ReactCurrentDispatcher:{current:{readContext:function(e){return ht.__n[e.__c].props.value}}}};function vt(e){return v.bind(null,e)}function xt(e){return!!e&&e.$$typeof===rt}function kt(e){return xt(e)&&e.type===E}function Et(e){return xt(e)?$.apply(null,arguments):e}function St(e){return!!e.__k&&(q(null,e),!0)}function Ct(e){return e&&(e.base||1===e.nodeType&&e)||null}var Tt=function(e,t){return e(t)},Nt=function(e,t){return e(t)},At=E;function Ot(e){e()}function Rt(e){return e}function Pt(){return[!1,Ot]}var Lt=ve,It=xt;function Ut(e,t){var n=t(),r=ye({h:{__:n,v:t}}),o=r[0].h,i=r[1];return ve((function(){o.__=n,o.v=t,Ft(o)&&i({h:o})}),[e,n,t]),we((function(){return Ft(o)&&i({h:o}),e((function(){Ft(o)&&i({h:o})}))}),[e]),n}function Ft(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Dt={useState:ye,useId:Ne,useReducer:be,useEffect:we,useLayoutEffect:ve,useInsertionEffect:Lt,useTransition:Pt,useDeferredValue:Rt,useSyncExternalStore:Ut,startTransition:Ot,useRef:xe,useImperativeHandle:ke,useMemo:Ee,useCallback:Se,useContext:Ce,useDebugValue:Te,version:"17.0.2",Children:qe,render:ct,hydrate:ut,unmountComponentAtNode:St,createPortal:nt,createElement:v,createContext:G,createFactory:vt,cloneElement:Et,createRef:k,Fragment:E,isValidElement:xt,isElement:It,isFragment:kt,findDOMNode:Ct,Component:S,PureComponent:je,memo:Me,forwardRef:ze,flushSync:Nt,unstable_batchedUpdates:Tt,StrictMode:At,Suspense:Je,SuspenseList:Ze,lazy:Xe,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wt};const jt=Object.freeze(Object.defineProperty({__proto__:null,Children:qe,Component:S,Fragment:E,PureComponent:je,StrictMode:At,Suspense:Je,SuspenseList:Ze,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wt,cloneElement:Et,createContext:G,createElement:v,createFactory:vt,createPortal:nt,createRef:k,default:Dt,findDOMNode:Ct,flushSync:Nt,forwardRef:ze,hydrate:ut,isElement:It,isFragment:kt,isValidElement:xt,lazy:Xe,memo:Me,render:ct,startTransition:Ot,unmountComponentAtNode:St,unstable_batchedUpdates:Tt,useCallback:Se,useContext:Ce,useDebugValue:Te,useDeferredValue:Rt,useEffect:we,useErrorBoundary:function(e){var t=_e(re++,10),n=ye();return t.__=e,oe.componentDidCatch||(oe.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ne,useImperativeHandle:ke,useInsertionEffect:Lt,useLayoutEffect:ve,useMemo:Ee,useReducer:be,useRef:xe,useState:ye,useSyncExternalStore:Ut,useTransition:Pt,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),Mt=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 50 50",...e},v("path",{d:"M 25 2 C 12.309295 2 2 12.309295 2 25 C 2 37.690705 12.309295 48 25 48 C 37.690705 48 48 37.690705 48 25 C 48 12.309295 37.690705 2 25 2 z M 25 4 C 36.609824 4 46 13.390176 46 25 C 46 36.609824 36.609824 46 25 46 C 13.390176 46 4 36.609824 4 25 C 4 13.390176 13.390176 4 25 4 z M 25 11 A 3 3 0 0 0 22 14 A 3 3 0 0 0 25 17 A 3 3 0 0 0 28 14 A 3 3 0 0 0 25 11 z M 21 21 L 21 23 L 22 23 L 23 23 L 23 36 L 22 36 L 21 36 L 21 38 L 22 38 L 23 38 L 27 38 L 28 38 L 29 38 L 29 36 L 28 36 L 27 36 L 27 21 L 26 21 L 22 21 L 21 21 z"})),Bt=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro_allowance_experiment-DyP_CJyB.png").href:new URL("assets/intro_allowance_experiment-DyP_CJyB.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href);class Ht extends Error{}function zt(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 function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Ht.prototype.name="InvalidTokenError";const Wt=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),qt=e=>(window.addEventListener(Wt,e),()=>window.removeEventListener(Wt,e)),Vt=()=>{window.dispatchEvent(new Event(Wt))};function $t(e,t){return function(){return e.apply(t,arguments)}}const{toString:Gt}=Object.prototype,{getPrototypeOf:Yt}=Object,Jt=(e=>t=>{const n=Gt.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Kt=e=>(e=e.toLowerCase(),t=>Jt(t)===e),Xt=e=>t=>typeof t===e,{isArray:Zt}=Array,Qt=Xt("undefined");const en=Kt("ArrayBuffer");const tn=Xt("string"),nn=Xt("function"),rn=Xt("number"),on=e=>null!==e&&"object"==typeof e,an=e=>{if("object"!==Jt(e))return!1;const t=Yt(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},sn=Kt("Date"),ln=Kt("File"),cn=Kt("Blob"),un=Kt("FileList"),dn=Kt("URLSearchParams"),[pn,fn,mn,hn]=["ReadableStream","Request","Response","Headers"].map(Kt);function gn(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Zt(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function _n(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const yn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,bn=e=>!Qt(e)&&e!==yn;const wn=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Yt(Uint8Array)),vn=Kt("HTMLFormElement"),xn=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),kn=Kt("RegExp"),En=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gn(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Sn="abcdefghijklmnopqrstuvwxyz",Cn="0123456789",Tn={DIGIT:Cn,ALPHA:Sn,ALPHA_DIGIT:Sn+Sn.toUpperCase()+Cn};const Nn=Kt("AsyncFunction"),An=(On="function"==typeof setImmediate,Rn=nn(yn.postMessage),On?setImmediate:Rn?(Pn=`axios@${Math.random()}`,Ln=[],yn.addEventListener("message",(({source:e,data:t})=>{e===yn&&t===Pn&&Ln.length&&Ln.shift()()}),!1),e=>{Ln.push(e),yn.postMessage(Pn,"*")}):e=>setTimeout(e));var On,Rn,Pn,Ln;const In="undefined"!=typeof queueMicrotask?queueMicrotask.bind(yn):"undefined"!=typeof process&&process.nextTick||An,Un={isArray:Zt,isArrayBuffer:en,isBuffer:function(e){return null!==e&&!Qt(e)&&null!==e.constructor&&!Qt(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||nn(e.append)&&("formdata"===(t=Jt(e))||"object"===t&&nn(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&en(e.buffer),t},isString:tn,isNumber:rn,isBoolean:e=>!0===e||!1===e,isObject:on,isPlainObject:an,isReadableStream:pn,isRequest:fn,isResponse:mn,isHeaders:hn,isUndefined:Qt,isDate:sn,isFile:ln,isBlob:cn,isRegExp:kn,isFunction:nn,isStream:e=>on(e)&&nn(e.pipe),isURLSearchParams:dn,isTypedArray:wn,isFileList:un,forEach:gn,merge:function e(){const{caseless:t}=bn(this)&&this||{},n={},r=(r,o)=>{const i=t&&_n(n,o)||o;an(n[i])&&an(r)?n[i]=e(n[i],r):an(r)?n[i]=e({},r):Zt(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&gn(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(gn(t,((t,r)=>{n&&nn(t)?e[r]=$t(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&Yt(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Jt,kindOfTest:Kt,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Zt(e))return e;let t=e.length;if(!rn(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:vn,hasOwnProperty:xn,hasOwnProp:xn,reduceDescriptors:En,freezeMethods:e=>{En(e,((t,n)=>{if(nn(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];nn(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach((e=>{n[e]=!0}))};return Zt(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n})),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:_n,global:yn,isContextDefined:bn,ALPHABET:Tn,generateString:(e=16,t=Tn.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&nn(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(on(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=Zt(e)?[]:{};return gn(e,((e,t)=>{const i=n(e,r+1);!Qt(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Nn,isThenable:e=>e&&(on(e)||nn(e))&&nn(e.then)&&nn(e.catch),setImmediate:An,asap:In};function Fn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}Un.inherits(Fn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Un.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Dn=Fn.prototype,jn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{jn[e]={value:e}})),Object.defineProperties(Fn,jn),Object.defineProperty(Dn,"isAxiosError",{value:!0}),Fn.from=(e,t,n,r,o,i)=>{const a=Object.create(Dn);return Un.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Fn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Mn(e){return Un.isPlainObject(e)||Un.isArray(e)}function Bn(e){return Un.endsWith(e,"[]")?e.slice(0,-2):e}function Hn(e,t,n){return e?e.concat(t).map((function(e,t){return e=Bn(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const zn=Un.toFlatObject(Un,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Wn(e,t,n){if(!Un.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Un.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Un.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Un.isSpecCompliantForm(t);if(!Un.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Un.isDate(e))return e.toISOString();if(!s&&Un.isBlob(e))throw new Fn("Blob is not supported. Use a Buffer instead.");return Un.isArrayBuffer(e)||Un.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(Un.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Un.isArray(e)&&function(e){return Un.isArray(e)&&!e.some(Mn)}(e)||(Un.isFileList(e)||Un.endsWith(n,"[]"))&&(s=Un.toArray(e)))return n=Bn(n),s.forEach((function(e,r){!Un.isUndefined(e)&&null!==e&&t.append(!0===a?Hn([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Mn(e)||(t.append(Hn(o,n,i),l(e)),!1)}const u=[],d=Object.assign(zn,{defaultVisitor:c,convertValue:l,isVisitable:Mn});if(!Un.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Un.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Un.forEach(n,(function(n,i){!0===(!(Un.isUndefined(n)||null===n)&&o.call(t,n,Un.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function qn(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Vn(e,t){this._pairs=[],e&&Wn(e,this,t)}const $n=Vn.prototype;function Gn(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yn(e,t,n){if(!t)return e;const r=n&&n.encode||Gn,o=n&&n.serialize;let i;if(i=o?o(t,n):Un.isURLSearchParams(t)?t.toString():new Vn(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}$n.append=function(e,t){this._pairs.push([e,t])},$n.toString=function(e){const t=e?function(t){return e.call(this,t,qn)}:qn;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Jn{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Un.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Kn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Xn={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Vn,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},Zn="undefined"!=typeof window&&"undefined"!=typeof document,Qn=(er="undefined"!=typeof navigator&&navigator.product,Zn&&["ReactNative","NativeScript","NS"].indexOf(er)<0);var er;const tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,nr=Zn&&window.location.href||"http://localhost",rr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Zn,hasStandardBrowserEnv:Qn,hasStandardBrowserWebWorkerEnv:tr,origin:nr},Symbol.toStringTag,{value:"Module"})),...Xn};function or(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&Un.isArray(r)?r.length:i,s)return Un.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Un.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Un.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if(Un.isFormData(e)&&Un.isFunction(e.entries)){const n={};return Un.forEachEntry(e,((e,r)=>{t(function(e){return Un.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const ir={transitional:Kn,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Un.isObject(e);o&&Un.isHTMLForm(e)&&(e=new FormData(e));if(Un.isFormData(e))return r?JSON.stringify(or(e)):e;if(Un.isArrayBuffer(e)||Un.isBuffer(e)||Un.isStream(e)||Un.isFile(e)||Un.isBlob(e)||Un.isReadableStream(e))return e;if(Un.isArrayBufferView(e))return e.buffer;if(Un.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Wn(e,new rr.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return rr.isNode&&Un.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Un.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Wn(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Un.isString(e))try{return(t||JSON.parse)(e),Un.trim(e)}catch(Xo){if("SyntaxError"!==Xo.name)throw Xo}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||ir.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Un.isResponse(e)||Un.isReadableStream(e))return e;if(e&&Un.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Xo){if(n){if("SyntaxError"===Xo.name)throw Fn.from(Xo,Fn.ERR_BAD_RESPONSE,this,null,this.response);throw Xo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:rr.classes.FormData,Blob:rr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Un.forEach(["delete","get","head","post","put","patch"],(e=>{ir.headers[e]={}}));const ar=Un.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),sr=Symbol("internals");function lr(e){return e&&String(e).trim().toLowerCase()}function cr(e){return!1===e||null==e?e:Un.isArray(e)?e.map(cr):String(e)}function ur(e,t,n,r,o){return Un.isFunction(r)?r.call(this,t,n):(o&&(t=n),Un.isString(t)?Un.isString(r)?-1!==t.indexOf(r):Un.isRegExp(r)?r.test(t):void 0:void 0)}class dr{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=lr(t);if(!o)throw new Error("header name must be a non-empty string");const i=Un.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=cr(e))}const i=(e,t)=>Un.forEach(e,((e,n)=>o(e,n,t)));if(Un.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Un.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&ar[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)})),t})(e),t);else if(Un.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=lr(e)){const n=Un.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(Un.isFunction(t))return t.call(this,e,n);if(Un.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=lr(e)){const n=Un.findKey(this,e);return!(!n||void 0===this[n]||t&&!ur(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=lr(e)){const o=Un.findKey(n,e);!o||t&&!ur(0,n[o],o,t)||(delete n[o],r=!0)}}return Un.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!ur(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Un.forEach(this,((r,o)=>{const i=Un.findKey(n,o);if(i)return t[i]=cr(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=cr(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Un.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Un.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[sr]=this[sr]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=lr(e);t[r]||(!function(e,t){const n=Un.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return Un.isArray(e)?e.forEach(r):r(e),this}}function pr(e,t){const n=this||ir,r=t||n,o=dr.from(r.headers);let i=r.data;return Un.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function fr(e){return!(!e||!e.__CANCEL__)}function mr(e,t,n){Fn.call(this,null==e?"canceled":e,Fn.ERR_CANCELED,t,n),this.name="CanceledError"}function hr(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Fn("Request failed with status code "+n.status,[Fn.ERR_BAD_REQUEST,Fn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}dr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Un.reduceDescriptors(dr.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Un.freezeMethods(dr),Un.inherits(mr,Fn,{__CANCEL__:!0});const gr=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const p=c&&l-c;return p?Math.round(1e3*d/p):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},_r=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},yr=e=>(...t)=>Un.asap((()=>e(...t))),br=rr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Un.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),wr=rr.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Un.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Un.isString(r)&&a.push("path="+r),Un.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function vr(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const xr=e=>e instanceof dr?{...e}:e;function kr(e,t){t=t||{};const n={};function r(e,t,n){return Un.isPlainObject(e)&&Un.isPlainObject(t)?Un.merge.call({caseless:n},e,t):Un.isPlainObject(t)?Un.merge({},t):Un.isArray(t)?t.slice():t}function o(e,t,n){return Un.isUndefined(t)?Un.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!Un.isUndefined(t))return r(void 0,t)}function a(e,t){return Un.isUndefined(t)?Un.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(xr(e),xr(t),!0)};return Un.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Un.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Er=e=>{const t=kr({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=dr.from(s),t.url=Yn(vr(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Un.isFormData(r))if(rr.hasStandardBrowserEnv||rr.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(rr.hasStandardBrowserEnv&&(o&&Un.isFunction(o)&&(o=o(t)),o||!1!==o&&br(t.url))){const e=i&&a&&wr.read(a);e&&s.set(i,e)}return t},Sr="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Er(e);let o=r.data;const i=dr.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=dr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());hr((function(e){t(e),m()}),(function(e){n(e),m()}),{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new Fn("Request aborted",Fn.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Fn("Network Error",Fn.ERR_NETWORK,e,h)),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Kn;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Fn(t,o.clarifyTimeoutError?Fn.ETIMEDOUT:Fn.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Un.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Un.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),f&&([l,u]=gr(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=gr(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new mr(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const _=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);_&&-1===rr.protocols.indexOf(_)?n(new Fn("Unsupported protocol "+_+":",Fn.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Cr=(e,t)=>{let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Fn?t:new mr(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{o(new Fn(`timeout ${t} of ms exceeded`,Fn.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e&&(e.removeEventListener?e.removeEventListener("abort",o):e.unsubscribe(o))})),e=null)};e.forEach((e=>e&&e.addEventListener&&e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=a,[s,()=>{i&&clearTimeout(i),i=null}]},Tr=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Nr=(e,t,n,r,o)=>{const i=async function*(e,t,n){for await(const r of e)yield*Tr(ArrayBuffer.isView(r)?r:await n(String(r)),t)}(e,t,o);let a,s=0,l=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return l(),void e.close();let o=r.byteLength;if(n){let e=s+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw l(t),t}},cancel:e=>(l(e),i.return())},{highWaterMark:2})},Ar="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Or=Ar&&"function"==typeof ReadableStream,Rr=Ar&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pr=(e,...t)=>{try{return!!e(...t)}catch(Xo){return!1}},Lr=Or&&Pr((()=>{let e=!1;const t=new Request(rr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Ir=Or&&Pr((()=>Un.isReadableStream(new Response("").body))),Ur={stream:Ir&&(e=>e.body)};var Fr;Ar&&(Fr=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Ur[e]&&(Ur[e]=Un.isFunction(Fr[e])?t=>t[e]():(t,n)=>{throw new Fn(`Response type '${e}' is not supported`,Fn.ERR_NOT_SUPPORT,n)})})));const Dr=async(e,t)=>{const n=Un.toFiniteNumber(e.getContentLength());return null==n?(async e=>null==e?0:Un.isBlob(e)?e.size:Un.isSpecCompliantForm(e)?(await new Request(e).arrayBuffer()).byteLength:Un.isArrayBufferView(e)||Un.isArrayBuffer(e)?e.byteLength:(Un.isURLSearchParams(e)&&(e+=""),Un.isString(e)?(await Rr(e)).byteLength:void 0))(t):n},jr={http:null,xhr:Sr,fetch:Ar&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:p}=Er(e);c=c?(c+"").toLowerCase():"text";let f,m,[h,g]=o||i||a?Cr([o,i],a):[];const _=()=>{!f&&setTimeout((()=>{h&&h.unsubscribe()})),f=!0};let y;try{if(l&&Lr&&"get"!==n&&"head"!==n&&0!==(y=await Dr(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Un.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=_r(y,gr(yr(l)));r=Nr(n.body,65536,e,t,Rr)}}Un.isString(d)||(d=d?"include":"omit"),m=new Request(t,{...p,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:d});let o=await fetch(m);const i=Ir&&("stream"===c||"response"===c);if(Ir&&(s||i)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Un.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&_r(t,gr(yr(s),!0))||[];o=new Response(Nr(o.body,65536,n,(()=>{r&&r(),i&&_()}),Rr),e)}c=c||"text";let a=await Ur[Un.findKey(Ur,c)||"text"](o,e);return!i&&_(),g&&g(),await new Promise(((t,n)=>{hr(t,n,{data:a,headers:dr.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:m})}))}catch(b){if(_(),b&&"TypeError"===b.name&&/fetch/i.test(b.message))throw Object.assign(new Fn("Network Error",Fn.ERR_NETWORK,e,m),{cause:b.cause||b});throw Fn.from(b,b&&b.code,e,m)}})};Un.forEach(jr,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Xo){}Object.defineProperty(e,"adapterName",{value:t})}}));const Mr=e=>`- ${e}`,Br=e=>Un.isFunction(e)||null===e||!1===e,Hr=e=>{e=Un.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Br(n)&&(r=jr[(t=String(n)).toLowerCase()],void 0===r))throw new Fn(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Fn("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Mr).join("\n"):" "+Mr(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function zr(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new mr(null,e)}function Wr(e){zr(e),e.headers=dr.from(e.headers),e.data=pr.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Hr(e.adapter||ir.adapter)(e).then((function(t){return zr(e),t.data=pr.call(e,e.transformResponse,t),t.headers=dr.from(t.headers),t}),(function(t){return fr(t)||(zr(e),t&&t.response&&(t.response.data=pr.call(e,e.transformResponse,t.response),t.response.headers=dr.from(t.response.headers))),Promise.reject(t)}))}const qr="1.7.4",Vr={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Vr[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const $r={};Vr.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.4] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Fn(r(o," has been removed"+(t?" in "+t:"")),Fn.ERR_DEPRECATED);return t&&!$r[o]&&($r[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const Gr={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Fn("options must be an object",Fn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Fn("option "+i+" must be "+n,Fn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Fn("Unknown option "+i,Fn.ERR_BAD_OPTION)}},validators:Vr},Yr=Gr.validators;class Jr{constructor(e){this.defaults=e,this.interceptors={request:new Jn,response:new Jn}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Xo){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=kr(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Gr.assertOptions(n,{silentJSONParsing:Yr.transitional(Yr.boolean),forcedJSONParsing:Yr.transitional(Yr.boolean),clarifyTimeoutError:Yr.transitional(Yr.boolean)},!1),null!=r&&(Un.isFunction(r)?t.paramsSerializer={serialize:r}:Gr.assertOptions(r,{encode:Yr.function,serialize:Yr.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Un.merge(o.common,o[t.method]);o&&Un.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=dr.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Wr.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let p=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=Wr.call(this,p)}catch(f){return Promise.reject(f)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Yn(vr((e=kr(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Un.forEach(["delete","get","head","options"],(function(e){Jr.prototype[e]=function(t,n){return this.request(kr(n||{},{method:e,url:t,data:(n||{}).data}))}})),Un.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(kr(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Jr.prototype[e]=t(),Jr.prototype[e+"Form"]=t(!0)}));class Kr{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new mr(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}static source(){let e;return{token:new Kr((function(t){e=t})),cancel:e}}}const Xr={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xr).forEach((([e,t])=>{Xr[t]=e}));const Zr=function e(t){const n=new Jr(t),r=$t(Jr.prototype.request,n);return Un.extend(r,Jr.prototype,n,{allOwnKeys:!0}),Un.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(kr(t,n))},r}(ir);Zr.Axios=Jr,Zr.CanceledError=mr,Zr.CancelToken=Kr,Zr.isCancel=fr,Zr.VERSION=qr,Zr.toFormData=Wn,Zr.AxiosError=Fn,Zr.Cancel=Zr.CanceledError,Zr.all=function(e){return Promise.all(e)},Zr.spread=function(e){return function(t){return e.apply(null,t)}},Zr.isAxiosError=function(e){return Un.isObject(e)&&!0===e.isAxiosError},Zr.mergeConfig=kr,Zr.AxiosHeaders=dr,Zr.formToJSON=e=>or(Un.isHTMLForm(e)?new FormData(e):e),Zr.getAdapter=Hr,Zr.HttpStatusCode=Xr,Zr.default=Zr;class Qr{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,Zr.create({baseURL:`${this.url(t)}/backend`,headers:n}))}getClient(){return __privateGet(this,e)}}e=new WeakMap;const eo={backend:new class extends Qr{constructor(){super(...arguments),__publicField(this,"getIdToken",(()=>this.getClient().get("v1.0/auth/token").then((e=>e.data.token))))}url(e){return`${e}/flare-app-identity`}}};let to;class no{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(to||(to=await eo.backend.getIdToken()),e.headers.Authorization=`Bearer ${to}`,e.params={...e.params??{},client:"onboarding",source:"Onboarding",channel:"onboarding"},e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,Zr.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{...a,"X-PROFILE-ID":i}})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o))}getClient(){return __privateGet(this,t)}async getAccessToken(){return to||(to=await eo.backend.getIdToken()),to}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const ro=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&Vt(),e};let oo=(a=class extends no{constructor(){super(...arguments),__publicField(this,"_canceledSignal"),__privateAdd(this,i,(async e=>e))}get canceledSignal(){if(!this._canceledSignal){const e=new AbortController;e.abort(),this._canceledSignal=e.signal}return this._canceledSignal}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t,n),this.getClient().interceptors.request.use(__privateGet(this,i))}async track(e,t){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t}).catch((e=>{}))}},i=new WeakMap,a);const io={backend:new class extends Qr{constructor(){super(...arguments),__publicField(this,"sourceId")}url(e){return`${e}/benefits-onboarding`}initClient(e,t,n){super.initClient(e,t),this.getClient().interceptors.response.use((e=>e),ro),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}async command(e){await this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e})}},workplaceBackend:new oo};const ao={workplaceBackend:new class extends no{url(e){return`${e}/benefits-plan`}}},so=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new Ht("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Ht(`Invalid token specified: missing part #${n+1}`);let o;try{o=zt(r)}catch(Xo){throw new Ht(`Invalid token specified: invalid base64 for part #${n+1} (${Xo.message})`)}try{return JSON.parse(o)}catch(Xo){throw new Ht(`Invalid token specified: invalid json for part #${n+1} (${Xo.message})`)}}(t).sub,o={backend:{Authorization:`Bearer ${t}`},workplaceBackend:{}};io.backend.initClient(e,o.backend,n),io.workplaceBackend.initClient(e,r,o.workplaceBackend),eo.backend.initClient(e,o.backend),ao.workplaceBackend.initClient(e,r,o.workplaceBackend)};var lo=0;function co(e,t,n,r,o,i){var a,s,c={};for(s in t)"ref"==s?a=t[s]:c[s]=t[s];var u={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--lo,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===c[s]&&(c[s]=a[s]);return l.vnode&&l.vnode(u),u}const uo={isLoading:!0,offers:[],isComplete:!1,isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:"",registrationStatus:"Unregistered"},workplace:{employerName:"",linkingStatus:"Unlinked"},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},updateIdentity:e=>({}),offersProgress:{update:()=>({}),hasCompletedAnyOffers:()=>!1}},po=G(uo),fo=({children:e})=>{const[t,n]=ye(),[r,o]=ye(),[i,a]=ye([]),s=Se((e=>{o(e?"authentication-succeeded":"authentication-failed")}),[]),l=Ee((()=>i.some((e=>"Perks"!==e.offerName&&e.isCompleted))),[i]),c=Se(((e,t,n)=>{const r=[...i],o=r.findIndex((t=>t.offerName===e));-1!==o&&r.slice(o,1),r.push({offerName:e,isEnrolled:t,isCompleted:n}),a(r)}),[i]),u=Ee((()=>{return e=(null==t?void 0:t.identity.email)??"",n=l,{joinBenefits:{desktopImageUrl:ne,mobileImageUrl:Bt,title:"Your workplace benefits program",description:"Your employer has partnered with Flare Benefits to give you exclusive access to savings and perks from Australia's most-loved brands.",specialBanner:{title:"Flare Benefits Allowance",icon:co(Mt,{}),subTitle:co("span",{children:["You have been allocated an allowance of up to ",co("b",{children:"$1,300"})," as part of your benefits program. Set up your benefits today to be eligible for reimbursement."]})},buttonText:"Join your workplace"},setUpBenefits:{title:"Set up your Benefits Allowance today",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. To be eligible, you'll need to make your selections today.",buttonText:"Set up your benefits",progress:{title:"How it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Complete your benefits setup today",description:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product within 30 days",completed:!1},{title:"Qualify for reimbursement within 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>co("div",{className:"flex flex-col gap-2",children:co("span",{children:["Allowance offer expires today. Exclusions and limitations apply. See full"," ",co("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/flare-benefits-allowance-terms",children:"T&Cs"}),"."]})})},summary:n?{title:"Congratulations, you've unlocked your benefits allowance",description:`We've sent an email to ${e} with more information about your benefits program and how you can get reimbursed as part of your allowance`,buttonText:"Finish benefits set up",progress:{title:"How this works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Complete your benefits setup today",completed:!0},{title:"Purchase or switch to an eligible product within 30 days",description:"Make sure you make an eligible purchase within the first 30 days.",completed:!1},{title:"Qualify for reimbursement within 90 days and we'll send you a Flare gift card",completed:!1}]}}:{title:"You're all set!",description:"You've finished setting up your benefits plan. Continue to review your details and finish up your workplace onboarding.",buttonText:"Finish benefits set up"}};var e,n}),[null==t?void 0:t.identity.email,l]),d=Ee((()=>{if(!t)return uo;const e=t.offers.some((e=>"Perks"===e.name));let n=t.identity.isRegistered?"PreviouslyRegistered":"Unregistered";"authentication-succeeded"===r&&"Unregistered"===n?n="NewlyRegistered":"authentication-failed"===r&&(n="RegistrationAbandoned");const o={email:t.identity.email,phoneNumber:t.identity.phoneNumber??"",verifiedPhoneNumber:t.identity.verifiedPhoneNumber??"",registrationStatus:n};let i=t.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked";"authentication-succeeded"===r&&"Unlinked"===i&&(i="NewlyLinked");const a={employerName:t.workplace.employerName,linkingStatus:i};return{isLoading:!1,offers:t.offers,isComplete:t.isComplete,isAppEnabled:e,identity:o,workplace:a,featureFlags:{marketplaceScheme:"promotion"===t.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:u},marketplaceSubNavigation:t.featureFlags.marketplaceSubNavigation},updateIdentity:s,offersProgress:{hasCompletedAnyOffers:()=>l,update:c}}}),[u,l,r,t,s,c]);return we((()=>{(async()=>{const e=await io.backend.init();n(e)})()}),[]),co(po.Provider,{value:d,children:e})},mo=e=>co("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:"lg"===e.size?"h-10 w-10":"h-5 w-5",children:[co("path",{d:"M16 8C16 12.4183 12.4183 16 8 16C3.58172 16 0 12.4183 0 8C0 3.58172 3.58172 0 8 0C12.4183 0 16 3.58172 16 8ZM1.99743 8C1.99743 11.3151 4.68487 14.0026 8 14.0026C11.3151 14.0026 14.0026 11.3151 14.0026 8C14.0026 4.68487 11.3151 1.99743 8 1.99743C4.68487 1.99743 1.99743 4.68487 1.99743 8Z",class:"light"===e.theme?"fill-white":"fill-gray-200","fill-opacity":"light"===e.theme?"0.3":"1"}),co("path",{d:"M8 1C8 0.447715 8.44943 -0.00643769 8.99741 0.0624193C9.70527 0.151368 10.3996 0.334798 11.0615 0.608964C12.0321 1.011 12.914 1.60028 13.6569 2.34315C14.3997 3.08602 14.989 3.96793 15.391 4.93853C15.6652 5.60043 15.8486 6.29473 15.9376 7.0026C16.0064 7.55057 15.5523 8 15 8C14.4477 8 14.0085 7.54925 13.9169 7.00462C13.842 6.55939 13.7169 6.12298 13.5433 5.7039C13.2417 4.97595 12.7998 4.31451 12.2426 3.75736C11.6855 3.20021 11.0241 2.75825 10.2961 2.45672C9.87702 2.28313 9.44061 2.15804 8.99538 2.08314C8.45075 1.99152 8 1.55228 8 1Z",class:"light"===e.theme?"fill-white":"fill-primary-base"})]}),ho='/*! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com*/*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}:host,html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-size:1em;font-variation-settings:normal}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{color:inherit;font-family:inherit;font-feature-settings:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}span a{color:var(--fl-color-primary)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.pointer-events-none{pointer-events:none}.invisible{visibility:hidden}.absolute{position:absolute}.relative{position:relative}.inset-y-0{bottom:0;top:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-50{z-index:50}.m-0{margin:0}.m-0\\.5{margin:.125rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.mr-10{margin-right:2.5rem}.mr-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.line-clamp-2{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.hidden{display:none}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.max-h-10{max-height:2.5rem}.max-h-12{max-height:3rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.min-h-12{min-height:3rem}.min-h-6{min-height:1.5rem}.min-h-8{min-height:2rem}.w-10{width:2.5rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-full{width:100%}.min-w-10{min-width:2.5rem}.min-w-6{min-width:1.5rem}.min-w-8{min-width:2rem}.max-w-10{max-width:2.5rem}.max-w-20{max-width:5rem}.max-w-6{max-width:1.5rem}.max-w-8{max-width:2rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[40rem\\]{max-width:40rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.max-w-full{max-width:100%}.flex-1{flex:1 1 0%}.-translate-y-6{--tw-translate-y:-1.5rem}.-translate-y-6,.translate-y-0{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-0{--tw-translate-y:0px}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.flex-col{flex-direction:column}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(.25rem*var(--tw-space-x-reverse))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-left:calc(1.5rem*(1 - var(--tw-space-x-reverse)));margin-right:calc(1.5rem*var(--tw-space-x-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(.5rem*var(--tw-space-y-reverse));margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.text-ellipsis{text-overflow:ellipsis}.break-words{overflow-wrap:break-word}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-xl{border-radius:.75rem}.\\!border-0{border-width:0!important}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.\\!border-gray-300{--tw-border-opacity:1!important;border-color:rgb(209 213 219/var(--tw-border-opacity))!important}.border-gray-200{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity:1;border-color:rgb(209 213 219/var(--tw-border-opacity))}.border-primary-base{border-color:var(--fl-color-primary)}.border-transparent{border-color:transparent}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-teal-50{--tw-bg-opacity:1;background-color:rgb(240 253 250/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.fill-gray-200{fill:#e5e7eb}.fill-primary-base{fill:var(--fl-color-primary)}.fill-white{fill:#fff}.p-2{padding:.5rem}.p-4{padding:1rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-px{padding-left:1px;padding-right:1px}.py-0{padding-bottom:0;padding-top:0}.py-0\\.5{padding-bottom:.125rem;padding-top:.125rem}.py-2{padding-bottom:.5rem;padding-top:.5rem}.py-3{padding-bottom:.75rem;padding-top:.75rem}.py-4{padding-bottom:1rem;padding-top:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-6{padding-top:1.5rem}.text-left{text-align:left}.text-center{text-align:center}.font-inter{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-8{line-height:2rem}.leading-none{line-height:1}.leading-tight{line-height:1.25}.tracking-wide{letter-spacing:.025em}.\\!text-gray-700{--tw-text-opacity:1!important;color:rgb(55 65 81/var(--tw-text-opacity))!important}.text-blue-500{--tw-text-opacity:1;color:rgb(59 130 246/var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity:1;color:rgb(17 24 39/var(--tw-text-opacity))}.text-green-700{--tw-text-opacity:1;color:rgb(21 128 61/var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-rose-500{--tw-text-opacity:1;color:rgb(244 63 94/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.accent-primary-base{accent-color:var(--fl-color-primary)}.opacity-0{opacity:0}.opacity-10{opacity:.1}.opacity-100{opacity:1}.\\!shadow-none{--tw-shadow:0 0 #0000!important;--tw-shadow-colored:0 0 #0000!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color)}.shadow,.shadow-sm{box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow:0 1px 2px 0 rgba(0,0,0,.05);--tw-shadow-colored:0 1px 2px 0 var(--tw-shadow-color)}.ring-2{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.ring-gray-200{--tw-ring-opacity:1;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:.15s;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:left-4:after{content:var(--tw-content);left:1rem}.after\\:top-8:after{content:var(--tw-content);top:2rem}.after\\:inline-block:after{content:var(--tw-content);display:inline-block}.after\\:h-\\[calc\\(100\\%-theme\\(height\\.8\\)\\)\\]:after{content:var(--tw-content);height:calc(100% - 2rem)}.after\\:w-0:after{content:var(--tw-content);width:0}.after\\:w-0\\.5:after{content:var(--tw-content);width:.125rem}.after\\:bg-gray-300:after{content:var(--tw-content);--tw-bg-opacity:1;background-color:rgb(209 213 219/var(--tw-bg-opacity))}.after\\:bg-primary-base:after{background-color:var(--fl-color-primary);content:var(--tw-content)}.after\\:content-\\[\\\'\\\'\\]:after{--tw-content:"";content:var(--tw-content)}.hover\\:\\!bg-gray-100:hover{--tw-bg-opacity:1!important;background-color:rgb(243 244 246/var(--tw-bg-opacity))!important}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.focus\\:\\!ring-gray-200:focus{--tw-ring-opacity:1!important;--tw-ring-color:rgb(229 231 235/var(--tw-ring-opacity))!important}.focus\\:ring-primary-focus:focus{--tw-ring-color:var(--fl-color-primary-focus)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width:2px}.focus-visible\\:ring-gray-500:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(107 114 128/var(--tw-ring-opacity))}.disabled\\:cursor-text:disabled{cursor:text}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.disabled\\:px-0:disabled{padding-left:0;padding-right:0}.disabled\\:text-gray-300:disabled{--tw-text-opacity:1;color:rgb(209 213 219/var(--tw-text-opacity))}.disabled\\:text-gray-600:disabled{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity))}.disabled\\:opacity-75:disabled{opacity:.75}.disabled\\:hover\\:bg-transparent:hover:disabled{background-color:transparent}@media (min-width:768px){.md\\:mb-4{margin-bottom:1rem}.md\\:mt-0{margin-top:0}.md\\:mt-11{margin-top:2.75rem}.md\\:mt-14{margin-top:3.5rem}.md\\:mt-3{margin-top:.75rem}.md\\:mt-6{margin-top:1.5rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:hidden{display:none}.md\\:w-\\[240px\\]{width:240px}.md\\:w-\\[300px\\]{width:300px}.md\\:w-auto{width:auto}.md\\:w-full{width:100%}.md\\:max-w-\\[27\\.5rem\\]{max-width:27.5rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:flex-row{flex-direction:row}.md\\:justify-between{justify-content:space-between}.md\\:p-6{padding:1.5rem}.md\\:py-24{padding-bottom:6rem;padding-top:6rem}.md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}.md\\:text-lg{font-size:1.125rem}.md\\:leading-7,.md\\:text-lg{line-height:1.75rem}.md\\:leading-9{line-height:2.25rem}.md\\:transition-none{transition-property:none}}@media (min-width:1024px){.lg\\:-m-8{margin:-2rem}.lg\\:w-3\\/4{width:75%}}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:absolute:not(:last-child):after{position:absolute}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:left-10:not(:last-child):after{left:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:top-3:not(:last-child):after{top:.75rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:w-10:not(:last-child):after{width:2.5rem}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-b-2:not(:last-child):after{border-bottom-width:2px}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-solid:not(:last-child):after{border-style:solid}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:border-gray-200:not(:last-child):after{--tw-border-opacity:1;border-color:rgb(229 231 235/var(--tw-border-opacity))}.\\[\\&\\:not\\(\\:last-child\\)\\:after\\]\\:content-\\[\\"\\"\\]:not(:last-child):after{--tw-content:"";content:var(--tw-content)}';const go=e=>{const[t,n]=ye(!1);return co("button",{"data-testid":e.testId,type:"button",class:`${e.class} inline-flex items-center justify-center px-10 py-2 border border-transparent text-base font-medium rounded-md shadow-sm text-white disabled:text-gray-300 bg-primary-base hover:bg-primary-hover disabled:bg-gray-100 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus w-full md:w-auto`,disabled:e.disabled,onClick:async()=>{if(e.onClickPromise&&!t){n(!0);try{await e.onClickPromise()}catch(r){}n(!1)}},children:[co("div",{class:""+(t?"invisible":""),children:e.children}),t&&co("div",{class:"absolute animate-spin",children:co(mo,{theme:"light"})})]})},_o=({className:e,children:t})=>co("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),yo=({className:e,children:t})=>co("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),bo=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",...e},v("path",{fillRule:"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",clipRule:"evenodd"})),wo=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return co("div",{...n,children:[co("h1",{className:"text-lg font-semibold mb-4",children:e}),co("ol",{children:t.map(((e,t)=>{const n=o===t;return co("li",{className:"relative flex-1 pb-6 "+(t!==r-1?`after:content-[''] after:w-0.5 after:h-[calc(100%-theme(height.8))] ${e.completed?"after:bg-primary-base":"after:bg-gray-300"} after:inline-block after:absolute after:top-8 after:left-4`:""),children:co("div",{className:"flex font-medium w-full",children:[co("span",{className:`w-8 min-w-8 max-w-8 h-8 min-h-8 max-h-8 ${e.completed?"bg-primary-base":"bg-white"} border-2 ${e.completed||n?"border-primary-base":"border-gray-300"} rounded-full flex justify-center items-center mr-3 text-sm ${n?"text-primary-base":"text-gray-500"}`,children:e.completed?co(bo,{className:"w-4 h-4 text-white"}):t+1}),co("div",{children:[co("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),co("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},e.title)}))})]})};var vo=Object.defineProperty,xo=(e,t,n)=>(((e,t,n)=>{t in e?vo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let ko=new class{constructor(){xo(this,"current",this.detect()),xo(this,"handoffState","pending"),xo(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}},Eo=(e,t)=>{ko.isServer?we(e,t):ve(e,t)};function So(e){let t=xe(e);return Eo((()=>{t.current=e}),[e]),t}let Co=function(e){let t=So(e);return Dt.useCallback(((...e)=>t.current(...e)),[t])};function To(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function No(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return To((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=No();return e(t),this.add((()=>t.dispose()))},add:t=>(e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Ao(){let[e]=ye(No);return we((()=>()=>e.dispose()),[e]),e}function Oo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in jt&&jt.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=ye(ko.isHandoffComplete);return t&&!1===ko.isHandoffComplete&&n(!1),we((()=>{!0!==t&&n(!0)}),[t]),we((()=>ko.handoff()),[]),!e&&t}var Ro;let Po=null!=(Ro=Dt.useId)?Ro:function(){let e=Oo(),[t,n]=Dt.useState(e?()=>ko.nextId():null);return Eo((()=>{null===t&&n(ko.nextId())}),[t]),null!=t?""+t:void 0};function Lo(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Lo),r}let Io=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var Uo,Fo,Do,jo=((Do=jo||{})[Do.First=1]="First",Do[Do.Previous=2]="Previous",Do[Do.Next=4]="Next",Do[Do.Last=8]="Last",Do[Do.WrapAround=16]="WrapAround",Do[Do.NoScroll=32]="NoScroll",Do),Mo=((Fo=Mo||{})[Fo.Error=0]="Error",Fo[Fo.Overflow=1]="Overflow",Fo[Fo.Success=2]="Success",Fo[Fo.Underflow=3]="Underflow",Fo),Bo=((Uo=Bo||{})[Uo.Previous=-1]="Previous",Uo[Uo.Next=1]="Next",Uo);var Ho=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ho||{}),zo=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(zo||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Wo=["textarea","input"].join(",");function qo(e,t=(e=>e)){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Vo(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?qo(e):e:function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Io)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.includes(e)))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Wo))&&n}(s)&&s.select(),2}function $o(e){var t;if(e.type)return e.type;let n=null!=(t=e.as)?t:"button";return"string"==typeof n&&"button"===n.toLowerCase()?"button":void 0}function Go(e,t){let[n,r]=ye((()=>$o(e)));return Eo((()=>{r($o(e))}),[e.type,e.as]),Eo((()=>{n||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&r("button")}),[n,t]),n}let Yo=Symbol();function Jo(...e){let t=xe(e);we((()=>{t.current=e}),[e]);let n=Co((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[Yo])))?void 0:n}function Ko(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Xo,Zo=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zo||{}),Qo=((Xo=Qo||{})[Xo.Unmount=0]="Unmount",Xo[Xo.Hidden=1]="Hidden",Xo);function ei({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:ni;let l=ri(t,e);if(i)return ti(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ti(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Lo(e?0:1,{0:()=>null,1:()=>ti({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return ti(l,n,r,a,s)}function ti(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=ai(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r);e&&(d["data-headlessui-state"]=n.join(" "))}if(i===E&&Object.keys(ii(l)).length>0){if(!xt(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(l).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"));let e=u.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>Ko(null==e?void 0:e.className(...t),l.className):Ko(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Et(u,Object.assign({},ri(u.props,ii(ai(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return v(i,Object.assign({},ai(l,["ref"]),i!==E&&c,i!==E&&d),u)}function ni(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function ri(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map((e=>[e,void 0]))));for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function oi(e){var t;return Object.assign(ze(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ii(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function ai(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}var si=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(si||{});let li=oi((function(e,t){var n;let{features:r=1,...o}=e;return ei({ourProps:{ref:t,"aria-hidden":2==(2&r)||(null!=(n=o["aria-hidden"])?n:void 0),style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4==(4&r)&&2!=(2&r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})})),ci=G(null);ci.displayName="OpenClosedContext";var ui=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ui||{});function di(){return Ce(ci)}function pi({value:e,children:t}){return Dt.createElement(ci.Provider,{value:e},t)}var fi,mi=((fi=mi||{}).Space=" ",fi.Enter="Enter",fi.Escape="Escape",fi.Backspace="Backspace",fi.Delete="Delete",fi.ArrowLeft="ArrowLeft",fi.ArrowUp="ArrowUp",fi.ArrowRight="ArrowRight",fi.ArrowDown="ArrowDown",fi.Home="Home",fi.End="End",fi.PageUp="PageUp",fi.PageDown="PageDown",fi.Tab="Tab",fi);function hi(){let e=xe(!1);return Eo((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function gi({onFocus:e}){let[t,n]=ye(!0),r=hi();return t?Dt.createElement(li,{as:"button",type:"button",features:si.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;o=requestAnimationFrame((function t(){if(i--<=0)o&&cancelAnimationFrame(o);else if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1)}else o=requestAnimationFrame(t)}))}}):null}const _i=G(null);function yi({children:e}){let t=xe({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return v(_i.Provider,{value:t},e)}function bi(e){let t=Ce(_i);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=function(){var e,t,n;let r=null!=(n=null==(t=null==(e=wt)?void 0:e.ReactCurrentOwner)?void 0:t.current)?n:null;if(!r)return Symbol();let o=[],i=r;for(;i;)o.push(i.index),i=i.return;return"$."+o.join(".")}(),[r,o]=t.current.get(e,n);return we((()=>o),[]),r}var wi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(wi||{}),vi=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(vi||{}),xi=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(xi||{});let ki={0(e,t){var n;let r=qo(e.tabs,(e=>e.current)),o=qo(e.panels,(e=>e.current)),i=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=Lo(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Lo(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=Lo(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===o?e.selectedIndex:o}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>i.includes(e)));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){var n;if(e.tabs.includes(t.tab))return e;let r=e.tabs[e.selectedIndex],o=qo([...e.tabs,t.tab],(e=>e.current)),i=null!=(n=o.indexOf(r))?n:e.selectedIndex;return-1===i&&(i=e.selectedIndex),{...e,tabs:o,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:qo([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},Ei=G(null);function Si(e){let t=Ce(Ei);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Si),t}return t}Ei.displayName="TabsDataContext";let Ci=G(null);function Ti(e){let t=Ce(Ci);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ti),t}return t}function Ni(e,t){return Lo(t.type,ki,e,t)}Ci.displayName="TabsActionsContext";let Ai=E;let Oi=Zo.RenderStrategy|Zo.Static;let Ri=oi((function(e,t){var n,r;let o=Po(),{id:i=`headlessui-tabs-tab-${o}`,...a}=e,{orientation:s,activation:l,selectedIndex:c,tabs:u,panels:d}=Si("Tab"),p=Ti("Tab"),f=Si("Tab"),m=xe(null),h=Jo(m,t);Eo((()=>p.registerTab(m)),[p,m]);let g=bi("tabs"),_=u.indexOf(m);-1===_&&(_=g);let y=_===c,b=Co((e=>{var t;let n=e();if(n===Mo.Success&&"auto"===l){let e=null==(t=function(e){return ko.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}(m))?void 0:t.activeElement,n=f.tabs.findIndex((t=>t.current===e));-1!==n&&p.change(n)}return n})),w=Co((e=>{let t=u.map((e=>e.current)).filter(Boolean);if(e.key===mi.Space||e.key===mi.Enter)return e.preventDefault(),e.stopPropagation(),void p.change(_);switch(e.key){case mi.Home:case mi.PageUp:return e.preventDefault(),e.stopPropagation(),b((()=>Vo(t,jo.First)));case mi.End:case mi.PageDown:return e.preventDefault(),e.stopPropagation(),b((()=>Vo(t,jo.Last)))}return b((()=>Lo(s,{vertical:()=>e.key===mi.ArrowUp?Vo(t,jo.Previous|jo.WrapAround):e.key===mi.ArrowDown?Vo(t,jo.Next|jo.WrapAround):Mo.Error,horizontal:()=>e.key===mi.ArrowLeft?Vo(t,jo.Previous|jo.WrapAround):e.key===mi.ArrowRight?Vo(t,jo.Next|jo.WrapAround):Mo.Error})))===Mo.Success?e.preventDefault():void 0})),v=xe(!1),x=Co((()=>{var e;v.current||(v.current=!0,null==(e=m.current)||e.focus({preventScroll:!0}),p.change(_),To((()=>{v.current=!1})))})),k=Co((e=>{e.preventDefault()})),E=Ee((()=>({selected:y})),[y]);return ei({ourProps:{ref:h,onKeyDown:w,onMouseDown:k,onClick:x,id:i,role:"tab",type:Go(e,m),"aria-controls":null==(r=null==(n=d[_])?void 0:n.current)?void 0:r.id,"aria-selected":y,tabIndex:y?0:-1},theirProps:a,slot:E,defaultTag:"button",name:"Tabs.Tab"})})),Pi=oi((function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:a=null,...s}=e;const l=r?"vertical":"horizontal",c=o?"manual":"auto";let u=null!==a,d=Jo(t),[p,f]=be(Ni,{selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=Ee((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),h=So(i||(()=>{})),g=So(p.tabs),_=Ee((()=>({orientation:l,activation:c,...p})),[l,c,p]),y=Co((e=>(f({type:1,tab:e}),()=>f({type:2,tab:e})))),b=Co((e=>(f({type:3,panel:e}),()=>f({type:4,panel:e})))),w=Co((e=>{v.current!==e&&h.current(e),u||f({type:0,index:e})})),v=So(u?e.selectedIndex:p.selectedIndex),x=Ee((()=>({registerTab:y,registerPanel:b,change:w})),[]);Eo((()=>{f({type:0,index:null!=a?a:n})}),[a]),Eo((()=>{if(void 0===v.current||p.tabs.length<=0)return;let e=qo(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&w(e.indexOf(p.tabs[v.current]))}));let k={ref:d};return Dt.createElement(yi,null,Dt.createElement(Ci.Provider,{value:x},Dt.createElement(Ei.Provider,{value:_},_.tabs.length<=0&&Dt.createElement(gi,{onFocus:()=>{var e,t;for(let n of g.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),ei({ourProps:k,theirProps:s,slot:m,defaultTag:Ai,name:"Tabs"}))))})),Li=oi((function(e,t){let{orientation:n,selectedIndex:r}=Si("Tab.List");return ei({ourProps:{ref:Jo(t),role:"tablist","aria-orientation":n},theirProps:e,slot:{selectedIndex:r},defaultTag:"div",name:"Tabs.List"})})),Ii=oi((function(e,t){let{selectedIndex:n}=Si("Tab.Panels");return ei({ourProps:{ref:Jo(t)},theirProps:e,slot:Ee((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),Ui=oi((function(e,t){var n,r,o,i;let a=Po(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:p}=Si("Tab.Panel"),f=Ti("Tab.Panel"),m=xe(null),h=Jo(m,t);Eo((()=>f.registerPanel(m)),[f,m]);let g=bi("panels"),_=p.indexOf(m);-1===_&&(_=g);let y=_===u,b=Ee((()=>({selected:y})),[y]),w={ref:h,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[_])?void 0:n.current)?void 0:r.id,tabIndex:y?l:-1};return y||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?ei({ourProps:w,theirProps:c,slot:b,defaultTag:"div",features:Oi,visible:y,name:"Tabs.Panel"}):Dt.createElement(li,{as:"span","aria-hidden":"true",...w})})),Fi=Object.assign(Ri,{Group:Pi,List:Li,Panels:Ii,Panel:Ui});function Di(e,...t){e&&t.length>0&&e.classList.add(...t)}function ji(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Mi(e,t,n,r){let o=n?"enter":"leave",i=No(),a=void 0!==r?function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(r):()=>{};"enter"===o&&(e.removeAttribute("hidden"),e.style.display="");let s=Lo(o,{enter:()=>t.enter,leave:()=>t.leave}),l=Lo(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=Lo(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return ji(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Di(e,...t.base,...s,...c),i.nextFrame((()=>{ji(e,...t.base,...s,...c),Di(e,...t.base,...s,...l),function(e,t){let n=No();if(!e)return n.dispose;let{transitionDuration:r,transitionDelay:o}=getComputedStyle(e),[i,a]=[r,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),s=i+a;if(0!==s){n.group((n=>{n.setTimeout((()=>{t(),n.dispose()}),s),n.addEventListener(e,"transitionrun",(e=>{e.target===e.currentTarget&&n.dispose()}))}));let r=n.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(t(),r())}))}else t();n.add((()=>t())),n.dispose}(e,(()=>(ji(e,...t.base,...s),Di(e,...t.base,...t.entered),a())))})),i.dispose}function Bi(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Hi=G(null);Hi.displayName="TransitionContext";var zi=(e=>(e.Visible="visible",e.Hidden="hidden",e))(zi||{});let Wi=G(null);function qi(e){return"children"in e?qi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Vi(e,t){let n=So(e),r=xe([]),o=hi(),i=Ao(),a=Co(((e,t=Qo.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Lo(t,{[Qo.Unmount](){r.current.splice(a,1)},[Qo.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!qi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=Co((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Qo.Unmount)})),l=xe([]),c=xe(Promise.resolve()),u=xe({enter:[],leave:[],idle:[]}),d=Co(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Co(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Ee((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function $i(){}Wi.displayName="NestingContext";let Gi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Yi(e){var t;let n={};for(let r of Gi)n[r]=null!=(t=e[r])?t:$i;return n}let Ji=Zo.RenderStrategy;let Ki=oi((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=xe(null),s=Jo(a,t);Oo();let l=di();if(void 0===n&&null!==l&&(n=(l&ui.Open)===ui.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=ye(n?"visible":"hidden"),d=Vi((()=>{u("hidden")})),[p,f]=ye(!0),m=xe([n]);Eo((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Ee((()=>({show:n,appear:r,initial:p})),[n,r,p]);we((()=>{if(n)u("visible");else if(qi(d)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&u("hidden")}else u("hidden")}),[n,d]);let g={unmount:o},_=Co((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),y=Co((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return Dt.createElement(Wi.Provider,{value:d},Dt.createElement(Hi.Provider,{value:h},ei({ourProps:{...g,as:E,children:Dt.createElement(Xi,{ref:s,...g,...i,beforeEnter:_,beforeLeave:y})},theirProps:{},defaultTag:E,features:Ji,visible:"visible"===c,name:"Transition"})))})),Xi=oi((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:u,entered:d,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=xe(null),_=Jo(g,t),y=null==(n=h.unmount)||n?Qo.Unmount:Qo.Hidden,{show:b,appear:w,initial:v}=function(){let e=Ce(Hi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[x,k]=ye(b?"visible":"hidden"),E=function(){let e=Ce(Wi);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:S,unregister:C}=E;we((()=>S(g)),[S,g]),we((()=>{if(y===Qo.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):Lo(x,{hidden:()=>C(g),visible:()=>S(g)})}),[x,g,S,C,b,y]);let T=So({base:Bi(h.className),enter:Bi(l),enterFrom:Bi(c),enterTo:Bi(u),entered:Bi(d),leave:Bi(p),leaveFrom:Bi(f),leaveTo:Bi(m)}),N=function(e){let t=xe(Yi(e));return we((()=>{t.current=Yi(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=Oo();we((()=>{if(A&&"visible"===x&&null===g.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[g,x,A]);let O=v&&!w,R=w&&b&&v,P=(()=>!A||O?"idle":b?"enter":"leave")(),L=function(e=0){let[t,n]=ye(e),r=hi(),o=Se((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Se((e=>Boolean(t&e)),[t]),a=Se((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Se((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=Co((e=>Lo(e,{enter:()=>{L.addFlag(ui.Opening),N.current.beforeEnter()},leave:()=>{L.addFlag(ui.Closing),N.current.beforeLeave()},idle:()=>{}}))),U=Co((e=>Lo(e,{enter:()=>{L.removeFlag(ui.Opening),N.current.afterEnter()},leave:()=>{L.removeFlag(ui.Closing),N.current.afterLeave()},idle:()=>{}}))),F=Vi((()=>{k("hidden"),C(g)}),E),D=xe(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=hi(),s=Ao(),l=So(n);Eo((()=>{e&&(l.current="enter")}),[e]),Eo((()=>{let e=No();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Mi(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:T,direction:P,onStart:So((e=>{D.current=!0,F.onStart(g,e,I)})),onStop:So((e=>{D.current=!1,F.onStop(g,e,U),"leave"===e&&!qi(F)&&(k("hidden"),C(g))}))});let j=h,M={ref:_};return R?j={...j,className:Ko(h.className,...T.current.enter,...T.current.enterFrom)}:D.current&&(j.className=Ko(h.className,null==(r=g.current)?void 0:r.className),""===j.className&&delete j.className),Dt.createElement(Wi.Provider,{value:F},Dt.createElement(pi,{value:Lo(x,{visible:ui.Open,hidden:ui.Closed})|L.flags},ei({ourProps:M,theirProps:j,defaultTag:"div",features:Ji,visible:"visible"===x,name:"Transition.Child"})))})),Zi=oi((function(e,t){let n=null!==Ce(Hi),r=null!==di();return Dt.createElement(Dt.Fragment,null,!n&&r?Dt.createElement(Ki,{ref:t,...e}):Dt.createElement(Xi,{ref:t,...e}))})),Qi=Object.assign(Ki,{Child:Zi,Root:Ki});const ea=({children:e})=>{const t=Dt.Children.toArray(e),n=t.find((e=>e.type===ta)),r=t.find((e=>e.type===na));return co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&co("div",{class:"flex items-center h-full",children:n})}),co(Qi,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&co("div",{class:"flex items-center h-full",children:r})})]})})},ta=({children:e})=>co(E,{children:e}),na=({children:e})=>co(E,{children:e});ea.Top=ta,ea.Bottom=na;const ra=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ce(po),n="allowance"===t.scheme?t.content.setUpBenefits:void 0;return co(E,{children:n&&co(ea,{children:[co(ea.Top,{children:co("div",{className:"flex flex-col gap-4",children:[co(_o,{children:n.title}),co(yo,{children:n.description})]})}),co(ea.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[n.progress&&co(wo,{title:n.progress.title,steps:n.progress.steps,className:"rounded-md px-6 py-4 lg:w-3/4",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"}}),co(go,{testId:"allowance_set_up_benefits_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:e,children:n.buttonText}),n.termsAndConditions&&co("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:co(n.termsAndConditions,{})})]})})]})})},oa=({icon:e,children:t,className:n,...r})=>co("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:co("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&co("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&co("span",{className:"text-left text-base",children:t})]})}),ia=(e,t)=>{switch(!0){case"started"===e:return io.backend.command({eventType:"Started",analyticsData:t});case"membership-accepted"===e:return io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}});case"membership-declined"===e:return io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}});case"sign-up-viewed"===e:return io.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}});case"sign-up-completed"===e:return(async()=>{await io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}}),await io.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0})})();case"sign-up-declined"===e:return(async()=>{await io.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1}),await io.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}})})();case"object"==typeof e&&"offer-viewed"===e.type:return io.backend.command({...e,eventType:"OfferViewed"});case"object"==typeof e&&"offer-accepted"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}});case"object"==typeof e&&"offer-declined"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}});case"object"==typeof e&&"offer-progressed"===e.type:return io.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data});case"object"==typeof e&&"summary-viewed"===e.type:return io.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant,analyticsData:t});case"completed"===e:return io.backend.command({eventType:"Completed",analyticsData:t})}return Promise.resolve()},aa=()=>({trace:ia}),sa=e=>{const{trace:t}=aa(),{featureFlags:{marketplaceScheme:n}}=Ce(po),r="allowance"===n.scheme?n.content.joinBenefits:void 0;return co(E,{children:r&&co(ea,{children:[co(ea.Top,{children:[co("img",{class:"max-w-[30rem] w-full hidden md:block",src:r.desktopImageUrl}),co("img",{class:"max-w-[30rem] w-full md:hidden",src:r.mobileImageUrl})]}),co(ea.Bottom,{children:co("div",{children:[co("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:r.title}),co("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:r.description}),co(oa,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},icon:r.specialBanner.icon,children:co("div",{children:[co("p",{className:"font-semibold text-base text-gray-900",children:r.specialBanner.title}),co("span",{className:"font-normal text-base text-gray-900",children:r.specialBanner.subTitle})]})}),co(go,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onContinue()},children:r.buttonText})]})})]})})},la=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg?inline").href:new URL("assets/get-app-CQalMIl7.jpg?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),ca=()=>co("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[co("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:la}),co("div",{className:"flex flex-col gap-1",children:[co("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),co("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),co("a",{className:"focus:ring-2 focus:ring-primary-focus font-bold rounded-md self-start text-primary-base",target:"_blank",rel:"noreferrer",href:"https://flarehr.app.link/download",children:["Get the Flare App ","->"]})]})]}),ua=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r}}=Ce(po),{trace:o}=aa(),i=Ee((()=>{const e=t();switch(!0){case n&&e:return"allowance-accepted-app";case n&&!e:return"allowance-declined-app";case!n&&e:return"allowance-accepted-noapp";case!n&&!e:return"allowance-declined-noapp";default:throw"Invalid summary variant"}}),[t,n]);we((()=>{(async()=>{await o({type:"summary-viewed",data:{summaryVariant:i}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,i,o]);const a=Se((async()=>{await o("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}),[r,e,o]),s="allowance"===r.scheme?r.content.summary:void 0;return co(E,{children:s&&co(ea,{children:[co(ea.Top,{children:co("div",{className:"flex flex-col gap-4",children:[co(_o,{children:s.title}),co(yo,{children:s.description})]})}),co(ea.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[s.progress&&co(wo,{title:s.progress.title,steps:s.progress.steps,className:"rounded-md px-6 py-4 lg:w-3/4",style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"}}),co(go,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:a,children:s.buttonText}),n&&co(ca,{})]})})]})})};var da=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(da||{});const pa=({className:e,children:t,...n})=>co("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),fa=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"green",className:"w-5 h-5",...e},v("path",{fillRule:"evenodd",d:"M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm3.857-9.809a.75.75 0 0 0-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 1 0-1.06 1.061l2.5 2.5a.75.75 0 0 0 1.137-.089l4-5.5Z",clipRule:"evenodd"})),ma=({className:e,onClick:t,...n})=>{const[r,o]=ye(!1);return co("button",{className:`inline-flex items-center justify-center px-2 text-primary-base rounded-md bg-transparent hover:bg-sky-50/50 focus:ring-2 focus:ring-primary-focus ${e??""}`,onClick:Se((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[co("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&co("div",{class:"absolute animate-spin",children:co(mo,{theme:"primary"})})]})},ha=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Se((e=>{t.test(e.key)||e.preventDefault()}),[t]);return co(E,{children:co("div",{class:"relative",children:[o,co("input",{"data-testid":a.testId,type:"text",className:`border-0 ring-2 ring-gray-200 focus:outline-none text-base font-medium rounded-md shadow-sm ${e}`,value:r,onKeyPress:s,onChange:e=>n(e.currentTarget.value),...a}),i]})})},ga=e=>e.replace(/ /g,""),_a=e=>{const t=ga(e);return t.startsWith("04")&&10===t.length||t.startsWith("614")&&11===t.length||t.startsWith("+614")&&12===t.length||/^\+642\d{7,9}$/.test(t)},ya=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{trace:r}=aa(),[o,i]=ye(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Ce(po),[n,r]=ye((()=>e&&_a(e)?e:"")),o=Ee((()=>_a(n)),[n]),i=Ee((()=>ga(n)),[n]),a=Ee((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Ee((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Ee((()=>_a(t.verifiedPhoneNumber)&&a===t.verifiedPhoneNumber),[a,t.verifiedPhoneNumber]);return{setPhoneNumber:r,phoneNumber:{valid:o,original:n,formatted:a,masked:s,isVerified:l}}})(e),[l,c]=ye(s.isVerified);we((()=>{(async()=>{await r("sign-up-viewed")})()}),[r]);const u=Se((()=>{i("")}),[]),d=Se((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=Se((async()=>{s.valid&&await t(s).then((async()=>await r("sign-up-completed"))).catch(i)}),[s,t,r]),f=Se((()=>r("sign-up-declined").then(n)),[n,r]),m=Se((async()=>{c(!1)}),[]),h=co("div",{class:"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-3 text-xs text-green-700 font-bold",children:["Verified ",co(fa,{})]});return co(ea,{children:[co(ea.Top,{children:co("div",{className:"flex flex-col gap-5",children:[co(_o,{children:"Join your workplace benefits program"}),co(yo,{children:[s.isVerified?"Confirm ":"Enter "," your ",co("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),co(ea.Bottom,{children:co("div",{className:"mt-5 md:w-[300px] text-left",children:[co(pa,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),co(ha,{testId:"sign_in_mobile_number_text_input_mobile_number",allowedKeyPattern:/[+0-9]/,inputMode:"numeric",className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",value:s.original,onChange:a,onfocusin:u,onfocusout:d,trailingIconElement:l&&h,disabled:l}),0!==o.length&&co("div",{className:"h-8 leading-none",children:co("span",{className:"text-xs text-rose-500",children:o})}),l&&co("div",{className:"mt-2 ml-2 mb-2 leading-none",children:co("span",{className:"text-xs",children:["Not your personal number?",co(ma,{class:"text-blue-500",onClick:m,children:"Change number"})]})}),co("div",{children:co("span",{className:"font-medium text-sm text-gray-900 text-center",children:["By creating your account you confirm you have read and agree to Flare Benefits"," ",co("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",co("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),co(go,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),co(go,{testId:"sign_in_mobile_number_button_decline_to_send_otp",class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:f,children:"Not now"})]})})]})},ba=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/check-animated-QQOZQPLY.gif?inline").href:new URL("assets/check-animated-QQOZQPLY.gif?inline","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),wa=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t}}=Ce(po),n=Ee((()=>"allowance"===t.scheme?{title:"Account created successfully",description:"You now have access to your workplace benefits",isNextButtonHidden:!0}:{title:"You’ve joined your workplace benefits program",description:"You now have access to your workplace benefits",isNextButtonHidden:!1}),[t]);return we((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),co(ea,{children:[co(ea.Top,{children:co("img",{src:ba,className:"h-16 w-16"})}),co(ea.Bottom,{children:co("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[co(_o,{children:n.title}),co(yo,{children:n.description}),!n.isNextButtonHidden&&co(go,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{e()},children:"Set up your benefits"})]})})]})},va=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",height:24,viewBox:"0 -960 960 960",width:24,fill:"currentColor",...e},v("path",{d:"m313-440 224 224-57 56-320-320 320-320 57 56-224 224h487v80H313Z"})),xa=({children:e,...t})=>co("dialog",{className:"z-50 w-full h-full absolute top-0 left-0 bottom-0 right-0",...t,children:e}),ka=({open:e})=>co(xa,{open:e,children:co("div",{className:"flex flex-col gap-5 items-center justify-center text-center mt-20",children:[co("span",{class:"animate-spin",children:co(mo,{size:"lg"})}),co(_o,{children:"Creating your account"}),co("div",{children:[co(yo,{children:"This can take up to 30 seconds."}),co(yo,{children:"Please don't navigate away or refresh your browser."})]})]})}),Ea=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=ye("");return{otp:{valid:Ee((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=ye(!1),[l,c]=ye(""),{countdown:u,restart:d}=(e=>{const[t,n]=ye(e),r=xe(),o=Se((()=>{clearInterval(r.current)}),[]);return we((()=>o),[o]),{countdown:t,restart:Se((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);we(d,[d]);const p=Se((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Se((()=>(c(""),n().then(d).catch(c))),[n,d]);return co(E,{children:[co(ka,{open:a}),co(ea,{children:[co(ea.Top,{children:co("div",{className:"flex flex-col gap-5",children:[co(_o,{children:"Verify your mobile number"}),co(yo,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),co(ea.Bottom,{children:co("div",{className:"mt-5 md:w-[300px] text-left",children:[co(pa,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),co(ha,{testId:"sign_in_otp_text_input_otp",allowedKeyPattern:/[0-9]/,inputMode:"numeric",minLength:6,maxLength:6,className:"mt-1 mb-1 w-full p-2 focus-visible:ring-gray-500",trailingIconElement:!1,onChange:i}),l&&co("span",{className:"text-xs text-rose-500",children:l}),co("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",co(ma,{disabled:0!==u,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==u&&co(E,{children:["in ",u," secs"]})]}),co(go,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),co(go,{testId:"sign_in_otp_button_decline_to_verify_otp",class:"mt-5 md:w-full bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:async()=>{r()},children:co("span",{className:"flex gap-3",children:[co(va,{}),"Back"]})})]})})]})]})},Sa=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const[a,s]=ye(e??""),{step:l,goBack:c,goToStep:u}=(()=>{const[e,t]=ye(0),n=Se((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Se((e=>{e<=2&&t(e)}),[e]);return{step:e,goBack:n,goToStep:r}})(),d=Se((e=>t(e.formatted).then((t=>{s(e.masked),u(t.isVerificationRequired?da.OTP:da.SUCCESS)}))),[u,t]),p=Se((e=>n(e).then((()=>{u(da.SUCCESS)}))),[u,n]);return co(E,{children:[l===da.PHONE_NUMBER&&co(ya,{phoneNumber:a,onSubmit:d,onDecline:i}),l===da.OTP&&co(Ea,{phoneNumber:a,onVerify:p,onResendOtp:r,onGoBack:c}),l===da.SUCCESS&&co(wa,{onContinue:o})]})},Ca="Onboarding",Ta="onboarding";var Na=(e=>(e.Auth_AccountDisabled="Sorry, your account has been deactivated. Please contact Flare if there are any issues.",e.Auth_AccountLocked="Sorry, your account is currently locked due to too many attempts. Please try again later.",e.Auth_Unregistered="Sorry, we are currently experiencing some issues. Please try again later.",e.Auth_InvalidVerificationCode="Your one time passcode doesn't look right. Please try again with a new one time passcode.",e.Auth_SessionExpired="Sorry, looks like your session has expired. Please try again.",e.Validation_InvalidPhoneNumber="Please enter a valid Australian mobile number beginning with 04.",e))(Na||{});const Aa=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Na[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Oa=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Ce(po),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>io.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e,source:Ca,channel:Ta}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await io.backend.getClient().post("auth/verify",{otp:e,source:Ca,channel:Ta}).catch(Aa)},resendOtp:async()=>{await io.backend.getClient().post("auth/resend").catch(Aa)}};return co(E,{children:co(Sa,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Ra=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/intro-COqxd5jd.png").href:new URL("assets/intro-COqxd5jd.png","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Pa=e=>{const{trace:t}=aa(),{featureFlags:{marketplaceScheme:n}}=Ce(po);return co(ea,{children:[co(ea.Top,{children:co("img",{class:"max-w-[30rem] w-full",src:Ra})}),co(ea.Bottom,{children:co("div",{children:[co("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),co("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:"Because your workplace uses Flare you have access to a range of exclusive benefits that can save you thousands of dollars every year on your car, private health insurance, weekly grocery shop and more."}),co(go,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{await t("started",{experiment:"onboarding-marketplace-scheme",treatment:n.scheme}),e.onStepComplete()},children:"Continue"})]})})]})};function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},La.apply(null,arguments)}function Ia(e,t){return(Ia=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ua(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;
2
2
  /*!
3
3
  * content-type
4
4
  * Copyright(c) 2015 Douglas Christopher Wilson
5
5
  * MIT Licensed
6
6
  */
7
- var Fa=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Da=/\\([\u000b\u0020-\u00ff])/g,ja=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ma=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!ja.test(r))throw new TypeError("invalid media type");var o=new Ba(r.toLowerCase());if(-1!==n){var i,a,s;for(Fa.lastIndex=n;a=Fa.exec(t);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,i=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(Da,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function Ba(e){this.parameters=Object.create(null),this.type=e}var Ha=new Map,za=function(e){return e.cloneNode(!0)},Wa=function(){return"file:"===window.location.protocol},qa=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=Ma(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(Wa()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||Wa()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(i){if(r.abort(),!(i instanceof Error))throw i;n(i,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},Va={},$a=function(e,t){Va[e]=Va[e]||[],Va[e].push(t)},Ga=function(e,t,n){if(Ha.has(e)){var r=Ha.get(e);if(void 0===r)return void $a(e,n);if(r instanceof SVGSVGElement)return void n(null,za(r))}Ha.set(e,void 0),$a(e,n),qa(e,t,(function(t,n){var r;t?Ha.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Ha.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(Va[e])){var n=Ha.get(e),r=Va[e][t];n instanceof SVGSVGElement&&r(null,za(n)),n instanceof Error&&r(n),t===Va[e].length-1&&delete Va[e]}}),0)},n=0,r=Va[e].length;n<r;n++)t(n)}(e)}))},Ya=function(e,t,n){qa(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},Ja=0,Ka=[],Xa={},Za="http://www.w3.org/1999/xlink",Qa=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Ka.indexOf(e))return Ka.splice(Ka.indexOf(e),1),void(e=null);Ka.push(e),e.setAttribute("src",""),(r?Ga:Ya)(s,o,(function(r,o){if(!o)return Ka.splice(Ka.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var p=Array.from(new Set(Ua(Ua(Ua([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,_,b,y,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,_=w[e];for(var t=function(e,t){var n;b=g[e].id,y=b+"-"+ ++Ja,Array.prototype.forEach.call(_,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+b+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+b+'"?\\)'))||n[t].setAttribute(e,"url(#"+y+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(Za,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(Za,"href","#"+y);g[e].id=y},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,k=o.querySelectorAll("script"),E=[],S=0,C=k.length;S<C;S++)(x=k[S].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[S].innerText||k[S].textContent)&&E.push(v),o.removeChild(k[S]));if(E.length>0&&("always"===t||"once"===t&&!Xa[s])){for(var T=0,N=E.length;T<N;T++)new Function(E[T])(window);Xa[s]=!0}var A=o.querySelectorAll("style");if(Array.prototype.forEach.call(A,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",Za),i(o),!e.parentNode)return Ka.splice(Ka.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Ka.splice(Ka.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},es={exports:{}};function ts(){}function ns(){}ns.resetWarningCache=ts;es.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ns,resetWarningCache:ts};return n.PropTypes=n,n}();var rs=es.exports,os=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],is="http://www.w3.org/2000/svg",as="http://www.w3.org/1999/xlink",ss=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ia(e,t)}(t,e);var n=t.prototype;return n.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,r,o=this.props,i=o.desc,a=o.evalScripts,s=o.httpRequestWithCredentials,l=o.renumerateIRIElements,c=o.src,u=o.title,d=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(is,h)).setAttribute("xmlns",is),n.setAttribute("xmlns:xlink",as),r=document.createElementNS(is,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,p=void 0===d?"never":d,f=n.httpRequestWithCredentials,m=void 0!==f&&f,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var _=0,b=0,y=e.length;b<y;b++)Qa(e[b],p,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++_&&o(_)}));else e?Qa(e,p,g,u,m,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(r,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{m(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),i){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=i,e.prepend(n)}if(u){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=u,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:d,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(La({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,os);return v(r,La({},o,{ref:this.refCallback},"svg"===r?{xmlns:is,xmlnsXlink:as}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(S);ss.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},ss.propTypes={afterInjection:rs.func,beforeInjection:rs.func,desc:rs.string,evalScripts:rs.oneOf(["always","once","never"]),fallback:rs.oneOfType([rs.func,rs.object,rs.string]),httpRequestWithCredentials:rs.bool,loading:rs.oneOfType([rs.func,rs.object,rs.string]),onError:rs.func,renumerateIRIElements:rs.bool,src:rs.string.isRequired,title:rs.string,useRequestCache:rs.bool,wrapper:rs.oneOf(["div","span","svg"])};const ls=()=>co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(mo,{size:"lg"})})}),cs=(us=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Ce(po),{trace:i}=aa(),a=xe(null);return we((()=>{i({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata}),a.current&&(a.current.terms=e.marketPlaceOffer.content.terms,a.current.details=e.marketPlaceOffer.content.details,a.current["on-accept"]=async()=>{await i({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}})},a.current["on-decline"]=async()=>{await i({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}}),e.onStepComplete(!1)},a.current["on-complete"]=()=>e.onStepComplete(!0))}),[e,i]),co("benefits-plan-assessment",{"base-url":ao.workplaceBackend.getBaseUrl(),"profile-id":ao.workplaceBackend.getProfileId(),"skip-more-details":!0,"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"assessment-instructions":"allowance"===o.scheme?e.marketPlaceOffer.content.assessmentInstructions:void 0,"track-client":"onboarding","track-source":"Onboarding","track-channel":"onboarding","track-experiment":"onboarding-marketplace-scheme","track-treatment":o.scheme,"marketplace-offer-name":e.marketPlaceOffer.name,title:e.marketPlaceOffer.content.title,description:e.marketPlaceOffer.content.description,"accept-button":e.marketPlaceOffer.content.acceptButton,"decline-button":e.marketPlaceOffer.content.declineButton,"special-banner-title":"allowance"===o.scheme?null==(t=e.marketPlaceOffer.content.specialBanner)?void 0:t.title:void 0,"special-banner-subtitle":"allowance"===o.scheme?null==(n=e.marketPlaceOffer.content.specialBanner)?void 0:n.subtitle:void 0,"special-banner-type":"allowance"===o.scheme?null==(r=e.marketPlaceOffer.content.specialBanner)?void 0:r.type:void 0,"vertical-alignment":"items-center",ref:a})},e=>{const t=xe(null),[n,r]=be(),[o,i]=be(!1);return we((()=>{(async()=>{const e=await ao.workplaceBackend.getAccessToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=(e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"})(ao.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${n}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),co("div",{ref:t,class:e.class,children:n&&o?co(us,{...e,accessToken:n}):co(ls,{})})});var us;
7
+ var Fa=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Da=/\\([\u000b\u0020-\u00ff])/g,ja=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ma=function(e){if(!e)throw new TypeError("argument string is required");var t="object"==typeof e?function(e){var t;"function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]);if("string"!=typeof t)throw new TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof t)throw new TypeError("argument string is required to be a string");var n=t.indexOf(";"),r=-1!==n?t.slice(0,n).trim():t.trim();if(!ja.test(r))throw new TypeError("invalid media type");var o=new Ba(r.toLowerCase());if(-1!==n){var i,a,s;for(Fa.lastIndex=n;a=Fa.exec(t);){if(a.index!==n)throw new TypeError("invalid parameter format");n+=a[0].length,i=a[1].toLowerCase(),34===(s=a[2]).charCodeAt(0)&&-1!==(s=s.slice(1,-1)).indexOf("\\")&&(s=s.replace(Da,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function Ba(e){this.parameters=Object.create(null),this.type=e}var Ha=new Map,za=function(e){return e.cloneNode(!0)},Wa=function(){return"file:"===window.location.protocol},qa=function(e,t,n){var r=new XMLHttpRequest;r.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===r.readyState){var t=r.getResponseHeader("Content-Type");if(!t)throw new Error("Content type not found");var o=Ma(t).type;if("image/svg+xml"!==o&&"text/plain"!==o)throw new Error("Invalid content type: ".concat(o))}if(4===r.readyState){if(404===r.status||null===r.responseXML)throw new Error(Wa()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(!(200===r.status||Wa()&&0===r.status))throw new Error("There was a problem injecting the SVG: "+r.status+" "+r.statusText);n(null,r)}}catch(i){if(r.abort(),!(i instanceof Error))throw i;n(i,r)}},r.open("GET",e),r.withCredentials=t,r.overrideMimeType&&r.overrideMimeType("text/xml"),r.send()},Va={},$a=function(e,t){Va[e]=Va[e]||[],Va[e].push(t)},Ga=function(e,t,n){if(Ha.has(e)){var r=Ha.get(e);if(void 0===r)return void $a(e,n);if(r instanceof SVGSVGElement)return void n(null,za(r))}Ha.set(e,void 0),$a(e,n),qa(e,t,(function(t,n){var r;t?Ha.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Ha.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(Va[e])){var n=Ha.get(e),r=Va[e][t];n instanceof SVGSVGElement&&r(null,za(n)),n instanceof Error&&r(n),t===Va[e].length-1&&delete Va[e]}}),0)},n=0,r=Va[e].length;n<r;n++)t(n)}(e)}))},Ya=function(e,t,n){qa(e,t,(function(e,t){var r;e?n(e):(null===(r=t.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&n(null,t.responseXML.documentElement)}))},Ja=0,Ka=[],Xa={},Za="http://www.w3.org/1999/xlink",Qa=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Ka.indexOf(e))return Ka.splice(Ka.indexOf(e),1),void(e=null);Ka.push(e),e.setAttribute("src",""),(r?Ga:Ya)(s,o,(function(r,o){if(!o)return Ka.splice(Ka.indexOf(e),1),e=null,void a(r);var l=e.getAttribute("id");l&&o.setAttribute("id",l);var c=e.getAttribute("title");c&&o.setAttribute("title",c);var u=e.getAttribute("width");u&&o.setAttribute("width",u);var d=e.getAttribute("height");d&&o.setAttribute("height",d);var p=Array.from(new Set(Ua(Ua(Ua([],(o.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();o.setAttribute("class",p);var f=e.getAttribute("style");f&&o.setAttribute("style",f),o.setAttribute("data-src",s);var m=[].filter.call(e.attributes,(function(e){return/^data-\w[\w-]*$/.test(e.name)}));if(Array.prototype.forEach.call(m,(function(e){e.name&&e.value&&o.setAttribute(e.name,e.value)})),n){var h,g,_,y,b,w={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(w).forEach((function(e){h=e,_=w[e];for(var t=function(e,t){var n;y=g[e].id,b=y+"-"+ ++Ja,Array.prototype.forEach.call(_,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+y+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+y+'"?\\)'))||n[t].setAttribute(e,"url(#"+b+")")}}));for(var r=o.querySelectorAll("[*|href]"),i=[],a=0,s=r.length;a<s;a++){var l=r[a].getAttributeNS(Za,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(Za,"href","#"+b);g[e].id=b},n=0,r=(g=o.querySelectorAll(h+"[id]")).length;n<r;n++)t(n)}))}o.removeAttribute("xmlns:a");for(var v,x,k=o.querySelectorAll("script"),E=[],S=0,C=k.length;S<C;S++)(x=k[S].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[S].innerText||k[S].textContent)&&E.push(v),o.removeChild(k[S]));if(E.length>0&&("always"===t||"once"===t&&!Xa[s])){for(var T=0,N=E.length;T<N;T++)new Function(E[T])(window);Xa[s]=!0}var A=o.querySelectorAll("style");if(Array.prototype.forEach.call(A,(function(e){e.textContent+=""})),o.setAttribute("xmlns","http://www.w3.org/2000/svg"),o.setAttribute("xmlns:xlink",Za),i(o),!e.parentNode)return Ka.splice(Ka.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Ka.splice(Ka.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},es={exports:{}};function ts(){}function ns(){}ns.resetWarningCache=ts;es.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:ns,resetWarningCache:ts};return n.PropTypes=n,n}();var rs=es.exports,os=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],is="http://www.w3.org/2000/svg",as="http://www.w3.org/1999/xlink",ss=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ia(e,t)}(t,e);var n=t.prototype;return n.renderSVG=function(){var e,t=this;if(this.reactWrapper instanceof(e=this.reactWrapper,((null==e?void 0:e.ownerDocument)||document).defaultView||window).Node){var n,r,o=this.props,i=o.desc,a=o.evalScripts,s=o.httpRequestWithCredentials,l=o.renumerateIRIElements,c=o.src,u=o.title,d=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(is,h)).setAttribute("xmlns",is),n.setAttribute("xmlns:xlink",as),r=document.createElementNS(is,h)):(n=document.createElement(h),r=document.createElement(h)),n.appendChild(r),r.dataset.src=c,this.nonReactWrapper=this.reactWrapper.appendChild(n);var g=function(e){t.removeSVG(),t._isMounted?t.setState((function(){return{hasError:!0,isLoading:!1}}),(function(){p(e)})):p(e)};!function(e,t){var n=void 0===t?{}:t,r=n.afterAll,o=void 0===r?function(){}:r,i=n.afterEach,a=void 0===i?function(){}:i,s=n.beforeEach,l=void 0===s?function(){}:s,c=n.cacheRequests,u=void 0===c||c,d=n.evalScripts,p=void 0===d?"never":d,f=n.httpRequestWithCredentials,m=void 0!==f&&f,h=n.renumerateIRIElements,g=void 0===h||h;if(e&&"length"in e)for(var _=0,y=0,b=e.length;y<b;y++)Qa(e[y],p,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++_&&o(_)}));else e?Qa(e,p,g,u,m,l,(function(t,n){a(t,n),o(1),e=null})):o(0)}(r,{afterEach:function(e,n){e?g(e):t._isMounted&&t.setState((function(){return{isLoading:!1}}),(function(){try{m(n)}catch(e){g(e)}}))},beforeEach:function(e){if(e.setAttribute("role","img"),i){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var n=document.createElement("desc");n.innerHTML=i,e.prepend(n)}if(u){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=u,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:d,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},n.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},n.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},n.componentDidUpdate=function(e){var t=this;(function(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1})(La({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},n.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},n.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var n=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var r=e.wrapper,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}(e,os);return v(r,La({},o,{ref:this.refCallback},"svg"===r?{xmlns:is,xmlnsXlink:as}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(S);ss.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},ss.propTypes={afterInjection:rs.func,beforeInjection:rs.func,desc:rs.string,evalScripts:rs.oneOf(["always","once","never"]),fallback:rs.oneOfType([rs.func,rs.object,rs.string]),httpRequestWithCredentials:rs.bool,loading:rs.oneOfType([rs.func,rs.object,rs.string]),onError:rs.func,renumerateIRIElements:rs.bool,src:rs.string.isRequired,title:rs.string,useRequestCache:rs.bool,wrapper:rs.oneOf(["div","span","svg"])};const ls=()=>co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(mo,{size:"lg"})})}),cs=(us=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Ce(po),{trace:i}=aa(),a=xe(null);return we((()=>{i({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata}),a.current&&(a.current.terms=e.marketPlaceOffer.content.terms,a.current.details=e.marketPlaceOffer.content.details,a.current["on-accept"]=async()=>{await i({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}})},a.current["on-decline"]=async()=>{await i({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}}),e.onStepComplete(!1,!1)},a.current["on-complete"]=()=>e.onStepComplete(!0,!0),a.current["on-skip"]=e.marketPlaceOffer.content.skipButtonHidden?void 0:()=>e.onStepComplete(!0,!1))}),[e,i]),co("benefits-plan-assessment",{"base-url":ao.workplaceBackend.getBaseUrl(),"profile-id":ao.workplaceBackend.getProfileId(),"skip-more-details":!0,"access-token":e.accessToken,"image-url":e.marketPlaceOffer.content.imageUrl,"assessment-id":e.marketPlaceOffer.content.assessmentId,"assessment-instructions":"allowance"===o.scheme?e.marketPlaceOffer.content.assessmentInstructions:void 0,"track-client":"onboarding","track-source":"Onboarding","track-channel":"onboarding","track-experiment":"onboarding-marketplace-scheme","track-treatment":o.scheme,"marketplace-offer-name":e.marketPlaceOffer.name,"assessment-title":e.marketPlaceOffer.content.title,description:e.marketPlaceOffer.content.description,"accept-button":e.marketPlaceOffer.content.acceptButton,"decline-button":e.marketPlaceOffer.content.declineButton,"special-banner-title":"allowance"===o.scheme?null==(t=e.marketPlaceOffer.content.specialBanner)?void 0:t.title:void 0,"special-banner-subtitle":"allowance"===o.scheme?null==(n=e.marketPlaceOffer.content.specialBanner)?void 0:n.subtitle:void 0,"special-banner-type":"allowance"===o.scheme?null==(r=e.marketPlaceOffer.content.specialBanner)?void 0:r.type:void 0,"vertical-alignment":"items-center",ref:a})},e=>{const t=xe(null),[n,r]=ye(),[o,i]=ye(!1);return we((()=>{(async()=>{const e=await ao.workplaceBackend.getAccessToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=(e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"})(ao.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${n}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{i(!0)},t.current.appendChild(e)}else i(!0)})()}),[]),co("div",{ref:t,class:e.class,children:n&&o?co(us,{...e,accessToken:n}):co(ls,{})})});var us;
8
8
  /*! @license DOMPurify 3.1.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.6/LICENSE */
9
- const{entries:ds,setPrototypeOf:ps,isFrozen:fs,getPrototypeOf:ms,getOwnPropertyDescriptor:hs}=Object;let{freeze:gs,seal:_s,create:bs}=Object,{apply:ys,construct:ws}="undefined"!=typeof Reflect&&Reflect;gs||(gs=function(e){return e}),_s||(_s=function(e){return e}),ys||(ys=function(e,t,n){return e.apply(t,n)}),ws||(ws=function(e,t){return new e(...t)});const vs=Is(Array.prototype.forEach),xs=Is(Array.prototype.pop),ks=Is(Array.prototype.push),Es=Is(String.prototype.toLowerCase),Ss=Is(String.prototype.toString),Cs=Is(String.prototype.match),Ts=Is(String.prototype.replace),Ns=Is(String.prototype.indexOf),As=Is(String.prototype.trim),Os=Is(Object.prototype.hasOwnProperty),Rs=Is(RegExp.prototype.test),Ps=(Ls=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ws(Ls,t)});var Ls;function Is(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return ys(e,t,r)}}function Us(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Es;ps&&ps(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(fs(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Fs(e){for(let t=0;t<e.length;t++){Os(e,t)||(e[t]=null)}return e}function Ds(e){const t=bs(null);for(const[n,r]of ds(e)){Os(e,n)&&(Array.isArray(r)?t[n]=Fs(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Ds(r):t[n]=r)}return t}function js(e,t){for(;null!==e;){const n=hs(e,t);if(n){if(n.get)return Is(n.get);if("function"==typeof n.value)return Is(n.value)}e=ms(e)}return function(){return null}}const Ms=gs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Bs=gs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Hs=gs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zs=gs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ws=gs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),qs=gs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vs=gs(["#text"]),$s=gs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Gs=gs(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ys=gs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Js=gs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ks=_s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xs=_s(/<%[\w\W]*|[\w\W]*%>/gm),Zs=_s(/\${[\w\W]*}/gm),Qs=_s(/^data-[\-\w.\u00B7-\uFFFF]/),el=_s(/^aria-[\-\w]+$/),tl=_s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nl=_s(/^(?:\w+script|data):/i),rl=_s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ol=_s(/^html$/i),il=_s(/^[a-z][.\w]*(-[.\w]+)+$/i);var al=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ks,ERB_EXPR:Xs,TMPLIT_EXPR:Zs,DATA_ATTR:Qs,ARIA_ATTR:el,IS_ALLOWED_URI:tl,IS_SCRIPT_OR_DATA:nl,ATTR_WHITESPACE:rl,DOCTYPE_NAME:ol,CUSTOM_ELEMENT:il});const sl=1,ll=3,cl=7,ul=8,dl=9;var pl=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==dl)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=js(h,"cloneNode"),_=js(h,"remove"),b=js(h,"nextSibling"),y=js(h,"childNodes"),w=js(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:C}=r,{importNode:T}=o;let N={};n.isSupported="function"==typeof ds&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=al;let{IS_ALLOWED_URI:D}=al,j=null;const M=Us({},[...Ms,...Bs,...Hs,...Ws,...Vs]);let B=null;const H=Us({},[...$s,...Gs,...Ys,...Js]);let z=Object.seal(bs(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,q=null,V=!0,$=!0,G=!1,Y=!0,J=!1,K=!0,X=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=Us({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=Us({},["audio","video","img","source","image","track"]);let pe=null;const fe=Us({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let _e=ge,be=!1,ye=null;const we=Us({},[me,he,ge],Ss);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ee=null;const Se=r.createElement("form"),Ce=function(e){return e instanceof RegExp||e instanceof Function},Te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=Ds(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ss:Es,j=Os(e,"ALLOWED_TAGS")?Us({},e.ALLOWED_TAGS,ke):M,B=Os(e,"ALLOWED_ATTR")?Us({},e.ALLOWED_ATTR,ke):H,ye=Os(e,"ALLOWED_NAMESPACES")?Us({},e.ALLOWED_NAMESPACES,Ss):we,pe=Os(e,"ADD_URI_SAFE_ATTR")?Us(Ds(fe),e.ADD_URI_SAFE_ATTR,ke):fe,ue=Os(e,"ADD_DATA_URI_TAGS")?Us(Ds(de),e.ADD_DATA_URI_TAGS,ke):de,le=Os(e,"FORBID_CONTENTS")?Us({},e.FORBID_CONTENTS,ke):ce,W=Os(e,"FORBID_TAGS")?Us({},e.FORBID_TAGS,ke):{},q=Os(e,"FORBID_ATTR")?Us({},e.FORBID_ATTR,ke):{},se=!!Os(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||tl,_e=e.NAMESPACE||ge,z=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&($=!1),te&&(ee=!0),se&&(j=Us({},Vs),B=[],!0===se.html&&(Us(j,Ms),Us(B,$s)),!0===se.svg&&(Us(j,Bs),Us(B,Gs),Us(B,Js)),!0===se.svgFilters&&(Us(j,Hs),Us(B,Gs),Us(B,Js)),!0===se.mathMl&&(Us(j,Ws),Us(B,Ys),Us(B,Js))),e.ADD_TAGS&&(j===M&&(j=Ds(j)),Us(j,e.ADD_TAGS,ke)),e.ADD_ATTR&&(B===H&&(B=Ds(B)),Us(B,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&Us(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=Ds(le)),Us(le,e.FORBID_CONTENTS,ke)),ie&&(j["#text"]=!0),X&&Us(j,["html","head","body"]),j.table&&(Us(j,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ps('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ps('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,x=v.createHTML("")}else void 0===v&&(v=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==v&&"string"==typeof x&&(x=v.createHTML(""));gs&&gs(e),Ee=e}},Ne=Us({},["mi","mo","mn","ms","mtext"]),Ae=Us({},["foreignobject","annotation-xml"]),Oe=Us({},["title","style","font","a","script"]),Re=Us({},[...Bs,...Hs,...zs]),Pe=Us({},[...Ws,...qs]),Le=function(e){ks(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){_(e)}},Ie=function(e,t){try{ks(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){ks(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!B[e])if(ee||te)try{Le(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ue=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Cs(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&_e===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(_e===ge)try{t=(new f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(_e,"template",null);try{t.documentElement.innerHTML=be?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),_e===ge?C.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return E.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l},Me=function(e,t,r){N[e]&&vs(N[e],(e=>{e.call(n,t,r,Ee)}))},Be=function(e){let t=null;if(Me("beforeSanitizeElements",e,null),De(e))return Le(e),!0;const r=ke(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&Rs(/<[/\w]/g,e.innerHTML)&&Rs(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===cl)return Le(e),!0;if(K&&e.nodeType===ul&&Rs(/<[/\w]/g,e.data))return Le(e),!0;if(!j[r]||W[r]){if(!W[r]&&ze(r)){if(z.tagNameCheck instanceof RegExp&&Rs(z.tagNameCheck,r))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=w(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,b(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:_e,tagName:"template"});const n=Es(e.tagName),r=Es(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ne[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Ae[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Ae[r])&&!(t.namespaceURI===me&&!Ne[r])&&!Pe[n]&&(Oe[n]||!Re[n]):!("application/xhtml+xml"!==ve||!ye[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Rs(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===ll&&(t=e.textContent,vs([A,O,R],(e=>{t=Ts(t,e," ")})),e.textContent!==t&&(ks(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},He=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Se))return!1;if($&&!q[t]&&Rs(P,t));else if(V&&Rs(L,t));else if(!B[t]||q[t]){if(!(ze(e)&&(z.tagNameCheck instanceof RegExp&&Rs(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Rs(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Rs(z.tagNameCheck,n)||z.tagNameCheck instanceof Function&&z.tagNameCheck(n))))return!1}else if(pe[t]);else if(Rs(D,Ts(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ns(n,"data:")||!ue[e]){if(G&&!Rs(I,Ts(n,U,"")));else if(n)return!1}else;return!0},ze=function(e){return"annotation-xml"!==e&&Cs(e,F)},We=function(e){Me("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=ke(s);let d="value"===s?c:As(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,r),d=r.attrValue,K&&Rs(/((--!?|])>)|<\/(style|title)/i,d)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&Rs(/\/>/i,d)){Ie(s,e);continue}J&&vs([A,O,R],(e=>{d=Ts(d,e," ")}));const p=ke(e.nodeName);if(He(p,u,d)){if(!oe||"id"!==u&&"name"!==u||(Ie(s,e),d="user-content-"+d),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,u)){case"TrustedHTML":d=v.createHTML(d);break;case"TrustedScriptURL":d=v.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),De(e)?Le(e):xs(n.removed)}catch(i){}}}Me("afterSanitizeAttributes",e,null)},qe=function e(t){let n=null;const r=Fe(t);for(Me("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Me("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof a&&e(n.content),We(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw Ps("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ps("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Te(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!j[t]||W[t])throw Ps("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ue("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===sl&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!J&&!X&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const u=Fe(ae?e:r);for(;s=u.nextNode();)Be(s)||(s.content instanceof a&&qe(s.content),We(s));if(ae)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(B.shadowroot||B.shadowrootmode)&&(c=T.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Rs(ol,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),J&&vs([A,O,R],(e=>{d=Ts(d,e," ")})),v&&ne?v.createHTML(d):d},n.setConfig=function(){Te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ee=null,Z=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});const r=ke(e),o=ke(t);return He(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],ks(N[e],t))},n.removeHook=function(e){if(N[e])return xs(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const fl=({children:e})=>{const t=Dt.Children.toArray(e),n=t.find((e=>e.type===ml)),r=t.find((e=>e.type===hl));return co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&co("div",{class:"flex items-center h-full",children:n})}),co(Qi,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&co("div",{class:"flex items-center h-full",children:r})})]})})},ml=({children:e})=>co(E,{children:e}),hl=({children:e})=>co(E,{children:e});fl.Left=ml,fl.Right=hl;const gl=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},v("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),_l=e=>co(Qi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2",children:e.items.map(((e,t)=>co("div",{class:"flex space-x-1",children:[co("span",{children:co(yo,{class:"h-5 w-5 fill-primary-base"})}),co("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),bl=e=>{const[t,n]=be(!1);return co("div",{class:e.class,children:t?co(_l,{items:e.items}):co("button",{type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:()=>n(!0),children:["Learn more",co("span",{class:"ml-1",children:co(gl,{class:"h-4 w-4"})})]})})},yl=e=>{var t,n;const{featureFlags:{marketplaceScheme:r}}=Ce(po),{trace:o}=aa();we((()=>{(async()=>{await o({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,o]);const i=async t=>{t?await o({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await o({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return co(fl,{children:[co(fl.Left,{children:co("div",{children:co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&co("div",{class:"mt-6 hidden md:block",children:co(_l,{items:e.step.content.details})})]}),e.step.content.details&&co(bl,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===r.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(oa,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[co(go,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:()=>i(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&co(go,{testId:`offer_${e.step.name}_button_decline`,class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>i(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:pl.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),co(fl.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},wl=e=>{var t;const{featureFlags:{marketplaceScheme:n}}=Ce(po),{trace:r}=aa();we((()=>{(async()=>{"name"in e.step&&await r({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,r]);return co(fl,{children:[co(fl.Left,{children:co("div",{children:co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&co("div",{class:"mt-6 hidden md:block",children:co(_l,{items:e.step.content.details})})]}),e.step.content.details&&co(bl,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===n.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(oa,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(go,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await r({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:pl.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),co(fl.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},vl=({current:e,total:t})=>co("div",{className:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:co("div",{className:"flex justify-between md:block text-xs tracking-wide",children:co("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,co("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})})}),xl=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=Ce(po),[r,o]=be(0),i=Se(((t,i)=>{n(t,i),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]);return co("div",{children:[!t&&co(vl,{current:r+1,total:e.offers.length+1}),co(Fi.Group,{selectedIndex:r,onChange:o,children:[co("div",{className:(t?"md:grid":"hidden")+" md:grid-cols-2 max-w-[59.5rem] mx-auto ",children:co(Fi.List,{className:"flex items-baseline md:mb-4",children:e.offers.map(((e,t)=>co(Fi,{disabled:r!==t,className:({selected:e})=>'\n text-sm font-medium cursor-auto w-10 min-w-10 max-w-10 h-12 min-h-12 max-h-12 mr-10 h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:top-3 [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-10 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:left-10\n '+(e?"text-primary-base":"text-gray-400"),children:co("div",{className:"flex items-center flex-col",children:[co(ss,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}),co("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e.content.productName})]})},e.name)))})}),co(Fi.Panels,{children:e.offers.map((e=>co(Fi.Panel,{children:["Eoi"===e.content.template&&co(yl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>i(e.name,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>i(e.name,!1)}}),"Simple"===e.content.template&&co(wl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>i(e.name,!0)}}),"Assessment"===e.content.template&&co("div",{class:"max-w-[59.5rem] mx-auto",children:co(cs,{class:"lg:-m-8 mt-4 md:mt-0",onStepComplete:t=>i(e.name,t),marketPlaceOffer:e},e.name)})]},e.name)))})]})]})},kl=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg").href:new URL("assets/get-app-CQalMIl7.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),El=e=>v("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("path",{d:"M29.7406 21.8737C29.7406 18.5174 31.3138 16.0681 34.3678 14.1632C32.6094 11.714 30.0182 10.444 26.5941 10.1719C23.2625 9.89974 19.6532 11.9861 18.3576 11.9861C16.9694 11.9861 13.8229 10.2626 11.3242 10.2626C6.14176 10.3533 0.681641 14.2539 0.681641 22.3273C0.681641 24.6858 1.05182 27.135 1.97726 29.6749C3.18034 33.0312 7.43738 41.1953 11.8795 41.0139C14.1931 41.0139 15.8589 39.3811 18.9129 39.3811C21.8743 39.3811 23.355 41.0139 25.9463 41.0139C30.4809 41.0139 34.3678 33.5755 35.4783 30.2192C29.4629 27.4071 29.7406 22.0551 29.7406 21.8737ZM24.5581 6.99696C27.0568 4.09418 26.7792 1.37283 26.7792 0.375C24.5581 0.556424 21.9668 1.9171 20.4861 3.54991C18.8203 5.36415 17.8949 7.63194 18.08 10.0812C20.4861 10.2626 22.7072 9.08333 24.5581 6.99696Z",fill:"#9CA3AF"})),Sl=e=>v("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("path",{d:"M24.1063 18.8401L6.78538 1.88173L28.8088 14.2567L24.1063 18.8401ZM2.318 0.888672C1.29913 1.42339 0.59375 2.41645 0.59375 3.63867V37.3262C0.59375 38.5484 1.29913 39.5415 2.318 39.9998L22.382 20.4442L2.318 0.888672ZM35.6274 18.1526L31.0033 15.5553L25.8305 20.4442L31.0033 25.4095L35.7058 22.8123C37.1165 21.7428 37.1165 19.222 35.6274 18.1526ZM6.78538 39.0067L28.8088 26.7081L24.1063 22.1248L6.78538 39.0067Z",fill:"#9CA3AF"})),Cl=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-mobile-DORYS6YR.jpg").href:new URL("assets/get-app-mobile-DORYS6YR.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Tl=({onComplete:e})=>{const{trace:t}=aa(),{identity:n,featureFlags:{marketplaceScheme:r}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={...Nl(n),imageUrl:kl,mobileImageUrl:Cl},i={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}};return co(fl,{children:[co(fl.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),co("div",{class:"mt-6 flex space-x-6",children:[co(El,{}),co(Sl,{})]}),co(go,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})]})}),co(fl.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},Nl=e=>{switch(e.registrationStatus){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how to join your workplace. This will enable you to access all your workplace benefits through the Flare app in the future.`};case"NewlyRegistered":return{title:"Join your workplace’s benefits program",description:`We’ve sent an email to ${e.email} with instructions on how to download the Flare app - where your company’s benefits live.`};default:return{title:"Check your email",description:`We’ve sent an email to ${e.email} with instructions on how to download and activate the Flare App and Card.`}}},Al=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-vt2mQYDm.jpg").href:new URL("assets/all-set-vt2mQYDm.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Ol=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-mobile-Fhtje9HW.jpg").href:new URL("assets/all-set-mobile-Fhtje9HW.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Rl=({onComplete:e})=>{const{trace:t}=aa(),{workplace:n,featureFlags:{marketplaceScheme:r}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={imageUrl:Al,mobileImageUrl:Ol,title:"You're all set!",description:"PreviouslyLinked"===n.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},i={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}};return co(fl,{children:[co(fl.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(go,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})})]})}),co(fl.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},Pl=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=Ce(po),{current:s,goNext:l}=function(e,t,n,r,o){const i=function(e,t,n,r,o){const i="allowance"===o.marketplaceScheme.scheme?"Allowance_JoinBenefits":"Introduction",a="allowance"===o.marketplaceScheme.scheme?"Allowance_BenefitsSummary":t?"SummaryApp":"SummaryGeneric";if(e)return[a];switch(!0){case"Unregistered"===n.registrationStatus:case"PreviouslyRegistered"===n.registrationStatus&&"Unlinked"===r.linkingStatus:return[i,"FlareAppIdentity"];case"PreviouslyRegistered"===n.registrationStatus&&"NewlyLinked"==r.linkingStatus:case"NewlyRegistered"===n.registrationStatus:return"allowance"===o.marketplaceScheme.scheme?["Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["MarketplaceOffers",a];case"PreviouslyRegistered"===n.registrationStatus&&"PreviouslyLinked"==r.linkingStatus:case"RegistrationAbandoned"===n.registrationStatus:return[a];default:return[]}}(e,t,n,r,o),[a,s]=be(i[0]);return i.some((e=>e===a))||s(i[0]),{current:a,goNext:async()=>{if(i.indexOf(a)===i.length-1){const e=document.querySelector(Il),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}try{const e=i.findIndex((e=>e===a)),t=i[e+1];s(t)}catch{}}}}(t,n,r,o,i),c=Se((()=>{a(!0)}),[a]),u=Se((()=>{a(!1)}),[a]);switch(s){case"Introduction":return co(Pa,{employerName:o.employerName,onStepComplete:l});case"Allowance_JoinBenefits":return co(sa,{employerName:o.employerName,onContinue:l});case"FlareAppIdentity":return co(Oa,{onSuccess:c,onDecline:u});case"Allowance_ConfigureBenefits":return co(ra,{onContinue:l});case"MarketplaceOffers":return co(xl,{offers:e,onComplete:l});case"Allowance_BenefitsSummary":return co(ua,{onContinue:l});case"SummaryApp":return co(Tl,{onComplete:l});case"SummaryGeneric":return co(Rl,{onComplete:l});default:return co(E,{})}},Ll=()=>Ce(po).isLoading?co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(mo,{size:"lg"})})}):co(Pl,{}),Il="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=X,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=be(0);we((()=>qt((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]};return so(r.backendUrl,r.accessToken,r.workflowsInstanceId),co(E,{children:[co("style",{children:ho.toString()}),co("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:co(fo,{children:co(Ll,{})})},t)]})}),Il,[],{shadow:!0})}));
9
+ const{entries:ds,setPrototypeOf:ps,isFrozen:fs,getPrototypeOf:ms,getOwnPropertyDescriptor:hs}=Object;let{freeze:gs,seal:_s,create:ys}=Object,{apply:bs,construct:ws}="undefined"!=typeof Reflect&&Reflect;gs||(gs=function(e){return e}),_s||(_s=function(e){return e}),bs||(bs=function(e,t,n){return e.apply(t,n)}),ws||(ws=function(e,t){return new e(...t)});const vs=Is(Array.prototype.forEach),xs=Is(Array.prototype.pop),ks=Is(Array.prototype.push),Es=Is(String.prototype.toLowerCase),Ss=Is(String.prototype.toString),Cs=Is(String.prototype.match),Ts=Is(String.prototype.replace),Ns=Is(String.prototype.indexOf),As=Is(String.prototype.trim),Os=Is(Object.prototype.hasOwnProperty),Rs=Is(RegExp.prototype.test),Ps=(Ls=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ws(Ls,t)});var Ls;function Is(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return bs(e,t,r)}}function Us(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Es;ps&&ps(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(fs(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Fs(e){for(let t=0;t<e.length;t++){Os(e,t)||(e[t]=null)}return e}function Ds(e){const t=ys(null);for(const[n,r]of ds(e)){Os(e,n)&&(Array.isArray(r)?t[n]=Fs(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Ds(r):t[n]=r)}return t}function js(e,t){for(;null!==e;){const n=hs(e,t);if(n){if(n.get)return Is(n.get);if("function"==typeof n.value)return Is(n.value)}e=ms(e)}return function(){return null}}const Ms=gs(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Bs=gs(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Hs=gs(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),zs=gs(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ws=gs(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),qs=gs(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Vs=gs(["#text"]),$s=gs(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Gs=gs(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Ys=gs(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Js=gs(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ks=_s(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xs=_s(/<%[\w\W]*|[\w\W]*%>/gm),Zs=_s(/\${[\w\W]*}/gm),Qs=_s(/^data-[\-\w.\u00B7-\uFFFF]/),el=_s(/^aria-[\-\w]+$/),tl=_s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),nl=_s(/^(?:\w+script|data):/i),rl=_s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ol=_s(/^html$/i),il=_s(/^[a-z][.\w]*(-[.\w]+)+$/i);var al=Object.freeze({__proto__:null,MUSTACHE_EXPR:Ks,ERB_EXPR:Xs,TMPLIT_EXPR:Zs,DATA_ATTR:Qs,ARIA_ATTR:el,IS_ALLOWED_URI:tl,IS_SCRIPT_OR_DATA:nl,ATTR_WHITESPACE:rl,DOCTYPE_NAME:ol,CUSTOM_ELEMENT:il});const sl=1,ll=3,cl=7,ul=8,dl=9;var pl=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==dl)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=js(h,"cloneNode"),_=js(h,"remove"),y=js(h,"nextSibling"),b=js(h,"childNodes"),w=js(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let v,x="";const{implementation:k,createNodeIterator:E,createDocumentFragment:S,getElementsByTagName:C}=r,{importNode:T}=o;let N={};n.isSupported="function"==typeof ds&&"function"==typeof w&&k&&void 0!==k.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:P,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:I,ATTR_WHITESPACE:U,CUSTOM_ELEMENT:F}=al;let{IS_ALLOWED_URI:D}=al,j=null;const M=Us({},[...Ms,...Bs,...Hs,...Ws,...Vs]);let B=null;const H=Us({},[...$s,...Gs,...Ys,...Js]);let z=Object.seal(ys(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,q=null,V=!0,$=!0,G=!1,Y=!0,J=!1,K=!0,X=!1,Z=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=Us({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=Us({},["audio","video","img","source","image","track"]);let pe=null;const fe=Us({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",he="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let _e=ge,ye=!1,be=null;const we=Us({},[me,he,ge],Ss);let ve=null;const xe=["application/xhtml+xml","text/html"];let ke=null,Ee=null;const Se=r.createElement("form"),Ce=function(e){return e instanceof RegExp||e instanceof Function},Te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ee||Ee!==e){if(e&&"object"==typeof e||(e={}),e=Ds(e),ve=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,ke="application/xhtml+xml"===ve?Ss:Es,j=Os(e,"ALLOWED_TAGS")?Us({},e.ALLOWED_TAGS,ke):M,B=Os(e,"ALLOWED_ATTR")?Us({},e.ALLOWED_ATTR,ke):H,be=Os(e,"ALLOWED_NAMESPACES")?Us({},e.ALLOWED_NAMESPACES,Ss):we,pe=Os(e,"ADD_URI_SAFE_ATTR")?Us(Ds(fe),e.ADD_URI_SAFE_ATTR,ke):fe,ue=Os(e,"ADD_DATA_URI_TAGS")?Us(Ds(de),e.ADD_DATA_URI_TAGS,ke):de,le=Os(e,"FORBID_CONTENTS")?Us({},e.FORBID_CONTENTS,ke):ce,W=Os(e,"FORBID_TAGS")?Us({},e.FORBID_TAGS,ke):{},q=Os(e,"FORBID_ATTR")?Us({},e.FORBID_ATTR,ke):{},se=!!Os(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,G=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,K=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Q=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,D=e.ALLOWED_URI_REGEXP||tl,_e=e.NAMESPACE||ge,z=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ce(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&($=!1),te&&(ee=!0),se&&(j=Us({},Vs),B=[],!0===se.html&&(Us(j,Ms),Us(B,$s)),!0===se.svg&&(Us(j,Bs),Us(B,Gs),Us(B,Js)),!0===se.svgFilters&&(Us(j,Hs),Us(B,Gs),Us(B,Js)),!0===se.mathMl&&(Us(j,Ws),Us(B,Ys),Us(B,Js))),e.ADD_TAGS&&(j===M&&(j=Ds(j)),Us(j,e.ADD_TAGS,ke)),e.ADD_ATTR&&(B===H&&(B=Ds(B)),Us(B,e.ADD_ATTR,ke)),e.ADD_URI_SAFE_ATTR&&Us(pe,e.ADD_URI_SAFE_ATTR,ke),e.FORBID_CONTENTS&&(le===ce&&(le=Ds(le)),Us(le,e.FORBID_CONTENTS,ke)),ie&&(j["#text"]=!0),X&&Us(j,["html","head","body"]),j.table&&(Us(j,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ps('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ps('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');v=e.TRUSTED_TYPES_POLICY,x=v.createHTML("")}else void 0===v&&(v=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(m,i)),null!==v&&"string"==typeof x&&(x=v.createHTML(""));gs&&gs(e),Ee=e}},Ne=Us({},["mi","mo","mn","ms","mtext"]),Ae=Us({},["foreignobject","annotation-xml"]),Oe=Us({},["title","style","font","a","script"]),Re=Us({},[...Bs,...Hs,...zs]),Pe=Us({},[...Ws,...qs]),Le=function(e){ks(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){_(e)}},Ie=function(e,t){try{ks(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){ks(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!B[e])if(ee||te)try{Le(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ue=function(e){let t=null,n=null;if(Q)e="<remove></remove>"+e;else{const t=Cs(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ve&&_e===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(_e===ge)try{t=(new f).parseFromString(o,ve)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(_e,"template",null);try{t.documentElement.innerHTML=ye?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),_e===ge?C.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return E.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},De=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l},Me=function(e,t,r){N[e]&&vs(N[e],(e=>{e.call(n,t,r,Ee)}))},Be=function(e){let t=null;if(Me("beforeSanitizeElements",e,null),De(e))return Le(e),!0;const r=ke(e.nodeName);if(Me("uponSanitizeElement",e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&Rs(/<[/\w]/g,e.innerHTML)&&Rs(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===cl)return Le(e),!0;if(K&&e.nodeType===ul&&Rs(/<[/\w]/g,e.data))return Le(e),!0;if(!j[r]||W[r]){if(!W[r]&&ze(r)){if(z.tagNameCheck instanceof RegExp&&Rs(z.tagNameCheck,r))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=w(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,y(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:_e,tagName:"template"});const n=Es(e.tagName),r=Es(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||Ne[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&Ae[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!Ae[r])&&!(t.namespaceURI===me&&!Ne[r])&&!Pe[n]&&(Oe[n]||!Re[n]):!("application/xhtml+xml"!==ve||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Rs(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&e.nodeType===ll&&(t=e.textContent,vs([A,O,R],(e=>{t=Ts(t,e," ")})),e.textContent!==t&&(ks(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me("afterSanitizeElements",e,null),!1):(Le(e),!0)},He=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Se))return!1;if($&&!q[t]&&Rs(P,t));else if(V&&Rs(L,t));else if(!B[t]||q[t]){if(!(ze(e)&&(z.tagNameCheck instanceof RegExp&&Rs(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Rs(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Rs(z.tagNameCheck,n)||z.tagNameCheck instanceof Function&&z.tagNameCheck(n))))return!1}else if(pe[t]);else if(Rs(D,Ts(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ns(n,"data:")||!ue[e]){if(G&&!Rs(I,Ts(n,U,"")));else if(n)return!1}else;return!0},ze=function(e){return"annotation-xml"!==e&&Cs(e,F)},We=function(e){Me("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=ke(s);let d="value"===s?c:As(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Me("uponSanitizeAttribute",e,r),d=r.attrValue,K&&Rs(/((--!?|])>)|<\/(style|title)/i,d)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(Ie(s,e),!r.keepAttr)continue;if(!Y&&Rs(/\/>/i,d)){Ie(s,e);continue}J&&vs([A,O,R],(e=>{d=Ts(d,e," ")}));const p=ke(e.nodeName);if(He(p,u,d)){if(!oe||"id"!==u&&"name"!==u||(Ie(s,e),d="user-content-"+d),v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(p,u)){case"TrustedHTML":d=v.createHTML(d);break;case"TrustedScriptURL":d=v.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),De(e)?Le(e):xs(n.removed)}catch(i){}}}Me("afterSanitizeAttributes",e,null)},qe=function e(t){let n=null;const r=Fe(t);for(Me("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Me("uponSanitizeShadowNode",n,null),Be(n)||(n.content instanceof a&&e(n.content),We(n));Me("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw Ps("toString is not a function");if("string"!=typeof(e=e.toString()))throw Ps("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Te(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=ke(e.nodeName);if(!j[t]||W[t])throw Ps("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ue("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===sl&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!J&&!X&&-1===e.indexOf("<"))return v&&ne?v.createHTML(e):e;if(r=Ue(e),!r)return ee?null:ne?x:""}r&&Q&&Le(r.firstChild);const u=Fe(ae?e:r);for(;s=u.nextNode();)Be(s)||(s.content instanceof a&&qe(s.content),We(s));if(ae)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(B.shadowroot||B.shadowrootmode)&&(c=T.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Rs(ol,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),J&&vs([A,O,R],(e=>{d=Ts(d,e," ")})),v&&ne?v.createHTML(d):d},n.setConfig=function(){Te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ee=null,Z=!1},n.isValidAttribute=function(e,t,n){Ee||Te({});const r=ke(e),o=ke(t);return He(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(N[e]=N[e]||[],ks(N[e],t))},n.removeHook=function(e){if(N[e])return xs(N[e])},n.removeHooks=function(e){N[e]&&(N[e]=[])},n.removeAllHooks=function(){N={}},n}();const fl=({children:e})=>{const t=Dt.Children.toArray(e),n=t.find((e=>e.type===ml)),r=t.find((e=>e.type===hl));return co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&co("div",{class:"flex items-center h-full",children:n})}),co(Qi,{appear:!0,show:!0,enter:"transition delay-300 duration-[600ms] ease-out",enterFrom:"opacity-0 -translate-y-6",enterTo:"opacity-100 translate-y-0",children:r&&co("div",{class:"flex items-center h-full",children:r})})]})})},ml=({children:e})=>co(E,{children:e}),hl=({children:e})=>co(E,{children:e});fl.Left=ml,fl.Right=hl;const gl=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,...e},v("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})),_l=e=>co(Qi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:co("div",{class:"w-full border border-gray-200 rounded-lg shadow-sm p-4 pl-3 md:p-6 space-y-2",children:e.items.map(((e,t)=>co("div",{class:"flex space-x-1",children:[co("span",{children:co(bo,{class:"h-5 w-5 fill-primary-base"})}),co("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),yl=e=>{const[t,n]=ye(!1);return co("div",{class:e.class,children:t?co(_l,{items:e.items}):co("button",{type:"button",class:"w-full inline-flex justify-center items-center px-4 py-3 border border-gray-200 shadow-sm text-sm font-medium rounded-md text-primary-base bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-focus",onClick:()=>n(!0),children:["Learn more",co("span",{class:"ml-1",children:co(gl,{class:"h-4 w-4"})})]})})},bl=e=>{var t,n;const{featureFlags:{marketplaceScheme:r}}=Ce(po),{trace:o}=aa();we((()=>{(async()=>{await o({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step.metadata,e.step.name,o]);const i=async t=>{t?await o({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}}):await o({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}});return(t?e.primaryButton:e.secondaryButton).onClick()};return co(fl,{children:[co(fl.Left,{children:co("div",{children:co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&co("div",{class:"mt-6 hidden md:block",children:co(_l,{items:e.step.content.details})})]}),e.step.content.details&&co(yl,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===r.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(oa,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[co(go,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:()=>i(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&co(go,{testId:`offer_${e.step.name}_button_decline`,class:e.secondaryButton.class??"bg-white hover:!bg-gray-100 focus:!ring-gray-200 !border-0 !shadow-none !text-gray-700 !border-gray-300",onClickPromise:()=>i(!1),children:e.secondaryButton.text})]}),e.step.content.terms&&co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:pl.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),co(fl.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},wl=e=>{var t;const{featureFlags:{marketplaceScheme:n}}=Ce(po),{trace:r}=aa();we((()=>{(async()=>{"name"in e.step&&await r({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata})})()}),[e.step,r]);return co(fl,{children:[co(fl.Left,{children:co("div",{children:co(Qi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:e.step.content.description}),e.step.content.details&&co("div",{class:"mt-6 hidden md:block",children:co(_l,{items:e.step.content.details})})]}),e.step.content.details&&co(yl,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===n.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&co(oa,{style:{background:"linear-gradient(90deg, rgba(255, 135, 111, 0.10) 0%, rgba(166, 80, 255, 0.10) 100%)"},className:"md:max-w-[27.5rem] mt-6",children:co("div",{children:[co("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),co("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(go,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await r({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),e.step.content.terms&&co("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs ",children:e.step.content.terms.map(((e,t)=>co("span",{dangerouslySetInnerHTML:{__html:pl.sanitize(e,{ADD_ATTR:["target"]})}},t)))})]})})}),co(fl.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},vl=({current:e,total:t})=>co("div",{className:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:co("div",{className:"flex justify-between md:block text-xs tracking-wide",children:co("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,co("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})})}),xl=e=>{const{featureFlags:{marketplaceSubNavigation:t},offersProgress:{update:n}}=Ce(po),[r,o]=ye(0),i=Se(((t,i,a)=>{n(t,i,a),r===e.offers.length-1?e.onComplete():o(r+1)}),[n,r,e]);return co("div",{children:[!t&&co(vl,{current:r+1,total:e.offers.length+1}),co(Fi.Group,{selectedIndex:r,onChange:o,children:[co("div",{className:(t?"md:grid":"hidden")+" md:grid-cols-2 max-w-[59.5rem] mx-auto ",children:co(Fi.List,{className:"flex items-baseline md:mb-4",children:e.offers.map(((e,t)=>co(Fi,{disabled:r!==t,className:({selected:e})=>'\n text-sm font-medium cursor-auto w-10 min-w-10 max-w-10 h-12 min-h-12 max-h-12 mr-10 h-full relative\n flex items-center justify-center\n [&:not(:last-child):after]:absolute [&:not(:last-child):after]:top-3 [&:not(:last-child):after]:content-[""] [&:not(:last-child):after]:w-10 [&:not(:last-child):after]:border-b-2 [&:not(:last-child):after]:border-solid [&:not(:last-child):after]:border-gray-200 [&:not(:last-child):after]:left-10\n '+(e?"text-primary-base":"text-gray-400"),children:co("div",{className:"flex items-center flex-col",children:[co(ss,{src:e.content.iconUrl,wrapper:"svg",className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}),co("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e.content.productName})]})},e.name)))})}),co(Fi.Panels,{children:e.offers.map((e=>co(Fi.Panel,{children:["Eoi"===e.content.template&&co(bl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>i(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>i(e.name,!1,!1)}}),"Simple"===e.content.template&&co(wl,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>i(e.name,!0,!0)}}),"Assessment"===e.content.template&&co("div",{class:"max-w-[59.5rem] mx-auto",children:co(cs,{class:"lg:-m-8 mt-4 md:mt-0",onStepComplete:(t,n)=>i(e.name,t,n),marketPlaceOffer:e},e.name)})]},e.name)))})]})]})},kl=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-CQalMIl7.jpg").href:new URL("assets/get-app-CQalMIl7.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),El=e=>v("svg",{width:36,height:42,viewBox:"0 0 36 42",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("path",{d:"M29.7406 21.8737C29.7406 18.5174 31.3138 16.0681 34.3678 14.1632C32.6094 11.714 30.0182 10.444 26.5941 10.1719C23.2625 9.89974 19.6532 11.9861 18.3576 11.9861C16.9694 11.9861 13.8229 10.2626 11.3242 10.2626C6.14176 10.3533 0.681641 14.2539 0.681641 22.3273C0.681641 24.6858 1.05182 27.135 1.97726 29.6749C3.18034 33.0312 7.43738 41.1953 11.8795 41.0139C14.1931 41.0139 15.8589 39.3811 18.9129 39.3811C21.8743 39.3811 23.355 41.0139 25.9463 41.0139C30.4809 41.0139 34.3678 33.5755 35.4783 30.2192C29.4629 27.4071 29.7406 22.0551 29.7406 21.8737ZM24.5581 6.99696C27.0568 4.09418 26.7792 1.37283 26.7792 0.375C24.5581 0.556424 21.9668 1.9171 20.4861 3.54991C18.8203 5.36415 17.8949 7.63194 18.08 10.0812C20.4861 10.2626 22.7072 9.08333 24.5581 6.99696Z",fill:"#9CA3AF"})),Sl=e=>v("svg",{width:37,height:40,viewBox:"0 0 37 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("path",{d:"M24.1063 18.8401L6.78538 1.88173L28.8088 14.2567L24.1063 18.8401ZM2.318 0.888672C1.29913 1.42339 0.59375 2.41645 0.59375 3.63867V37.3262C0.59375 38.5484 1.29913 39.5415 2.318 39.9998L22.382 20.4442L2.318 0.888672ZM35.6274 18.1526L31.0033 15.5553L25.8305 20.4442L31.0033 25.4095L35.7058 22.8123C37.1165 21.7428 37.1165 19.222 35.6274 18.1526ZM6.78538 39.0067L28.8088 26.7081L24.1063 22.1248L6.78538 39.0067Z",fill:"#9CA3AF"})),Cl=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/get-app-mobile-DORYS6YR.jpg").href:new URL("assets/get-app-mobile-DORYS6YR.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Tl=({onComplete:e})=>{const{trace:t}=aa(),{identity:n,featureFlags:{marketplaceScheme:r}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={...Nl(n),imageUrl:kl,mobileImageUrl:Cl},i={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}};return co(fl,{children:[co(fl.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),co("div",{class:"mt-6 flex space-x-6",children:[co(El,{}),co(Sl,{})]}),co(go,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})]})}),co(fl.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},Nl=e=>{switch(e.registrationStatus){case"RegistrationAbandoned":return{title:"Join your workplace",description:`We’ve sent an email to ${e.email} with instructions on how to join your workplace. This will enable you to access all your workplace benefits through the Flare app in the future.`};case"NewlyRegistered":return{title:"Join your workplace’s benefits program",description:`We’ve sent an email to ${e.email} with instructions on how to download the Flare app - where your company’s benefits live.`};default:return{title:"Check your email",description:`We’ve sent an email to ${e.email} with instructions on how to download and activate the Flare App and Card.`}}},Al=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-vt2mQYDm.jpg").href:new URL("assets/all-set-vt2mQYDm.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Ol=""+("undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/assets/all-set-mobile-Fhtje9HW.jpg").href:new URL("assets/all-set-mobile-Fhtje9HW.jpg","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href),Rl=({onComplete:e})=>{const{trace:t}=aa(),{workplace:n,featureFlags:{marketplaceScheme:r}}=Ce(po);we((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:"onboarding-marketplace-scheme",treatment:r.scheme})})()}),[r,t]);const o={imageUrl:Al,mobileImageUrl:Ol,title:"You're all set!",description:"PreviouslyLinked"===n.linkingStatus?"You’ve already connected this employer with your Flare Benefits account. Simply continue and review the details you have provided to complete your onboarding.":"Simply continue and review the details you have provided to complete your onboarding."},i={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:"onboarding-marketplace-scheme",treatment:r.scheme}),await e()}};return co(fl,{children:[co(fl.Left,{children:co("div",{children:[co("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:o.mobileImageUrl,loading:"lazy"}),co("div",{class:"md:max-w-[27.5rem]",children:[co("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:o.title}),co("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:o.description})]}),co("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:co(go,{testId:"step-benefits-finish",class:i.class,onClickPromise:i.onClick,children:i.text})})]})}),co(fl.Right,{children:co("img",{class:"max-w-[30rem] w-full hidden md:block",src:o.imageUrl,loading:"lazy"})})]})},Pl=()=>{const{offers:e,isComplete:t,isAppEnabled:n,identity:r,workplace:o,featureFlags:i,updateIdentity:a}=Ce(po),{current:s,goNext:l}=function(e,t,n,r,o){const i=function(e,t,n,r,o){const i="allowance"===o.marketplaceScheme.scheme?"Allowance_JoinBenefits":"Introduction",a="allowance"===o.marketplaceScheme.scheme?"Allowance_BenefitsSummary":t?"SummaryApp":"SummaryGeneric";if(e)return[a];switch(!0){case"Unregistered"===n.registrationStatus:case"PreviouslyRegistered"===n.registrationStatus&&"Unlinked"===r.linkingStatus:return[i,"FlareAppIdentity"];case"PreviouslyRegistered"===n.registrationStatus&&"NewlyLinked"==r.linkingStatus:case"NewlyRegistered"===n.registrationStatus:return"allowance"===o.marketplaceScheme.scheme?["Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["MarketplaceOffers",a];case"PreviouslyRegistered"===n.registrationStatus&&"PreviouslyLinked"==r.linkingStatus:case"RegistrationAbandoned"===n.registrationStatus:return[a];default:return[]}}(e,t,n,r,o),[a,s]=ye(i[0]);return i.some((e=>e===a))||s(i[0]),{current:a,goNext:async()=>{if(i.indexOf(a)===i.length-1){const e=document.querySelector(Il),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}try{const e=i.findIndex((e=>e===a)),t=i[e+1];s(t)}catch{}}}}(t,n,r,o,i),c=Se((()=>{a(!0)}),[a]),u=Se((()=>{a(!1)}),[a]);switch(s){case"Introduction":return co(Pa,{employerName:o.employerName,onStepComplete:l});case"Allowance_JoinBenefits":return co(sa,{employerName:o.employerName,onContinue:l});case"FlareAppIdentity":return co(Oa,{onSuccess:c,onDecline:u});case"Allowance_ConfigureBenefits":return co(ra,{onContinue:l});case"MarketplaceOffers":return co(xl,{offers:e,onComplete:l});case"Allowance_BenefitsSummary":return co(ua,{onContinue:l});case"SummaryApp":return co(Tl,{onComplete:l});case"SummaryGeneric":return co(Rl,{onComplete:l});default:return co(E,{})}},Ll=()=>Ce(po).isLoading?co("div",{class:"flex justify-center",children:co("span",{class:"animate-spin",children:co(mo,{size:"lg"})})}):co(Pl,{}),Il="benefits-onboarding";!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=X,o.prototype.attributeChangedCallback=Q,o.prototype.disconnectedCallback=ee,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>{const[t,n]=ye(0);we((()=>qt((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"]};return so(r.backendUrl,r.accessToken,r.workflowsInstanceId),co(E,{children:[co("style",{children:ho.toString()}),co("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:co(fo,{children:co(Ll,{})})},t)]})}),Il,[],{shadow:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-benefits-onboarding",
3
- "version": "1.82.122",
3
+ "version": "1.83.123",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist/"