@flarehr/apollo-benefits-onboarding 1.103.155 → 1.105.158

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
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,d,u,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 C(e){return e.children}function S(e,t){this.props=e,this.context=t}function E(e,t){if(null==t)return e.__?E(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?E(e):null}function N(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),B(a,r,o,e.__n,void 0!==a.ownerSVGElement,32&o.__u?[i]:null,t,null==i?E(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&T(r),r}function T(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 T(e)}}function A(e){(!e.__d&&(e.__d=!0)&&d.push(e)&&!O.__r++||u!==l.debounceRendering)&&((u=l.debounceRendering)||p)(O)}function O(){var e,t,n,r=[],o=[];for(d.sort(f);e=d.shift();)e.__d&&(n=d.length,t=N(e,r,o)||t,0===n||d.length>n?(D(r,t,o),o.length=r.length=0,t=void 0,d.sort(f)):t&&l.__c&&l.__c(t,g));t&&D(r,t,o),O.__r=0}function R(e,t,n,r,o,i,a,s,l,c,d){var u,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,d=c,u=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(C,{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+u,d),o.__i=s,i=null,-1!==s&&(d--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&u--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s===a+1?u++:s>a?d>l-a?u+=s-a:u--:u=s<a&&s==a-1?s-a:0,s!==r+u&&(o.__u|=65536))):(i=n[r])&&null==i.key&&i.__e&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=E(i)),H(i,i,!1),n[r]=null,d--);if(d)for(r=0;r<c;r++)null!=(i=n[r])&&0==(131072&i.__u)&&(i.__e==e.__d&&(e.__d=E(i)),H(i,i))}(n,t,b),l=n.__d,u=0;u<w;u++)null!=(f=n.__k[u])&&"boolean"!=typeof f&&"function"!=typeof f&&(p=-1===f.__i?h:b[f.__i]||h,f.__i=u,B(e,f,p,o,i,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&z(p.ref,null,f),d.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?M:j,i)):e.removeEventListener(t,i?M:j,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 j(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 M(e){if(this.l)return this.l[e.type+!0](l.event?l.event(e):e)}function B(e,t,n,r,o,i,a,c,d,u){var p,f,m,g,_,v,x,k,N,T,A,O,P,L,I,U=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(d=!!(32&n.__u),i=[c=t.__e=n.__e]),(p=l.__b)&&p(t);e:if("function"==typeof U)try{if(k=t.props,N=(p=U.contextType)&&r[p.__c],T=p?N?N.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,T):(t.__c=f=new S(k,T),f.constructor=U,f.render=q),N&&N.sub(f),f.props=k,f.state||(f.state={}),f.context=T,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,T),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(k,f.__s,T)||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,T),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,_,v)}))}if(f.context=T,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===C&&null==p.key?p.props.children:p)?I:[I],t,n,r,o,i,a,c,d,u),f.base=t.__e,t.__u&=-161,f.__h.length&&a.push(f),x&&(f.__E=f.__=null)}catch(j){t.__v=null,d||null!=i?(t.__e=c,t.__u|=d?160:32,i[i.indexOf(c)]=null):(t.__e=n.__e,t.__k=n.__k),l.__e(j,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 d,u,p,f,m,g,_,b=n.props,v=t.props,x=t.type;if("svg"===x&&(o=!0),null!=i)for(d=0;d<i.length;d++)if((m=i[d])&&"setAttribute"in m==!!x&&(x?m.localName===x:3===m.nodeType)){e=m,i[d]=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={},d=0;d<e.attributes.length;d++)b[(m=e.attributes[d]).name]=m.value;for(d in b)m=b[d],"children"==d||("dangerouslySetInnerHTML"==d?p=m:"key"===d||d in v||F(e,d,null,m,o));for(d in v)m=v[d],"children"==d?f=m:"dangerouslySetInnerHTML"==d?u=m:"value"==d?g=m:"checked"==d?_=m:"key"===d||l&&"function"!=typeof m||b[d]===m||F(e,d,m,b[d],o);if(u)l||p&&(u.__html===p.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__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&&E(n,0),l,c),null!=i)for(d=i.length;d--;)null!=i[d]&&w(i[d]);l||(d="value",void 0!==g&&(g!==e[d]||"progress"===x&&!g||"option"===x&&g!==b[d])&&F(e,d,g,b[d],!1),d="checked",void 0!==_&&_!==e[d]&&F(e,d,_,b[d],!1))}return e}(n.__e,t,n,r,o,i,a,d,u);(p=l.diffed)&&p(t)}function D(e,t,n){for(var r=0;r<n.length;r++)z(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 z(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){l.__e(r,n)}}function H(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||z(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]&&H(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function q(e,t,n){return this.constructor(e,n)}function W(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=[],B(t,e=(!r&&n||t).__k=v(C,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,D(i,e,a)}function V(e,t){W(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=C,d=[],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 Z=["context","children"];function J(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,Z))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(J,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[K(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 d=n?v(te,null,r):r;return v(n||t.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?V:W)(this._vdom,this._root)}function K(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[K(e)]=n,this._vdom=$(this._vdom,r),W(this._vdom,this._root)}}function ee(){W(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)}}))}var ne=(e=>(e.BenefitsExisting="BenefitsExisting",e.AppInvite="AppInvite",e.BenefitsOnboarding="BenefitsOnboarding",e))(ne||{});const re=""+("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),oe=""+("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 ie extends Error{}function ae(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)}}ie.prototype.name="InvalidTokenError";const se=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),le=e=>(window.addEventListener(se,e),()=>window.removeEventListener(se,e)),ce=()=>{window.dispatchEvent(new Event(se))};function de(e,t){return function(){return e.apply(t,arguments)}}const{toString:ue}=Object.prototype,{getPrototypeOf:pe}=Object,fe=(e=>t=>{const n=ue.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),me=e=>(e=e.toLowerCase(),t=>fe(t)===e),he=e=>t=>typeof t===e,{isArray:ge}=Array,_e=he("undefined");const ye=me("ArrayBuffer");const be=he("string"),we=he("function"),ve=he("number"),xe=e=>null!==e&&"object"==typeof e,ke=e=>{if("object"!==fe(e))return!1;const t=pe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},Ce=me("Date"),Se=me("File"),Ee=me("Blob"),Ne=me("FileList"),Te=me("URLSearchParams"),[Ae,Oe,Re,Pe]=["ReadableStream","Request","Response","Headers"].map(me);function Le(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),ge(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 Ie(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 Ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Fe=e=>!_e(e)&&e!==Ue;const je=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&pe(Uint8Array)),Me=me("HTMLFormElement"),Be=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),De=me("RegExp"),ze=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Le(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const He=me("AsyncFunction"),qe=(We="function"==typeof setImmediate,Ve=we(Ue.postMessage),We?setImmediate:Ve?($e=`axios@${Math.random()}`,Ge=[],Ue.addEventListener("message",(({source:e,data:t})=>{e===Ue&&t===$e&&Ge.length&&Ge.shift()()}),!1),e=>{Ge.push(e),Ue.postMessage($e,"*")}):e=>setTimeout(e));var We,Ve,$e,Ge;const Ye="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Ue):"undefined"!=typeof process&&process.nextTick||qe,Ze={isArray:ge,isArrayBuffer:ye,isBuffer:function(e){return null!==e&&!_e(e)&&null!==e.constructor&&!_e(e.constructor)&&we(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||we(e.append)&&("formdata"===(t=fe(e))||"object"===t&&we(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ye(e.buffer),t},isString:be,isNumber:ve,isBoolean:e=>!0===e||!1===e,isObject:xe,isPlainObject:ke,isReadableStream:Ae,isRequest:Oe,isResponse:Re,isHeaders:Pe,isUndefined:_e,isDate:Ce,isFile:Se,isBlob:Ee,isRegExp:De,isFunction:we,isStream:e=>xe(e)&&we(e.pipe),isURLSearchParams:Te,isTypedArray:je,isFileList:Ne,forEach:Le,merge:function e(){const{caseless:t}=Fe(this)&&this||{},n={},r=(r,o)=>{const i=t&&Ie(n,o)||o;ke(n[i])&&ke(r)?n[i]=e(n[i],r):ke(r)?n[i]=e({},r):ge(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Le(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Le(t,((t,r)=>{n&&we(t)?e[r]=de(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&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:fe,kindOfTest:me,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(ge(e))return e;let t=e.length;if(!ve(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:Me,hasOwnProperty:Be,hasOwnProp:Be,reduceDescriptors:ze,freezeMethods:e=>{ze(e,((t,n)=>{if(we(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];we(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 ge(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:Ie,global:Ue,isContextDefined:Fe,isSpecCompliantForm:function(e){return!!(e&&we(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(xe(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=ge(e)?[]:{};return Le(e,((e,t)=>{const i=n(e,r+1);!_e(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:He,isThenable:e=>e&&(xe(e)||we(e))&&we(e.then)&&we(e.catch),setImmediate:qe,asap:Ye};function Je(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,this.status=o.status?o.status:null)}Ze.inherits(Je,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:Ze.toJSONObject(this.config),code:this.code,status:this.status}}});const Xe=Je.prototype,Ke={};["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=>{Ke[e]={value:e}})),Object.defineProperties(Je,Ke),Object.defineProperty(Xe,"isAxiosError",{value:!0}),Je.from=(e,t,n,r,o,i)=>{const a=Object.create(Xe);return Ze.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Je.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Qe(e){return Ze.isPlainObject(e)||Ze.isArray(e)}function et(e){return Ze.endsWith(e,"[]")?e.slice(0,-2):e}function tt(e,t,n){return e?e.concat(t).map((function(e,t){return e=et(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const nt=Ze.toFlatObject(Ze,{},null,(function(e){return/^is[A-Z]/.test(e)}));function rt(e,t,n){if(!Ze.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ze.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ze.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ze.isSpecCompliantForm(t);if(!Ze.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ze.isDate(e))return e.toISOString();if(!s&&Ze.isBlob(e))throw new Je("Blob is not supported. Use a Buffer instead.");return Ze.isArrayBuffer(e)||Ze.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(Ze.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ze.isArray(e)&&function(e){return Ze.isArray(e)&&!e.some(Qe)}(e)||(Ze.isFileList(e)||Ze.endsWith(n,"[]"))&&(s=Ze.toArray(e)))return n=et(n),s.forEach((function(e,r){!Ze.isUndefined(e)&&null!==e&&t.append(!0===a?tt([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Qe(e)||(t.append(tt(o,n,i),l(e)),!1)}const d=[],u=Object.assign(nt,{defaultVisitor:c,convertValue:l,isVisitable:Qe});if(!Ze.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ze.isUndefined(n)){if(-1!==d.indexOf(n))throw Error("Circular reference detected in "+r.join("."));d.push(n),Ze.forEach(n,(function(n,i){!0===(!(Ze.isUndefined(n)||null===n)&&o.call(t,n,Ze.isString(i)?i.trim():i,r,u))&&e(n,r?r.concat(i):[i])})),d.pop()}}(e),t}function ot(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function it(e,t){this._pairs=[],e&&rt(e,this,t)}const at=it.prototype;function st(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lt(e,t,n){if(!t)return e;const r=n&&n.encode||st;Ze.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ze.isURLSearchParams(t)?t.toString():new it(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}at.append=function(e,t){this._pairs.push([e,t])},at.toString=function(e){const t=e?function(t){return e.call(this,t,ot)}:ot;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ct{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){Ze.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const dt={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ut={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:it,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},pt="undefined"!=typeof window&&"undefined"!=typeof document,ft="object"==typeof navigator&&navigator||void 0,mt=pt&&(!ft||["ReactNative","NativeScript","NS"].indexOf(ft.product)<0),ht="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,gt=pt&&window.location.href||"http://localhost",_t={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:pt,hasStandardBrowserEnv:mt,hasStandardBrowserWebWorkerEnv:ht,navigator:ft,origin:gt},Symbol.toStringTag,{value:"Module"})),...ut};function yt(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&&Ze.isArray(r)?r.length:i,s)return Ze.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ze.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ze.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(Ze.isFormData(e)&&Ze.isFunction(e.entries)){const n={};return Ze.forEachEntry(e,((e,r)=>{t(function(e){return Ze.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const bt={transitional:dt,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ze.isObject(e);o&&Ze.isHTMLForm(e)&&(e=new FormData(e));if(Ze.isFormData(e))return r?JSON.stringify(yt(e)):e;if(Ze.isArrayBuffer(e)||Ze.isBuffer(e)||Ze.isStream(e)||Ze.isFile(e)||Ze.isBlob(e)||Ze.isReadableStream(e))return e;if(Ze.isArrayBufferView(e))return e.buffer;if(Ze.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 rt(e,new _t.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return _t.isNode&&Ze.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=Ze.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return rt(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ze.isString(e))try{return(t||JSON.parse)(e),Ze.trim(e)}catch(Ci){if("SyntaxError"!==Ci.name)throw Ci}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||bt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ze.isResponse(e)||Ze.isReadableStream(e))return e;if(e&&Ze.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Ci){if(n){if("SyntaxError"===Ci.name)throw Je.from(Ci,Je.ERR_BAD_RESPONSE,this,null,this.response);throw Ci}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_t.classes.FormData,Blob:_t.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ze.forEach(["delete","get","head","post","put","patch"],(e=>{bt.headers[e]={}}));const wt=Ze.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"]),vt=Symbol("internals");function xt(e){return e&&String(e).trim().toLowerCase()}function kt(e){return!1===e||null==e?e:Ze.isArray(e)?e.map(kt):String(e)}function Ct(e,t,n,r,o){return Ze.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ze.isString(t)?Ze.isString(r)?-1!==t.indexOf(r):Ze.isRegExp(r)?r.test(t):void 0:void 0)}class St{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=xt(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ze.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=kt(e))}const i=(e,t)=>Ze.forEach(e,((e,n)=>o(e,n,t)));if(Ze.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ze.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]&&wt[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(Ze.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=xt(e)){const n=Ze.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(Ze.isFunction(t))return t.call(this,e,n);if(Ze.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=xt(e)){const n=Ze.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ct(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=xt(e)){const o=Ze.findKey(n,e);!o||t&&!Ct(0,n[o],o,t)||(delete n[o],r=!0)}}return Ze.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&&!Ct(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ze.forEach(this,((r,o)=>{const i=Ze.findKey(n,o);if(i)return t[i]=kt(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]=kt(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ze.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ze.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[vt]=this[vt]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=xt(e);t[r]||(!function(e,t){const n=Ze.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 Ze.isArray(e)?e.forEach(r):r(e),this}}function Et(e,t){const n=this||bt,r=t||n,o=St.from(r.headers);let i=r.data;return Ze.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Nt(e){return!(!e||!e.__CANCEL__)}function Tt(e,t,n){Je.call(this,null==e?"canceled":e,Je.ERR_CANCELED,t,n),this.name="CanceledError"}function At(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Je("Request failed with status code "+n.status,[Je.ERR_BAD_REQUEST,Je.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}St.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ze.reduceDescriptors(St.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ze.freezeMethods(St),Ze.inherits(Tt,Je,{__CANCEL__:!0});const Ot=(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 d=a,u=0;for(;d!==i;)u+=n[d++],d%=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*u/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)},Rt=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Pt=e=>(...t)=>Ze.asap((()=>e(...t))),Lt=_t.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_t.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_t.origin),_t.navigator&&/(msie|trident)/i.test(_t.navigator.userAgent)):()=>!0,It=_t.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ze.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ze.isString(r)&&a.push("path="+r),Ze.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 Ut(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ft=e=>e instanceof St?{...e}:e;function jt(e,t){t=t||{};const n={};function r(e,t,n,r){return Ze.isPlainObject(e)&&Ze.isPlainObject(t)?Ze.merge.call({caseless:r},e,t):Ze.isPlainObject(t)?Ze.merge({},t):Ze.isArray(t)?t.slice():t}function o(e,t,n,o){return Ze.isUndefined(t)?Ze.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ze.isUndefined(t))return r(void 0,t)}function a(e,t){return Ze.isUndefined(t)?Ze.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,n)=>o(Ft(e),Ft(t),0,!0)};return Ze.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ze.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Mt=e=>{const t=jt({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=St.from(s),t.url=lt(Ut(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Ze.isFormData(r))if(_t.hasStandardBrowserEnv||_t.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(_t.hasStandardBrowserEnv&&(o&&Ze.isFunction(o)&&(o=o(t)),o||!1!==o&&Lt(t.url))){const e=i&&a&&It.read(a);e&&s.set(i,e)}return t},Bt="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Mt(e);let o=r.data;const i=St.from(r.headers).normalize();let a,s,l,c,d,{responseType:u,onUploadProgress:p,onDownloadProgress:f}=r;function m(){c&&c(),d&&d(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=St.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());At((function(e){t(e),m()}),(function(e){n(e),m()}),{data:u&&"text"!==u&&"json"!==u?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 Je("Request aborted",Je.ECONNABORTED,e,h)),h=null)},h.onerror=function(){n(new Je("Network Error",Je.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||dt;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Je(t,o.clarifyTimeoutError?Je.ETIMEDOUT:Je.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ze.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Ze.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),u&&"json"!==u&&(h.responseType=r.responseType),f&&([l,d]=Ot(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=Ot(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Tt(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===_t.protocols.indexOf(_)?n(new Je("Unsupported protocol "+_+":",Je.ERR_BAD_REQUEST,e)):h.send(o||null)}))},Dt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){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 Je?t:new Tt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Je(`timeout ${t} of ms exceeded`,Je.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Ze.asap(a),s}},zt=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},Ht=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},qt=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ht(e))yield*zt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Wt="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Vt=Wt&&"function"==typeof ReadableStream,$t=Wt&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Gt=(e,...t)=>{try{return!!e(...t)}catch(Ci){return!1}},Yt=Vt&&Gt((()=>{let e=!1;const t=new Request(_t.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Zt=Vt&&Gt((()=>Ze.isReadableStream(new Response("").body))),Jt={stream:Zt&&(e=>e.body)};var Xt;Wt&&(Xt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Jt[e]&&(Jt[e]=Ze.isFunction(Xt[e])?t=>t[e]():(t,n)=>{throw new Je(`Response type '${e}' is not supported`,Je.ERR_NOT_SUPPORT,n)})})));const Kt=async(e,t)=>{const n=Ze.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Ze.isBlob(e))return e.size;if(Ze.isSpecCompliantForm(e)){const t=new Request(_t.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ze.isArrayBufferView(e)||Ze.isArrayBuffer(e)?e.byteLength:(Ze.isURLSearchParams(e)&&(e+=""),Ze.isString(e)?(await $t(e)).byteLength:void 0)})(t):n},Qt={http:null,xhr:Bt,fetch:Wt&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:d,withCredentials:u="same-origin",fetchOptions:p}=Mt(e);c=c?(c+"").toLowerCase():"text";let f,m=Dt([o,i&&i.toAbortSignal()],a);const h=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let g;try{if(l&&Yt&&"get"!==n&&"head"!==n&&0!==(g=await Kt(d,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Ze.isFormData(r)&&(e=n.headers.get("content-type"))&&d.setContentType(e),n.body){const[e,t]=Rt(g,Ot(Pt(l)));r=qt(n.body,65536,e,t)}}Ze.isString(u)||(u=u?"include":"omit");const o="credentials"in Request.prototype;f=new Request(t,{...p,signal:m,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:o?u:void 0});let i=await fetch(f);const a=Zt&&("stream"===c||"response"===c);if(Zt&&(s||a&&h)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=Ze.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Rt(t,Ot(Pt(s),!0))||[];i=new Response(qt(i.body,65536,n,(()=>{r&&r(),h&&h()})),e)}c=c||"text";let _=await Jt[Ze.findKey(Jt,c)||"text"](i,e);return!a&&h&&h(),await new Promise(((t,n)=>{At(t,n,{data:_,headers:St.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:f})}))}catch(_){if(h&&h(),_&&"TypeError"===_.name&&/fetch/i.test(_.message))throw Object.assign(new Je("Network Error",Je.ERR_NETWORK,e,f),{cause:_.cause||_});throw Je.from(_,_&&_.code,e,f)}})};Ze.forEach(Qt,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ci){}Object.defineProperty(e,"adapterName",{value:t})}}));const en=e=>`- ${e}`,tn=e=>Ze.isFunction(e)||null===e||!1===e,nn=e=>{e=Ze.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,!tn(n)&&(r=Qt[(t=String(n)).toLowerCase()],void 0===r))throw new Je(`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 Je("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(en).join("\n"):" "+en(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function rn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Tt(null,e)}function on(e){rn(e),e.headers=St.from(e.headers),e.data=Et.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return nn(e.adapter||bt.adapter)(e).then((function(t){return rn(e),t.data=Et.call(e,e.transformResponse,t),t.headers=St.from(t.headers),t}),(function(t){return Nt(t)||(rn(e),t&&t.response&&(t.response.data=Et.call(e,e.transformResponse,t.response),t.response.headers=St.from(t.response.headers))),Promise.reject(t)}))}const an="1.8.3",sn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{sn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const ln={};sn.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.3] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Je(r(o," has been removed"+(t?" in "+t:"")),Je.ERR_DEPRECATED);return t&&!ln[o]&&(ln[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)}},sn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const cn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Je("options must be an object",Je.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 Je("option "+i+" must be "+n,Je.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Je("Unknown option "+i,Je.ERR_BAD_OPTION)}},validators:sn},dn=cn.validators;class un{constructor(e){this.defaults=e,this.interceptors={request:new ct,response:new ct}}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(Ci){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=jt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&cn.assertOptions(n,{silentJSONParsing:dn.transitional(dn.boolean),forcedJSONParsing:dn.transitional(dn.boolean),clarifyTimeoutError:dn.transitional(dn.boolean)},!1),null!=r&&(Ze.isFunction(r)?t.paramsSerializer={serialize:r}:cn.assertOptions(r,{encode:dn.function,serialize:dn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),cn.assertOptions(t,{baseUrl:dn.spelling("baseURL"),withXsrfToken:dn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ze.merge(o.common,o[t.method]);o&&Ze.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=St.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 d,u=0;if(!s){const e=[on.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),d=e.length,c=Promise.resolve(t);u<d;)c=c.then(e[u++],e[u++]);return c}d=a.length;let p=t;for(u=0;u<d;){const e=a[u++],t=a[u++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=on.call(this,p)}catch(f){return Promise.reject(f)}for(u=0,d=l.length;u<d;)c=c.then(l[u++],l[u++]);return c}getUri(e){return lt(Ut((e=jt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Ze.forEach(["delete","get","head","options"],(function(e){un.prototype[e]=function(t,n){return this.request(jt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ze.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(jt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}un.prototype[e]=t(),un.prototype[e+"Form"]=t(!0)}));class pn{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 Tt(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new pn((function(t){e=t})),cancel:e}}}const fn={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(fn).forEach((([e,t])=>{fn[t]=e}));const mn=function e(t){const n=new un(t),r=de(un.prototype.request,n);return Ze.extend(r,un.prototype,n,{allOwnKeys:!0}),Ze.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(jt(t,n))},r}(bt);mn.Axios=un,mn.CanceledError=Tt,mn.CancelToken=pn,mn.isCancel=Nt,mn.VERSION=an,mn.toFormData=rt,mn.AxiosError=Je,mn.Cancel=mn.CanceledError,mn.all=function(e){return Promise.all(e)},mn.spread=function(e){return function(t){return e.apply(null,t)}},mn.isAxiosError=function(e){return Ze.isObject(e)&&!0===e.isAxiosError},mn.mergeConfig=jt,mn.AxiosHeaders=St,mn.formToJSON=e=>yt(Ze.isHTMLForm(e)?new FormData(e):e),mn.getAdapter=nn,mn.HttpStatusCode=fn,mn.default=mn;class hn{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,mn.create({baseURL:`${this.url(t)}/backend`,allowAbsoluteUrls:!1})),n&&__privateGet(this,e).interceptors.request.use(n)}getClient(){return __privateGet(this,e)}}e=new WeakMap;const gn={backend:new class extends hn{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 _n;class yn{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(_n||(_n=await gn.backend.getIdToken()),e.headers.Authorization=`Bearer ${_n}`,e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,mn.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{"X-PROFILE-ID":i},allowAbsoluteUrls:!1})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o)),a&&__privateGet(this,t).interceptors.request.use(a)}getClient(){return __privateGet(this,t)}async getIdToken(){return _n||(_n=await gn.backend.getIdToken()),_n}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const bn=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&ce(),e};let wn=(a=class extends yn{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,n){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t},{params:n}).catch((e=>{console.log(e)}))}},i=new WeakMap,a);const vn={backend:new class extends hn{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),bn),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}command(e,t){return this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e},{params:t})}},workplaceBackend:new wn};const xn={workplaceBackend:new class extends yn{url(e){return`${e}/benefits-plan`}getAllowanceProductsStatus(e){return this.getClient().get("/v2.0/allowance/products/status",{params:{activityIds:e.join(",")}}).then((e=>e.data))}getAssessments(){return this.getClient().get("/v1.0/offers").then((e=>e.data))}}},kn=(e,t)=>e,Cn=(e,t)=>n=>(n.params={...n.params??{},client:e.client,source:e.source,channel:e.channel},t&&n.headers.setAuthorization(`Bearer ${t}`),n),Sn=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new ie("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 ie(`Invalid token specified: missing part #${n+1}`);let o;try{o=ae(r)}catch(Ci){throw new ie(`Invalid token specified: invalid base64 for part #${n+1} (${Ci.message})`)}try{return JSON.parse(o)}catch(Ci){throw new ie(`Invalid token specified: invalid json for part #${n+1} (${Ci.message})`)}}(t).sub,o=Cn(n,t),i=Cn(n),a=kn(e),s=kn(e),l=kn(e);vn.backend.initClient(a,o,n.workflowsInstanceId),vn.workplaceBackend.initClient(a,r,i),gn.backend.initClient(s,o),xn.workplaceBackend.initClient(l,r,i)};var En,Nn,Tn,An,On=0,Rn=[],Pn=[],Ln=l,In=Ln.__b,Un=Ln.__r,Fn=Ln.diffed,jn=Ln.__c,Mn=Ln.unmount,Bn=Ln.__;function Dn(e,t){Ln.__h&&Ln.__h(Nn,e,On||t),On=0;var n=Nn.__H||(Nn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Pn}),n.__[e]}function zn(e){return On=1,Hn(or,e)}function Hn(e,t,n){var r=Dn(En++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):or(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=Nn,!Nn.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))};Nn.u=!0;var i=Nn.shouldComponentUpdate,a=Nn.componentWillUpdate;Nn.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)},Nn.shouldComponentUpdate=o}return r.__N||r.__}function qn(e,t){var n=Dn(En++,3);!Ln.__s&&rr(n.__H,t)&&(n.__=e,n.i=t,Nn.__H.__h.push(n))}function Wn(e,t){var n=Dn(En++,4);!Ln.__s&&rr(n.__H,t)&&(n.__=e,n.i=t,Nn.__h.push(n))}function Vn(e){return On=5,Gn((function(){return{current:e}}),[])}function $n(e,t,n){On=6,Wn((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 Gn(e,t){var n=Dn(En++,7);return rr(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Yn(e,t){return On=8,Gn((function(){return e}),t)}function Zn(e){var t=Nn.context[e.__c],n=Dn(En++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(Nn)),t.props.value):e.__}function Jn(e,t){Ln.useDebugValue&&Ln.useDebugValue(t?t(e):e)}function Xn(){var e=Dn(En++,11);if(!e.__){for(var t=Nn.__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 Kn(){for(var e;e=Rn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(tr),e.__H.__h.forEach(nr),e.__H.__h=[]}catch(t){e.__H.__h=[],Ln.__e(t,e.__v)}}Ln.__b=function(e){Nn=null,In&&In(e)},Ln.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Bn&&Bn(e,t)},Ln.__r=function(e){Un&&Un(e),En=0;var t=(Nn=e.__c).__H;t&&(Tn===Nn?(t.__h=[],Nn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Pn,e.__N=e.i=void 0}))):(t.__h.forEach(tr),t.__h.forEach(nr),t.__h=[],En=0)),Tn=Nn},Ln.diffed=function(e){Fn&&Fn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Rn.push(t)&&An===Ln.requestAnimationFrame||((An=Ln.requestAnimationFrame)||er)(Kn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Pn&&(e.__=e.__V),e.i=void 0,e.__V=Pn}))),Tn=Nn=null},Ln.__c=function(e,t){t.some((function(e){try{e.__h.forEach(tr),e.__h=e.__h.filter((function(e){return!e.__||nr(e)}))}catch(Vi){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Ln.__e(Vi,e.__v)}})),jn&&jn(e,t)},Ln.unmount=function(e){Mn&&Mn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{tr(e)}catch(n){t=n}})),n.__H=void 0,t&&Ln.__e(t,n.__v))};var Qn="function"==typeof requestAnimationFrame;function er(e){var t,n=function(){clearTimeout(r),Qn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Qn&&(t=requestAnimationFrame(n))}function tr(e){var t=Nn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Nn=t}function nr(e){var t=Nn;e.__c=e.__(),Nn=t}function rr(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function or(e,t){return"function"==typeof t?t(e):t}function ir(e,t){for(var n in t)e[n]=t[n];return e}function ar(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 sr(e,t){this.props=e,this.context=t}function lr(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:ar(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}(sr.prototype=new S).isPureReactComponent=!0,sr.prototype.shouldComponentUpdate=function(e,t){return ar(this.props,e)||ar(this.state,t)};var cr=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),cr&&cr(e)};var dr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ur(e){function t(t){var n=ir({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=dr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var pr=function(e,t){return null==e?null:L(L(e).map(t))},fr={map:pr,forEach:pr,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},mr=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);mr(e,t,n,r)};var hr=l.unmount;function gr(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=ir({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return gr(e,t,n)}))),e}function _r(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return _r(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 yr(){this.__u=0,this.t=null,this.__b=null}function br(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function wr(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 vr(){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),hr&&hr(e)},(yr.prototype=new S).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=br(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]=_r(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)},yr.prototype.componentWillUnmount=function(){this.t=[]},yr.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]=gr(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(C,null,e.fallback);return o&&(o.__u&=-33),[v(C,null,t.__a?null:e.children),o]};var xr=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 kr(e){return this.getChildContext=function(){return e.context},e.children}function Cr(e){var t=this,n=e.i;t.componentWillUnmount=function(){W(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)}}),W(v(kr,{context:t.context},e.__v),t.l)}function Sr(e,t){var n=v(Cr,{__v:e,i:t});return n.containerInfo=t,n}(vr.prototype=new S).__a=function(e){var t=this,n=br(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),xr(t,e,r)):o()};n?n(i):i()}},vr.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},vr.prototype.componentDidUpdate=vr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){xr(e,n,t)}))};var Er="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Nr=/^(?: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]/,Tr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Ar=/[A-Z0-9]/g,Or="undefined"!=typeof document,Rr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Pr(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Lr(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 Ir=l.event;function Ur(){}function Fr(){return this.cancelBubble}function jr(){return this.defaultPrevented}l.event=function(e){return Ir&&(e=Ir(e)),e.persist=Ur,e.isPropagationStopped=Fr,e.isDefaultPrevented=jr,e.nativeEvent=e};var Mr,Br={enumerable:!1,configurable:!0,get:function(){return this.class}},Dr=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||Or&&"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||Rr(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Tr.test(o)?o=a:-1===n.indexOf("-")&&Nr.test(o)?o=o.replace(Ar,"-$&").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",Br)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Er,Dr&&Dr(e)};var zr=l.__r;l.__r=function(e){zr&&zr(e),Mr=e.__c};var Hr=l.diffed;l.diffed=function(e){Hr&&Hr(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),Mr=null};var qr={ReactCurrentDispatcher:{current:{readContext:function(e){return Mr.__n[e.__c].props.value}}}};function Wr(e){return v.bind(null,e)}function Vr(e){return!!e&&e.$$typeof===Er}function $r(e){return Vr(e)&&e.type===C}function Gr(e){return Vr(e)?$.apply(null,arguments):e}function Yr(e){return!!e.__k&&(W(null,e),!0)}function Zr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Jr=function(e,t){return e(t)},Xr=function(e,t){return e(t)},Kr=C;function Qr(e){e()}function eo(e){return e}function to(){return[!1,Qr]}var no=Wn,ro=Vr;function oo(e,t){var n=t(),r=zn({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Wn((function(){o.__=n,o.v=t,io(o)&&i({h:o})}),[e,n,t]),qn((function(){return io(o)&&i({h:o}),e((function(){io(o)&&i({h:o})}))}),[e]),n}function io(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 ao={useState:zn,useId:Xn,useReducer:Hn,useEffect:qn,useLayoutEffect:Wn,useInsertionEffect:no,useTransition:to,useDeferredValue:eo,useSyncExternalStore:oo,startTransition:Qr,useRef:Vn,useImperativeHandle:$n,useMemo:Gn,useCallback:Yn,useContext:Zn,useDebugValue:Jn,version:"17.0.2",Children:fr,render:Pr,hydrate:Lr,unmountComponentAtNode:Yr,createPortal:Sr,createElement:v,createContext:G,createFactory:Wr,cloneElement:Gr,createRef:k,Fragment:C,isValidElement:Vr,isElement:ro,isFragment:$r,findDOMNode:Zr,Component:S,PureComponent:sr,memo:lr,forwardRef:ur,flushSync:Xr,unstable_batchedUpdates:Jr,StrictMode:Kr,Suspense:yr,SuspenseList:vr,lazy:wr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr};const so=Object.freeze(Object.defineProperty({__proto__:null,Children:fr,Component:S,Fragment:C,PureComponent:sr,StrictMode:Kr,Suspense:yr,SuspenseList:vr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:qr,cloneElement:Gr,createContext:G,createElement:v,createFactory:Wr,createPortal:Sr,createRef:k,default:ao,findDOMNode:Zr,flushSync:Xr,forwardRef:ur,hydrate:Lr,isElement:ro,isFragment:$r,isValidElement:Vr,lazy:wr,memo:lr,render:Pr,startTransition:Qr,unmountComponentAtNode:Yr,unstable_batchedUpdates:Jr,useCallback:Yn,useContext:Zn,useDebugValue:Jn,useDeferredValue:eo,useEffect:qn,useErrorBoundary:function(e){var t=Dn(En++,10),n=zn();return t.__=e,Nn.componentDidCatch||(Nn.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Xn,useImperativeHandle:$n,useInsertionEffect:no,useLayoutEffect:Wn,useMemo:Gn,useReducer:Hn,useRef:Vn,useState:zn,useSyncExternalStore:oo,useTransition:to,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),lo=e=>v("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("g",{clipPath:"url(#clip0_2383_2245)"},v("path",{d:"M0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.6608 29.6293C26.7649 29.1174 27.0229 27.663 26.1624 26.8024L12.7907 13.4307C11.9301 12.57 10.4757 12.8281 9.96369 13.9323L0.202679 36.442C-0.182768 37.2732 -0.00828658 38.2568 0.639604 38.9047Z",fill:"#FFE266"}),v("path",{d:"M19.4314 27.5018L2.84876 34.6411C2.2627 34.9129 1.57431 34.8051 1.09874 34.3757L0.202679 36.4421C-0.182768 37.2734 -0.00828658 38.2568 0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.4444 29.7226C24.9297 29.5162 19.5151 27.463 19.4314 27.5018Z",fill:"#EFAA66"}),v("path",{d:"M26.3181 28.7173C27.8596 27.1758 25.6184 22.4355 21.3124 18.1295C17.0064 13.8234 12.2661 11.5823 10.7246 13.1238C9.18318 14.6652 11.4243 19.4055 15.7303 23.7115C20.0364 28.0176 24.7767 30.2587 26.3181 28.7173Z",fill:"#FFE266"}),v("path",{d:"M22.4126 26.7308C23.4237 25.7197 21.7859 22.4424 18.7543 19.4109C15.7228 16.3793 12.4455 14.7415 11.4344 15.7526C10.4232 16.7638 12.0611 20.0411 15.0926 23.0726C18.1242 26.1042 21.4014 27.742 22.4126 26.7308Z",fill:"#EFAA66"}),v("path",{d:"M24.9319 30.0073C22.4747 30.0073 18.6692 27.78 15.1683 24.2792C11.9894 21.1002 9.81107 17.5992 9.48367 15.1424C9.42522 14.7034 9.73353 14.3002 10.1725 14.2417C10.6111 14.1834 11.0148 14.4916 11.0732 14.9306C11.3522 17.0232 13.4048 20.2477 16.3024 23.1452C20.0047 26.8476 23.4188 28.4618 25.0232 28.4018C25.4652 28.3857 25.8386 28.7288 25.8563 29.1713C25.8738 29.6137 25.5294 29.9868 25.0868 30.0043C25.0359 30.0062 24.984 30.0073 24.9319 30.0073Z",fill:"#D0844B"}),v("path",{d:"M16.3577 17.6285C16.1695 17.4403 16.0243 17.2039 15.9436 16.9306L15.2021 14.4208C14.922 13.473 15.1748 12.4576 15.8616 11.7708L17.2095 10.4229C17.8963 9.73605 18.9118 9.48339 19.8596 9.76347L22.5594 10.5255L21.6488 7.2768C21.3908 6.40351 21.8896 5.48644 22.7629 5.22841C23.6362 4.97037 24.5532 5.4692 24.8113 6.34249L25.5528 8.85226C25.8328 9.80012 25.5801 10.8156 24.8934 11.5023L23.5455 12.8502C22.8587 13.5369 21.8432 13.7896 20.8955 13.5096L18.1681 12.6202L19.1061 15.9963C19.3642 16.8696 18.8653 17.7866 17.9921 18.0447C17.3919 18.222 16.771 18.0419 16.3577 17.6285Z",fill:"#CAB4EF"}),v("path",{d:"M22.5594 10.5256L19.8596 9.76358C19.0449 9.52286 18.1805 9.67602 17.5176 10.1598C17.7032 10.902 17.9393 11.8894 18.168 12.6202L20.8954 13.5096C21.7487 13.7617 22.6567 13.5819 23.3305 13.0424C23.0918 12.2954 22.7865 11.2761 22.5594 10.5256Z",fill:"#A183E2"}),v("path",{d:"M26.8006 16.4551C26.9888 16.6433 27.2253 16.7885 27.4985 16.8692L30.0083 17.6106C30.956 17.8906 31.9715 17.638 32.6583 16.9512L34.0062 15.6033C34.693 14.9164 34.9457 13.901 34.6656 12.9532L33.9036 10.2534L37.1523 11.1639C38.0256 11.4219 38.9427 10.9231 39.2008 10.0498C39.4588 9.17651 38.96 8.25944 38.0867 8.00141L35.5769 7.25994C34.6291 6.97994 33.6136 7.23268 32.9269 7.91938L31.579 9.26728C30.8922 9.95406 30.6396 10.9695 30.9196 11.9173L31.8089 14.6447L28.4328 13.7066C27.5595 13.4486 26.6425 13.9474 26.3844 14.8207C26.2071 15.4209 26.3872 16.0418 26.8006 16.4551Z",fill:"#F7C4DB"}),v("path",{d:"M34.6649 12.9532L33.9029 10.2533C33.1175 10.0841 32.0186 9.8675 31.2346 9.69165C30.8149 10.3375 30.692 11.1496 30.9189 11.9173L31.8082 14.6447C32.6214 14.8455 33.4818 14.984 34.2625 15.3037C34.7512 14.6396 34.9067 13.7713 34.6649 12.9532Z",fill:"#EF8BBD"}),v("path",{d:"M30.639 2.8965C30.1162 3.4193 29.2684 3.4193 28.7456 2.8965C28.2228 2.3737 28.2228 1.52599 28.7456 1.00319C29.2684 0.480383 30.1162 0.480383 30.639 1.00319C31.1618 1.52607 31.1618 2.3737 30.639 2.8965Z",fill:"#FFA585"}),v("path",{d:"M32.6591 25.138C33.3985 25.138 33.9979 24.5386 33.9979 23.7992C33.9979 23.0598 33.3985 22.4604 32.6591 22.4604C31.9197 22.4604 31.3203 23.0598 31.3203 23.7992C31.3203 24.5386 31.9197 25.138 32.6591 25.138Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#8BB6EF"}),v("path",{d:"M7.28893 28.9138C7.18316 28.9138 7.07556 28.8927 6.97228 28.8482C6.5655 28.6731 6.37771 28.2014 6.55291 27.7946L7.56837 25.4361C7.74349 25.0294 8.2153 24.8413 8.62191 25.0167C9.02869 25.1919 9.21648 25.6635 9.04128 26.0703L8.02582 28.4288C7.8952 28.7322 7.59956 28.9138 7.28893 28.9138Z",fill:"white"}),v("path",{d:"M9.44127 23.916C9.33551 23.916 9.22798 23.895 9.12454 23.8505C8.71785 23.6753 8.53005 23.2037 8.70526 22.7968L9.01477 22.0779C9.18989 21.6713 9.66137 21.4832 10.0684 21.6586C10.4751 21.8337 10.6629 22.3054 10.4878 22.7122L10.1782 23.4312C10.0475 23.7344 9.75182 23.916 9.44127 23.916Z",fill:"white"}),v("path",{d:"M15.7341 0.651858L16.3927 2.50396C16.4209 2.58326 16.4767 2.64613 16.5472 2.67788L18.1927 3.41926C18.4251 3.52399 18.4251 3.89436 18.1927 3.99916L16.5472 4.74054C16.4767 4.7723 16.4209 4.83516 16.3927 4.91438L15.7341 6.76648C15.6411 7.02813 15.3119 7.02813 15.2189 6.76648L14.5603 4.91438C14.532 4.83508 14.4762 4.77222 14.4057 4.74054L12.7603 3.99916C12.5278 3.89444 12.5278 3.52407 12.7603 3.41926L14.4057 2.67788C14.4762 2.64613 14.532 2.58326 14.5603 2.50396L15.2189 0.651858C15.3119 0.390136 15.6411 0.390136 15.7341 0.651858Z",fill:"#F7C4DB"}),v("path",{d:"M38.0472 17.3018L38.5357 18.6756C38.5567 18.7344 38.598 18.781 38.6503 18.8046L39.8709 19.3545C40.0434 19.4322 40.0434 19.7069 39.8709 19.7846L38.6503 20.3345C38.598 20.3581 38.5567 20.4047 38.5357 20.4635L38.0472 21.8373C37.9781 22.0314 37.734 22.0314 37.665 21.8373L37.1764 20.4635C37.1555 20.4047 37.1141 20.3581 37.0618 20.3345L35.8413 19.7846C35.6688 19.7069 35.6688 19.4322 35.8413 19.3545L37.0618 18.8046C37.1141 18.781 37.1555 18.7344 37.1764 18.6756L37.665 17.3018C37.734 17.1077 37.9781 17.1077 38.0472 17.3018Z",fill:"#CAB4EF"}),v("path",{d:"M28.9622 6.95622C29.3048 6.95622 29.5826 6.67847 29.5826 6.33584C29.5826 5.99321 29.3048 5.71545 28.9622 5.71545C28.6196 5.71545 28.3418 5.99321 28.3418 6.33584C28.3418 6.67847 28.6196 6.95622 28.9622 6.95622Z",fill:"#78EAC4"}),v("path",{d:"M38.3556 2.49627C38.4328 1.86823 37.9862 1.29654 37.3581 1.21937C36.73 1.14221 36.1583 1.58878 36.0811 2.21683C36.004 2.84487 36.4506 3.41656 37.0787 3.49373C37.7068 3.57089 38.2785 3.12432 38.3556 2.49627Z",fill:"#8BB6EF"})),v("defs",null,v("clipPath",{id:"clip0_2383_2245"},v("rect",{width:40,height:40,fill:"white"}))));var co=0;function uo(e,t,n,r,o,i){var a,s,c={};for(s in t)"ref"==s?a=t[s]:c[s]=t[s];var d={type:e,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--co,__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(d),d}const po={isFetching:!1,isInitialized:!1,getOffers:()=>[],isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:""},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},hostInformation:{channel:"",client:"",source:"",experiment:"",treatment:"",workflowsJourneyType:ne.BenefitsOnboarding,workflowsInstanceId:""},updateIdentity:e=>Promise.resolve(),getIdentityRegistrationStatus:()=>"Unregistered",getWorkplaceLinkingStatus:()=>"Unlinked",offersProgress:{update:()=>({}),hasCompletedAnyOffers:()=>!1,isOfferCompleted:()=>!1,isOfferProgressed:()=>!1,canOfferSkipToEstimate:()=>!1}},fo=G(po),mo=({children:e,...t})=>{const[n,r]=zn(!1),[o,i]=zn(!1),[a,s]=zn(),l=Vn("Unregistered"),c=Vn("Unlinked"),d=Vn([]),u=Vn({}),p=Gn((()=>"allowance"===(null==a?void 0:a.featureFlags.marketplaceScheme)),[null==a?void 0:a.featureFlags.marketplaceScheme]),f=Yn((()=>l.current),[]),m=Yn((()=>c.current),[]),h=Yn((()=>d.current),[]),g=Yn((()=>Object.entries(u.current).some((e=>"Perks"!==e[0]&&e[1].isCompleted))),[]),_=Yn(((e,t,n)=>{u.current[e]={isEnrolled:t,isCompleted:n}}),[]),y=Yn((e=>{e.offers.filter((e=>void 0!==e.isAccepted)).forEach((e=>{var t;const n="Assessment"!==(null==(t=e.content)?void 0:t.template)||void 0;_(e.name,!!e.isAccepted,n)}))}),[_]),b=Yn((async()=>{r(!0);const e=(await xn.workplaceBackend.getAssessments()).offers.filter((e=>e.isEligible))??[];if(d.current=(e=>{const t=e.find((e=>"Perks"===e.name));return t?[...e.filter((e=>e!==t)).slice(0,4),t]:e.slice(0,5)})((null==a?void 0:a.offers)??[]).map((t=>{var n,r,o;return"Simple"!==(null==(n=t.content)?void 0:n.template)&&"Eoi"!==(null==(r=t.content)?void 0:r.template)?{...t,content:null==(o=e.find((e=>e.name===t.name)))?void 0:o.content}:t})),!p)return void r(!1);const t=d.current.filter((e=>{var t;return"Assessment"===(null==(t=e.content)?void 0:t.template)}));t.length<=0||await xn.workplaceBackend.getAllowanceProductsStatus(t.map((e=>e.content.assessmentId))).then((e=>{e.filter((e=>!!e.status)).forEach((e=>{const n=t.find((t=>t.content.assessmentId===e.activityId)).name;_(n,!0,!0)}))})).catch(),r(!1)}),[null==a?void 0:a.offers,p,_]),w=Yn((e=>{var t;return!0===(null==(t=u.current[e])?void 0:t.isCompleted)}),[u]),v=Yn((e=>!!u.current[e]),[u]),x=Yn((e=>p&&w(e)),[p,w]),k=Yn((async e=>{e?("Unregistered"===l.current&&(l.current="NewlyRegistered"),"Unlinked"===c.current&&(c.current="NewlyLinked"),await b()):l.current="RegistrationAbandoned"}),[b]),C=Gn((()=>{return e=(null==a?void 0:a.identity.email)??"",t=g(),{joinBenefits:{desktopImageUrl:re,mobileImageUrl:oe,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:uo(lo,{}),subTitle:uo("span",{children:["As an additional bonus, you have been allocated an allowance of up to ",uo("b",{children:"$1,300"})," as part of your benefits program. Set up your benefits today to be eligible."]})},buttonText:"Get Started"},setUpBenefits:{title:"Unlock your $1,300 Flare Benefits Allowance",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. Make your selections today, to be eligible for reimbursement later.",buttonText:"Set up your benefits",progress:{title:"See how it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product",completed:!1},{title:"Keep your product for 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>uo("div",{className:"flex flex-col gap-2",children:uo("span",{children:["Allowance offer expires today.",uo("br",{})," Exclusions and limitations apply. See full"," ",uo("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/flare-benefits-allowance-terms",children:"T&Cs"}),"."]})})},summary:t?{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 setup",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 setup"}};var e,t}),[null==a?void 0:a.identity.email,g]),S=Gn((()=>{if(!a)return po;const e=a.offers.some((e=>"Perks"===e.name));l.current=a.identity.isRegistered?"PreviouslyRegistered":"Unregistered",c.current=a.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked";const r={email:a.identity.email,phoneNumber:a.identity.phoneNumber??"",verifiedPhoneNumber:a.identity.verifiedPhoneNumber??""};return{isFetching:n,isInitialized:o,getOffers:h,isAppEnabled:e,identity:r,featureFlags:{marketplaceScheme:"promotion"===a.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:C},marketplaceSubNavigation:a.featureFlags.marketplaceSubNavigation},hostInformation:{...t.hostInformation,treatment:a.featureFlags.marketplaceScheme},updateIdentity:k,getIdentityRegistrationStatus:f,getWorkplaceLinkingStatus:m,offersProgress:{hasCompletedAnyOffers:g,update:_,isOfferCompleted:w,isOfferProgressed:v,canOfferSkipToEstimate:x}}}),[a,n,o,h,C,t.hostInformation,k,f,m,g,_,w,v,x]);return qn((()=>{(async()=>{const e=await vn.backend.init();s(e),y(e),i(!0)})()}),[y]),uo(fo.Provider,{value:S,children:e})},ho=e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"};const go={init(e){!function(e){try{return t=window,n=document,r="clarity",o="script",i=e,void(n.getElementById("clarity-script")||(t[r]=t[r]||function(){(t[r].q=t[r].q||[]).push(arguments)},(a=n.createElement(o)).async=1,a.src="https://www.clarity.ms/tag/"+i+"?ref=npm",a.id="clarity-script",(s=n.getElementsByTagName(o)[0]).parentNode.insertBefore(a,s)))}catch(l){return}var t,n,r,o,i,a,s}(e)},setTag(e,t){window.clarity("set",e,t)},identify(e,t,n,r){window.clarity("identify",e,t,n,r)},consent(e=!0){window.clarity("consent",e)},upgrade(e){window.clarity("upgrade",e)},event(e){window.clarity("event",e)}},_o=({children:e})=>uo(C,{children:e}),yo=({children:e})=>uo(C,{children:e}),bo=({open:e,children:t})=>{const n=Gn((()=>ao.Children.toArray(t).find((e=>e.type===_o))),[t]),r=Gn((()=>ao.Children.toArray(t).find((e=>e.type===yo))),[t]),[o,i]=zn(!e);return qn((()=>{let t;return e?i(!1):t=setTimeout((()=>{i(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),uo("div",{hidden:o,children:uo("div",{className:"z-50 fixed flex items-center justify-center w-screen h-screen inset-0 bg-white overflow-hidden transition-opacity "+(e?"ease-out duration-300 opacity-100":"ease-in duration-200 opacity-0"),children:[n,uo("div",{className:"mt-4",children:r})]})})},wo=e=>uo("span",{className:"inline-flex",children:uo("span",{className:"animate-spin",children:uo("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:[uo("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"}),uo("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"})]})})}),vo='/*! 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}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.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-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%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-12{max-height:3rem}.max-h-4{max-height:1rem}.max-h-6{max-height:1.5rem}.max-h-8{max-height:2rem}.min-h-12{min-height:3rem}.min-h-4{min-height:1rem}.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%}.w-screen{width:100vw}.min-w-10{min-width:2.5rem}.min-w-4{min-width:1rem}.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-4{max-width:1rem}.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}.cursor-pointer{cursor:pointer}.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-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.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-1{padding:.25rem}.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)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.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-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80}.hover\\:before\\:absolute:hover:before{content:var(--tw-content);position:absolute}.hover\\:before\\:h-16:hover:before{content:var(--tw-content);height:4rem}.hover\\:before\\:w-16:hover:before{content:var(--tw-content);width:4rem}.hover\\:before\\:cursor-default:hover:before{content:var(--tw-content);cursor:default}.hover\\:before\\:cursor-pointer:hover:before{content:var(--tw-content);cursor:pointer}.hover\\:before\\:content-\\[\\\'\\\'\\]:hover:before{--tw-content:"";content:var(--tw-content)}.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-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\\: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 xo=e=>{const[t,n]=zn(!1);return uo("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:[uo("div",{class:""+(t?"invisible":""),children:e.children}),t&&uo("div",{class:"absolute",children:uo(wo,{theme:"light"})})]})},ko=({title:e,className:t,children:n,...r})=>{var o;const[i,a]=zn(!1),s=Vn(null);return uo("div",{className:`border border-2 border-gray-300 p-2 rounded-md overflow-hidden w-full ${t??""}`,...r,children:[uo("div",{className:"mx-2 flex justify-between cursor-pointer",onClick:Yn((()=>{a(!i)}),[i]),children:[uo("span",{className:"text-base text-left font-semibold text-primary-base",children:e}),uo("span",{className:"text-base text-left font-semibold text-gray-500",children:i?"-":"+"})]}),uo("div",{ref:s,className:"flex justify-center transition-all ease-in-out duration-1000",style:{height:i?`${(null==(o=null==s?void 0:s.current)?void 0:o.scrollHeight)??0}px`:"0px",opacity:i?1:0},children:n})]})},Co=e=>{qn(e,[])};function So(){return So=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},So.apply(null,arguments)}function Eo(e,t){return(Eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function No(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=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_=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 C(e){return e.children}function E(e,t){this.props=e,this.context=t}function S(e,t){if(null==t)return e.__?S(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?S(e):null}function N(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?S(o):i,!!(32&o.__u),n),r.__v=o.__v,r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=i&&T(r),r}function T(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 T(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=N(e,r,o)||t,0===n||u.length>n?(D(r,t,o),o.length=r.length=0,t=void 0,u.sort(f)):t&&l.__c&&l.__c(t,g));t&&D(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,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):_(o)?x(C,{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=S(i)),H(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=S(i)),H(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&&z(p.ref,null,f),u.push(f.ref,f.__c||m,f)),null==y&&null!=m&&(y=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=y}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||(_(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||y.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?B:j,i)):e.removeEventListener(t,i?B:j,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 j(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 B(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,y,v,x,k,N,T,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,N=(p=U.contextType)&&r[p.__c],T=p?N?N.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,T):(t.__c=f=new E(k,T),f.constructor=U,f.render=q),N&&N.sub(f),f.props=k,f.state||(f.state={}),f.context=T,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,y=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,T),!f.__e&&(null!=f.shouldComponentUpdate&&!1===f.shouldComponentUpdate(k,f.__s,T)||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,T),null!=f.componentDidUpdate&&f.__h.push((function(){f.componentDidUpdate(g,y,v)}))}if(f.context=T,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,y)),R(e,_(I=null!=p&&p.type===C&&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(j){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(j,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,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?y=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,_(f)?f:[f],t,n,r,o&&"foreignObject"!==x,i,a,i?i[0]:n.__k&&S(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!==y&&y!==e[u]&&F(e,u,y,b[u],!1))}return e}(n.__e,t,n,r,o,i,a,u,d);(p=l.diffed)&&p(t)}function D(e,t,n){for(var r=0;r<n.length;r++)z(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 z(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(r){l.__e(r,n)}}function H(e,t,n){var r,o;if(l.unmount&&l.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||z(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]&&H(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||w(e.__e),e.__=e.__e=e.__d=void 0}function q(e,t,n){return this.constructor(e,n)}function W(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(C,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,D(i,e,a)}function V(e,t){W(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,E.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))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),A(this))},E.prototype.render=C,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 Z=["context","children"];function J(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,Z))}function X(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=v(J,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[K(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:W)(this._vdom,this._root)}function K(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[K(e)]=n,this._vdom=$(this._vdom,r),W(this._vdom,this._root)}}function ee(){W(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)}}))}var ne=(e=>(e.BenefitsExisting="BenefitsExisting",e.AppInvite="AppInvite",e.BenefitsOnboarding="BenefitsOnboarding",e))(ne||{});const re=""+("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),oe=""+("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 ie extends Error{}function ae(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)}}ie.prototype.name="InvalidTokenError";const se=crypto.randomUUID?crypto.randomUUID():crypto.getRandomValues(new Uint32Array(5)).join("-"),le=e=>(window.addEventListener(se,e),()=>window.removeEventListener(se,e)),ce=()=>{window.dispatchEvent(new Event(se))};function ue(e,t){return function(){return e.apply(t,arguments)}}const{toString:de}=Object.prototype,{getPrototypeOf:pe}=Object,{iterator:fe,toStringTag:me}=Symbol,he=(e=>t=>{const n=de.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),ge=e=>(e=e.toLowerCase(),t=>he(t)===e),ye=e=>t=>typeof t===e,{isArray:_e}=Array,be=ye("undefined");function we(e){return null!==e&&!be(e)&&null!==e.constructor&&!be(e.constructor)&&ke(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ve=ge("ArrayBuffer");const xe=ye("string"),ke=ye("function"),Ce=ye("number"),Ee=e=>null!==e&&"object"==typeof e,Se=e=>{if("object"!==he(e))return!1;const t=pe(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||me in e||fe in e)},Ne=ge("Date"),Te=ge("File"),Ae=ge("Blob"),Oe=ge("FileList"),Re=ge("URLSearchParams"),[Pe,Le,Ie,Ue]=["ReadableStream","Request","Response","Headers"].map(ge);function Fe(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),_e(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(we(e))return;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 je(e,t){if(we(e))return null;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 Be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Me=e=>!be(e)&&e!==Be;const De=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&pe(Uint8Array)),ze=ge("HTMLFormElement"),He=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),qe=ge("RegExp"),We=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Fe(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};const Ve=ge("AsyncFunction"),$e=(Ge="function"==typeof setImmediate,Ye=ke(Be.postMessage),Ge?setImmediate:Ye?(Ze=`axios@${Math.random()}`,Je=[],Be.addEventListener("message",(({source:e,data:t})=>{e===Be&&t===Ze&&Je.length&&Je.shift()()}),!1),e=>{Je.push(e),Be.postMessage(Ze,"*")}):e=>setTimeout(e));var Ge,Ye,Ze,Je;const Xe="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Be):"undefined"!=typeof process&&process.nextTick||$e,Ke={isArray:_e,isArrayBuffer:ve,isBuffer:we,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ke(e.append)&&("formdata"===(t=he(e))||"object"===t&&ke(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&ve(e.buffer),t},isString:xe,isNumber:Ce,isBoolean:e=>!0===e||!1===e,isObject:Ee,isPlainObject:Se,isEmptyObject:e=>{if(!Ee(e)||we(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(zo){return!1}},isReadableStream:Pe,isRequest:Le,isResponse:Ie,isHeaders:Ue,isUndefined:be,isDate:Ne,isFile:Te,isBlob:Ae,isRegExp:qe,isFunction:ke,isStream:e=>Ee(e)&&ke(e.pipe),isURLSearchParams:Re,isTypedArray:De,isFileList:Oe,forEach:Fe,merge:function e(){const{caseless:t,skipUndefined:n}=Me(this)&&this||{},r={},o=(o,i)=>{const a=t&&je(r,i)||i;Se(r[a])&&Se(o)?r[a]=e(r[a],o):Se(o)?r[a]=e({},o):_e(o)?r[a]=o.slice():n&&be(o)||(r[a]=o)};for(let i=0,a=arguments.length;i<a;i++)arguments[i]&&Fe(arguments[i],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Fe(t,((t,r)=>{n&&ke(t)?e[r]=ue(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&&pe(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:he,kindOfTest:ge,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(_e(e))return e;let t=e.length;if(!Ce(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[fe]).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:ze,hasOwnProperty:He,hasOwnProp:He,reduceDescriptors:We,freezeMethods:e=>{We(e,((t,n)=>{if(ke(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ke(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 _e(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:je,global:Be,isContextDefined:Me,isSpecCompliantForm:function(e){return!!(e&&ke(e.append)&&"FormData"===e[me]&&e[fe])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Ee(e)){if(t.indexOf(e)>=0)return;if(we(e))return e;if(!("toJSON"in e)){t[r]=e;const o=_e(e)?[]:{};return Fe(e,((e,t)=>{const i=n(e,r+1);!be(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Ve,isThenable:e=>e&&(Ee(e)||ke(e))&&ke(e.then)&&ke(e.catch),setImmediate:$e,asap:Xe,isIterable:e=>null!=e&&ke(e[fe])};function Qe(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,this.status=o.status?o.status:null)}Ke.inherits(Qe,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:Ke.toJSONObject(this.config),code:this.code,status:this.status}}});const et=Qe.prototype,tt={};["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=>{tt[e]={value:e}})),Object.defineProperties(Qe,tt),Object.defineProperty(et,"isAxiosError",{value:!0}),Qe.from=(e,t,n,r,o,i)=>{const a=Object.create(et);Ke.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e));const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return Qe.call(a,s,l,n,r,o),e&&null==a.cause&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};function nt(e){return Ke.isPlainObject(e)||Ke.isArray(e)}function rt(e){return Ke.endsWith(e,"[]")?e.slice(0,-2):e}function ot(e,t,n){return e?e.concat(t).map((function(e,t){return e=rt(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const it=Ke.toFlatObject(Ke,{},null,(function(e){return/^is[A-Z]/.test(e)}));function at(e,t,n){if(!Ke.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Ke.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Ke.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Ke.isSpecCompliantForm(t);if(!Ke.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Ke.isDate(e))return e.toISOString();if(Ke.isBoolean(e))return e.toString();if(!s&&Ke.isBlob(e))throw new Qe("Blob is not supported. Use a Buffer instead.");return Ke.isArrayBuffer(e)||Ke.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(Ke.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Ke.isArray(e)&&function(e){return Ke.isArray(e)&&!e.some(nt)}(e)||(Ke.isFileList(e)||Ke.endsWith(n,"[]"))&&(s=Ke.toArray(e)))return n=rt(n),s.forEach((function(e,r){!Ke.isUndefined(e)&&null!==e&&t.append(!0===a?ot([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!nt(e)||(t.append(ot(o,n,i),l(e)),!1)}const u=[],d=Object.assign(it,{defaultVisitor:c,convertValue:l,isVisitable:nt});if(!Ke.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Ke.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Ke.forEach(n,(function(n,i){!0===(!(Ke.isUndefined(n)||null===n)&&o.call(t,n,Ke.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function st(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function lt(e,t){this._pairs=[],e&&at(e,this,t)}const ct=lt.prototype;function ut(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function dt(e,t,n){if(!t)return e;const r=n&&n.encode||ut;Ke.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(i=o?o(t,n):Ke.isURLSearchParams(t)?t.toString():new lt(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}ct.append=function(e,t){this._pairs.push([e,t])},ct.toString=function(e){const t=e?function(t){return e.call(this,t,st)}:st;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class pt{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){Ke.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const ft={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mt={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:lt,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ht="undefined"!=typeof window&&"undefined"!=typeof document,gt="object"==typeof navigator&&navigator||void 0,yt=ht&&(!gt||["ReactNative","NativeScript","NS"].indexOf(gt.product)<0),_t="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,bt=ht&&window.location.href||"http://localhost",wt={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ht,hasStandardBrowserEnv:yt,hasStandardBrowserWebWorkerEnv:_t,navigator:gt,origin:bt},Symbol.toStringTag,{value:"Module"})),...mt};function vt(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&&Ke.isArray(r)?r.length:i,s)return Ke.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&Ke.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&Ke.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(Ke.isFormData(e)&&Ke.isFunction(e.entries)){const n={};return Ke.forEachEntry(e,((e,r)=>{t(function(e){return Ke.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const xt={transitional:ft,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=Ke.isObject(e);o&&Ke.isHTMLForm(e)&&(e=new FormData(e));if(Ke.isFormData(e))return r?JSON.stringify(vt(e)):e;if(Ke.isArrayBuffer(e)||Ke.isBuffer(e)||Ke.isStream(e)||Ke.isFile(e)||Ke.isBlob(e)||Ke.isReadableStream(e))return e;if(Ke.isArrayBufferView(e))return e.buffer;if(Ke.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 at(e,new wt.classes.URLSearchParams,{visitor:function(e,t,n,r){return wt.isNode&&Ke.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((i=Ke.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return at(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(Ke.isString(e))try{return(t||JSON.parse)(e),Ke.trim(e)}catch(zo){if("SyntaxError"!==zo.name)throw zo}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||xt.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Ke.isResponse(e)||Ke.isReadableStream(e))return e;if(e&&Ke.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(zo){if(n){if("SyntaxError"===zo.name)throw Qe.from(zo,Qe.ERR_BAD_RESPONSE,this,null,this.response);throw zo}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:wt.classes.FormData,Blob:wt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ke.forEach(["delete","get","head","post","put","patch"],(e=>{xt.headers[e]={}}));const kt=Ke.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"]),Ct=Symbol("internals");function Et(e){return e&&String(e).trim().toLowerCase()}function St(e){return!1===e||null==e?e:Ke.isArray(e)?e.map(St):String(e)}function Nt(e,t,n,r,o){return Ke.isFunction(r)?r.call(this,t,n):(o&&(t=n),Ke.isString(t)?Ke.isString(r)?-1!==t.indexOf(r):Ke.isRegExp(r)?r.test(t):void 0:void 0)}class Tt{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Et(t);if(!o)throw new Error("header name must be a non-empty string");const i=Ke.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=St(e))}const i=(e,t)=>Ke.forEach(e,((e,n)=>o(e,n,t)));if(Ke.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if(Ke.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]&&kt[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(Ke.isObject(e)&&Ke.isIterable(e)){let n,r,o={};for(const t of e){if(!Ke.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?Ke.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}i(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Et(e)){const n=Ke.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(Ke.isFunction(t))return t.call(this,e,n);if(Ke.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Et(e)){const n=Ke.findKey(this,e);return!(!n||void 0===this[n]||t&&!Nt(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Et(e)){const o=Ke.findKey(n,e);!o||t&&!Nt(0,n[o],o,t)||(delete n[o],r=!0)}}return Ke.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&&!Nt(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return Ke.forEach(this,((r,o)=>{const i=Ke.findKey(n,o);if(i)return t[i]=St(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]=St(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Ke.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Ke.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")}getSetCookie(){return this.get("set-cookie")||[]}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[Ct]=this[Ct]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Et(e);t[r]||(!function(e,t){const n=Ke.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 Ke.isArray(e)?e.forEach(r):r(e),this}}function At(e,t){const n=this||xt,r=t||n,o=Tt.from(r.headers);let i=r.data;return Ke.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Ot(e){return!(!e||!e.__CANCEL__)}function Rt(e,t,n){Qe.call(this,null==e?"canceled":e,Qe.ERR_CANCELED,t,n),this.name="CanceledError"}function Pt(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Qe("Request failed with status code "+n.status,[Qe.ERR_BAD_REQUEST,Qe.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}Tt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Ke.reduceDescriptors(Tt.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Ke.freezeMethods(Tt),Ke.inherits(Rt,Qe,{__CANCEL__:!0});const Lt=(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(...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)},It=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ut=e=>(...t)=>Ke.asap((()=>e(...t))),Ft=wt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,wt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(wt.origin),wt.navigator&&/(msie|trident)/i.test(wt.navigator.userAgent)):()=>!0,jt=wt.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ke.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ke.isString(r)&&a.push("path="+r),Ke.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 Bt(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Mt=e=>e instanceof Tt?{...e}:e;function Dt(e,t){t=t||{};const n={};function r(e,t,n,r){return Ke.isPlainObject(e)&&Ke.isPlainObject(t)?Ke.merge.call({caseless:r},e,t):Ke.isPlainObject(t)?Ke.merge({},t):Ke.isArray(t)?t.slice():t}function o(e,t,n,o){return Ke.isUndefined(t)?Ke.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!Ke.isUndefined(t))return r(void 0,t)}function a(e,t){return Ke.isUndefined(t)?Ke.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,n)=>o(Mt(e),Mt(t),0,!0)};return Ke.forEach(Object.keys({...e,...t}),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);Ke.isUndefined(a)&&i!==s||(n[r]=a)})),n}const zt=e=>{const t=Dt({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=Tt.from(a),t.url=dt(Bt(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ke.isFormData(n))if(wt.hasStandardBrowserEnv||wt.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Ke.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)}))}if(wt.hasStandardBrowserEnv&&(r&&Ke.isFunction(r)&&(r=r(t)),r||!1!==r&&Ft(t.url))){const e=o&&i&&jt.read(i);e&&a.set(o,e)}return t},Ht="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=zt(e);let o=r.data;const i=Tt.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=Tt.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Pt((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 Qe("Request aborted",Qe.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const r=new Qe(t&&t.message?t.message:"Network Error",Qe.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||ft;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Qe(t,o.clarifyTimeoutError?Qe.ETIMEDOUT:Qe.ECONNABORTED,e,h)),h=null},void 0===o&&i.setContentType(null),"setRequestHeader"in h&&Ke.forEach(i.toJSON(),(function(e,t){h.setRequestHeader(t,e)})),Ke.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),f&&([l,u]=Lt(f,!0),h.addEventListener("progress",l)),p&&h.upload&&([s,c]=Lt(p),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{h&&(n(!t||t.type?new Rt(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 y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===wt.protocols.indexOf(y)?n(new Qe("Unsupported protocol "+y+":",Qe.ERR_BAD_REQUEST,e)):h.send(o||null)}))},qt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){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 Qe?t:new Rt(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Qe(`timeout ${t} of ms exceeded`,Qe.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>Ke.asap(a),s}},Wt=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},Vt=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},$t=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Vt(e))yield*Wt(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Gt}=Ke,Yt=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ke.global),{ReadableStream:Zt,TextEncoder:Jt}=Ke.global,Xt=(e,...t)=>{try{return!!e(...t)}catch(zo){return!1}},Kt=e=>{e=Ke.merge.call({skipUndefined:!0},Yt,e);const{fetch:t,Request:n,Response:r}=e,o=t?Gt(t):"function"==typeof fetch,i=Gt(n),a=Gt(r);if(!o)return!1;const s=o&&Gt(Zt),l=o&&("function"==typeof Jt?(e=>t=>e.encode(t))(new Jt):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=i&&s&&Xt((()=>{let e=!1;const t=new n(wt.origin,{body:new Zt,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),u=a&&s&&Xt((()=>Ke.isReadableStream(new r("").body))),d={stream:u&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!d[e]&&(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new Qe(`Response type '${e}' is not supported`,Qe.ERR_NOT_SUPPORT,n)})}));const p=async(e,t)=>{const r=Ke.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(Ke.isBlob(e))return e.size;if(Ke.isSpecCompliantForm(e)){const t=new n(wt.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Ke.isArrayBufferView(e)||Ke.isArrayBuffer(e)?e.byteLength:(Ke.isURLSearchParams(e)&&(e+=""),Ke.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:a,data:s,signal:l,cancelToken:f,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:y,headers:_,withCredentials:b="same-origin",fetchOptions:w}=zt(e),v=t||fetch;y=y?(y+"").toLowerCase():"text";let x=qt([l,f&&f.toAbortSignal()],m),k=null;const C=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let E;try{if(g&&c&&"get"!==a&&"head"!==a&&0!==(E=await p(_,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(Ke.isFormData(s)&&(e=t.headers.get("content-type"))&&_.setContentType(e),t.body){const[e,n]=It(E,Lt(Ut(g)));s=$t(t.body,65536,e,n)}}Ke.isString(b)||(b=b?"include":"omit");const t=i&&"credentials"in n.prototype,l={...w,signal:x,method:a.toUpperCase(),headers:_.normalize().toJSON(),body:s,duplex:"half",credentials:t?b:void 0};k=i&&new n(o,l);let f=await(i?v(k,w):v(o,l));const m=u&&("stream"===y||"response"===y);if(u&&(h||m&&C)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=f[t]}));const t=Ke.toFiniteNumber(f.headers.get("content-length")),[n,o]=h&&It(t,Lt(Ut(h),!0))||[];f=new r($t(f.body,65536,n,(()=>{o&&o(),C&&C()})),e)}y=y||"text";let S=await d[Ke.findKey(d,y)||"text"](f,e);return!m&&C&&C(),await new Promise(((t,n)=>{Pt(t,n,{data:S,headers:Tt.from(f.headers),status:f.status,statusText:f.statusText,config:e,request:k})}))}catch(S){if(C&&C(),S&&"TypeError"===S.name&&/Load failed|fetch/i.test(S.message))throw Object.assign(new Qe("Network Error",Qe.ERR_NETWORK,e,k),{cause:S.cause||S});throw Qe.from(S,S&&S.code,e,k)}}},Qt=new Map,en=e=>{let t=e?e.env:{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a,s,l=i.length,c=Qt;for(;l--;)a=i[l],s=c.get(a),void 0===s&&c.set(a,s=l?new Map:Kt(t)),c=s;return s};en();const tn={http:null,xhr:Ht,fetch:{get:en}};Ke.forEach(tn,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(zo){}Object.defineProperty(e,"adapterName",{value:t})}}));const nn=e=>`- ${e}`,rn=e=>Ke.isFunction(e)||null===e||!1===e,on=(e,t)=>{e=Ke.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){let n;if(r=e[a],o=r,!rn(r)&&(o=tn[(n=String(r)).toLowerCase()],void 0===o))throw new Qe(`Unknown adapter '${n}'`);if(o&&(Ke.isFunction(o)||(o=o.get(t))))break;i[n||"#"+a]=o}if(!o){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Qe("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(nn).join("\n"):" "+nn(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o};function an(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Rt(null,e)}function sn(e){an(e),e.headers=Tt.from(e.headers),e.data=At.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return on(e.adapter||xt.adapter,e)(e).then((function(t){return an(e),t.data=At.call(e,e.transformResponse,t),t.headers=Tt.from(t.headers),t}),(function(t){return Ot(t)||(an(e),t&&t.response&&(t.response.data=At.call(e,e.transformResponse,t.response),t.response.headers=Tt.from(t.response.headers))),Promise.reject(t)}))}const ln="1.12.2",cn={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{cn[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const un={};cn.transitional=function(e,t,n){function r(e,t){return"[Axios v"+ln+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Qe(r(o," has been removed"+(t?" in "+t:"")),Qe.ERR_DEPRECATED);return t&&!un[o]&&(un[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)}},cn.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const dn={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Qe("options must be an object",Qe.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 Qe("option "+i+" must be "+n,Qe.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Qe("Unknown option "+i,Qe.ERR_BAD_OPTION)}},validators:cn},pn=dn.validators;class fn{constructor(e){this.defaults=e||{},this.interceptors={request:new pt,response:new pt}}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(zo){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Dt(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&dn.assertOptions(n,{silentJSONParsing:pn.transitional(pn.boolean),forcedJSONParsing:pn.transitional(pn.boolean),clarifyTimeoutError:pn.transitional(pn.boolean)},!1),null!=r&&(Ke.isFunction(r)?t.paramsSerializer={serialize:r}:dn.assertOptions(r,{encode:pn.function,serialize:pn.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),dn.assertOptions(t,{baseUrl:pn.spelling("baseURL"),withXsrfToken:pn.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&Ke.merge(o.common,o[t.method]);o&&Ke.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=Tt.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=[sn.bind(this),void 0];for(e.unshift(...a),e.push(...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<u;){const e=a[d++],t=a[d++];try{p=e(p)}catch(f){t.call(this,f);break}}try{c=sn.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 dt(Bt((e=Dt(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}Ke.forEach(["delete","get","head","options"],(function(e){fn.prototype[e]=function(t,n){return this.request(Dt(n||{},{method:e,url:t,data:(n||{}).data}))}})),Ke.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Dt(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}fn.prototype[e]=t(),fn.prototype[e+"Form"]=t(!0)}));class mn{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 Rt(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)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new mn((function(t){e=t})),cancel:e}}}const hn={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(hn).forEach((([e,t])=>{hn[t]=e}));const gn=function e(t){const n=new fn(t),r=ue(fn.prototype.request,n);return Ke.extend(r,fn.prototype,n,{allOwnKeys:!0}),Ke.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Dt(t,n))},r}(xt);gn.Axios=fn,gn.CanceledError=Rt,gn.CancelToken=mn,gn.isCancel=Ot,gn.VERSION=ln,gn.toFormData=at,gn.AxiosError=Qe,gn.Cancel=gn.CanceledError,gn.all=function(e){return Promise.all(e)},gn.spread=function(e){return function(t){return e.apply(null,t)}},gn.isAxiosError=function(e){return Ke.isObject(e)&&!0===e.isAxiosError},gn.mergeConfig=Dt,gn.AxiosHeaders=Tt,gn.formToJSON=e=>vt(Ke.isHTMLForm(e)?new FormData(e):e),gn.getAdapter=on,gn.HttpStatusCode=hn,gn.default=gn;class yn{constructor(){__privateAdd(this,e)}initClient(t,n){__privateSet(this,e,gn.create({baseURL:`${this.url(t)}/backend`,allowAbsoluteUrls:!1})),n&&__privateGet(this,e).interceptors.request.use(n)}getClient(){return __privateGet(this,e)}}e=new WeakMap;const _n={backend:new class extends yn{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 bn;class wn{constructor(){__privateAdd(this,t),__privateAdd(this,n),__privateAdd(this,r),__privateAdd(this,o,(async e=>(bn||(bn=await _n.backend.getIdToken()),e.headers.Authorization=`Bearer ${bn}`,e)))}initClient(e,i,a){__privateSet(this,n,e),__privateSet(this,r,i),__privateSet(this,t,gn.create({baseURL:`${this.url(e)}/workplace-backend`,headers:{"X-PROFILE-ID":i},allowAbsoluteUrls:!1})),__privateGet(this,t).interceptors.request.use(__privateGet(this,o)),a&&__privateGet(this,t).interceptors.request.use(a)}getClient(){return __privateGet(this,t)}async getIdToken(){return bn||(bn=await _n.backend.getIdToken()),bn}getBaseUrl(){return __privateGet(this,n)}getProfileId(){return __privateGet(this,r)}}t=new WeakMap,n=new WeakMap,r=new WeakMap,o=new WeakMap;const vn=e=>{var t,n;throw"Auth_SessionExpired"===(null==(n=null==(t=e.response)?void 0:t.data)?void 0:n.code)&&ce(),e};let xn=(a=class extends wn{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,n){await this.getClient().post("/v1.0/analytics/track",{event:e,properties:t},{params:n}).catch((e=>{console.log(e)}))}},i=new WeakMap,a);const kn={backend:new class extends yn{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),vn),this.sourceId=n}async init(){return this.getClient().post("/init",{source:"Onboarding",sourceId:this.sourceId}).then((e=>e.data))}command(e,t){return this.getClient().post("/command",{source:"Onboarding",sourceId:this.sourceId,...e},{params:t})}},workplaceBackend:new xn};const Cn={workplaceBackend:new class extends wn{url(e){return`${e}/benefits-plan`}getAllowanceProductsStatus(e){return this.getClient().get("/v2.0/allowance/products/status",{params:{activityIds:e.join(",")}}).then((e=>e.data))}getAssessments(){return this.getClient().get("/v1.0/offers").then((e=>e.data))}}},En=(e,t)=>e,Sn=(e,t)=>n=>(n.params={...n.params??{},client:e.client,source:e.source,channel:e.channel},t&&n.headers.setAuthorization(`Bearer ${t}`),n),Nn=(e,t,n)=>{const r=function(e,t){if("string"!=typeof e)throw new ie("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 ie(`Invalid token specified: missing part #${n+1}`);let o;try{o=ae(r)}catch(zo){throw new ie(`Invalid token specified: invalid base64 for part #${n+1} (${zo.message})`)}try{return JSON.parse(o)}catch(zo){throw new ie(`Invalid token specified: invalid json for part #${n+1} (${zo.message})`)}}(t).sub,o=Sn(n,t),i=Sn(n),a=En(e),s=En(e),l=En(e);kn.backend.initClient(a,o,n.workflowsInstanceId),kn.workplaceBackend.initClient(a,r,i),_n.backend.initClient(s,o),Cn.workplaceBackend.initClient(l,r,i)};var Tn,An,On,Rn,Pn=0,Ln=[],In=[],Un=l,Fn=Un.__b,jn=Un.__r,Bn=Un.diffed,Mn=Un.__c,Dn=Un.unmount,zn=Un.__;function Hn(e,t){Un.__h&&Un.__h(An,e,Pn||t),Pn=0;var n=An.__H||(An.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:In}),n.__[e]}function qn(e){return Pn=1,Wn(ar,e)}function Wn(e,t,n){var r=Hn(Tn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):ar(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=An,!An.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))};An.u=!0;var i=An.shouldComponentUpdate,a=An.componentWillUpdate;An.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)},An.shouldComponentUpdate=o}return r.__N||r.__}function Vn(e,t){var n=Hn(Tn++,3);!Un.__s&&ir(n.__H,t)&&(n.__=e,n.i=t,An.__H.__h.push(n))}function $n(e,t){var n=Hn(Tn++,4);!Un.__s&&ir(n.__H,t)&&(n.__=e,n.i=t,An.__h.push(n))}function Gn(e){return Pn=5,Zn((function(){return{current:e}}),[])}function Yn(e,t,n){Pn=6,$n((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 Zn(e,t){var n=Hn(Tn++,7);return ir(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Jn(e,t){return Pn=8,Zn((function(){return e}),t)}function Xn(e){var t=An.context[e.__c],n=Hn(Tn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(An)),t.props.value):e.__}function Kn(e,t){Un.useDebugValue&&Un.useDebugValue(t?t(e):e)}function Qn(){var e=Hn(Tn++,11);if(!e.__){for(var t=An.__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 er(){for(var e;e=Ln.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(rr),e.__H.__h.forEach(or),e.__H.__h=[]}catch(t){e.__H.__h=[],Un.__e(t,e.__v)}}Un.__b=function(e){An=null,Fn&&Fn(e)},Un.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),zn&&zn(e,t)},Un.__r=function(e){jn&&jn(e),Tn=0;var t=(An=e.__c).__H;t&&(On===An?(t.__h=[],An.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=In,e.__N=e.i=void 0}))):(t.__h.forEach(rr),t.__h.forEach(or),t.__h=[],Tn=0)),On=An},Un.diffed=function(e){Bn&&Bn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Ln.push(t)&&Rn===Un.requestAnimationFrame||((Rn=Un.requestAnimationFrame)||nr)(er)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==In&&(e.__=e.__V),e.i=void 0,e.__V=In}))),On=An=null},Un.__c=function(e,t){t.some((function(e){try{e.__h.forEach(rr),e.__h=e.__h.filter((function(e){return!e.__||or(e)}))}catch(li){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Un.__e(li,e.__v)}})),Mn&&Mn(e,t)},Un.unmount=function(e){Dn&&Dn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{rr(e)}catch(n){t=n}})),n.__H=void 0,t&&Un.__e(t,n.__v))};var tr="function"==typeof requestAnimationFrame;function nr(e){var t,n=function(){clearTimeout(r),tr&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);tr&&(t=requestAnimationFrame(n))}function rr(e){var t=An,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),An=t}function or(e){var t=An;e.__c=e.__(),An=t}function ir(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function ar(e,t){return"function"==typeof t?t(e):t}function sr(e,t){for(var n in t)e[n]=t[n];return e}function lr(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 cr(e,t){this.props=e,this.context=t}function ur(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:lr(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}(cr.prototype=new E).isPureReactComponent=!0,cr.prototype.shouldComponentUpdate=function(e,t){return lr(this.props,e)||lr(this.state,t)};var dr=l.__b;l.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),dr&&dr(e)};var pr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function fr(e){function t(t){var n=sr({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=pr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var mr=function(e,t){return null==e?null:L(L(e).map(t))},hr={map:mr,forEach:mr,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},gr=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);gr(e,t,n,r)};var yr=l.unmount;function _r(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=sr({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return _r(e,t,n)}))),e}function br(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return br(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 wr(){this.__u=0,this.t=null,this.__b=null}function vr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function xr(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 kr(){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),yr&&yr(e)},(wr.prototype=new E).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=vr(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]=br(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)},wr.prototype.componentWillUnmount=function(){this.t=[]},wr.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]=_r(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&v(C,null,e.fallback);return o&&(o.__u&=-33),[v(C,null,t.__a?null:e.children),o]};var Cr=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 Er(e){return this.getChildContext=function(){return e.context},e.children}function Sr(e){var t=this,n=e.i;t.componentWillUnmount=function(){W(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)}}),W(v(Er,{context:t.context},e.__v),t.l)}function Nr(e,t){var n=v(Sr,{__v:e,i:t});return n.containerInfo=t,n}(kr.prototype=new E).__a=function(e){var t=this,n=vr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Cr(t,e,r)):o()};n?n(i):i()}},kr.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},kr.prototype.componentDidUpdate=kr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Cr(e,n,t)}))};var Tr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Ar=/^(?: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]/,Or=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Rr=/[A-Z0-9]/g,Pr="undefined"!=typeof document,Lr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Ir(e,t,n){return null==t.__k&&(t.textContent=""),W(e,t),"function"==typeof n&&n(),e?e.__c:null}function Ur(e,t,n){return V(e,t),"function"==typeof n&&n(),e?e.__c:null}E.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(E.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Fr=l.event;function jr(){}function Br(){return this.cancelBubble}function Mr(){return this.defaultPrevented}l.event=function(e){return Fr&&(e=Fr(e)),e.persist=jr,e.isPropagationStopped=Br,e.isDefaultPrevented=Mr,e.nativeEvent=e};var Dr,zr={enumerable:!1,configurable:!0,get:function(){return this.class}},Hr=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||Pr&&"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||Lr(t.type)?"onfocus"===a?o="onfocusin":"onblur"===a?o="onfocusout":Or.test(o)?o=a:-1===n.indexOf("-")&&Ar.test(o)?o=o.replace(Rr,"-$&").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",zr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Tr,Hr&&Hr(e)};var qr=l.__r;l.__r=function(e){qr&&qr(e),Dr=e.__c};var Wr=l.diffed;l.diffed=function(e){Wr&&Wr(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),Dr=null};var Vr={ReactCurrentDispatcher:{current:{readContext:function(e){return Dr.__n[e.__c].props.value}}}};function $r(e){return v.bind(null,e)}function Gr(e){return!!e&&e.$$typeof===Tr}function Yr(e){return Gr(e)&&e.type===C}function Zr(e){return Gr(e)?$.apply(null,arguments):e}function Jr(e){return!!e.__k&&(W(null,e),!0)}function Xr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Kr=function(e,t){return e(t)},Qr=function(e,t){return e(t)},eo=C;function to(e){e()}function no(e){return e}function ro(){return[!1,to]}var oo=$n,io=Gr;function ao(e,t){var n=t(),r=qn({h:{__:n,v:t}}),o=r[0].h,i=r[1];return $n((function(){o.__=n,o.v=t,so(o)&&i({h:o})}),[e,n,t]),Vn((function(){return so(o)&&i({h:o}),e((function(){so(o)&&i({h:o})}))}),[e]),n}function so(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 lo={useState:qn,useId:Qn,useReducer:Wn,useEffect:Vn,useLayoutEffect:$n,useInsertionEffect:oo,useTransition:ro,useDeferredValue:no,useSyncExternalStore:ao,startTransition:to,useRef:Gn,useImperativeHandle:Yn,useMemo:Zn,useCallback:Jn,useContext:Xn,useDebugValue:Kn,version:"17.0.2",Children:hr,render:Ir,hydrate:Ur,unmountComponentAtNode:Jr,createPortal:Nr,createElement:v,createContext:G,createFactory:$r,cloneElement:Zr,createRef:k,Fragment:C,isValidElement:Gr,isElement:io,isFragment:Yr,findDOMNode:Xr,Component:E,PureComponent:cr,memo:ur,forwardRef:fr,flushSync:Qr,unstable_batchedUpdates:Kr,StrictMode:eo,Suspense:wr,SuspenseList:kr,lazy:xr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vr};const co=Object.freeze(Object.defineProperty({__proto__:null,Children:hr,Component:E,Fragment:C,PureComponent:cr,StrictMode:eo,Suspense:wr,SuspenseList:kr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Vr,cloneElement:Zr,createContext:G,createElement:v,createFactory:$r,createPortal:Nr,createRef:k,default:lo,findDOMNode:Xr,flushSync:Qr,forwardRef:fr,hydrate:Ur,isElement:io,isFragment:Yr,isValidElement:Gr,lazy:xr,memo:ur,render:Ir,startTransition:to,unmountComponentAtNode:Jr,unstable_batchedUpdates:Kr,useCallback:Jn,useContext:Xn,useDebugValue:Kn,useDeferredValue:no,useEffect:Vn,useErrorBoundary:function(e){var t=Hn(Tn++,10),n=qn();return t.__=e,An.componentDidCatch||(An.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Qn,useImperativeHandle:Yn,useInsertionEffect:oo,useLayoutEffect:$n,useMemo:Zn,useReducer:Wn,useRef:Gn,useState:qn,useSyncExternalStore:ao,useTransition:ro,version:"17.0.2"},Symbol.toStringTag,{value:"Module"})),uo=e=>v("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},v("g",{clipPath:"url(#clip0_2383_2245)"},v("path",{d:"M0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.6608 29.6293C26.7649 29.1174 27.0229 27.663 26.1624 26.8024L12.7907 13.4307C11.9301 12.57 10.4757 12.8281 9.96369 13.9323L0.202679 36.442C-0.182768 37.2732 -0.00828658 38.2568 0.639604 38.9047Z",fill:"#FFE266"}),v("path",{d:"M19.4314 27.5018L2.84876 34.6411C2.2627 34.9129 1.57431 34.8051 1.09874 34.3757L0.202679 36.4421C-0.182768 37.2734 -0.00828658 38.2568 0.639604 38.9047C1.28749 39.5526 2.27104 39.7271 3.10223 39.3416L25.4444 29.7226C24.9297 29.5162 19.5151 27.463 19.4314 27.5018Z",fill:"#EFAA66"}),v("path",{d:"M26.3181 28.7173C27.8596 27.1758 25.6184 22.4355 21.3124 18.1295C17.0064 13.8234 12.2661 11.5823 10.7246 13.1238C9.18318 14.6652 11.4243 19.4055 15.7303 23.7115C20.0364 28.0176 24.7767 30.2587 26.3181 28.7173Z",fill:"#FFE266"}),v("path",{d:"M22.4126 26.7308C23.4237 25.7197 21.7859 22.4424 18.7543 19.4109C15.7228 16.3793 12.4455 14.7415 11.4344 15.7526C10.4232 16.7638 12.0611 20.0411 15.0926 23.0726C18.1242 26.1042 21.4014 27.742 22.4126 26.7308Z",fill:"#EFAA66"}),v("path",{d:"M24.9319 30.0073C22.4747 30.0073 18.6692 27.78 15.1683 24.2792C11.9894 21.1002 9.81107 17.5992 9.48367 15.1424C9.42522 14.7034 9.73353 14.3002 10.1725 14.2417C10.6111 14.1834 11.0148 14.4916 11.0732 14.9306C11.3522 17.0232 13.4048 20.2477 16.3024 23.1452C20.0047 26.8476 23.4188 28.4618 25.0232 28.4018C25.4652 28.3857 25.8386 28.7288 25.8563 29.1713C25.8738 29.6137 25.5294 29.9868 25.0868 30.0043C25.0359 30.0062 24.984 30.0073 24.9319 30.0073Z",fill:"#D0844B"}),v("path",{d:"M16.3577 17.6285C16.1695 17.4403 16.0243 17.2039 15.9436 16.9306L15.2021 14.4208C14.922 13.473 15.1748 12.4576 15.8616 11.7708L17.2095 10.4229C17.8963 9.73605 18.9118 9.48339 19.8596 9.76347L22.5594 10.5255L21.6488 7.2768C21.3908 6.40351 21.8896 5.48644 22.7629 5.22841C23.6362 4.97037 24.5532 5.4692 24.8113 6.34249L25.5528 8.85226C25.8328 9.80012 25.5801 10.8156 24.8934 11.5023L23.5455 12.8502C22.8587 13.5369 21.8432 13.7896 20.8955 13.5096L18.1681 12.6202L19.1061 15.9963C19.3642 16.8696 18.8653 17.7866 17.9921 18.0447C17.3919 18.222 16.771 18.0419 16.3577 17.6285Z",fill:"#CAB4EF"}),v("path",{d:"M22.5594 10.5256L19.8596 9.76358C19.0449 9.52286 18.1805 9.67602 17.5176 10.1598C17.7032 10.902 17.9393 11.8894 18.168 12.6202L20.8954 13.5096C21.7487 13.7617 22.6567 13.5819 23.3305 13.0424C23.0918 12.2954 22.7865 11.2761 22.5594 10.5256Z",fill:"#A183E2"}),v("path",{d:"M26.8006 16.4551C26.9888 16.6433 27.2253 16.7885 27.4985 16.8692L30.0083 17.6106C30.956 17.8906 31.9715 17.638 32.6583 16.9512L34.0062 15.6033C34.693 14.9164 34.9457 13.901 34.6656 12.9532L33.9036 10.2534L37.1523 11.1639C38.0256 11.4219 38.9427 10.9231 39.2008 10.0498C39.4588 9.17651 38.96 8.25944 38.0867 8.00141L35.5769 7.25994C34.6291 6.97994 33.6136 7.23268 32.9269 7.91938L31.579 9.26728C30.8922 9.95406 30.6396 10.9695 30.9196 11.9173L31.8089 14.6447L28.4328 13.7066C27.5595 13.4486 26.6425 13.9474 26.3844 14.8207C26.2071 15.4209 26.3872 16.0418 26.8006 16.4551Z",fill:"#F7C4DB"}),v("path",{d:"M34.6649 12.9532L33.9029 10.2533C33.1175 10.0841 32.0186 9.8675 31.2346 9.69165C30.8149 10.3375 30.692 11.1496 30.9189 11.9173L31.8082 14.6447C32.6214 14.8455 33.4818 14.984 34.2625 15.3037C34.7512 14.6396 34.9067 13.7713 34.6649 12.9532Z",fill:"#EF8BBD"}),v("path",{d:"M30.639 2.8965C30.1162 3.4193 29.2684 3.4193 28.7456 2.8965C28.2228 2.3737 28.2228 1.52599 28.7456 1.00319C29.2684 0.480383 30.1162 0.480383 30.639 1.00319C31.1618 1.52607 31.1618 2.3737 30.639 2.8965Z",fill:"#FFA585"}),v("path",{d:"M32.6591 25.138C33.3985 25.138 33.9979 24.5386 33.9979 23.7992C33.9979 23.0598 33.3985 22.4604 32.6591 22.4604C31.9197 22.4604 31.3203 23.0598 31.3203 23.7992C31.3203 24.5386 31.9197 25.138 32.6591 25.138Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#78EAC4"}),v("path",{d:"M25.3352 24.9889C24.8124 25.5117 23.9647 25.5117 23.4419 24.9889C22.9191 24.4661 22.9191 23.6184 23.4419 23.0956C23.9647 22.5728 24.8124 22.5728 25.3352 23.0956C25.858 23.6185 25.858 24.4661 25.3352 24.9889Z",fill:"#8BB6EF"}),v("path",{d:"M7.28893 28.9138C7.18316 28.9138 7.07556 28.8927 6.97228 28.8482C6.5655 28.6731 6.37771 28.2014 6.55291 27.7946L7.56837 25.4361C7.74349 25.0294 8.2153 24.8413 8.62191 25.0167C9.02869 25.1919 9.21648 25.6635 9.04128 26.0703L8.02582 28.4288C7.8952 28.7322 7.59956 28.9138 7.28893 28.9138Z",fill:"white"}),v("path",{d:"M9.44127 23.916C9.33551 23.916 9.22798 23.895 9.12454 23.8505C8.71785 23.6753 8.53005 23.2037 8.70526 22.7968L9.01477 22.0779C9.18989 21.6713 9.66137 21.4832 10.0684 21.6586C10.4751 21.8337 10.6629 22.3054 10.4878 22.7122L10.1782 23.4312C10.0475 23.7344 9.75182 23.916 9.44127 23.916Z",fill:"white"}),v("path",{d:"M15.7341 0.651858L16.3927 2.50396C16.4209 2.58326 16.4767 2.64613 16.5472 2.67788L18.1927 3.41926C18.4251 3.52399 18.4251 3.89436 18.1927 3.99916L16.5472 4.74054C16.4767 4.7723 16.4209 4.83516 16.3927 4.91438L15.7341 6.76648C15.6411 7.02813 15.3119 7.02813 15.2189 6.76648L14.5603 4.91438C14.532 4.83508 14.4762 4.77222 14.4057 4.74054L12.7603 3.99916C12.5278 3.89444 12.5278 3.52407 12.7603 3.41926L14.4057 2.67788C14.4762 2.64613 14.532 2.58326 14.5603 2.50396L15.2189 0.651858C15.3119 0.390136 15.6411 0.390136 15.7341 0.651858Z",fill:"#F7C4DB"}),v("path",{d:"M38.0472 17.3018L38.5357 18.6756C38.5567 18.7344 38.598 18.781 38.6503 18.8046L39.8709 19.3545C40.0434 19.4322 40.0434 19.7069 39.8709 19.7846L38.6503 20.3345C38.598 20.3581 38.5567 20.4047 38.5357 20.4635L38.0472 21.8373C37.9781 22.0314 37.734 22.0314 37.665 21.8373L37.1764 20.4635C37.1555 20.4047 37.1141 20.3581 37.0618 20.3345L35.8413 19.7846C35.6688 19.7069 35.6688 19.4322 35.8413 19.3545L37.0618 18.8046C37.1141 18.781 37.1555 18.7344 37.1764 18.6756L37.665 17.3018C37.734 17.1077 37.9781 17.1077 38.0472 17.3018Z",fill:"#CAB4EF"}),v("path",{d:"M28.9622 6.95622C29.3048 6.95622 29.5826 6.67847 29.5826 6.33584C29.5826 5.99321 29.3048 5.71545 28.9622 5.71545C28.6196 5.71545 28.3418 5.99321 28.3418 6.33584C28.3418 6.67847 28.6196 6.95622 28.9622 6.95622Z",fill:"#78EAC4"}),v("path",{d:"M38.3556 2.49627C38.4328 1.86823 37.9862 1.29654 37.3581 1.21937C36.73 1.14221 36.1583 1.58878 36.0811 2.21683C36.004 2.84487 36.4506 3.41656 37.0787 3.49373C37.7068 3.57089 38.2785 3.12432 38.3556 2.49627Z",fill:"#8BB6EF"})),v("defs",null,v("clipPath",{id:"clip0_2383_2245"},v("rect",{width:40,height:40,fill:"white"}))));var po=0;function fo(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:--po,__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 mo={isFetching:!1,isInitialized:!1,getOffers:()=>[],fetchAssessments:()=>Promise.resolve(),benefitsPlanPersonalisationAssessmentId:"",isAppEnabled:!1,identity:{email:"",phoneNumber:"",verifiedPhoneNumber:""},featureFlags:{marketplaceScheme:{scheme:"promotion"},marketplaceSubNavigation:!1},hostInformation:{channel:"",client:"",source:"",experiment:"",treatment:"",workflowsJourneyType:ne.BenefitsOnboarding,workflowsInstanceId:""},updateIdentity:e=>Promise.resolve(),getIdentityRegistrationStatus:()=>"Unregistered",getWorkplaceLinkingStatus:()=>"Unlinked",offersProgress:{update:()=>({}),hasCompletedAnyOffers:()=>!1,isOfferCompleted:()=>!1,isOfferProgressed:()=>!1,canOfferSkipToEstimate:()=>!1}},ho=G(mo),go=({children:e,...t})=>{const[n,r]=qn(!1),[o,i]=qn(),a=Gn("Unregistered"),s=Gn("Unlinked"),l=Gn([]),c=Gn({}),u=Zn((()=>"allowance"===(null==o?void 0:o.featureFlags.marketplaceScheme)),[null==o?void 0:o.featureFlags.marketplaceScheme]),d=Jn((()=>a.current),[]),p=Jn((()=>s.current),[]),f=Jn((()=>l.current),[]),m=Jn((()=>Object.entries(c.current).some((e=>"Perks"!==e[0]&&e[1].isCompleted))),[]),h=Jn(((e,t,n)=>{c.current[e]={isEnrolled:t,isCompleted:n}}),[]),g=Jn((e=>{e.offers.filter((e=>void 0!==e.isAccepted)).forEach((e=>{var t,n;const r="Eoi"===(null==(t=e.content)?void 0:t.template)||"Simple"===(null==(n=e.content)?void 0:n.template)||void 0;h(e.name,!!e.isAccepted,r)}))}),[h]),y=Jn((async()=>{const e=(await Cn.workplaceBackend.getAssessments()).offers;if(l.current=(e=>{const t=e.find((e=>"Perks"===e.name));return t?[...e.filter((e=>e!==t)).slice(0,4),t]:e.slice(0,5)})((null==o?void 0:o.offers.map((t=>{var n,r;if("Simple"===(null==(n=t.content)?void 0:n.template)||"Eoi"===(null==(r=t.content)?void 0:r.template))return t;const o=e.find((e=>e.name.toLowerCase()===(e=>{switch(e){case"SalaryPackaging":return"NovatedLease";case"SalaryPackagingDevices":return"Devices";case"HealthInsurance":return"HealthInsurance";case"Energy":return"Energy";case"HomeLoan":return"HomeLoan";case"Banking":return"SavingsAccount";default:return""}})(t.name).toLowerCase()));return(null==o?void 0:o.isEligible)?{...t,content:o.content}:void 0})).filter((e=>!!e)))??[]),!u)return;const t=l.current.filter((e=>{var t;return"Assessment"===(null==(t=e.content)?void 0:t.template)}));t.length<=0||await Cn.workplaceBackend.getAllowanceProductsStatus(t.map((e=>e.content.assessmentId))).then((e=>{e.filter((e=>!!e.status)).forEach((e=>{const n=t.find((t=>t.content.assessmentId===e.activityId)).name;h(n,!0,!0)}))})).catch()}),[null==o?void 0:o.offers,u,h]),_=Jn((e=>{var t;return!0===(null==(t=c.current[e])?void 0:t.isCompleted)}),[c]),b=Jn((e=>!!c.current[e]),[c]),w=Jn((e=>u&&_(e)),[u,_]),v=Jn((async e=>{e?("Unregistered"===a.current&&(a.current="NewlyRegistered"),"Unlinked"===s.current&&(s.current="NewlyLinked")):a.current="RegistrationAbandoned"}),[]),x=Zn((()=>{return e=(null==o?void 0:o.identity.email)??"",t=m(),{joinBenefits:{desktopImageUrl:re,mobileImageUrl:oe,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:fo(uo,{}),subTitle:fo("span",{children:["As an additional bonus, you have been allocated an allowance of up to ",fo("b",{children:"$1,300"})," as part of your benefits program. Set up your benefits today to be eligible."]})},buttonText:"Get Started"},setUpBenefits:{title:"Unlock your $1,300 Flare Benefits Allowance",description:"You've been allocated up to $1,300 for reimbursement as part of your Flare Benefits Allowance. Make your selections today, to be eligible for reimbursement later.",buttonText:"Set up your benefits",progress:{title:"See how it works",steps:[{title:"Join your workplace benefits program",completed:!0},{title:"Select the benefits you want to include as part of your allowance.",completed:!1},{title:"Purchase or switch to an eligible product",completed:!1},{title:"Keep your product for 90 days and we'll send you a Flare gift card",completed:!1}]},termsAndConditions:()=>fo("div",{className:"flex flex-col gap-2",children:fo("span",{children:["Allowance offer expires today.",fo("br",{})," Exclusions and limitations apply. See full"," ",fo("a",{target:"_blank",rel:"noreferrer",href:"https://www.flarehr.com/flare-benefits-allowance-terms",children:"T&Cs"}),"."]})})},summary:t?{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 setup",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 setup"}};var e,t}),[null==o?void 0:o.identity.email,m]),k=Zn((()=>{if(!o)return mo;const e=o.offers.some((e=>"Perks"===e.name));a.current=o.identity.isRegistered?"PreviouslyRegistered":"Unregistered",s.current=o.workplace.isLinkedWithIdentity?"PreviouslyLinked":"Unlinked";const r={email:o.identity.email,phoneNumber:o.identity.phoneNumber??"",verifiedPhoneNumber:o.identity.verifiedPhoneNumber??""};return{isFetching:!1,isInitialized:n,getOffers:f,fetchAssessments:y,benefitsPlanPersonalisationAssessmentId:"benefits-personalisation-assessment",isAppEnabled:e,identity:r,featureFlags:{marketplaceScheme:"promotion"===o.featureFlags.marketplaceScheme?{scheme:"promotion"}:{scheme:"allowance",content:x},marketplaceSubNavigation:o.featureFlags.marketplaceSubNavigation},hostInformation:{...t.hostInformation,treatment:o.featureFlags.marketplaceScheme},updateIdentity:v,getIdentityRegistrationStatus:d,getWorkplaceLinkingStatus:p,offersProgress:{hasCompletedAnyOffers:m,update:h,isOfferCompleted:_,isOfferProgressed:b,canOfferSkipToEstimate:w}}}),[o,n,f,y,x,t.hostInformation,v,d,p,m,h,_,b,w]);return Vn((()=>{(async()=>{const e=await kn.backend.init();i(e),g(e),r(!0)})()}),[g]),fo(ho.Provider,{value:k,children:e})},yo=e=>{const t=null==e?void 0:e.match(/^(https:\/\/)?(test|autodev|sandbox)?-?partner\.flarehr\.com$/);return t&&t[2]?t[2]:"prod"};const _o={init(e){!function(e){try{return t=window,n=document,r="clarity",o="script",i=e,void(n.getElementById("clarity-script")||(t[r]=t[r]||function(){(t[r].q=t[r].q||[]).push(arguments)},(a=n.createElement(o)).async=1,a.src="https://www.clarity.ms/tag/"+i+"?ref=npm",a.id="clarity-script",(s=n.getElementsByTagName(o)[0]).parentNode.insertBefore(a,s)))}catch(l){return}var t,n,r,o,i,a,s}(e)},setTag(e,t){window.clarity("set",e,t)},identify(e,t,n,r){window.clarity("identify",e,t,n,r)},consent(e=!0){window.clarity("consent",e)},upgrade(e){window.clarity("upgrade",e)},event(e){window.clarity("event",e)}},bo=({children:e})=>fo(C,{children:e}),wo=({children:e})=>fo(C,{children:e}),vo=({open:e,children:t})=>{const n=Zn((()=>lo.Children.toArray(t).find((e=>e.type===bo))),[t]),r=Zn((()=>lo.Children.toArray(t).find((e=>e.type===wo))),[t]),[o,i]=qn(!e);return Vn((()=>{let t;return e?i(!1):t=setTimeout((()=>{i(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),fo("div",{hidden:o,children:fo("div",{className:"z-50 fixed flex items-center justify-center w-screen h-screen inset-0 bg-white overflow-hidden transition-opacity "+(e?"ease-out duration-300 opacity-100":"ease-in duration-200 opacity-0"),children:[n,fo("div",{className:"mt-4",children:r})]})})},xo=e=>fo("span",{className:"inline-flex",children:fo("span",{className:"animate-spin",children:fo("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:[fo("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"}),fo("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"})]})})}),ko='/*! 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}.\\!visible{visibility:visible!important}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.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}.m-4{margin:1rem}.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-3{margin-right:.75rem}.mt-1{margin-top:.25rem}.mt-2{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-16{height:4rem}.h-4{height:1rem}.h-40{height:10rem}.h-5{height:1.25rem}.h-8{height:2rem}.h-\\[90\\%\\]{height:90%}.h-full{height:100%}.h-screen{height:100vh}.max-h-10{max-height:2.5rem}.max-h-4{max-height:1rem}.max-h-8{max-height:2rem}.min-h-10{min-height:2.5rem}.min-h-4{min-height:1rem}.min-h-8{min-height:2rem}.w-10{width:2.5rem}.w-12{width:3rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-8{width:2rem}.w-full{width:100%}.w-screen{width:100vw}.min-w-10{min-width:2.5rem}.min-w-12{min-width:3rem}.min-w-4{min-width:1rem}.min-w-8{min-width:2rem}.max-w-10{max-width:2.5rem}.max-w-12{max-width:3rem}.max-w-20{max-width:5rem}.max-w-4{max-width:1rem}.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}.scale-100{--tw-scale-x:1;--tw-scale-y:1}.scale-100,.scale-150{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))}.scale-150{--tw-scale-x:1.5;--tw-scale-y:1.5}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(1turn)}}.animate-spin{animation:spin 1s linear infinite}.cursor-auto{cursor:auto}.cursor-pointer{cursor:pointer}.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}.gap-8{gap:2rem}.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-gray-200{--tw-bg-opacity:1;background-color:rgb(229 231 235/var(--tw-bg-opacity))}.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-1{padding:.25rem}.p-2{padding:.5rem}.p-2\\.5{padding:.625rem}.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-\\[0\\.5rem\\]{font-size:.5rem}.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)}.transition-all{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity{transition-duration:.15s;transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1)}.delay-300{transition-delay:.3s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-700{transition-duration:.7s}.duration-\\[600ms\\]{transition-duration:.6s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.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-100:hover{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity))}.hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity))}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-sky-50\\/50:hover{background-color:#f0f9ff80}.hover\\:before\\:absolute:hover:before{content:var(--tw-content);position:absolute}.hover\\:before\\:h-16:hover:before{content:var(--tw-content);height:4rem}.hover\\:before\\:w-16:hover:before{content:var(--tw-content);width:4rem}.hover\\:before\\:cursor-default:hover:before{content:var(--tw-content);cursor:default}.hover\\:before\\:cursor-pointer:hover:before{content:var(--tw-content);cursor:pointer}.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-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\\:w-3\\/4{width:75%}}';const Co=e=>{const[t,n]=qn(!1);return fo("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:[fo("div",{class:""+(t?"invisible":""),children:e.children}),t&&fo("div",{class:"absolute",children:fo(xo,{theme:"light"})})]})},Eo=({icon:e,children:t,className:n,...r})=>fo("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:fo("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&fo("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&fo("span",{className:"text-left text-base",children:t})]})}),So=(e,t)=>{switch(!0){case"benefits-setup-started"===e:return kn.backend.command({eventType:"Started"},t);case"membership-accepted"===e:return kn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t);case"membership-declined"===e:return kn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t);case"sign-up-viewed"===e:return kn.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}},t);case"sign-up-completed"===e:return(async()=>{await kn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t),await kn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0},t)})();case"sign-up-declined"===e:return(async()=>{await kn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1},t),await kn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t)})();case"marketplace-started"===e:return kn.workplaceBackend.track("Marketplace Started",{},t);case"object"==typeof e&&"offer-selected"===e.type:return kn.workplaceBackend.track("MarketplaceOffer Selected",{offer:e.offerName},t);case"object"==typeof e&&"offer-viewed"===e.type:return kn.backend.command({...e,eventType:"OfferViewed"},t);case"object"==typeof e&&"offer-accepted"===e.type:return kn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}},t);case"object"==typeof e&&"offer-declined"===e.type:return kn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}},t);case"object"==typeof e&&"offer-progressed"===e.type:return kn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data},t);case"object"==typeof e&&"summary-viewed"===e.type:return kn.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant},t);case"completed"===e:return kn.backend.command({eventType:"Completed"},t)}return Promise.resolve()},No=()=>({trace:So});var To=Object.defineProperty,Ao=(e,t,n)=>(((e,t,n)=>{t in e?To(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Oo=new class{constructor(){Ao(this,"current",this.detect()),Ao(this,"handoffState","pending"),Ao(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}},Ro=(e,t)=>{Oo.isServer?Vn(e,t):$n(e,t)};function Po(e){let t=Gn(e);return Ro((()=>{t.current=e}),[e]),t}let Lo=function(e){let t=Po(e);return lo.useCallback(((...e)=>t.current(...e)),[t])};function Io(){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 function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{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=Io();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 Uo(){let[e]=qn(Io);return Vn((()=>()=>e.dispose()),[e]),e}function Fo(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in co&&co.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=qn(Oo.isHandoffComplete);return t&&!1===Oo.isHandoffComplete&&n(!1),Vn((()=>{!0!==t&&n(!0)}),[t]),Vn((()=>Oo.handoff()),[]),!e&&t}function jo(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,jo),r}let Bo=Symbol();function Mo(...e){let t=Gn(e);Vn((()=>{t.current=e}),[e]);let n=Lo((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[Bo])))?void 0:n}function Do(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var zo,Ho,qo=((Ho=qo||{})[Ho.None=0]="None",Ho[Ho.RenderStrategy=1]="RenderStrategy",Ho[Ho.Static=2]="Static",Ho),Wo=((zo=Wo||{})[zo.Unmount=0]="Unmount",zo[zo.Hidden=1]="Hidden",zo);function Vo({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Go;let l=Yo(t,e);if(i)return $o(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return $o(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return jo(e?0:1,{0:()=>null,1:()=>$o({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return $o(l,n,r,a,s)}function $o(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Xo(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===C&&Object.keys(Jo(l)).length>0){if(!Gr(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)=>Do(null==e?void 0:e.className(...t),l.className):Do(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Zr(u,Object.assign({},Yo(u.props,Jo(Xo(l,["ref"]))),d,c,{ref:o(u.ref,c.ref)},n))}return v(i,Object.assign({},Xo(l,["ref"]),i!==C&&c,i!==C&&d),u)}function Go(...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 Yo(...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 Zo(e){var t;return Object.assign(fr(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Jo(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Xo(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Ko=G(null);Ko.displayName="OpenClosedContext";var Qo=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Qo||{});function ei(){return Xn(Ko)}function ti({value:e,children:t}){return lo.createElement(Ko.Provider,{value:e},t)}function ni(){let e=Gn(!1);return Ro((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function ri(e,...t){e&&t.length>0&&e.classList.add(...t)}function oi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function ii(e,t,n,r){let o=n?"enter":"leave",i=Io(),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=jo(o,{enter:()=>t.enter,leave:()=>t.leave}),l=jo(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=jo(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return oi(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),ri(e,...t.base,...s,...c),i.nextFrame((()=>{oi(e,...t.base,...s,...c),ri(e,...t.base,...s,...l),function(e,t){let n=Io();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,(()=>(oi(e,...t.base,...s),ri(e,...t.base,...t.entered),a())))})),i.dispose}function ai(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let si=G(null);si.displayName="TransitionContext";var li,ci=((li=ci||{}).Visible="visible",li.Hidden="hidden",li);let ui=G(null);function di(e){return"children"in e?di(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function pi(e,t){let n=Po(e),r=Gn([]),o=ni(),i=Uo(),a=Lo(((e,t=Wo.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(jo(t,{[Wo.Unmount](){r.current.splice(a,1)},[Wo.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!di(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=Lo((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,Wo.Unmount)})),l=Gn([]),c=Gn(Promise.resolve()),u=Gn({enter:[],leave:[],idle:[]}),d=Lo(((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=Lo(((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 Zn((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}function fi(){}ui.displayName="NestingContext";let mi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function hi(e){var t;let n={};for(let r of mi)n[r]=null!=(t=e[r])?t:fi;return n}let gi=qo.RenderStrategy;let yi=Zo((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=Gn(null),s=Mo(a,t);Fo();let l=ei();if(void 0===n&&null!==l&&(n=(l&Qo.Open)===Qo.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=qn(n?"visible":"hidden"),d=pi((()=>{u("hidden")})),[p,f]=qn(!0),m=Gn([n]);Ro((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Zn((()=>({show:n,appear:r,initial:p})),[n,r,p]);Vn((()=>{if(n)u("visible");else if(di(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},y=Lo((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),_=Lo((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return lo.createElement(ui.Provider,{value:d},lo.createElement(si.Provider,{value:h},Vo({ourProps:{...g,as:C,children:lo.createElement(_i,{ref:s,...g,...i,beforeEnter:y,beforeLeave:_})},theirProps:{},defaultTag:C,features:gi,visible:"visible"===c,name:"Transition"})))})),_i=Zo((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=Gn(null),y=Mo(g,t),_=null==(n=h.unmount)||n?Wo.Unmount:Wo.Hidden,{show:b,appear:w,initial:v}=function(){let e=Xn(si);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]=qn(b?"visible":"hidden"),C=function(){let e=Xn(ui);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:E,unregister:S}=C;Vn((()=>E(g)),[E,g]),Vn((()=>{if(_===Wo.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):jo(x,{hidden:()=>S(g),visible:()=>E(g)})}),[x,g,E,S,b,_]);let N=Po({base:ai(h.className),enter:ai(l),enterFrom:ai(c),enterTo:ai(u),entered:ai(d),leave:ai(p),leaveFrom:ai(f),leaveTo:ai(m)}),T=function(e){let t=Gn(hi(e));return Vn((()=>{t.current=hi(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=Fo();Vn((()=>{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]=qn(e),r=ni(),o=Jn((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Jn((e=>Boolean(t&e)),[t]),a=Jn((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Jn((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=Lo((e=>jo(e,{enter:()=>{L.addFlag(Qo.Opening),T.current.beforeEnter()},leave:()=>{L.addFlag(Qo.Closing),T.current.beforeLeave()},idle:()=>{}}))),U=Lo((e=>jo(e,{enter:()=>{L.removeFlag(Qo.Opening),T.current.afterEnter()},leave:()=>{L.removeFlag(Qo.Closing),T.current.afterLeave()},idle:()=>{}}))),F=pi((()=>{k("hidden"),S(g)}),C),j=Gn(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=ni(),s=Uo(),l=Po(n);Ro((()=>{e&&(l.current="enter")}),[e]),Ro((()=>{let e=Io();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(ii(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:N,direction:P,onStart:Po((e=>{j.current=!0,F.onStart(g,e,I)})),onStop:Po((e=>{j.current=!1,F.onStop(g,e,U),"leave"===e&&!di(F)&&(k("hidden"),S(g))}))});let B=h,M={ref:y};return R?B={...B,className:Do(h.className,...N.current.enter,...N.current.enterFrom)}:j.current&&(B.className=Do(h.className,null==(r=g.current)?void 0:r.className),""===B.className&&delete B.className),lo.createElement(ui.Provider,{value:F},lo.createElement(ti,{value:jo(x,{visible:Qo.Open,hidden:Qo.Closed})|L.flags},Vo({ourProps:M,theirProps:B,defaultTag:"div",features:gi,visible:"visible"===x,name:"Transition.Child"})))})),bi=Zo((function(e,t){let n=null!==Xn(si),r=null!==ei();return lo.createElement(lo.Fragment,null,!n&&r?lo.createElement(yi,{ref:t,...e}):lo.createElement(_i,{ref:t,...e}))})),wi=Object.assign(yi,{Child:bi,Root:yi});const vi=({children:e})=>{const t=lo.Children.toArray(e),n=t.find((e=>e.type===xi)),r=t.find((e=>e.type===ki));return fo(wi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:fo("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[fo(wi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&fo("div",{class:"flex items-center h-full",children:n})}),fo(wi,{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&&fo("div",{class:"flex items-center h-full",children:r})})]})})},xi=({children:e})=>fo(C,{children:e}),ki=({children:e})=>fo(C,{children:e});vi.Top=xi,vi.Bottom=ki;const Ci=e=>{const{trace:t}=No(),{featureFlags:{marketplaceScheme:n},hostInformation:{experiment:r,treatment:o}}=Xn(ho),i="allowance"===n.scheme?n.content.joinBenefits:void 0;return Vn((()=>{t("benefits-setup-started",{experiment:r,treatment:o})}),[r,t,o]),fo(C,{children:i&&fo(vi,{children:[fo(vi.Top,{children:[fo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.desktopImageUrl}),fo("img",{class:"max-w-[30rem] w-full md:hidden",src:i.mobileImageUrl})]}),fo(vi.Bottom,{children:fo("div",{children:[fo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),fo("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:i.description}),fo(Eo,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 216, 77, 0.10) 0%, rgba(255, 135, 111, 0.10) 100%)"},icon:i.specialBanner.icon,children:fo("div",{children:[fo("p",{className:"font-semibold text-base text-gray-900",children:i.specialBanner.title}),fo("span",{className:"font-normal text-base text-gray-900",children:i.specialBanner.subTitle})]})}),fo(Co,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{e.onContinue()},children:i.buttonText})]})})]})})},Ei=""+("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),Si=({title:e,className:t,children:n,...r})=>{var o;const[i,a]=qn(!1),s=Gn(null);return fo("div",{className:`border border-2 border-gray-300 p-2 rounded-md overflow-hidden w-full ${t??""}`,...r,children:[fo("div",{className:"mx-2 flex justify-between cursor-pointer",onClick:Jn((()=>{a(!i)}),[i]),children:[fo("span",{className:"text-base text-left font-semibold text-primary-base",children:e}),fo("span",{className:"text-base text-left font-semibold text-gray-500",children:i?"-":"+"})]}),fo("div",{ref:s,className:"flex justify-center transition-all ease-in-out duration-1000",style:{height:i?`${(null==(o=null==s?void 0:s.current)?void 0:o.scrollHeight)??0}px`:"0px",opacity:i?1:0},children:n})]})},Ni=({className:e,children:t})=>fo("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),Ti=({className:e,children:t})=>fo("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),Ai=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"})),Oi=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return fo("div",{...n,children:[e&&fo("h1",{className:"text-lg font-semibold mb-4",children:e}),fo("ol",{children:t.map(((e,t)=>{const n=o===t;return fo("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:fo("div",{className:"flex font-medium w-full",children:[fo("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?fo(Ai,{className:"w-4 h-4 text-white"}):t+1}),fo("div",{children:[fo("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),fo("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},t)}))})]})},Ri=()=>fo("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[fo("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:Ei}),fo("div",{className:"flex flex-col gap-1",children:[fo("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),fo("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),fo("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 ","->"]})]})]}),Pi=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r},hostInformation:{experiment:o,treatment:i}}=Xn(ho),{trace:a}=No(),s=Zn((()=>{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]);Vn((()=>{(async()=>{await a({type:"summary-viewed",data:{summaryVariant:s}},{experiment:o,treatment:i})})()}),[o,i,s,a]);const l=Jn((async()=>{await a("completed",{experiment:o,treatment:i}),await e()}),[o,i,e,a]),c="allowance"===r.scheme?r.content.summary:void 0;return fo(C,{children:c&&fo(vi,{children:[fo(vi.Top,{children:fo("div",{className:"flex flex-col gap-4",children:[fo(Ni,{children:c.title}),fo(Ti,{children:c.description})]})}),fo(vi.Bottom,{children:fo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[c.progress&&fo(Si,{className:"lg:w-3/4",title:c.progress.title,children:fo(Oi,{steps:c.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),fo(Co,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:l,children:c.buttonText}),n&&fo(Ri,{})]})})]})})},Li=e=>{Vn(e,[])},Ii=e=>new Promise((t=>setTimeout(t,e)));function Ui(){return Ui=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},Ui.apply(null,arguments)}function Fi(e,t){return(Fi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ji(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 To=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Ao=/\\([\u000b\u0020-\u00ff])/g,Oo=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,Ro=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(!Oo.test(r))throw new TypeError("invalid media type");var o=new Po(r.toLowerCase());if(-1!==n){var i,a,s;for(To.lastIndex=n;a=To.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(Ao,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function Po(e){this.parameters=Object.create(null),this.type=e}var Lo=new Map,Io=function(e){return e.cloneNode(!0)},Uo=function(){return"file:"===window.location.protocol},Fo=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=Ro(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(Uo()?"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||Uo()&&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()},jo={},Mo=function(e,t){jo[e]=jo[e]||[],jo[e].push(t)},Bo=function(e,t,n){if(Lo.has(e)){var r=Lo.get(e);if(void 0===r)return void Mo(e,n);if(r instanceof SVGSVGElement)return void n(null,Io(r))}Lo.set(e,void 0),Mo(e,n),Fo(e,t,(function(t,n){var r;t?Lo.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&Lo.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(jo[e])){var n=Lo.get(e),r=jo[e][t];n instanceof SVGSVGElement&&r(null,Io(n)),n instanceof Error&&r(n),t===jo[e].length-1&&delete jo[e]}}),0)},n=0,r=jo[e].length;n<r;n++)t(n)}(e)}))},Do=function(e,t,n){Fo(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)}))},zo=0,Ho=[],qo={},Wo="http://www.w3.org/1999/xlink",Vo=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Ho.indexOf(e))return Ho.splice(Ho.indexOf(e),1),void(e=null);Ho.push(e),e.setAttribute("src",""),(r?Bo:Do)(s,o,(function(r,o){if(!o)return Ho.splice(Ho.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 d=e.getAttribute("width");d&&o.setAttribute("width",d);var u=e.getAttribute("height");u&&o.setAttribute("height",u);var p=Array.from(new Set(No(No(No([],(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+"-"+ ++zo,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(Wo,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,d=i.length;c<d;c++)i[c].setAttributeNS(Wo,"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"),C=[],S=0,E=k.length;S<E;S++)(x=k[S].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[S].innerText||k[S].textContent)&&C.push(v),o.removeChild(k[S]));if(C.length>0&&("always"===t||"once"===t&&!qo[s])){for(var N=0,T=C.length;N<T;N++)new Function(C[N])(window);qo[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",Wo),i(o),!e.parentNode)return Ho.splice(Ho.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Ho.splice(Ho.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},$o={exports:{}};function Go(){}function Yo(){}Yo.resetWarningCache=Go;$o.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:Yo,resetWarningCache:Go};return n.PropTypes=n,n}();var Zo=$o.exports,Jo=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],Xo="http://www.w3.org/2000/svg",Ko="http://www.w3.org/1999/xlink",Qo=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}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,Eo(n,r);var o=t.prototype;return o.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,d=o.title,u=o.useRequestCache,p=this.props.onError,f=this.props.beforeInjection,m=this.props.afterInjection,h=this.props.wrapper;"svg"===h?((n=document.createElementNS(Xo,h)).setAttribute("xmlns",Xo),n.setAttribute("xmlns:xlink",Ko),r=document.createElementNS(Xo,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,d=void 0===c||c,u=n.evalScripts,p=void 0===u?"never":u,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++)Vo(e[y],p,g,d,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++_&&o(_)}));else e?Vo(e,p,g,d,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(d){var r=e.querySelector(":scope > title");r&&e.removeChild(r);var o=document.createElement("title");o.innerHTML=d,e.prepend(o)}try{f(e)}catch(a){g(a)}},cacheRequests:u,evalScripts:a,httpRequestWithCredentials:s,renumerateIRIElements:l})}},o.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},o.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},o.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})(So({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},o.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},o.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(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,Jo);return v(r,So({},o,{ref:this.refCallback},"svg"===r?{xmlns:Xo,xmlnsXlink:Ko}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(S);Qo.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},Qo.propTypes={afterInjection:Zo.func,beforeInjection:Zo.func,desc:Zo.string,evalScripts:Zo.oneOf(["always","once","never"]),fallback:Zo.oneOfType([Zo.func,Zo.object,Zo.string]),httpRequestWithCredentials:Zo.bool,loading:Zo.oneOfType([Zo.func,Zo.object,Zo.string]),onError:Zo.func,renumerateIRIElements:Zo.bool,src:Zo.string.isRequired,title:Zo.string,useRequestCache:Zo.bool,wrapper:Zo.oneOf(["div","span","svg"])};const ei=({visible:e,children:t})=>{const n=Vn(e);return e&&!n.current&&(n.current=!0),n.current?uo("div",{hidden:!e,children:t}):null},ti=({icon:e})=>"string"==typeof e?uo(Qo,{src:e,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")}}):uo("div",{className:"w-6 h-6 max-w-6 max-h-6 min-w-6 min-h-6",children:e}),ni=({label:e,icon:t})=>uo("div",{className:"flex items-center flex-col",children:[t,uo("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2 mt-2",children:e})]}),ri=({children:e})=>uo(C,{children:e}),oi=({selectedIndex:e,onChange:t,children:n})=>{const r=Gn((()=>fr.toArray(n).filter((e=>e.type===ni))),[n]),o=Gn((()=>fr.toArray(n).filter((e=>e.type===ri))),[n]);return Co((()=>{o.length>0&&(null==t||t(0))})),uo("div",{children:[uo("div",{className:"flex items-baseline md:mb-4",children:r.map(((n,r)=>uo("div",{onClick:()=>null==t?void 0:t(r),className:`\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 ${r===e?"text-primary-base":"text-gray-400"}\n hover:before:content-[''] \n ${o.length>0?"hover:before:cursor-pointer":"hover:before:cursor-default"} \n hover:before:w-16 hover:before:h-16 hover:before:absolute\n `,children:n},n.key)))}),o.map(((t,n)=>uo(ei,{visible:n===e,children:t},t.key)))]})},ii=({className:e,children:t})=>uo("h1",{className:`text-2xl md:text-3xl font-bold ${e??""}`,children:t}),ai=({className:e,children:t})=>uo("h3",{class:`text-base md:text-lg text-gray-600 ${e??""}`,children:t}),si=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"})),li=({title:e,steps:t,...n})=>{const r=t.length,o=t.filter((e=>e.completed)).length;return uo("div",{...n,children:[e&&uo("h1",{className:"text-lg font-semibold mb-4",children:e}),uo("ol",{children:t.map(((e,t)=>{const n=o===t;return uo("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:uo("div",{className:"flex font-medium w-full",children:[uo("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?uo(si,{className:"w-4 h-4 text-white"}):t+1}),uo("div",{children:[uo("h4",{className:"text-sm text-left font-semibold "+(e.completed||n?"text-primary-base":"text-gray-600"),children:e.title}),uo("p",{className:"text-sm text-left font-normal",children:e.description})]})]})},t)}))})]})},ci=(e,t)=>{switch(!0){case"benefits-setup-started"===e:return vn.backend.command({eventType:"Started"},t);case"membership-accepted"===e:return vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t);case"membership-declined"===e:return vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t);case"sign-up-viewed"===e:return vn.backend.command({eventType:"OfferViewed",offerName:"Membership",data:{featureName:"",treatmentName:""}},t);case"sign-up-completed"===e:return(async()=>{await vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!0,featureName:"",treatmentName:"",template:"Eoi"}},t),await vn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!0},t)})();case"sign-up-declined"===e:return(async()=>{await vn.backend.command({eventType:"CustomerRegistrationCompleted",isRegistered:!1},t),await vn.backend.command({eventType:"OfferProgressed",offerName:"Membership",data:{accepted:!1,featureName:"",treatmentName:"",template:"Eoi"}},t)})();case"marketplace-started"===e:return vn.workplaceBackend.track("Marketplace Started",{},t);case"object"==typeof e&&"offer-selected"===e.type:return vn.workplaceBackend.track("MarketplaceOffer Selected",{offer:e.offerName},t);case"object"==typeof e&&"offer-viewed"===e.type:return vn.backend.command({...e,eventType:"OfferViewed"},t);case"object"==typeof e&&"offer-accepted"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!0}},t);case"object"==typeof e&&"offer-declined"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:{...e.data,accepted:!1}},t);case"object"==typeof e&&"offer-progressed"===e.type:return vn.backend.command({eventType:"OfferProgressed",offerName:e.offerName,data:e.data},t);case"object"==typeof e&&"summary-viewed"===e.type:return vn.backend.command({eventType:"SummaryViewed",summaryVariant:e.data.summaryVariant},t);case"completed"===e:return vn.backend.command({eventType:"Completed"},t)}return Promise.resolve()},di=()=>({trace:ci});var ui=Object.defineProperty,pi=(e,t,n)=>(((e,t,n)=>{t in e?ui(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let fi=new class{constructor(){pi(this,"current",this.detect()),pi(this,"handoffState","pending"),pi(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}},mi=(e,t)=>{fi.isServer?qn(e,t):Wn(e,t)};function hi(e){let t=Vn(e);return mi((()=>{t.current=e}),[e]),t}let gi=function(e){let t=hi(e);return ao.useCallback(((...e)=>t.current(...e)),[t])};function _i(){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 function(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}((()=>{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=_i();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 yi(){let[e]=zn(_i);return qn((()=>()=>e.dispose()),[e]),e}function bi(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in so&&so.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=zn(fi.isHandoffComplete);return t&&!1===fi.isHandoffComplete&&n(!1),qn((()=>{!0!==t&&n(!0)}),[t]),qn((()=>fi.handoff()),[]),!e&&t}function wi(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,wi),r}let vi=Symbol();function xi(...e){let t=Vn(e);qn((()=>{t.current=e}),[e]);let n=gi((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[vi])))?void 0:n}function ki(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}var Ci,Si,Ei=((Si=Ei||{})[Si.None=0]="None",Si[Si.RenderStrategy=1]="RenderStrategy",Si[Si.Static=2]="Static",Si),Ni=((Ci=Ni||{})[Ci.Unmount=0]="Unmount",Ci[Ci.Hidden=1]="Hidden",Ci);function Ti({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:Oi;let l=Ri(t,e);if(i)return Ai(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Ai(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return wi(e?0:1,{0:()=>null,1:()=>Ai({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Ai(l,n,r,a,s)}function Ai(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=Ii(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},d="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t));let u={};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&&(u["data-headlessui-state"]=n.join(" "))}if(i===C&&Object.keys(Li(l)).length>0){if(!Vr(d)||Array.isArray(d)&&d.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=d.props,t="function"==typeof(null==e?void 0:e.className)?(...t)=>ki(null==e?void 0:e.className(...t),l.className):ki(null==e?void 0:e.className,l.className),n=t?{className:t}:{};return Gr(d,Object.assign({},Ri(d.props,Li(Ii(l,["ref"]))),u,c,{ref:o(d.ref,c.ref)},n))}return v(i,Object.assign({},Ii(l,["ref"]),i!==C&&c,i!==C&&u),d)}function Oi(...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 Pi(e){var t;return Object.assign(ur(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Li(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Ii(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}let Ui=G(null);Ui.displayName="OpenClosedContext";var Fi=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Fi||{});function ji(){return Zn(Ui)}function Mi({value:e,children:t}){return ao.createElement(Ui.Provider,{value:e},t)}function Bi(){let e=Vn(!1);return mi((()=>(e.current=!0,()=>{e.current=!1})),[]),e}function Di(e,...t){e&&t.length>0&&e.classList.add(...t)}function zi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Hi(e,t,n,r){let o=n?"enter":"leave",i=_i(),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=wi(o,{enter:()=>t.enter,leave:()=>t.leave}),l=wi(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),c=wi(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return zi(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((()=>{zi(e,...t.base,...s,...c),Di(e,...t.base,...s,...l),function(e,t){let n=_i();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,(()=>(zi(e,...t.base,...s),Di(e,...t.base,...t.entered),a())))})),i.dispose}function qi(e=""){return e.split(/\s+/).filter((e=>e.length>1))}let Wi=G(null);Wi.displayName="TransitionContext";var Vi,$i=((Vi=$i||{}).Visible="visible",Vi.Hidden="hidden",Vi);let Gi=G(null);function Yi(e){return"children"in e?Yi(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function Zi(e,t){let n=hi(e),r=Vn([]),o=Bi(),i=yi(),a=gi(((e,t=Ni.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(wi(t,{[Ni.Unmount](){r.current.splice(a,1)},[Ni.Hidden](){r.current[a].state="hidden"}}),i.microTask((()=>{var e;!Yi(r)&&o.current&&(null==(e=n.current)||e.call(n))})))})),s=gi((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,Ni.Unmount)})),l=Vn([]),c=Vn(Promise.resolve()),d=Vn({enter:[],leave:[],idle:[]}),u=gi(((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(d.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=gi(((e,t,n)=>{Promise.all(d.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return Gn((()=>({children:r,register:s,unregister:a,onStart:u,onStop:p,wait:c,chains:d})),[s,a,r,u,p,d,c])}function Ji(){}Gi.displayName="NestingContext";let Xi=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Ki(e){var t;let n={};for(let r of Xi)n[r]=null!=(t=e[r])?t:Ji;return n}let Qi=Ei.RenderStrategy;let ea=Pi((function(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,a=Vn(null),s=xi(a,t);bi();let l=ji();if(void 0===n&&null!==l&&(n=(l&Fi.Open)===Fi.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,d]=zn(n?"visible":"hidden"),u=Zi((()=>{d("hidden")})),[p,f]=zn(!0),m=Vn([n]);mi((()=>{!1!==p&&m.current[m.current.length-1]!==n&&(m.current.push(n),f(!1))}),[m,n]);let h=Gn((()=>({show:n,appear:r,initial:p})),[n,r,p]);qn((()=>{if(n)d("visible");else if(Yi(u)){let e=a.current;if(!e)return;let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&d("hidden")}else d("hidden")}),[n,u]);let g={unmount:o},_=gi((()=>{var t;p&&f(!1),null==(t=e.beforeEnter)||t.call(e)})),y=gi((()=>{var t;p&&f(!1),null==(t=e.beforeLeave)||t.call(e)}));return ao.createElement(Gi.Provider,{value:u},ao.createElement(Wi.Provider,{value:h},Ti({ourProps:{...g,as:C,children:ao.createElement(ta,{ref:s,...g,...i,beforeEnter:_,beforeLeave:y})},theirProps:{},defaultTag:C,features:Qi,visible:"visible"===c,name:"Transition"})))})),ta=Pi((function(e,t){var n,r;let{beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s,enter:l,enterFrom:c,enterTo:d,entered:u,leave:p,leaveFrom:f,leaveTo:m,...h}=e,g=Vn(null),_=xi(g,t),y=null==(n=h.unmount)||n?Ni.Unmount:Ni.Hidden,{show:b,appear:w,initial:v}=function(){let e=Zn(Wi);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]=zn(b?"visible":"hidden"),C=function(){let e=Zn(Gi);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:E}=C;qn((()=>S(g)),[S,g]),qn((()=>{if(y===Ni.Hidden&&g.current)return b&&"visible"!==x?void k("visible"):wi(x,{hidden:()=>E(g),visible:()=>S(g)})}),[x,g,S,E,b,y]);let N=hi({base:qi(h.className),enter:qi(l),enterFrom:qi(c),enterTo:qi(d),entered:qi(u),leave:qi(p),leaveFrom:qi(f),leaveTo:qi(m)}),T=function(e){let t=Vn(Ki(e));return qn((()=>{t.current=Ki(e)}),[e]),t}({beforeEnter:o,afterEnter:i,beforeLeave:a,afterLeave:s}),A=bi();qn((()=>{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]=zn(e),r=Bi(),o=Yn((e=>{r.current&&n((t=>t|e))}),[t,r]),i=Yn((e=>Boolean(t&e)),[t]),a=Yn((e=>{r.current&&n((t=>t&~e))}),[n,r]),s=Yn((e=>{r.current&&n((t=>t^e))}),[n]);return{flags:t,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(0),I=gi((e=>wi(e,{enter:()=>{L.addFlag(Fi.Opening),T.current.beforeEnter()},leave:()=>{L.addFlag(Fi.Closing),T.current.beforeLeave()},idle:()=>{}}))),U=gi((e=>wi(e,{enter:()=>{L.removeFlag(Fi.Opening),T.current.afterEnter()},leave:()=>{L.removeFlag(Fi.Closing),T.current.afterLeave()},idle:()=>{}}))),F=Zi((()=>{k("hidden"),E(g)}),C),j=Vn(!1);!function({immediate:e,container:t,direction:n,classes:r,onStart:o,onStop:i}){let a=Bi(),s=yi(),l=hi(n);mi((()=>{e&&(l.current="enter")}),[e]),mi((()=>{let e=_i();s.add(e.dispose);let n=t.current;if(n&&"idle"!==l.current&&a.current)return e.dispose(),o.current(l.current),e.add(Hi(n,r.current,"enter"===l.current,(()=>{e.dispose(),i.current(l.current)}))),e.dispose}),[n])}({immediate:R,container:g,classes:N,direction:P,onStart:hi((e=>{j.current=!0,F.onStart(g,e,I)})),onStop:hi((e=>{j.current=!1,F.onStop(g,e,U),"leave"===e&&!Yi(F)&&(k("hidden"),E(g))}))});let M=h,B={ref:_};return R?M={...M,className:ki(h.className,...N.current.enter,...N.current.enterFrom)}:j.current&&(M.className=ki(h.className,null==(r=g.current)?void 0:r.className),""===M.className&&delete M.className),ao.createElement(Gi.Provider,{value:F},ao.createElement(Mi,{value:wi(x,{visible:Fi.Open,hidden:Fi.Closed})|L.flags},Ti({ourProps:B,theirProps:M,defaultTag:"div",features:Qi,visible:"visible"===x,name:"Transition.Child"})))})),na=Pi((function(e,t){let n=null!==Zn(Wi),r=null!==ji();return ao.createElement(ao.Fragment,null,!n&&r?ao.createElement(ea,{ref:t,...e}):ao.createElement(ta,{ref:t,...e}))})),ra=Object.assign(ea,{Child:na,Root:ea});const oa=({children:e})=>{const t=ao.Children.toArray(e),n=t.find((e=>e.type===ia)),r=t.find((e=>e.type===aa));return uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("div",{class:"flex flex-col text-center items-center max-w-[40rem] mx-auto",children:[uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&uo("div",{class:"flex items-center h-full",children:n})}),uo(ra,{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&&uo("div",{class:"flex items-center h-full",children:r})})]})})},ia=({children:e})=>uo(C,{children:e}),aa=({children:e})=>uo(C,{children:e});oa.Top=ia,oa.Bottom=aa;const sa=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t},getOffers:n,hostInformation:{experiment:r,treatment:o}}=Zn(fo),{trace:i}=di(),a="allowance"===t.scheme?t.content.setUpBenefits:void 0;return uo(C,{children:a&&uo("div",{className:"flex flex-col items-center max-w-full w-full mx-auto",children:[uo(oi,{selectedIndex:-1,children:n().map((e=>{var t,n;return uo(ni,{label:null==(t=e.content)?void 0:t.productName,icon:uo(ti,{icon:null==(n=e.content)?void 0:n.iconUrl})},e.name)}))}),uo(oa,{children:[uo(oa.Top,{children:uo("div",{className:"flex flex-col gap-4",children:[uo(ii,{children:a.title}),uo(ai,{children:a.description})]})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[a.progress&&uo(ko,{className:"lg:w-3/4",title:a.progress.title,children:uo(li,{steps:a.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),uo(xo,{testId:"allowance_set_up_benefits_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:async()=>{await i("marketplace-started",{experiment:r,treatment:o}),await e()},children:a.buttonText}),a.termsAndConditions&&uo("span",{className:"font-normal text-xs mt-4 lg:w-3/4",children:uo(a.termsAndConditions,{})})]})})]})]})})},la=({icon:e,children:t,className:n,...r})=>uo("div",{...r,className:`${n??""} rounded-md shadow-sm`,children:uo("div",{className:"flex items-center gap-4 px-4 py-4",children:[e&&uo("span",{className:"w-8 min-w-8 max-w-8",children:e}),t&&uo("span",{className:"text-left text-base",children:t})]})}),ca=e=>{const{trace:t}=di(),{featureFlags:{marketplaceScheme:n},hostInformation:{experiment:r,treatment:o}}=Zn(fo),i="allowance"===n.scheme?n.content.joinBenefits:void 0;return qn((()=>{t("benefits-setup-started",{experiment:r,treatment:o})}),[r,t,o]),uo(C,{children:i&&uo(oa,{children:[uo(oa.Top,{children:[uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.desktopImageUrl}),uo("img",{class:"max-w-[30rem] w-full md:hidden",src:i.mobileImageUrl})]}),uo(oa.Bottom,{children:uo("div",{children:[uo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),uo("p",{class:"mt-3 text-lg leading-7 text-gray-600",children:i.description}),uo(la,{className:"bg-teal-50 mt-5",style:{background:"linear-gradient(90deg, rgba(255, 216, 77, 0.10) 0%, rgba(255, 135, 111, 0.10) 100%)"},icon:i.specialBanner.icon,children:uo("div",{children:[uo("p",{className:"font-semibold text-base text-gray-900",children:i.specialBanner.title}),uo("span",{className:"font-normal text-base text-gray-900",children:i.specialBanner.subTitle})]})}),uo(xo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{e.onContinue()},children:i.buttonText})]})})]})})},da=""+("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),ua=()=>uo("div",{className:"mt-4 flex items-center border rounded-md border-gray-300",children:[uo("img",{className:"h-40 h-min-40 h-max-40 m-0.5",src:da}),uo("div",{className:"flex flex-col gap-1",children:[uo("h4",{className:"font-bold text-lg text-left",children:"Workplace benefits in your pocket!"}),uo("p",{className:"font-normal text-base text-left",children:"Download the Flare app for easy access to your workplace benefits and exclusive discounts."}),uo("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 ","->"]})]})]}),pa=({onContinue:e})=>{const{offersProgress:{hasCompletedAnyOffers:t},isAppEnabled:n,featureFlags:{marketplaceScheme:r},hostInformation:{experiment:o,treatment:i}}=Zn(fo),{trace:a}=di(),s=Gn((()=>{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]);qn((()=>{(async()=>{await a({type:"summary-viewed",data:{summaryVariant:s}},{experiment:o,treatment:i})})()}),[o,i,s,a]);const l=Yn((async()=>{await a("completed",{experiment:o,treatment:i}),await e()}),[o,i,e,a]),c="allowance"===r.scheme?r.content.summary:void 0;return uo(C,{children:c&&uo(oa,{children:[uo(oa.Top,{children:uo("div",{className:"flex flex-col gap-4",children:[uo(ii,{children:c.title}),uo(ai,{children:c.description})]})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[c.progress&&uo(ko,{className:"lg:w-3/4",title:c.progress.title,children:uo(li,{steps:c.progress.steps,className:"mt-2 rounded-md px-6 py-4"})}),uo(xo,{testId:"step-benefits-finish",class:"mt-5 w-full md:w-[240px]",onClickPromise:l,children:c.buttonText}),n&&uo(ua,{})]})})]})})};var fa=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(fa||{});const ma=({className:e,children:t,...n})=>uo("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),ha=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"})),ga=({className:e,onClick:t,...n})=>{const[r,o]=zn(!1);return uo("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:Yn((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[uo("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&uo("div",{class:"absolute",children:uo(wo,{theme:"primary"})})]})},_a=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Yn((e=>{t.test(e.key)||e.preventDefault()}),[t]);return uo(C,{children:uo("div",{class:"relative",children:[o,uo("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]})})},ya=e=>e.replace(/ /g,""),ba=e=>{const t=ya(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)},wa=({phoneNumber:e,onSubmit:t,onDecline:n})=>{const{hostInformation:{workflowsJourneyType:r}}=Zn(fo),[o,i]=zn(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Zn(fo),[n,r]=zn((()=>e&&ba(e)?e:"")),o=Gn((()=>ba(n)),[n]),i=Gn((()=>ya(n)),[n]),a=Gn((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Gn((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Gn((()=>ba(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]=zn(s.isVerified),d=Yn((()=>{i("")}),[]),u=Yn((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=Yn((async()=>{s.valid&&await t(s).catch(i)}),[s,t]),f=Yn((async()=>{c(!1)}),[]),m=uo("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 ",uo(ha,{})]});return uo(oa,{children:[uo(oa.Top,{children:uo("div",{className:"flex flex-col gap-5",children:[uo(ii,{children:"Join your workplace benefits program"}),uo(ai,{children:[s.isVerified?"Confirm ":"Enter "," your ",uo("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 md:w-[300px] text-left",children:[uo(ma,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),uo(_a,{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:d,onfocusout:u,trailingIconElement:l&&m,disabled:l}),0!==o.length&&uo("div",{className:"h-8 leading-none",children:uo("span",{className:"text-xs text-rose-500",children:o})}),l&&uo("div",{className:"mt-2 ml-2 mb-2 leading-none",children:uo("span",{className:"text-xs",children:["Not your personal number?",uo(ga,{class:"text-blue-500",onClick:f,children:"Change number"})]})}),uo("div",{children:uo("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"," ",uo("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",uo("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),uo(xo,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),r!==ne.AppInvite&&uo(xo,{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:n,children:"Not now"})]})})]})},va=""+("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),xa=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t},hostInformation:{experiment:n,treatment:r}}=Zn(fo),{trace:o}=di(),i=Gn((()=>"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]),a=Yn((async()=>{"allowance"!==t.scheme&&await o("marketplace-started",{experiment:n,treatment:r}),e()}),[n,t.scheme,e,o,r]);return qn((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),uo(oa,{children:[uo(oa.Top,{children:uo("img",{src:va,className:"h-16 w-16"})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[uo(ii,{children:i.title}),uo(ai,{children:i.description}),!i.isNextButtonHidden&&uo(xo,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:a,children:"Set up your benefits"})]})})]})},ka=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"})),Ca=({open:e})=>uo(bo,{open:e,children:uo(yo,{children:uo("div",{className:"flex flex-col gap-5 items-center justify-center text-center",children:[uo(wo,{size:"lg"}),uo(ii,{children:"Creating your account"}),uo("div",{children:[uo(ai,{children:"This can take up to 30 seconds."}),uo(ai,{children:"Please don't navigate away or refresh your browser."})]})]})})}),Sa=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=zn("");return{otp:{valid:Gn((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=zn(!1),[l,c]=zn(""),{countdown:d,restart:u}=(e=>{const[t,n]=zn(e),r=Vn(),o=Yn((()=>{clearInterval(r.current)}),[]);return qn((()=>o),[o]),{countdown:t,restart:Yn((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);qn(u,[u]);const p=Yn((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Yn((()=>(c(""),n().then(u).catch(c))),[n,u]);return uo(C,{children:[uo(Ca,{open:a}),uo(oa,{children:[uo(oa.Top,{children:uo("div",{className:"flex flex-col gap-5",children:[uo(ii,{children:"Verify your mobile number"}),uo(ai,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),uo(oa.Bottom,{children:uo("div",{className:"mt-5 md:w-[300px] text-left",children:[uo(ma,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),uo(_a,{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&&uo("span",{className:"text-xs text-rose-500",children:l}),uo("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",uo(ga,{disabled:0!==d,className:"underline mx-2 disabled:text-gray-600 disabled:hover:bg-transparent disabled:cursor-text disabled:px-0",onClick:f,children:"Resend SMS"}),0!==d&&uo(C,{children:["in ",d," secs"]})]}),uo(xo,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),uo(xo,{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:uo("span",{className:"flex gap-3",children:[uo(ka,{}),"Back"]})})]})})]})]})},Ea=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const{trace:a}=di(),[s,l]=zn(e??""),{step:c,goBack:d,goToStep:u}=(()=>{const[e,t]=zn(0),n=Yn((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Yn((e=>{e<=2&&t(e)}),[]);return{step:e,goBack:n,goToStep:r}})();qn((()=>{(async()=>{await a("sign-up-viewed")})()}),[a]);const p=Yn((e=>t(e.formatted).then((async t=>{l(e.masked),t.isVerificationRequired?u(fa.OTP):(await a("sign-up-completed"),u(fa.SUCCESS))}))),[u,t,a]),f=Yn((()=>a("sign-up-declined").then(i)),[i,a]),m=Yn((e=>n(e).then((async()=>{await a("sign-up-completed"),u(fa.SUCCESS)}))),[u,n,a]);return uo(C,{children:[c===fa.PHONE_NUMBER&&uo(wa,{phoneNumber:s,onSubmit:p,onDecline:f}),c===fa.OTP&&uo(Sa,{phoneNumber:s,onVerify:m,onResendOtp:r,onGoBack:d}),c===fa.SUCCESS&&uo(xa,{onContinue:o})]})};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 Ta=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."},Aa=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Zn(fo),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>vn.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await vn.backend.getClient().post("auth/verify",{otp:e}).catch(Ta)},resendOtp:async()=>{await vn.backend.getClient().post("auth/resend").catch(Ta)}};return uo(C,{children:uo(Ea,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Oa=""+("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),Ra=e=>{const{trace:t}=di(),{hostInformation:{experiment:n,treatment:r}}=Zn(fo);return qn((()=>{t("benefits-setup-started",{experiment:n,treatment:r})}),[n,t,r]),uo(oa,{children:[uo(oa.Top,{children:uo("img",{class:"max-w-[30rem] w-full",src:Oa})}),uo(oa.Bottom,{children:uo("div",{children:[uo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),uo("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."}),uo(xo,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{e.onStepComplete()},children:"Continue"})]})})]})},Pa=()=>uo("div",{class:"flex justify-center",children:uo(wo,{size:"lg"})}),La=(Ia=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o},hostInformation:i,offersProgress:{canOfferSkipToEstimate:a}}=Zn(fo),{trace:s}=di(),l=Vn(null);return Co((()=>{s({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),l.current&&(l.current.terms=e.marketPlaceOffer.content.terms,l.current.details=e.marketPlaceOffer.content.details,l.current["on-accept"]=async()=>{await s({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName})},l.current["on-decline"]=async()=>{await s({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),e.onStepComplete(!1,!1)},l.current["on-complete"]=()=>e.onStepComplete(!0,!0),l.current["on-skip"]=e.marketPlaceOffer.content.skipButtonHidden?void 0:()=>e.onStepComplete(!0,!1))})),uo("benefits-plan-assessment",{"base-url":xn.workplaceBackend.getBaseUrl(),"profile-id":xn.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":i.client,"track-source":i.source,"track-channel":i.channel,"track-experiment":i.experiment,"track-treatment":i.treatment,"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","skip-to-completion":a(e.marketPlaceOffer.name),ref:l})},e=>{const t=Vn(null),[n,r]=zn(),[o,i]=zn(!1);return qn((()=>{(async()=>{const e=await xn.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=ho(xn.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)})()}),[]),uo("div",{ref:t,className:n,children:n&&o?uo(Ia,{...e,accessToken:n}):uo(Pa,{})})});var Ia;const Ua=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",...e},v("path",{fill:"currentColor",d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"}))
8
- /*! @license DOMPurify 3.2.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.2.6/LICENSE */,{entries:Fa,setPrototypeOf:ja,isFrozen:Ma,getPrototypeOf:Ba,getOwnPropertyDescriptor:Da}=Object;let{freeze:za,seal:Ha,create:qa}=Object,{apply:Wa,construct:Va}="undefined"!=typeof Reflect&&Reflect;za||(za=function(e){return e}),Ha||(Ha=function(e){return e}),Wa||(Wa=function(e,t,n){return e.apply(t,n)}),Va||(Va=function(e,t){return new e(...t)});const $a=ss(Array.prototype.forEach),Ga=ss(Array.prototype.lastIndexOf),Ya=ss(Array.prototype.pop),Za=ss(Array.prototype.push),Ja=ss(Array.prototype.splice),Xa=ss(String.prototype.toLowerCase),Ka=ss(String.prototype.toString),Qa=ss(String.prototype.match),es=ss(String.prototype.replace),ts=ss(String.prototype.indexOf),ns=ss(String.prototype.trim),rs=ss(Object.prototype.hasOwnProperty),os=ss(RegExp.prototype.test),is=(as=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Va(as,t)});var as;function ss(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Wa(e,t,r)}}function ls(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Xa;ja&&ja(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Ma(t)||(t[r]=e),o=e)}e[o]=!0}return e}function cs(e){for(let t=0;t<e.length;t++){rs(e,t)||(e[t]=null)}return e}function ds(e){const t=qa(null);for(const[n,r]of Fa(e)){rs(e,n)&&(Array.isArray(r)?t[n]=cs(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=ds(r):t[n]=r)}return t}function us(e,t){for(;null!==e;){const n=Da(e,t);if(n){if(n.get)return ss(n.get);if("function"==typeof n.value)return ss(n.value)}e=Ba(e)}return function(){return null}}const ps=za(["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"]),fs=za(["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"]),ms=za(["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"]),hs=za(["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"]),gs=za(["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"]),_s=za(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ys=za(["#text"]),bs=za(["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"]),ws=za(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),vs=za(["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"]),xs=za(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ks=Ha(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Cs=Ha(/<%[\w\W]*|[\w\W]*%>/gm),Ss=Ha(/\$\{[\w\W]*/gm),Es=Ha(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ns=Ha(/^aria-[\-\w]+$/),Ts=Ha(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),As=Ha(/^(?:\w+script|data):/i),Os=Ha(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Rs=Ha(/^html$/i),Ps=Ha(/^[a-z][.\w]*(-[.\w]+)+$/i);var Ls=Object.freeze({__proto__:null,ARIA_ATTR:Ns,ATTR_WHITESPACE:Os,CUSTOM_ELEMENT:Ps,DATA_ATTR:Es,DOCTYPE_NAME:Rs,ERB_EXPR:Cs,IS_ALLOWED_URI:Ts,IS_SCRIPT_OR_DATA:As,MUSTACHE_EXPR:ks,TMPLIT_EXPR:Ss});const Is=1,Us=3,Fs=7,js=8,Ms=9;var Bs=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.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==Ms||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:d,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:f,trustedTypes:m}=t,h=c.prototype,g=us(h,"cloneNode"),_=us(h,"remove"),y=us(h,"nextSibling"),b=us(h,"childNodes"),w=us(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:C,createDocumentFragment:S,getElementsByTagName:E}=r,{importNode:N}=o;let T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Fa&&"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}=Ls;let{IS_ALLOWED_URI:j}=Ls,M=null;const B=ls({},[...ps,...fs,...ms,...gs,...ys]);let D=null;const z=ls({},[...bs,...ws,...vs,...xs]);let H=Object.seal(qa(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}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,Z=!1,J=!0,X=!1,K=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=ls({},["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 de=null;const ue=ls({},["audio","video","img","source","image","track"]);let pe=null;const fe=ls({},["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=ls({},[me,he,ge],Ka);let ve=ls({},["mi","mo","mn","ms","mtext"]),xe=ls({},["annotation-xml"]);const ke=ls({},["title","style","font","a","script"]);let Ce=null;const Se=["application/xhtml+xml","text/html"];let Ee=null,Ne=null;const Te=r.createElement("form"),Ae=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ne||Ne!==e){if(e&&"object"==typeof e||(e={}),e=ds(e),Ce=-1===Se.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===Ce?Ka:Xa,M=rs(e,"ALLOWED_TAGS")?ls({},e.ALLOWED_TAGS,Ee):B,D=rs(e,"ALLOWED_ATTR")?ls({},e.ALLOWED_ATTR,Ee):z,be=rs(e,"ALLOWED_NAMESPACES")?ls({},e.ALLOWED_NAMESPACES,Ka):we,pe=rs(e,"ADD_URI_SAFE_ATTR")?ls(ds(fe),e.ADD_URI_SAFE_ATTR,Ee):fe,de=rs(e,"ADD_DATA_URI_TAGS")?ls(ds(ue),e.ADD_DATA_URI_TAGS,Ee):ue,le=rs(e,"FORBID_CONTENTS")?ls({},e.FORBID_CONTENTS,Ee):ce,q=rs(e,"FORBID_TAGS")?ls({},e.FORBID_TAGS,Ee):ds({}),W=rs(e,"FORBID_ATTR")?ls({},e.FORBID_ATTR,Ee):ds({}),se=!!rs(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,Z=e.SAFE_FOR_TEMPLATES||!1,J=!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,j=e.ALLOWED_URI_REGEXP||Ts,_e=e.NAMESPACE||ge,ve=e.MATHML_TEXT_INTEGRATION_POINTS||ve,xe=e.HTML_INTEGRATION_POINTS||xe,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ae(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ae(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&($=!1),te&&(ee=!0),se&&(M=ls({},ys),D=[],!0===se.html&&(ls(M,ps),ls(D,bs)),!0===se.svg&&(ls(M,fs),ls(D,ws),ls(D,xs)),!0===se.svgFilters&&(ls(M,ms),ls(D,ws),ls(D,xs)),!0===se.mathMl&&(ls(M,gs),ls(D,vs),ls(D,xs))),e.ADD_TAGS&&(M===B&&(M=ds(M)),ls(M,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(D===z&&(D=ds(D)),ls(D,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&ls(pe,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ce&&(le=ds(le)),ls(le,e.FORBID_CONTENTS,Ee)),ie&&(M["#text"]=!0),X&&ls(M,["html","head","body"]),M.table&&(ls(M,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw is('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw is('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(""));za&&za(e),Ne=e}},Re=ls({},[...fs,...ms,...hs]),Pe=ls({},[...gs,..._s]),Le=function(e){Za(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){_(e)}},Ie=function(e,t){try{Za(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Za(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===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=Qa(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ce&&_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,Ce)}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?E.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return C.call(e.ownerDocument||e,e,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},je=function(e){return e instanceof p&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof u)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},Me=function(e){return"function"==typeof l&&e instanceof l};function Be(e,t,r){$a(e,(e=>{e.call(n,t,r,Ne)}))}const De=function(e){let t=null;if(Be(T.beforeSanitizeElements,e,null),je(e))return Le(e),!0;const r=Ee(e.nodeName);if(Be(T.uponSanitizeElement,e,{tagName:r,allowedTags:M}),J&&e.hasChildNodes()&&!Me(e.firstElementChild)&&os(/<[/\w!]/g,e.innerHTML)&&os(/<[/\w!]/g,e.textContent))return Le(e),!0;if(e.nodeType===Fs)return Le(e),!0;if(J&&e.nodeType===js&&os(/<[/\w]/g,e.data))return Le(e),!0;if(!M[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&os(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.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=Xa(e.tagName),r=Xa(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||ve[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&xe[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!xe[r])&&!(t.namespaceURI===me&&!ve[r])&&!Pe[n]&&(ke[n]||!Re[n]):!("application/xhtml+xml"!==Ce||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!os(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&e.nodeType===Us&&(t=e.textContent,$a([A,O,R],(e=>{t=es(t,e," ")})),e.textContent!==t&&(Za(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be(T.afterSanitizeElements,e,null),!1):(Le(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Te))return!1;if($&&!W[t]&&os(P,t));else if(V&&os(L,t));else if(!D[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&os(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&os(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&os(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(os(j,es(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==ts(n,"data:")||!de[e]){if(G&&!os(I,es(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Qa(e,F)},qe=function(e){Be(T.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||je(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,d=Ee(s),u=c;let p="value"===s?u:ns(u);if(r.attrName=d,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Be(T.uponSanitizeAttribute,e,r),p=r.attrValue,!oe||"id"!==d&&"name"!==d||(Ie(s,e),p="user-content-"+p),J&&os(/((--!?|])>)|<\/(style|title)/i,p)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ie(s,e);continue}if(!Y&&os(/\/>/i,p)){Ie(s,e);continue}Z&&$a([A,O,R],(e=>{p=es(p,e," ")}));const f=Ee(e.nodeName);if(ze(f,d,p)){if(v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(f,d)){case"TrustedHTML":p=v.createHTML(p);break;case"TrustedScriptURL":p=v.createScriptURL(p)}if(p!==u)try{l?e.setAttributeNS(l,s,p):e.setAttribute(s,p),je(e)?Le(e):Ya(n.removed)}catch(i){Ie(s,e)}}else Ie(s,e)}Be(T.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const r=Fe(t);for(Be(T.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Be(T.uponSanitizeShadowNode,n,null),De(n),qe(n),n.content instanceof a&&e(n.content);Be(T.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&&!Me(e)){if("function"!=typeof e.toString)throw is("toString is not a function");if("string"!=typeof(e=e.toString()))throw is("dirty is not a string, aborting")}if(!n.isSupported)return e;if(K||Oe(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ee(e.nodeName);if(!M[t]||q[t])throw is("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===Is&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!Z&&!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 d=Fe(ae?e:r);for(;s=d.nextNode();)De(s),qe(s),s.content instanceof a&&We(s.content);if(ae)return e;if(ee){if(te)for(c=S.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(D.shadowroot||D.shadowrootmode)&&(c=N.call(o,c,!0)),c}let u=X?r.outerHTML:r.innerHTML;return X&&M["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&os(Rs,r.ownerDocument.doctype.name)&&(u="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+u),Z&&$a([A,O,R],(e=>{u=es(u,e," ")})),v&&ne?v.createHTML(u):u},n.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){Ne=null,K=!1},n.isValidAttribute=function(e,t,n){Ne||Oe({});const r=Ee(e),o=Ee(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&Za(T[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Ga(T[e],t);return-1===n?void 0:Ja(T[e],n,1)[0]}return Ya(T[e])},n.removeHooks=function(e){T[e]=[]},n.removeAllHooks=function(){T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Ds=({children:e})=>{const t=ao.Children.toArray(e),n=t.find((e=>e.type===zs)),r=t.find((e=>e.type===Hs));return uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&uo("div",{class:"flex items-center h-full",children:n})}),uo(ra,{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&&uo("div",{class:"flex items-center h-full",children:r})})]})})},zs=({children:e})=>uo(C,{children:e}),Hs=({children:e})=>uo(C,{children:e});Ds.Left=zs,Ds.Right=Hs;const qs=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"})),Ws=e=>uo(ra,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:uo("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)=>uo("div",{class:"flex space-x-1",children:[uo("span",{children:uo(si,{class:"h-5 w-5 fill-primary-base"})}),uo("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Vs=e=>{const[t,n]=zn(!1);return uo("div",{class:e.class,children:t?uo(Ws,{items:e.items}):uo("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",uo("span",{class:"ml-1",children:uo(qs,{class:"h-4 w-4"})})]})})},$s=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Zn(fo),{trace:a}=di(),[s,l]=zn(!1);Co((()=>{a({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));const c=async t=>{t?await a({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}):await a({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName});return(t?e.primaryButton:e.secondaryButton).onClick()};return uo(Ds,{children:[uo(Ds.Left,{children:uo("div",{children:uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),uo("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&&uo("div",{class:"mt-6 hidden md:block",children:uo(Ws,{items:e.step.content.details})})]}),e.step.content.details&&uo(Vs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===i.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&uo(la,{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:uo("div",{children:[uo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),uo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[uo(xo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:()=>c(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&uo(xo,{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:()=>c(!1),children:e.secondaryButton.text})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&uo("p",{className:"mt-6 text-xs",children:[uo("span",{children:"*"}),uo("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>l(!0),children:"T&C's apply"})]}),(null==(o=e.step.content.terms)?void 0:o.length)>0&&uo(bo,{open:s,children:[uo(_o,{children:uo("div",{className:"relative",children:[uo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),uo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:uo(Ua,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),uo(yo,{children:uo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>uo("span",{dangerouslySetInnerHTML:{__html:Bs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),uo(Ds.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Gs=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Zn(fo),{trace:i}=di(),[a,s]=zn(!1);Co((()=>{"name"in e.step&&i({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));return uo(Ds,{children:[uo(Ds.Left,{children:uo("div",{children:uo(ra,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),uo("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&&uo("div",{class:"mt-6 hidden md:block",children:uo(Ws,{items:e.step.content.details})})]}),e.step.content.details&&uo(Vs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===o.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&uo(la,{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:uo("div",{children:[uo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),uo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:uo(xo,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await i({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),(null==(n=e.step.content.terms)?void 0:n.length)>0&&uo("p",{className:"mt-6 text-xs",children:[uo("span",{children:"*"}),uo("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>s(!0),children:"T&C's apply"})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&uo(bo,{open:a,children:[uo(_o,{children:uo("div",{className:"relative",children:[uo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),uo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:uo(Ua,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),uo(yo,{children:uo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>uo("span",{dangerouslySetInnerHTML:{__html:Bs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),uo(Ds.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ys=({current:e,total:t})=>uo("div",{className:"flex justify-between md:block text-xs tracking-wide",children:uo("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,uo("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Zs=e=>{const{getOffers:t,featureFlags:{marketplaceSubNavigation:n},offersProgress:{update:r,isOfferCompleted:o,isOfferProgressed:i}}=Zn(fo),[a,s]=zn(0),{trace:l}=di(),c=Yn(((n,o,i)=>{r(n,o,i),a===t().length-1?e.onComplete():s(a+1)}),[r,a,t,e]),d=Yn((e=>{s(e);const n=t()[e];l({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[t,l]),u=(e,t,n)=>{const r=i(e);return!!o(e)||(!r||t!==n)&&!!r},p=t();return uo("div",{className:"max-w-[59.5rem] mx-auto",children:[!n&&uo(Ys,{current:a+1,total:p.length+1}),uo(oi,{selectedIndex:a,onChange:d,children:[n&&p.map(((e,t)=>{var n,r;return uo(ni,{label:null==(n=e.content)?void 0:n.productName,icon:uo(ti,{icon:u(e.name,t,a)?uo(si,{}):null==(r=e.content)?void 0:r.iconUrl})},e.name)})),p.map((e=>{var t,n,r;return uo(ri,{children:["Eoi"===(null==(t=e.content)?void 0:t.template)&&uo($s,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>c(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>c(e.name,!1,!1)}}),"Simple"===(null==(n=e.content)?void 0:n.template)&&uo(Gs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>c(e.name,!0,!0)}}),"Assessment"===(null==(r=e.content)?void 0:r.template)&&uo(La,{onStepComplete:(t,n)=>c(e.name,t,n),marketPlaceOffer:e},e.name)]},e.name)}))]})]})},Js=""+("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),Xs=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"})),Ks=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"})),Qs=""+("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),el=({onComplete:e})=>{const{trace:t}=di(),{identity:n,getIdentityRegistrationStatus:r,hostInformation:{experiment:o,treatment:i}}=Zn(fo);qn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:o,treatment:i})})()}),[o,t,i]);const a={...tl(n,r()),imageUrl:Js,mobileImageUrl:Qs},s={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:o,treatment:i}),await e()}};return uo(Ds,{children:[uo(Ds.Left,{children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:a.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:a.title}),uo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:a.description})]}),uo("div",{class:"mt-6 flex space-x-6",children:[uo(Xs,{}),uo(Ks,{})]}),uo(xo,{testId:"step-benefits-finish",class:s.class,onClickPromise:s.onClick,children:s.text})]})}),uo(Ds.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:a.imageUrl,loading:"lazy"})})]})},tl=(e,t)=>{switch(t){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.`}}},nl=""+("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),rl=""+("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),ol=({onComplete:e})=>{const{trace:t}=di(),{getWorkplaceLinkingStatus:n,hostInformation:{experiment:r,treatment:o}}=Zn(fo);qn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:r,treatment:o})})()}),[r,o,t]);const i={imageUrl:nl,mobileImageUrl:rl,title:"You're all set!",description:"PreviouslyLinked"===n()?"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."},a={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:r,treatment:o}),await e()}};return uo(Ds,{children:[uo(Ds.Left,{children:uo("div",{children:[uo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),uo("div",{class:"md:max-w-[27.5rem]",children:[uo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),uo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),uo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:uo(xo,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})})]})}),uo(Ds.Right,{children:uo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},il=()=>{const{updateIdentity:e}=Zn(fo),{current:t,goNext:n}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Zn(fo),r=Gn((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","Allowance_ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n.marketplaceScheme.scheme,e]),[o,i]=zn(r[0]);qn((()=>{i(r[0])}),[r]);const a=Yn((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(sl),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}if("RegistrationAbandoned"!==t())try{const e=r.findIndex((e=>e===o)),t=r[e+1];return void i(t)}catch{}else i(r[r.length-1])}),[o,t,r]);return{current:o,goNext:a}}(),r=Yn((()=>{e(!0),n()}),[n,e]),o=Yn((()=>{e(!1),n()}),[n,e]);switch(t){case"Introduction":return uo(Ra,{onStepComplete:n});case"Allowance_JoinBenefits":return uo(ca,{onContinue:n});case"FlareAppIdentity":return uo(Aa,{onSuccess:r,onDecline:o});case"Allowance_ConfigureBenefits":return uo(sa,{onContinue:n});case"MarketplaceOffers":return uo(Zs,{onComplete:n});case"Allowance_BenefitsSummary":return uo(pa,{onContinue:n});case"SummaryApp":return uo(el,{onComplete:n});case"SummaryGeneric":return uo(ol,{onComplete:n});default:return uo(C,{})}},al=()=>{const e=Zn(fo);return uo(C,{children:[uo(bo,{open:e.isFetching,children:uo(yo,{children:uo(wo,{size:"lg"})})}),e.isInitialized?uo(il,{}):uo("div",{className:"fixed flex items-center justify-center top-0 bottom-0 left-0 right-0",children:uo(wo,{size:"lg"})})]})},sl="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]=zn(0);qn((()=>le((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]},o={channel:"onboarding",client:"onboarding",source:(e=>{switch(e){case ne.BenefitsExisting:case ne.AppInvite:return"Invite";default:return"Onboarding"}})(r.workflowsJourneyType),experiment:"onboarding-marketplace-scheme",workflowsJourneyType:r.workflowsJourneyType,workflowsInstanceId:r.workflowsInstanceId};return Sn(r.backendUrl,r.accessToken,o),"prod"===ho(r.backendUrl)&&go.init("p09arvzysr"),uo(C,{children:[uo("style",{children:vo.toString()}),uo("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:uo(mo,{hostInformation:o,children:uo(al,{})})},t)]})}),sl,[],{shadow:!0})}));
7
+ var Bi=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,Mi=/\\([\u000b\u0020-\u00ff])/g,Di=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/,zi=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(!Di.test(r))throw new TypeError("invalid media type");var o=new Hi(r.toLowerCase());if(-1!==n){var i,a,s;for(Bi.lastIndex=n;a=Bi.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(Mi,"$1")),o.parameters[i]=s}if(n!==t.length)throw new TypeError("invalid parameter format")}return o};function Hi(e){this.parameters=Object.create(null),this.type=e}var qi=new Map,Wi=function(e){return e.cloneNode(!0)},Vi=function(){return"file:"===window.location.protocol},$i=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=zi(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(Vi()?"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||Vi()&&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()},Gi={},Yi=function(e,t){Gi[e]=Gi[e]||[],Gi[e].push(t)},Zi=function(e,t,n){if(qi.has(e)){var r=qi.get(e);if(void 0===r)return void Yi(e,n);if(r instanceof SVGSVGElement)return void n(null,Wi(r))}qi.set(e,void 0),Yi(e,n),$i(e,t,(function(t,n){var r;t?qi.set(e,t):(null===(r=n.responseXML)||void 0===r?void 0:r.documentElement)instanceof SVGSVGElement&&qi.set(e,n.responseXML.documentElement),function(e){for(var t=function(t,n){setTimeout((function(){if(Array.isArray(Gi[e])){var n=qi.get(e),r=Gi[e][t];n instanceof SVGSVGElement&&r(null,Wi(n)),n instanceof Error&&r(n),t===Gi[e].length-1&&delete Gi[e]}}),0)},n=0,r=Gi[e].length;n<r;n++)t(n)}(e)}))},Ji=function(e,t,n){$i(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)}))},Xi=0,Ki=[],Qi={},ea="http://www.w3.org/1999/xlink",ta=function(e,t,n,r,o,i,a){var s=e.getAttribute("data-src")||e.getAttribute("src");if(s){if(-1!==Ki.indexOf(e))return Ki.splice(Ki.indexOf(e),1),void(e=null);Ki.push(e),e.setAttribute("src",""),(r?Zi:Ji)(s,o,(function(r,o){if(!o)return Ki.splice(Ki.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(ji(ji(ji([],(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,y=w[e];for(var t=function(e,t){var n;_=g[e].id,b=_+"-"+ ++Xi,Array.prototype.forEach.call(y,(function(e){for(var t=0,r=(n=o.querySelectorAll("["+e+'*="'+_+'"]')).length;t<r;t++){var i=n[t].getAttribute(e);i&&!i.match(new RegExp('url\\("?#'+_+'"?\\)'))||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(ea,"href");l&&l.toString()==="#"+g[e].id&&i.push(r[a])}for(var c=0,u=i.length;c<u;c++)i[c].setAttributeNS(ea,"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"),C=[],E=0,S=k.length;E<S;E++)(x=k[E].getAttribute("type"))&&"application/ecmascript"!==x&&"application/javascript"!==x&&"text/javascript"!==x||((v=k[E].innerText||k[E].textContent)&&C.push(v),o.removeChild(k[E]));if(C.length>0&&("always"===t||"once"===t&&!Qi[s])){for(var N=0,T=C.length;N<T;N++)new Function(C[N])(window);Qi[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",ea),i(o),!e.parentNode)return Ki.splice(Ki.indexOf(e),1),e=null,void a(new Error("Parent node is null"));e.parentNode.replaceChild(o,e),Ki.splice(Ki.indexOf(e),1),e=null,a(null,o)}))}else a(new Error("Invalid data-src or src attribute"))},na={exports:{}};function ra(){}function oa(){}oa.resetWarningCache=ra;na.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:oa,resetWarningCache:ra};return n.PropTypes=n,n}();var ia=na.exports,aa=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],sa="http://www.w3.org/2000/svg",la="http://www.w3.org/1999/xlink",ca=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}var n,r;r=e,(n=t).prototype=Object.create(r.prototype),n.prototype.constructor=n,Fi(n,r);var o=t.prototype;return o.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(sa,h)).setAttribute("xmlns",sa),n.setAttribute("xmlns:xlink",la),r=document.createElementNS(sa,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 y=0,_=0,b=e.length;_<b;_++)ta(e[_],p,g,u,m,l,(function(t,n){a(t,n),e&&"length"in e&&e.length===++y&&o(y)}));else e?ta(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})}},o.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},o.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},o.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})(Ui({},e),this.props)&&this.setState((function(){return t.initialState}),(function(){t.removeSVG(),t.renderSVG()}))},o.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},o.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(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,aa);return v(r,Ui({},o,{ref:this.refCallback},"svg"===r?{xmlns:sa,xmlnsXlink:la}:{}),this.state.isLoading&&n&&v(n,null),this.state.hasError&&t&&v(t,null))},t}(E);ca.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},ca.propTypes={afterInjection:ia.func,beforeInjection:ia.func,desc:ia.string,evalScripts:ia.oneOf(["always","once","never"]),fallback:ia.oneOfType([ia.func,ia.object,ia.string]),httpRequestWithCredentials:ia.bool,loading:ia.oneOfType([ia.func,ia.object,ia.string]),onError:ia.func,renumerateIRIElements:ia.bool,src:ia.string.isRequired,title:ia.string,useRequestCache:ia.bool,wrapper:ia.oneOf(["div","span","svg"])};const ua=e=>{const{fetchAssessments:t,getOffers:n,hostInformation:{experiment:r,treatment:o}}=Xn(ho),[i,a]=qn(void 0),[s,l]=qn("fetching-offers"),[c,u]=qn([]),{trace:d}=No();Li((()=>{(async()=>{await Ii(5e3),await t();const e=n().map((e=>({name:e.content.productName,url:e.content.iconUrl})));u(e),l("displaying-offers-one-by-one");for(let t=0;t<e.length;t++)a(t),await Ii(1e3);await Ii(1e3),l("scaling-up-offers"),await Ii(1e3),l("set-up-benefits")})()}));const p=Zn((()=>{switch(s){case"fetching-offers":case"displaying-offers-one-by-one":case"scaling-up-offers":return"Personalising your benefits plan";case"set-up-benefits":return"Your Benefits Plan"}}),[s]),f=Zn((()=>{switch(s){case"fetching-offers":return"Finding benefits...";case"displaying-offers-one-by-one":case"scaling-up-offers":return 0===i?"1 benefit found that matches your profile":`${i+1} benefits found that match your profile`;case"set-up-benefits":return"Based on your profile, these are the benefits available to you"}}),[s,i]),m=Zn((()=>"fetching-offers"===s),[s]),h=Zn((()=>"scaling-up-offers"!==s),[s]),g=Zn((()=>"scaling-up-offers"===s||"set-up-benefits"===s),[s]),y=Zn((()=>"set-up-benefits"===s),[s]),_=Zn((()=>"set-up-benefits"===s),[s]);return fo(vi,{children:[fo(vi.Top,{children:fo("div",{className:"flex flex-col gap-4",children:[fo("div",{className:"transition-opacity duration-700 ease-in-out "+(m?"opacity-100":"opacity-0"),children:fo(xo,{size:"lg"})}),fo(Ni,{className:"transition-opacity duration-700 ease-in-out "+(h?"opacity-100":"opacity-0"),children:p}),fo(Ti,{className:"transition-opacity duration-700 ease-in-out "+(h?"opacity-100":"opacity-0"),children:f})]})}),fo(vi.Bottom,{children:fo("div",{class:"flex flex-col items-center gap-4",children:[fo(da,{scaleUp:g,showName:y,icons:c}),fo(Co,{testId:"set_up_benefits_button_next_screen",class:"mt-4 w-full md:w-[240px] transition-opacity duration-700 ease-in-out "+(_?"opacity-100":"hidden opacity-0"),onClickPromise:async()=>{await d("marketplace-started",{experiment:r,treatment:o}),await e.onComplete()},children:"Set up your benefits"})]})})]})},da=({scaleUp:e,showName:t,icons:n})=>fo("div",{children:[fo("style",{children:"\n .bg-lighter-than-text{\n background-color: hsl(from currentColor h s l / 0.08);\n }\n\n .animate-slide-from-right {\n opacity: 0;\n transform: translateX(400px);\n animation: slide-from-right 1s ease-out forwards;\n }\n\n @keyframes slide-from-right {\n from {\n transform: translateX(400px);\n opacity: 0;\n }\n to {\n transform: translateX(0);\n opacity: 1;\n }\n }\n "}),fo("div",{className:"flex gap-4 transition-scale transition-margin duration-700 ease-in-out "+(e?"scale-150 m-4":"scale-100"),children:n.map(((e,n)=>fo("div",{className:"mt-4 flex flex-col gap-1 items-center text-primary-base text-[0.5rem] w-12 max-w-12 min-w-12 animate-slide-from-right",style:{animationDelay:1e3*n+"ms"},children:[fo(ca,{src:e.url,wrapper:"svg",className:"w-10 h-10 max-h-10 max-w-10 min-h-10 min-w-10 p-2.5 rounded-lg bg-lighter-than-text",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}),fo("p",{className:"transition-opacity duration-700 ease-in-out "+(t?"opacity-100":"opacity-0"),children:e.name})]},e.name)))})]});var pa=(e=>(e[e.PHONE_NUMBER=0]="PHONE_NUMBER",e[e.OTP=1]="OTP",e[e.SUCCESS=2]="SUCCESS",e))(pa||{});const fa=({className:e,children:t,...n})=>fo("label",{class:`text-base text-gray-600 ${e??""}`,...n,children:t}),ma=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"})),ha=({className:e,onClick:t,...n})=>{const[r,o]=qn(!1);return fo("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:Jn((()=>{if(!r)return o(!0),t().finally((()=>{o(!1)}))}),[r,t]),...n,children:[fo("div",{class:"relative "+(r?"invisible":""),children:n.children}),r&&fo("div",{class:"absolute",children:fo(xo,{theme:"primary"})})]})},ga=({className:e,allowedKeyPattern:t,onChange:n,value:r,leadingIconElement:o,trailingIconElement:i,...a})=>{const s=Jn((e=>{t.test(e.key)||e.preventDefault()}),[t]);return fo(C,{children:fo("div",{class:"relative",children:[o,fo("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]})})},ya=e=>e.replace(/ /g,""),_a=e=>{const t=ya(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{hostInformation:{workflowsJourneyType:r}}=Xn(ho),[o,i]=qn(""),{setPhoneNumber:a,phoneNumber:s}=(e=>{const{identity:t}=Xn(ho),[n,r]=qn((()=>e&&_a(e)?e:"")),o=Zn((()=>_a(n)),[n]),i=Zn((()=>ya(n)),[n]),a=Zn((()=>i.startsWith("04")?`+61${i.replace(/^0+/,"")}`:i.startsWith("614")?`+${i}`:i),[i]),s=Zn((()=>(e=>{let t=0;return"#### ### ### ### ### ### ###".replace(/#/g,(()=>e[t++]??"")).trim()})(i)),[i]),l=Zn((()=>_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]=qn(s.isVerified),u=Jn((()=>{i("")}),[]),d=Jn((()=>{const e=s.valid?"":"Please enter a valid Australian mobile number beginning with 04.";i(e),c(s.isVerified)}),[s.isVerified,s.valid]),p=Jn((async()=>{s.valid&&await t(s).catch(i)}),[s,t]),f=Jn((async()=>{c(!1)}),[]),m=fo("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 ",fo(ma,{})]});return fo(vi,{children:[fo(vi.Top,{children:fo("div",{className:"flex flex-col gap-5",children:[fo(Ni,{children:"Join your workplace benefits program"}),fo(Ti,{children:[s.isVerified?"Confirm ":"Enter "," your ",fo("b",{children:"personal"})," mobile number to finish setting up your Flare Benefits account linked to your workplace"]})]})}),fo(vi.Bottom,{children:fo("div",{className:"mt-5 md:w-[300px] text-left",children:[fo(fa,{className:"font-medium text-sm text-gray-900 text-left",children:"Australian Mobile Number"}),fo(ga,{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&&m,disabled:l}),0!==o.length&&fo("div",{className:"h-8 leading-none",children:fo("span",{className:"text-xs text-rose-500",children:o})}),l&&fo("div",{className:"mt-2 ml-2 mb-2 leading-none",children:fo("span",{className:"text-xs",children:["Not your personal number?",fo(ha,{class:"text-blue-500",onClick:f,children:"Change number"})]})}),fo("div",{children:fo("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"," ",fo("a",{href:"https://www.flarehr.com/flare-app-terms-and-conditions/",target:"_blank",rel:"noreferrer",children:" Terms of Use "}),"and",fo("a",{href:"https://www.flarehr.com/privacy-policy/",target:"_blank",rel:"noreferrer",children:" Privacy Policy"}),"."," "]})}),fo(Co,{testId:"sign_in_mobile_number_button_send_otp",class:"mt-5 md:w-full",onClickPromise:p,children:"Join your workplace"}),r!==ne.AppInvite&&fo(Co,{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:n,children:"Not now"})]})})]})},wa=""+("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),va=({onContinue:e})=>{const{featureFlags:{marketplaceScheme:t},hostInformation:{experiment:n,treatment:r}}=Xn(ho),{trace:o}=No(),i=Zn((()=>({title:"You’ve joined your workplace benefits program",isNextButtonHidden:"allowance"===t.scheme})),[t]),a=Jn((async()=>{"allowance"!==t.scheme&&await o("marketplace-started",{experiment:n,treatment:r}),e()}),[n,t.scheme,e,o,r]);return Vn((()=>{if("allowance"===t.scheme){const t=setTimeout(e,3e3);return()=>clearTimeout(t)}}),[t,e]),fo(vi,{children:[fo(vi.Top,{children:fo("img",{src:wa,className:"h-16 w-16"})}),fo(vi.Bottom,{children:fo("div",{className:"mt-5 flex flex-col items-center gap-5 text-center",children:[fo(Ni,{children:i.title}),!i.isNextButtonHidden&&fo(Co,{testId:"sign_in_success_button_next_screen",class:"mt-5 w-full md:w-[240px]",onClickPromise:a,children:"Set up your benefits"})]})})]})},xa=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"})),ka=({open:e})=>fo(vo,{open:e,children:fo(wo,{children:fo("div",{className:"flex flex-col gap-5 items-center justify-center text-center",children:[fo(xo,{size:"lg"}),fo(Ni,{children:"Creating your account"}),fo("div",{children:[fo(Ti,{children:"This can take up to 30 seconds."}),fo(Ti,{children:"Please don't navigate away or refresh your browser."})]})]})})}),Ca=({phoneNumber:e,onVerify:t,onResendOtp:n,onGoBack:r})=>{const{otp:o,setOtp:i}=(()=>{const[e,t]=qn("");return{otp:{valid:Zn((()=>6===e.length),[e.length]),code:e},setOtp:t}})(),[a,s]=qn(!1),[l,c]=qn(""),{countdown:u,restart:d}=(e=>{const[t,n]=qn(e),r=Gn(),o=Jn((()=>{clearInterval(r.current)}),[]);return Vn((()=>o),[o]),{countdown:t,restart:Jn((()=>{let t=e;clearInterval(r.current),r.current=setInterval((()=>{t<0?clearInterval(r.current):n(t--)}),1e3)}),[e])}})(60);Vn(d,[d]);const p=Jn((()=>(s(!0),c(""),t(o.code).catch(c).finally((()=>{s(!1)})))),[t,o.code]),f=Jn((()=>(c(""),n().then(d).catch(c))),[n,d]);return fo(C,{children:[fo(ka,{open:a}),fo(vi,{children:[fo(vi.Top,{children:fo("div",{className:"flex flex-col gap-5",children:[fo(Ni,{children:"Verify your mobile number"}),fo(Ti,{children:["An SMS verification code has been sent to the number ",e,"."]})]})}),fo(vi.Bottom,{children:fo("div",{className:"mt-5 md:w-[300px] text-left",children:[fo(fa,{className:"font-medium text-sm text-gray-900 text-left",children:"Enter your verification code"}),fo(ga,{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&&fo("span",{className:"text-xs text-rose-500",children:l}),fo("p",{class:"mt-2 text-center text-xs text-gray-600 disabled:opacity-75 ",children:["Didn't get the code?",fo(ha,{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&&fo(C,{children:["in ",u," secs"]})]}),fo(Co,{testId:"sign_in_otp_button_verify_otp",class:"mt-5 md:w-full",disabled:!o.valid,onClickPromise:p,children:"Continue"}),fo(Co,{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:fo("span",{className:"flex gap-3",children:[fo(xa,{}),"Back"]})})]})})]})]})},Ea=({phoneNumber:e,onSignUp:t,onVerify:n,onResendOtp:r,onSuccess:o,onDecline:i})=>{const{trace:a}=No(),[s,l]=qn(e??""),{step:c,goBack:u,goToStep:d}=(()=>{const[e,t]=qn(0),n=Jn((()=>{const n=e-1;n>=0&&t(n)}),[e]),r=Jn((e=>{e<=2&&t(e)}),[]);return{step:e,goBack:n,goToStep:r}})();Vn((()=>{(async()=>{await a("sign-up-viewed")})()}),[a]);const p=Jn((e=>t(e.formatted).then((async t=>{l(e.masked),t.isVerificationRequired?d(pa.OTP):(await a("sign-up-completed"),d(pa.SUCCESS))}))),[d,t,a]),f=Jn((()=>a("sign-up-declined").then(i)),[i,a]),m=Jn((e=>n(e).then((async()=>{await a("sign-up-completed"),d(pa.SUCCESS)}))),[d,n,a]);return fo(C,{children:[c===pa.PHONE_NUMBER&&fo(ba,{phoneNumber:s,onSubmit:p,onDecline:f}),c===pa.OTP&&fo(Ca,{phoneNumber:s,onVerify:m,onResendOtp:r,onGoBack:u}),c===pa.SUCCESS&&fo(va,{onContinue:o})]})};var Sa=(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))(Sa||{});const Na=e=>{var t;const n=null==(t=null==e?void 0:e.response)?void 0:t.data;throw Sa[null==n?void 0:n.code]??"Sorry, we are currently experiencing some issues. Please try again later."},Ta=({onSuccess:e,onDecline:t})=>{const{identity:{phoneNumber:n}}=Xn(ho),{signUp:r,verifyOtp:o,resendOtp:i}={signUp:async e=>kn.backend.getClient().post("v2.0/auth/signUp",{mobileNumber:e}).then((e=>({isVerificationRequired:e.data.isVerificationRequired??!0}))),verifyOtp:async e=>{await kn.backend.getClient().post("auth/verify",{otp:e}).catch(Na)},resendOtp:async()=>{await kn.backend.getClient().post("auth/resend").catch(Na)}};return fo(C,{children:fo(Ea,{phoneNumber:n,onSignUp:r,onVerify:o,onResendOtp:i,onSuccess:e,onDecline:t})})},Aa=""+("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),Oa=e=>{const{trace:t}=No(),{hostInformation:{experiment:n,treatment:r}}=Xn(ho);return Vn((()=>{t("benefits-setup-started",{experiment:n,treatment:r})}),[n,t,r]),fo(vi,{children:[fo(vi.Top,{children:fo("img",{class:"max-w-[30rem] w-full",src:Aa})}),fo(vi.Bottom,{children:fo("div",{children:[fo("h3",{class:"mt-8 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:"Finish setting up your workplace benefits"}),fo("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."}),fo(Co,{testId:"introduction_button_next_screen",class:"mt-8",onClickPromise:async()=>{e.onStepComplete()},children:"Continue"})]})})]})},Ra=({visible:e,children:t})=>{const n=Gn(e);return e&&!n.current&&(n.current=!0),n.current?fo("div",{hidden:!e,children:t}):null},Pa=({icon:e})=>"string"==typeof e?fo(ca,{src:e,wrapper:"svg",className:"w-10 h-10 max-h-10 max-w-10 min-h-10 min-w-10 p-2.5 rounded-lg bg-lighter-than-text",beforeInjection:e=>{var t;e.removeAttribute("width"),e.removeAttribute("height"),null==(t=e.querySelector("path"))||t.removeAttribute("fill"),e.setAttribute("fill","currentColor")}}):fo("div",{className:"w-10 h-10 max-h-10 max-w-10 min-h-10 min-w-10 p-2.5 rounded-lg bg-lighter-than-text",children:e}),La=({label:e,icon:t})=>fo("div",{className:"flex flex-col gap-1 items-center w-12 max-w-12 min-w-12",children:[t,fo("p",{className:"max-h-10 max-w-20 break-words text-ellipsis overflow-hidden line-clamp-2",children:e})]}),Ia=({children:e})=>fo(C,{children:e}),Ua=({selectedIndex:e,onChange:t,children:n})=>{const r=Zn((()=>hr.toArray(n).filter((e=>e.type===La))),[n]),o=Zn((()=>hr.toArray(n).filter((e=>e.type===Ia))),[n]);return Li((()=>{o.length>0&&(null==t||t(0))})),fo("div",{children:[fo("div",{className:"flex items-baseline gap-8 md:mb-4",children:[fo("style",{children:"\n .bg-lighter-than-text{\n background-color: hsl(from currentColor h s l / 0.08);\n }\n "}),r.map(((n,r)=>fo("div",{onClick:()=>null==t?void 0:t(r),className:`\n text-sm font-medium cursor-auto h-full relative\n flex items-center justify-center\n ${r===e?"text-primary-base":"text-gray-400"}\n ${o.length>0?"hover:before:cursor-pointer":"hover:before:cursor-default"} \n hover:before:w-16 hover:before:h-16 hover:before:absolute\n `,children:n},n.key)))]}),o.map(((t,n)=>fo(Ra,{visible:n===e,children:t},t.key)))]})},Fa=()=>fo("div",{class:"flex justify-center",children:fo(xo,{size:"lg"})}),ja=(Ba=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o},hostInformation:i,offersProgress:{canOfferSkipToEstimate:a}}=Xn(ho),{trace:s}=No(),l=Gn(null);return Li((()=>{s({type:"offer-viewed",offerName:e.marketPlaceOffer.name,data:e.marketPlaceOffer.metadata},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),l.current&&(l.current.terms=e.marketPlaceOffer.content.terms,l.current.details=e.marketPlaceOffer.content.details,l.current["on-accept"]=async()=>{await s({type:"offer-accepted",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName})},l.current["on-decline"]=async()=>{await s({type:"offer-declined",offerName:e.marketPlaceOffer.name,data:{...e.marketPlaceOffer.metadata,template:e.marketPlaceOffer.content.template,assessmentId:e.marketPlaceOffer.content.assessmentId}},{experiment:e.marketPlaceOffer.metadata.featureName,treatment:e.marketPlaceOffer.metadata.treatmentName}),e.onStepComplete(!1,!1)},l.current["on-complete"]=()=>e.onStepComplete(!0,!0),l.current["on-skip"]=e.marketPlaceOffer.content.skipButtonHidden?void 0:()=>e.onStepComplete(!0,!1))})),fo("benefits-plan-assessment",{"base-url":Cn.workplaceBackend.getBaseUrl(),"profile-id":Cn.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":i.client,"track-source":i.source,"track-channel":i.channel,"track-experiment":e.marketPlaceOffer.metadata.featureName,"track-treatment":e.marketPlaceOffer.metadata.treatmentName,"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","skip-to-completion":a(e.marketPlaceOffer.name),ref:l})},e=>{const t=Gn(null),[n,r]=qn(),[o,i]=qn(!1);return Vn((()=>{(async()=>{const e=await Cn.workplaceBackend.getIdToken();r(e)})(),(()=>{if(t.current&&!t.current.querySelector("script[data-injected]")){const e=document.createElement("script"),n=yo(Cn.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)})()}),[]),fo("div",{ref:t,className:n,children:n&&o?fo(Ba,{...e,accessToken:n}):fo(Fa,{})})});var Ba;const Ma=e=>v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 384 512",...e},v("path",{fill:"currentColor",d:"M345 137c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-119 119L73 103c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l119 119L39 375c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l119-119L311 409c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-119-119L345 137z"}))
8
+ /*! @license DOMPurify 3.2.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.2.6/LICENSE */,{entries:Da,setPrototypeOf:za,isFrozen:Ha,getPrototypeOf:qa,getOwnPropertyDescriptor:Wa}=Object;let{freeze:Va,seal:$a,create:Ga}=Object,{apply:Ya,construct:Za}="undefined"!=typeof Reflect&&Reflect;Va||(Va=function(e){return e}),$a||($a=function(e){return e}),Ya||(Ya=function(e,t,n){return e.apply(t,n)}),Za||(Za=function(e,t){return new e(...t)});const Ja=ds(Array.prototype.forEach),Xa=ds(Array.prototype.lastIndexOf),Ka=ds(Array.prototype.pop),Qa=ds(Array.prototype.push),es=ds(Array.prototype.splice),ts=ds(String.prototype.toLowerCase),ns=ds(String.prototype.toString),rs=ds(String.prototype.match),os=ds(String.prototype.replace),is=ds(String.prototype.indexOf),as=ds(String.prototype.trim),ss=ds(Object.prototype.hasOwnProperty),ls=ds(RegExp.prototype.test),cs=(us=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Za(us,t)});var us;function ds(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Ya(e,t,r)}}function ps(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ts;za&&za(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Ha(t)||(t[r]=e),o=e)}e[o]=!0}return e}function fs(e){for(let t=0;t<e.length;t++){ss(e,t)||(e[t]=null)}return e}function ms(e){const t=Ga(null);for(const[n,r]of Da(e)){ss(e,n)&&(Array.isArray(r)?t[n]=fs(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=ms(r):t[n]=r)}return t}function hs(e,t){for(;null!==e;){const n=Wa(e,t);if(n){if(n.get)return ds(n.get);if("function"==typeof n.value)return ds(n.value)}e=qa(e)}return function(){return null}}const gs=Va(["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"]),ys=Va(["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"]),_s=Va(["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"]),bs=Va(["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=Va(["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"]),vs=Va(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),xs=Va(["#text"]),ks=Va(["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"]),Cs=Va(["accent-height","accumulate","additive","alignment-baseline","amplitude","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","exponent","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","intercept","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","slope","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","tablevalues","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"]),Es=Va(["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"]),Ss=Va(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ns=$a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Ts=$a(/<%[\w\W]*|[\w\W]*%>/gm),As=$a(/\$\{[\w\W]*/gm),Os=$a(/^data-[\-\w.\u00B7-\uFFFF]+$/),Rs=$a(/^aria-[\-\w]+$/),Ps=$a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ls=$a(/^(?:\w+script|data):/i),Is=$a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Us=$a(/^html$/i),Fs=$a(/^[a-z][.\w]*(-[.\w]+)+$/i);var js=Object.freeze({__proto__:null,ARIA_ATTR:Rs,ATTR_WHITESPACE:Is,CUSTOM_ELEMENT:Fs,DATA_ATTR:Os,DOCTYPE_NAME:Us,ERB_EXPR:Ts,IS_ALLOWED_URI:Ps,IS_SCRIPT_OR_DATA:Ls,MUSTACHE_EXPR:Ns,TMPLIT_EXPR:As});const Bs=1,Ms=3,Ds=7,zs=8,Hs=9;var qs=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.2.6",n.removed=[],!t||!t.document||t.document.nodeType!==Hs||!t.Element)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=hs(h,"cloneNode"),y=hs(h,"remove"),_=hs(h,"nextSibling"),b=hs(h,"childNodes"),w=hs(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:C,createDocumentFragment:E,getElementsByTagName:S}=r,{importNode:N}=o;let T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Da&&"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}=js;let{IS_ALLOWED_URI:j}=js,B=null;const M=ps({},[...gs,...ys,..._s,...ws,...xs]);let D=null;const z=ps({},[...ks,...Cs,...Es,...Ss]);let H=Object.seal(Ga(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}})),q=null,W=null,V=!0,$=!0,G=!1,Y=!0,Z=!1,J=!0,X=!1,K=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=ps({},["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=ps({},["audio","video","img","source","image","track"]);let pe=null;const fe=ps({},["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 ye=ge,_e=!1,be=null;const we=ps({},[me,he,ge],ns);let ve=ps({},["mi","mo","mn","ms","mtext"]),xe=ps({},["annotation-xml"]);const ke=ps({},["title","style","font","a","script"]);let Ce=null;const Ee=["application/xhtml+xml","text/html"];let Se=null,Ne=null;const Te=r.createElement("form"),Ae=function(e){return e instanceof RegExp||e instanceof Function},Oe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ne||Ne!==e){if(e&&"object"==typeof e||(e={}),e=ms(e),Ce=-1===Ee.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Se="application/xhtml+xml"===Ce?ns:ts,B=ss(e,"ALLOWED_TAGS")?ps({},e.ALLOWED_TAGS,Se):M,D=ss(e,"ALLOWED_ATTR")?ps({},e.ALLOWED_ATTR,Se):z,be=ss(e,"ALLOWED_NAMESPACES")?ps({},e.ALLOWED_NAMESPACES,ns):we,pe=ss(e,"ADD_URI_SAFE_ATTR")?ps(ms(fe),e.ADD_URI_SAFE_ATTR,Se):fe,ue=ss(e,"ADD_DATA_URI_TAGS")?ps(ms(de),e.ADD_DATA_URI_TAGS,Se):de,le=ss(e,"FORBID_CONTENTS")?ps({},e.FORBID_CONTENTS,Se):ce,q=ss(e,"FORBID_TAGS")?ps({},e.FORBID_TAGS,Se):ms({}),W=ss(e,"FORBID_ATTR")?ps({},e.FORBID_ATTR,Se):ms({}),se=!!ss(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,Z=e.SAFE_FOR_TEMPLATES||!1,J=!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,j=e.ALLOWED_URI_REGEXP||Ps,ye=e.NAMESPACE||ge,ve=e.MATHML_TEXT_INTEGRATION_POINTS||ve,xe=e.HTML_INTEGRATION_POINTS||xe,H=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Ae(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(H.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Ae(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(H.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(H.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Z&&($=!1),te&&(ee=!0),se&&(B=ps({},xs),D=[],!0===se.html&&(ps(B,gs),ps(D,ks)),!0===se.svg&&(ps(B,ys),ps(D,Cs),ps(D,Ss)),!0===se.svgFilters&&(ps(B,_s),ps(D,Cs),ps(D,Ss)),!0===se.mathMl&&(ps(B,ws),ps(D,Es),ps(D,Ss))),e.ADD_TAGS&&(B===M&&(B=ms(B)),ps(B,e.ADD_TAGS,Se)),e.ADD_ATTR&&(D===z&&(D=ms(D)),ps(D,e.ADD_ATTR,Se)),e.ADD_URI_SAFE_ATTR&&ps(pe,e.ADD_URI_SAFE_ATTR,Se),e.FORBID_CONTENTS&&(le===ce&&(le=ms(le)),ps(le,e.FORBID_CONTENTS,Se)),ie&&(B["#text"]=!0),X&&ps(B,["html","head","body"]),B.table&&(ps(B,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw cs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw cs('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(""));Va&&Va(e),Ne=e}},Re=ps({},[...ys,..._s,...bs]),Pe=ps({},[...ws,...vs]),Le=function(e){Qa(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){y(e)}},Ie=function(e,t){try{Qa(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Qa(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===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=rs(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ce&&ye===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=v?v.createHTML(e):e;if(ye===ge)try{t=(new f).parseFromString(o,Ce)}catch(a){}if(!t||!t.documentElement){t=k.createDocument(ye,"template",null);try{t.documentElement.innerHTML=_e?x:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ye===ge?S.call(t,X?"html":"body")[0]:X?t.documentElement:i},Fe=function(e){return C.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},je=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)},Be=function(e){return"function"==typeof l&&e instanceof l};function Me(e,t,r){Ja(e,(e=>{e.call(n,t,r,Ne)}))}const De=function(e){let t=null;if(Me(T.beforeSanitizeElements,e,null),je(e))return Le(e),!0;const r=Se(e.nodeName);if(Me(T.uponSanitizeElement,e,{tagName:r,allowedTags:B}),J&&e.hasChildNodes()&&!Be(e.firstElementChild)&&ls(/<[/\w!]/g,e.innerHTML)&&ls(/<[/\w!]/g,e.textContent))return Le(e),!0;if(e.nodeType===Ds)return Le(e),!0;if(J&&e.nodeType===zs&&ls(/<[/\w]/g,e.data))return Le(e),!0;if(!B[r]||q[r]){if(!q[r]&&He(r)){if(H.tagNameCheck instanceof RegExp&&ls(H.tagNameCheck,r))return!1;if(H.tagNameCheck instanceof Function&&H.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,_(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ye,tagName:"template"});const n=ts(e.tagName),r=ts(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===he?t.namespaceURI===ge?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||ve[r]):Boolean(Re[n]):e.namespaceURI===me?t.namespaceURI===ge?"math"===n:t.namespaceURI===he?"math"===n&&xe[r]:Boolean(Pe[n]):e.namespaceURI===ge?!(t.namespaceURI===he&&!xe[r])&&!(t.namespaceURI===me&&!ve[r])&&!Pe[n]&&(ke[n]||!Re[n]):!("application/xhtml+xml"!==Ce||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ls(/<\/no(script|embed|frames)/i,e.innerHTML)?(Z&&e.nodeType===Ms&&(t=e.textContent,Ja([A,O,R],(e=>{t=os(t,e," ")})),e.textContent!==t&&(Qa(n.removed,{element:e.cloneNode()}),e.textContent=t)),Me(T.afterSanitizeElements,e,null),!1):(Le(e),!0)},ze=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Te))return!1;if($&&!W[t]&&ls(P,t));else if(V&&ls(L,t));else if(!D[t]||W[t]){if(!(He(e)&&(H.tagNameCheck instanceof RegExp&&ls(H.tagNameCheck,e)||H.tagNameCheck instanceof Function&&H.tagNameCheck(e))&&(H.attributeNameCheck instanceof RegExp&&ls(H.attributeNameCheck,t)||H.attributeNameCheck instanceof Function&&H.attributeNameCheck(t))||"is"===t&&H.allowCustomizedBuiltInElements&&(H.tagNameCheck instanceof RegExp&&ls(H.tagNameCheck,n)||H.tagNameCheck instanceof Function&&H.tagNameCheck(n))))return!1}else if(pe[t]);else if(ls(j,os(n,U,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==is(n,"data:")||!ue[e]){if(G&&!ls(I,os(n,U,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&rs(e,F)},qe=function(e){Me(T.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||je(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:D,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=Se(s),d=c;let p="value"===s?d:as(d);if(r.attrName=u,r.attrValue=p,r.keepAttr=!0,r.forceKeepAttr=void 0,Me(T.uponSanitizeAttribute,e,r),p=r.attrValue,!oe||"id"!==u&&"name"!==u||(Ie(s,e),p="user-content-"+p),J&&ls(/((--!?|])>)|<\/(style|title)/i,p)){Ie(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Ie(s,e);continue}if(!Y&&ls(/\/>/i,p)){Ie(s,e);continue}Z&&Ja([A,O,R],(e=>{p=os(p,e," ")}));const f=Se(e.nodeName);if(ze(f,u,p)){if(v&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(l);else switch(m.getAttributeType(f,u)){case"TrustedHTML":p=v.createHTML(p);break;case"TrustedScriptURL":p=v.createScriptURL(p)}if(p!==d)try{l?e.setAttributeNS(l,s,p):e.setAttribute(s,p),je(e)?Le(e):Ka(n.removed)}catch(i){Ie(s,e)}}else Ie(s,e)}Me(T.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const r=Fe(t);for(Me(T.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Me(T.uponSanitizeShadowNode,n,null),De(n),qe(n),n.content instanceof a&&e(n.content);Me(T.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(_e=!e,_e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!Be(e)){if("function"!=typeof e.toString)throw cs("toString is not a function");if("string"!=typeof(e=e.toString()))throw cs("dirty is not a string, aborting")}if(!n.isSupported)return e;if(K||Oe(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Se(e.nodeName);if(!B[t]||q[t])throw cs("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===Bs&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!Z&&!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();)De(s),qe(s),s.content instanceof a&&We(s.content);if(ae)return e;if(ee){if(te)for(c=E.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(D.shadowroot||D.shadowrootmode)&&(c=N.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&B["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ls(Us,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Z&&Ja([A,O,R],(e=>{d=os(d,e," ")})),v&&ne?v.createHTML(d):d},n.setConfig=function(){Oe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),K=!0},n.clearConfig=function(){Ne=null,K=!1},n.isValidAttribute=function(e,t,n){Ne||Oe({});const r=Se(e),o=Se(t);return ze(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&Qa(T[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Xa(T[e],t);return-1===n?void 0:es(T[e],n,1)[0]}return Ka(T[e])},n.removeHooks=function(e){T[e]=[]},n.removeAllHooks=function(){T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Ws=({children:e})=>{const t=lo.Children.toArray(e),n=t.find((e=>e.type===Vs)),r=t.find((e=>e.type===$s));return fo(wi,{appear:!0,show:!0,enter:"transition duration-700 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:fo("div",{class:"md:grid md:grid-cols-2 max-w-[59.5rem] mx-auto",children:[fo(wi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:n&&fo("div",{class:"flex items-center h-full",children:n})}),fo(wi,{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&&fo("div",{class:"flex items-center h-full",children:r})})]})})},Vs=({children:e})=>fo(C,{children:e}),$s=({children:e})=>fo(C,{children:e});Ws.Left=Vs,Ws.Right=$s;const Gs=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"})),Ys=e=>fo(wi,{appear:!0,show:!0,enter:"transition duration-300 ease-out",enterFrom:"opacity-0",enterTo:"opacity-100",children:fo("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)=>fo("div",{class:"flex space-x-1",children:[fo("span",{children:fo(Ai,{class:"h-5 w-5 fill-primary-base"})}),fo("span",{class:"text-sm leading-5 text-gray-600",children:e})]},t)))})}),Zs=e=>{const[t,n]=qn(!1);return fo("div",{class:e.class,children:t?fo(Ys,{items:e.items}):fo("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",fo("span",{class:"ml-1",children:fo(Gs,{class:"h-4 w-4"})})]})})},Js=e=>{var t,n,r,o;const{featureFlags:{marketplaceScheme:i}}=Xn(ho),{trace:a}=No(),[s,l]=qn(!1);Li((()=>{a({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));const c=async t=>{t?await a({type:"offer-accepted",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}):await a({type:"offer-declined",offerName:e.step.name,data:{...e.step.metadata,template:"Eoi"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName});return(t?e.primaryButton:e.secondaryButton).onClick()};return fo(Ws,{children:[fo(Ws.Left,{children:fo("div",{children:fo(wi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:fo("div",{children:[fo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),fo("div",{class:"md:max-w-[27.5rem]",children:[fo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),fo("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&&fo("div",{class:"mt-6 hidden md:block",children:fo(Ys,{items:e.step.content.details})})]}),e.step.content.details&&fo(Zs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===i.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&fo(Eo,{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:fo("div",{children:[fo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),fo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,fo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:[fo(Co,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:()=>c(!0),children:e.primaryButton.text??"Next"}),(null==(n=e.secondaryButton)?void 0:n.text)&&fo(Co,{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:()=>c(!1),children:e.secondaryButton.text})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&fo("p",{className:"mt-6 text-xs",children:[fo("span",{children:"*"}),fo("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>l(!0),children:"T&C's apply"})]}),(null==(o=e.step.content.terms)?void 0:o.length)>0&&fo(vo,{open:s,children:[fo(bo,{children:fo("div",{className:"relative",children:[fo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),fo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>l(!1),children:fo(Ma,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),fo(wo,{children:fo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>fo("span",{dangerouslySetInnerHTML:{__html:qs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),fo(Ws.Right,{children:fo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Xs=e=>{var t,n,r;const{featureFlags:{marketplaceScheme:o}}=Xn(ho),{trace:i}=No(),[a,s]=qn(!1);Li((()=>{"name"in e.step&&i({type:"offer-viewed",offerName:e.step.name,data:e.step.metadata},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName})}));return fo(Ws,{children:[fo(Ws.Left,{children:fo("div",{children:fo(wi,{appear:!0,show:!0,enter:"transition duration-700 ease-out md:transition-none",enterFrom:"-translate-y-6",enterTo:"translate-y-0",children:fo("div",{children:[fo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:e.step.content.mobileImageUrl,loading:"lazy"}),fo("div",{class:"md:max-w-[27.5rem]",children:[fo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:e.step.content.title}),fo("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&&fo("div",{class:"mt-6 hidden md:block",children:fo(Ys,{items:e.step.content.details})})]}),e.step.content.details&&fo(Zs,{class:"mt-6 md:hidden",items:e.step.content.details}),"allowance"===o.scheme&&"offer"==(null==(t=e.step.content.specialBanner)?void 0:t.type)&&fo(Eo,{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:fo("div",{children:[fo("p",{className:"font-semibold text-lg leading-tight text-gray-900",children:e.step.content.specialBanner.title}),fo("span",{className:"font-normal text-sm text-gray-900",children:e.step.content.specialBanner.subtitle})]})}),e.children&&e.children,fo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:fo(Co,{testId:`offer_${e.step.name}_button_accept`,class:e.primaryButton.class??"",onClickPromise:async()=>{"name"in e.step&&await i({type:"offer-progressed",offerName:e.step.name,data:{...e.step.metadata,template:"Simple"}},{experiment:e.step.metadata.featureName,treatment:e.step.metadata.treatmentName}),e.primaryButton.onClick()},children:e.primaryButton.text??"Next"})}),(null==(n=e.step.content.terms)?void 0:n.length)>0&&fo("p",{className:"mt-6 text-xs",children:[fo("span",{children:"*"}),fo("span",{className:"underline text-primary-base cursor-pointer",onClick:()=>s(!0),children:"T&C's apply"})]}),(null==(r=e.step.content.terms)?void 0:r.length)>0&&fo(vo,{open:a,children:[fo(bo,{children:fo("div",{className:"relative",children:[fo("h3",{className:"text-base font-semibold text-gray-900",children:"Terms & Conditions"}),fo("span",{className:"absolute top-0 right-0 p-1 rounded-full bg-gray-200 cursor-pointer hover:bg-gray-100",onClick:()=>s(!1),children:fo(Ma,{className:"h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4"})})]})}),fo(wo,{children:fo("div",{class:"flex flex-col gap-3 mt-6 text-gray-600 text-xs",children:e.step.content.terms.map(((e,t)=>fo("span",{dangerouslySetInnerHTML:{__html:qs.sanitize(e,{ADD_ATTR:["target"]})}},t)))})})]})]})})})}),fo(Ws.Right,{children:fo("img",{class:"max-w-[30rem] w-full hidden md:block",src:e.step.content.imageUrl,loading:"lazy"})})]})},Ks=({current:e,total:t})=>fo("div",{className:"flex justify-between md:block text-xs tracking-wide",children:fo("span",{className:"relative px-3 py-0.5 text-primary-base font-semibold",children:[e," OF ",t,fo("span",{className:"absolute left-0 rounded-xl bg-primary-base opacity-10 w-full h-[90%]"})]})}),Qs=e=>{const{getOffers:t,featureFlags:{marketplaceSubNavigation:n},offersProgress:{update:r,isOfferCompleted:o,isOfferProgressed:i}}=Xn(ho),[a,s]=qn(0),{trace:l}=No(),c=Jn(((n,o,i)=>{r(n,o,i),a===t().length-1?e.onComplete():s(a+1)}),[r,a,t,e]),u=Jn((e=>{s(e);const n=t()[e];l({type:"offer-selected",offerName:n.name},{experiment:n.metadata.featureName,treatment:n.metadata.treatmentName})}),[t,l]),d=(e,t,n)=>{const r=i(e);return!!o(e)||(!r||t!==n)&&!!r},p=t();return fo("div",{className:"max-w-[59.5rem] mx-auto",children:[!n&&fo(Ks,{current:a+1,total:p.length+1}),fo(Ua,{selectedIndex:a,onChange:u,children:[n&&p.map(((e,t)=>{var n,r;return fo(La,{label:null==(n=e.content)?void 0:n.productName,icon:fo(Pa,{icon:d(e.name,t,a)?fo(Ai,{}):null==(r=e.content)?void 0:r.iconUrl})},e.name)})),p.map((e=>{var t,n,r;return fo(Ia,{children:["Eoi"===(null==(t=e.content)?void 0:t.template)&&fo(Js,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>c(e.name,!0,!0)},secondaryButton:{text:e.content.declineButton,onClick:()=>c(e.name,!1,!1)}}),"Simple"===(null==(n=e.content)?void 0:n.template)&&fo(Xs,{step:e,primaryButton:{text:e.content.acceptButton,onClick:()=>c(e.name,!0,!0)}}),"Assessment"===(null==(r=e.content)?void 0:r.template)&&fo(ja,{onStepComplete:(t,n)=>c(e.name,t,n),marketPlaceOffer:e},e.name)]},e.name)}))]})]})},el=()=>fo("div",{class:"flex justify-center",children:fo(xo,{size:"lg"})}),tl=(e=>t=>{const n=Gn(null),[r,o]=qn(),[i,a]=qn(!1);return Vn((()=>{(async()=>{const e=await Cn.workplaceBackend.getIdToken();o(e)})(),(()=>{if(n.current&&!n.current.querySelector("script[data-injected]")){const e=document.createElement("script"),t=yo(Cn.workplaceBackend.getBaseUrl());e.type="module",e.src=`https://npm-cdn.flarehr.com/@flarehr/benefits-plan-assessment@${t}/dist/benefits-plan-assessment.js`,e.dataset.injected="true",e.onload=()=>{a(!0)},n.current.appendChild(e)}else a(!0)})()}),[]),fo("div",{ref:n,className:r,children:r&&i?fo(e,{...t,accessToken:r}):fo(el,{})})})((e=>{const{hostInformation:t,benefitsPlanPersonalisationAssessmentId:n}=Xn(ho),r=Gn(null);return Li((()=>{r.current&&(r.current["on-complete"]=e.onComplete)})),fo("div",{className:"flex justify-center",children:fo("benefits-plan-assessment",{"base-url":Cn.workplaceBackend.getBaseUrl(),"profile-id":Cn.workplaceBackend.getProfileId(),"skip-intro":!0,"skip-more-details":!0,"skip-summary":!0,"access-token":e.accessToken,"assessment-id":n,"track-client":t.client,"track-source":t.source,"track-channel":t.channel,"track-experiment":t.experiment,"track-treatment":t.treatment,"assessment-title":"Personalise your benefits plan",description:"Setup your profile so that we can find the most relevant benefits for you","vertical-alignment":"items-center",ref:r})})})),nl=""+("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),rl=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"})),ol=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"})),il=""+("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),al=({onComplete:e})=>{const{trace:t}=No(),{identity:n,getIdentityRegistrationStatus:r,hostInformation:{experiment:o,treatment:i}}=Xn(ho);Vn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"app"}},{experiment:o,treatment:i})})()}),[o,t,i]);const a={...sl(n,r()),imageUrl:nl,mobileImageUrl:il},s={text:"Continue",class:"mt-6 md:mt-14",onClick:async()=>{await t("completed",{experiment:o,treatment:i}),await e()}};return fo(Ws,{children:[fo(Ws.Left,{children:fo("div",{children:[fo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:a.mobileImageUrl,loading:"lazy"}),fo("div",{class:"md:max-w-[27.5rem]",children:[fo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:a.title}),fo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:a.description})]}),fo("div",{class:"mt-6 flex space-x-6",children:[fo(rl,{}),fo(ol,{})]}),fo(Co,{testId:"step-benefits-finish",class:s.class,onClickPromise:s.onClick,children:s.text})]})}),fo(Ws.Right,{children:fo("img",{class:"max-w-[30rem] w-full hidden md:block",src:a.imageUrl,loading:"lazy"})})]})},sl=(e,t)=>{switch(t){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.`}}},ll=""+("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),cl=""+("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),ul=({onComplete:e})=>{const{trace:t}=No(),{getWorkplaceLinkingStatus:n,hostInformation:{experiment:r,treatment:o}}=Xn(ho);Vn((()=>{(async()=>{await t({type:"summary-viewed",data:{summaryVariant:"generic"}},{experiment:r,treatment:o})})()}),[r,o,t]);const i={imageUrl:ll,mobileImageUrl:cl,title:"You're all set!",description:"PreviouslyLinked"===n()?"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."},a={text:"Continue",class:"mt-6 md:mt-6",onClick:async()=>{await t("completed",{experiment:r,treatment:o}),await e()}};return fo(Ws,{children:[fo(Ws.Left,{children:fo("div",{children:[fo("img",{class:"mt-4 max-w-full w-full mx-auto md:hidden",src:i.mobileImageUrl,loading:"lazy"}),fo("div",{class:"md:max-w-[27.5rem]",children:[fo("h3",{class:"mt-8 md:mt-3 text-2xl md:text-3xl leading-8 md:leading-9 font-bold",children:i.title}),fo("p",{class:"mt-2 text-base md:text-lg leading-6 md:leading-7 text-gray-600 break-words",children:i.description})]}),fo("div",{class:"flex flex-col md:flex-row md:justify-between gap-4 md:max-w-[27.5rem] mt-6 md:mt-11",children:fo(Co,{testId:"step-benefits-finish",class:a.class,onClickPromise:a.onClick,children:a.text})})]})}),fo(Ws.Right,{children:fo("img",{class:"max-w-[30rem] w-full hidden md:block",src:i.imageUrl,loading:"lazy"})})]})},dl=()=>{const{updateIdentity:e}=Xn(ho),{current:t,goNext:n}=function(){const{isAppEnabled:e,getIdentityRegistrationStatus:t,featureFlags:n}=Xn(ho),r=Zn((()=>"allowance"===n.marketplaceScheme.scheme?["Allowance_JoinBenefits","FlareAppIdentity","BenefitsPersonalisationAssessment","ConfigureBenefits","MarketplaceOffers","Allowance_BenefitsSummary"]:["Introduction","FlareAppIdentity","BenefitsPersonalisationAssessment","ConfigureBenefits","MarketplaceOffers",e?"SummaryApp":"SummaryGeneric"]),[n.marketplaceScheme.scheme,e]),[o,i]=qn(r[0]);Vn((()=>{i(r[0])}),[r]);const a=Jn((async()=>{if(r.indexOf(o)===r.length-1){const e=document.querySelector(fl),t=new CustomEvent("step-completion",{bubbles:!0});return null==e||e.dispatchEvent(t),void(await new Promise((e=>setTimeout(e,1e4))))}if("RegistrationAbandoned"!==t())try{const e=r.findIndex((e=>e===o)),t=r[e+1];return void i(t)}catch{}else i(r[r.length-1])}),[o,t,r]);return{current:o,goNext:a}}(),r=Jn((()=>{e(!0),n()}),[n,e]),o=Jn((()=>{e(!1),n()}),[n,e]);switch(t){case"Introduction":return fo(Oa,{onStepComplete:n});case"Allowance_JoinBenefits":return fo(Ci,{onContinue:n});case"FlareAppIdentity":return fo(Ta,{onSuccess:r,onDecline:o});case"BenefitsPersonalisationAssessment":return fo(tl,{onComplete:n});case"ConfigureBenefits":return fo(ua,{onComplete:n});case"MarketplaceOffers":return fo(Qs,{onComplete:n});case"Allowance_BenefitsSummary":return fo(Pi,{onContinue:n});case"SummaryApp":return fo(al,{onComplete:n});case"SummaryGeneric":return fo(ul,{onComplete:n});default:return fo(C,{})}},pl=()=>{const e=Xn(ho);return fo(C,{children:[fo(vo,{open:e.isFetching,children:fo(wo,{children:fo(xo,{size:"lg"})})}),e.isInitialized?fo(dl,{}):fo("div",{className:"fixed flex items-center justify-center top-0 bottom-0 left-0 right-0",children:fo(xo,{size:"lg"})})]})},fl="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]=qn(0);Vn((()=>le((()=>{n(t+1)}))),[t]);const r={backendUrl:e["backend-url"],accessToken:e["access-token"],workflowsInstanceId:e["workflows-instance-id"],workflowsJourneyType:e["journey-type"]},o={channel:"onboarding",client:"onboarding",source:(e=>{switch(e){case ne.BenefitsExisting:case ne.AppInvite:return"Invite";default:return"Onboarding"}})(r.workflowsJourneyType),experiment:"onboarding-marketplace-scheme",workflowsJourneyType:r.workflowsJourneyType,workflowsInstanceId:r.workflowsInstanceId};return Nn(r.backendUrl,r.accessToken,o),"prod"===yo(r.backendUrl)&&_o.init("p09arvzysr"),fo(C,{children:[fo("style",{children:ko.toString()}),fo("div",{class:"font-inter pt-6 pb-8 md:py-24 px-px",children:fo(go,{hostInformation:o,children:fo(pl,{})})},t)]})}),fl,[],{shadow:!0})}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-benefits-onboarding",
3
- "version": "1.103.155",
3
+ "version": "1.105.158",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "dist/"
@@ -16,7 +16,7 @@
16
16
  "dependencies": {
17
17
  "@headlessui/react": "^1.7.18",
18
18
  "@microsoft/clarity": "^1.0.0",
19
- "axios": "^1.8.3",
19
+ "axios": "^1.12.2",
20
20
  "dompurify": "^3.1.6",
21
21
  "fast-deep-equal": "^3.1.3",
22
22
  "jwt-decode": "^4.0.0",