@flarehr/benefits-plan-assessment 1.0.859 → 1.0.860
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 +1 @@
|
|
|
1
|
-
var e,t,n,r,i,a,o,s,l,c,u,d={},f=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function y(t,n,r){var i,a,o,s={};for(o in n)"key"==o?i=n[o]:"ref"==o?a=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return b(t,s,i,a,null)}function b(e,r,i,a,o){var s={type:e,props:r,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++n:o,__i:-1,__u:0};return null==o&&null!=t.vnode&&t.vnode(s),s}function v(){return{current:null}}function _(e){return e.children}function w(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(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?x(e):null}function E(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 E(e)}}function S(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!k.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||a)(k)}function k(){var e,n,i,a,s,l,c,u;for(r.sort(o);e=r.shift();)e.__d&&(n=r.length,a=void 0,l=(s=(i=e).__v).__e,c=[],u=[],i.__P&&((a=m({},s)).__v=s.__v+1,t.vnode&&t.vnode(a),D(i.__P,a,s,i.__n,i.__P.namespaceURI,32&s.__u?[l]:null,c,null==l?x(s):l,!!(32&s.__u),u),a.__v=s.__v,a.__.__k[a.__i]=a,P(c,a,u),a.__e!=l&&E(a)),r.length>n&&r.sort(o));k.__r=0}function O(e,t,n,r,i,a,o,s,l,c,u){var h,m,g,y,v,w=r&&r.__k||f,E=t.length;for(n.__d=l,function(e,t,n){var r,i,a,o,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)o=r+d,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?b(null,i,null,null,null):p(i)?b(_,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?b(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=T(i,n,o,u),i.__i=s,a=null,-1!==s&&(u--,(a=n[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==o&&(s==o-1?d--:s==o+1?d++:s>o?u>l-o?d+=s-o:d--:s<o&&(s==o-d?d-=s-o:d++),s!==r+d&&(i.__u|=65536))):(a=n[o])&&null==a.key&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=x(a)),L(a,a,!1),n[o]=null,u--);if(u)for(r=0;r<c;r++)null!=(a=n[r])&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=x(a)),L(a,a))}(n,t,w),l=n.__d,h=0;h<E;h++)null!=(g=n.__k[h])&&"boolean"!=typeof g&&"function"!=typeof g&&(m=-1===g.__i?d:w[g.__i]||d,g.__i=h,D(e,g,m,i,a,o,s,l,c,u),y=g.__e,g.ref&&m.ref!=g.ref&&(m.ref&&F(m.ref,null,g),u.push(g.ref,g.__c||y,g)),null==v&&null!=y&&(v=y),65536&g.__u||m.__k===g.__k?l=C(g,l,e):"function"==typeof g.type&&void 0!==g.__d?l=g.__d:y&&(l=y.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=l,n.__e=v}function C(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=C(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=x(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function A(e,t){return t=t||[],null==e||"boolean"==typeof e||(p(e)?e.some((function(e){A(e,t)})):t.push(e)),t}function T(e,t,n,r){var i=e.key,a=e.type,o=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&a===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&i==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&a===l.type)return s;s++}}return-1}function R(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function I(e,t,n,r,i){var a;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||R(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||R(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=s,e.addEventListener(t,a?c:l,a)):e.removeEventListener(t,a?c:l,a);else{if("http://www.w3.org/2000/svg"==i)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&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(o){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function N(e){return function(n){if(this.l){var r=this.l[n.type+e];if(null==n.t)n.t=s++;else if(n.t<r.u)return;return r(t.event?t.event(n):n)}}}function D(n,r,i,a,o,s,l,c,u,f){var h,y,b,v,E,S,k,C,A,T,R,N,D,P,F,L,U=r.type;if(void 0!==r.constructor)return null;128&i.__u&&(u=!!(32&i.__u),s=[c=r.__e=i.__e]),(h=t.__b)&&h(r);e:if("function"==typeof U)try{if(C=r.props,A="prototype"in U&&U.prototype.render,T=(h=U.contextType)&&a[h.__c],R=h?T?T.props.value:h.__:a,i.__c?k=(y=r.__c=i.__c).__=y.__E:(A?r.__c=y=new U(C,R):(r.__c=y=new w(C,R),y.constructor=U,y.render=M),T&&T.sub(y),y.props=C,y.state||(y.state={}),y.context=R,y.__n=a,b=y.__d=!0,y.__h=[],y._sb=[]),A&&null==y.__s&&(y.__s=y.state),A&&null!=U.getDerivedStateFromProps&&(y.__s==y.state&&(y.__s=m({},y.__s)),m(y.__s,U.getDerivedStateFromProps(C,y.__s))),v=y.props,E=y.state,y.__v=r,b)A&&null==U.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),A&&null!=y.componentDidMount&&y.__h.push(y.componentDidMount);else{if(A&&null==U.getDerivedStateFromProps&&C!==v&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(C,R),!y.__e&&(null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(C,y.__s,R)||r.__v===i.__v)){for(r.__v!==i.__v&&(y.props=C,y.state=y.__s,y.__d=!1),r.__e=i.__e,r.__k=i.__k,r.__k.forEach((function(e){e&&(e.__=r)})),N=0;N<y._sb.length;N++)y.__h.push(y._sb[N]);y._sb=[],y.__h.length&&l.push(y);break e}null!=y.componentWillUpdate&&y.componentWillUpdate(C,y.__s,R),A&&null!=y.componentDidUpdate&&y.__h.push((function(){y.componentDidUpdate(v,E,S)}))}if(y.context=R,y.props=C,y.__P=n,y.__e=!1,D=t.__r,P=0,A){for(y.state=y.__s,y.__d=!1,D&&D(r),h=y.render(y.props,y.state,y.context),F=0;F<y._sb.length;F++)y.__h.push(y._sb[F]);y._sb=[]}else do{y.__d=!1,D&&D(r),h=y.render(y.props,y.state,y.context),y.state=y.__s}while(y.__d&&++P<25);y.state=y.__s,null!=y.getChildContext&&(a=m(m({},a),y.getChildContext())),A&&!b&&null!=y.getSnapshotBeforeUpdate&&(S=y.getSnapshotBeforeUpdate(v,E)),O(n,p(L=null!=h&&h.type===_&&null==h.key?h.props.children:h)?L:[L],r,i,a,o,s,l,c,u,f),y.base=r.__e,r.__u&=-161,y.__h.length&&l.push(y),k&&(y.__E=y.__=null)}catch(j){if(r.__v=null,u||null!=s){for(r.__u|=u?160:32;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,r.__e=c}else r.__e=i.__e,r.__k=i.__k;t.__e(j,r,i)}else null==s&&r.__v===i.__v?(r.__k=i.__k,r.__e=i.__e):r.__e=function(t,n,r,i,a,o,s,l,c){var u,f,h,m,y,b,v,_=r.props,w=n.props,E=n.type;if("svg"===E?a="http://www.w3.org/2000/svg":"math"===E?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=o)for(u=0;u<o.length;u++)if((y=o[u])&&"setAttribute"in y==!!E&&(E?y.localName===E:3===y.nodeType)){t=y,o[u]=null;break}if(null==t){if(null===E)return document.createTextNode(w);t=document.createElementNS(a,E,w.is&&w),o=null,l=!1}if(null===E)_===w||l&&t.data===w||(t.data=w);else{if(o=o&&e.call(t.childNodes),_=r.props||d,!l&&null!=o)for(_={},u=0;u<t.attributes.length;u++)_[(y=t.attributes[u]).name]=y.value;for(u in _)if(y=_[u],"children"==u);else if("dangerouslySetInnerHTML"==u)h=y;else if("key"!==u&&!(u in w)){if("value"==u&&"defaultValue"in w||"checked"==u&&"defaultChecked"in w)continue;I(t,u,null,y,a)}for(u in w)y=w[u],"children"==u?m=y:"dangerouslySetInnerHTML"==u?f=y:"value"==u?b=y:"checked"==u?v=y:"key"===u||l&&"function"!=typeof y||_[u]===y||I(t,u,y,_[u],a);if(f)l||h&&(f.__html===h.__html||f.__html===t.innerHTML)||(t.innerHTML=f.__html),n.__k=[];else if(h&&(t.innerHTML=""),O(t,p(m)?m:[m],n,r,i,"foreignObject"===E?"http://www.w3.org/1999/xhtml":a,o,s,o?o[0]:r.__k&&x(r,0),l,c),null!=o)for(u=o.length;u--;)null!=o[u]&&g(o[u]);l||(u="value",void 0!==b&&(b!==t[u]||"progress"===E&&!b||"option"===E&&b!==_[u])&&I(t,u,b,_[u],a),u="checked",void 0!==v&&v!==t[u]&&I(t,u,v,_[u],a))}return t}(i.__e,r,i,a,o,s,l,u,f);(h=t.diffed)&&h(r)}function P(e,n,r){n.__d=void 0;for(var i=0;i<r.length;i++)F(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(r){t.__e(r,n.__v)}}))}function F(e,n,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==n||(e.__u=e(n))}else e.current=n}catch(a){t.__e(a,r)}}function L(e,n,r){var i,a;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||F(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){t.__e(o,n)}i.base=i.__P=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&L(i[a],n,r||"function"!=typeof e.type);r||null==e.__e||g(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function M(e,t,n){return this.constructor(e,n)}function U(n,r,i){var a,o,s,l;t.__&&t.__(n,r),o=(a="function"==typeof i)?null:i&&i.__k||r.__k,s=[],l=[],D(r,n=(!a&&i||r).__k=y(_,null,[n]),o||d,d,r.namespaceURI,!a&&i?[i]:o?null:r.firstChild?e.call(r.childNodes):null,s,!a&&i?i:o?o.__e:r.firstChild,a,l),P(s,n,l)}function j(e,t){U(e,t,j)}function z(t,n,r){var i,a,o,s,l=m({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)"key"==o?i=n[o]:"ref"==o?a=n[o]:l[o]=void 0===n[o]&&void 0!==s?s[o]:n[o];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),b(t.type,l,i||t.key,a||t.ref,null)}function B(e,t){var n={__c:t="__cC"+u++,__: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.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,S(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function V(){return(V=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)}e=f.slice,t={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(s){e=s}throw e}},n=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),S(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},w.prototype.render=_,r=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,s=0,l=N(!1),c=N(!0),u=0;var q=["context","children"];function H(e){return this.getChildContext=function(){return e.context},z(e.children,function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(e,q))}function W(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=y(H,V({},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=[],i={},a=0,o=t.attributes,s=t.childNodes;for(a=o.length;a--;)"slot"!==o[a].name&&(i[o[a].name]=o[a].value,i[$(o[a].name)]=o[a].value);for(a=s.length;a--;){var l=e(s[a],null),c=s[a].slot;c?i[c]=y(Y,{name:c},l):r[a]=l}var u=n?y(Y,null,r):r;return y(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?j:U)(this._vdom,this._root)}function $(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[$(e)]=n,this._vdom=z(this._vdom,r),U(this._vdom,this._root)}}function K(){U(this._vdom=null,this._root)}function Y(e,t){var n=this;return y("slot",V({},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 G=0;function X(e,n,r,i,a,o){n||(n={});var s,l,c=n;if("ref"in c)for(l in c={},n)"ref"==l?s=n[l]:c[l]=n[l];var u={type:e,props:c,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--G,__i:-1,__u:0,__source:a,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return t.vnode&&t.vnode(u),u}var J=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Z="undefined"==typeof window||"Deno"in globalThis;function ee(){}function te(e){return"number"==typeof e&&e>=0&&e!==1/0}function ne(e,t){return Math.max(e+(t||0)-Date.now(),0)}function re(e,t){return"function"==typeof e?e(t):e}function ie(e,t){return"function"==typeof e?e(t):e}function ae(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o)if(r){if(t.queryHash!==se(o,t.options))return!1}else if(!ce(t.queryKey,o))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(a&&!a(t)))}function oe(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(le(t.options.mutationKey)!==le(a))return!1}else if(!ce(t.options.mutationKey,a))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function se(e,t){return(t?.queryKeyHashFn||le)(e)}function le(e){return JSON.stringify(e,((e,t)=>he(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ce(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ce(e[n],t[n]))))}function ue(e,t){if(e===t)return e;const n=fe(e)&&fe(t);if(n||he(e)&&he(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let l=0;for(let c=0;c<o;c++){const i=n?c:a[c];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=ue(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===o&&l===i?e:s}return t}function de(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function he(e){if(!pe(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!pe(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function pe(e){return"[object Object]"===Object.prototype.toString.call(e)}function me(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ue(e,t):t}function ge(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ye(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var be=Symbol();function ve(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==be?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var _e=new class extends J{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Z&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},we=new class extends J{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Z&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function xe(e){return Math.min(1e3*2**e,3e4)}function Ee(e){return"online"!==(e??"online")||we.isOnline()}var Se=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ke(e){return e instanceof Se}function Oe(e){let t,n,r,i=!1,a=0,o=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>_e.isFocused()&&("always"===e.networkMode||we.isOnline())&&e.canRun(),c=()=>Ee(e.networkMode)&&e.canRun(),u=r=>{o||(o=!0,e.onSuccess?.(r),t?.(),n(r))},d=n=>{o||(o=!0,e.onError?.(n),t?.(),r(n))},f=()=>new Promise((n=>{t=e=>{(o||l())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,o||e.onContinue?.()})),h=()=>{if(o)return;let t;const n=0===a?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(u).catch((t=>{if(o)return;const n=e.retry??(Z?0:3),r=e.retryDelay??xe,s="function"==typeof r?r(a,t):r,c=!0===n||"number"==typeof n&&a<n||"function"==typeof n&&n(a,t);var u;!i&&c?(a++,e.onFail?.(a,t),(u=s,new Promise((e=>{setTimeout(e,u)}))).then((()=>l()?void 0:f())).then((()=>{i?d(t):h()}))):d(t)}))};return{promise:s,cancel:t=>{o||(d(new Se(t)),e.abort?.())},continue:()=>(t?.(),s),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:c,start:()=>(c()?h():f().then(h),s)}}var Ce=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const a=r=>{t?e.push(r):i((()=>{n(r)}))},o=()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),Ae=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),te(this.gcTime)&&(this.#i=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Z?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},Te=class extends Ae{#a;#o;#s;#l;#c;#u;constructor(e){super(),this.#u=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=me(this.state.data,e,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(ee).catch(ee):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some((e=>!1!==ie(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!ne(this.state.dataUpdatedAt,e)}onFocus(){const e=this.observers.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){const e=this.observers.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#u=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=ve(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return r(n),this.#u=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(i),this.options.behavior?.onFetch(i,this),this.#o=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const a=e=>{ke(e)&&e.silent||this.#d({type:"error",error:e}),ke(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#l=Oe({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{void 0!==e?(this.setData(e),this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):a(new Error(`${this.queryHash} data is undefined`))},onError:a,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Re(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return ke(n)&&n.revert&&this.#o?{...this.#o,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ce.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#s.notify({query:this,type:"updated",action:e})}))}};function Re(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ee(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Ie=class extends J{constructor(e={}){super(),this.config=e,this.#f=new Map}#f;build(e,t,n){const r=t.queryKey,i=t.queryHash??se(r,t);let a=this.get(i);return a||(a=new Te({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#f.has(e.queryHash)||(this.#f.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#f.get(e.queryHash);t&&(e.destroy(),t===e&&this.#f.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ce.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#f.get(e)}getAll(){return[...this.#f.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>ae(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>ae(e,t))):t}notify(e){Ce.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Ce.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Ce.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},Ne=class extends Ae{#h;#p;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#p=e.mutationCache,this.#h=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#h.includes(e)||(this.#h.push(e),this.clearGcTimeout(),this.#p.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#h=this.#h.filter((t=>t!==e)),this.scheduleGc(),this.#p.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#h.length||("pending"===this.state.status?this.scheduleGc():this.#p.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=Oe({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#p.canRun(this)});const t="pending"===this.state.status,n=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:n}),await(this.#p.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:n})}const r=await this.#l.start();return await(this.#p.config.onSuccess?.(r,e,this.state.context,this)),await(this.options.onSuccess?.(r,e,this.state.context)),await(this.#p.config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,e,this.state.context)),this.#d({type:"success",data:r}),r}catch(r){try{throw await(this.#p.config.onError?.(r,e,this.state.context,this)),await(this.options.onError?.(r,e,this.state.context)),await(this.#p.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,r,e,this.state.context)),r}finally{this.#d({type:"error",error:r})}}finally{this.#p.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Ce.batch((()=>{this.#h.forEach((t=>{t.onMutationUpdate(e)})),this.#p.notify({mutation:this,type:"updated",action:e})}))}};var De=class extends J{constructor(e={}){super(),this.config=e,this.#m=new Map,this.#g=Date.now()}#m;#g;build(e,t,n){const r=new Ne({mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Pe(e),n=this.#m.get(t)??[];n.push(e),this.#m.set(t,n),this.notify({type:"added",mutation:e})}remove(e){const t=Pe(e);if(this.#m.has(t)){const n=this.#m.get(t)?.filter((t=>t!==e));n&&(0===n.length?this.#m.delete(t):this.#m.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#m.get(Pe(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){const t=this.#m.get(Pe(e))?.find((t=>t!==e&&t.state.isPaused));return t?.continue()??Promise.resolve()}clear(){Ce.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...this.#m.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>oe(t,e)))}findAll(e={}){return this.getAll().filter((t=>oe(e,t)))}notify(e){Ce.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Ce.batch((()=>Promise.all(e.map((e=>e.continue().catch(ee))))))}};function Pe(e){return e.options.scope?.id??String(e.mutationId)}function Fe(e){return{onFetch:(t,n)=>{const r=async()=>{const n=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[],o={pages:[],pageParams:[]};let s=!1;const l=ve(t.options,t.fetchOptions),c=async(e,n,r)=>{if(s)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:n,direction:r?"backward":"forward",meta:t.options.meta};var a;a=i,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?s=!0:t.signal.addEventListener("abort",(()=>{s=!0})),t.signal)});const o=await l(i),{maxPages:c}=t.options,u=r?ye:ge;return{pages:u(e.pages,o,c),pageParams:u(e.pageParams,n,c)}};let u;if(r&&i.length){const e="backward"===r,t={pages:i,pageParams:a},o=(e?Me:Le)(n,t);u=await c(t,o,e)}else{u=await c(o,a[0]??n.initialPageParam);const t=e??i.length;for(let e=1;e<t;e++){const e=Le(n,u);if(null==e)break;u=await c(u,e)}}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=r}}}function Le(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Me(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ue=class{#y;#p;#c;#b;#v;#_;#w;#x;constructor(e={}){this.#y=e.queryCache||new Ie,this.#p=e.mutationCache||new De,this.#c=e.defaultOptions||{},this.#b=new Map,this.#v=new Map,this.#_=0}mount(){this.#_++,1===this.#_&&(this.#w=_e.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())})),this.#x=we.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())})))}unmount(){this.#_--,0===this.#_&&(this.#w?.(),this.#w=void 0,this.#x?.(),this.#x=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#p.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=this.#y.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(re(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#y.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#y.get(r.queryHash),a=i?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,a);if(void 0!==o)return this.#y.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ce.batch((()=>this.#y.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){const t=this.#y;Ce.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#y,r={type:"active",...e};return Ce.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ce.batch((()=>this.#y.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(ee).catch(ee)}invalidateQueries(e={},t={}){return Ce.batch((()=>{if(this.#y.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=Ce.batch((()=>this.#y.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ee)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(ee)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#y.build(this,t);return n.isStaleByTime(re(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ee).catch(ee)}fetchInfiniteQuery(e){return e.behavior=Fe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ee).catch(ee)}resumePausedMutations(){return we.isOnline()?this.#p.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#p}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#b.set(le(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#b.values()];let n={};return t.forEach((t=>{ce(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){this.#v.set(le(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#v.values()];let n={};return t.forEach((t=>{ce(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=se(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===be&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#p.clear()}},je=class extends J{constructor(e,t){super(),this.options=t,this.#E=e,this.#S=null,this.bindMethods(),this.setOptions(t)}#E;#k=void 0;#O=void 0;#C=void 0;#A;#T;#S;#R;#I;#N;#D;#P;#F;#L=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#k.addObserver(this),ze(this.#k,this.options)?this.#M():this.updateResult(),this.#U())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Be(this.#k,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Be(this.#k,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#j(),this.#z(),this.#k.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.#k;if(this.options=this.#E.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof ie(this.options.enabled,this.#k))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#B(),this.#k.setOptions(this.options),n._defaulted&&!de(this.options,n)&&this.#E.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#k,observer:this});const i=this.hasListeners();i&&Ve(this.#k,r,this.options,n)&&this.#M(),this.updateResult(t),!i||this.#k===r&&ie(this.options.enabled,this.#k)===ie(n.enabled,this.#k)&&re(this.options.staleTime,this.#k)===re(n.staleTime,this.#k)||this.#V();const a=this.#q();!i||this.#k===r&&ie(this.options.enabled,this.#k)===ie(n.enabled,this.#k)&&a===this.#F||this.#H(a)}getOptimisticResult(e){const t=this.#E.getQueryCache().build(this.#E,e),n=this.createResult(t,e);return function(e,t){if(!de(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#C=n,this.#T=this.options,this.#A=this.#k.state),n}getCurrentResult(){return this.#C}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})})),n}trackProp(e){this.#L.add(e)}getCurrentQuery(){return this.#k}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#E.defaultQueryOptions(e),n=this.#E.getQueryCache().build(this.#E,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#M({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#C)))}#M(e){this.#B();let t=this.#k.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ee)),t}#V(){this.#j();const e=re(this.options.staleTime,this.#k);if(Z||this.#C.isStale||!te(e))return;const t=ne(this.#C.dataUpdatedAt,e)+1;this.#D=setTimeout((()=>{this.#C.isStale||this.updateResult()}),t)}#q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#k):this.options.refetchInterval)??!1}#H(e){this.#z(),this.#F=e,!Z&&!1!==ie(this.options.enabled,this.#k)&&te(this.#F)&&0!==this.#F&&(this.#P=setInterval((()=>{(this.options.refetchIntervalInBackground||_e.isFocused())&&this.#M()}),this.#F))}#U(){this.#V(),this.#H(this.#q())}#j(){this.#D&&(clearTimeout(this.#D),this.#D=void 0)}#z(){this.#P&&(clearInterval(this.#P),this.#P=void 0)}createResult(e,t){const n=this.#k,r=this.options,i=this.#C,a=this.#A,o=this.#T,s=e!==n?e.state:this.#O,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),a=!i&&ze(e,t),o=i&&Ve(e,n,t,r);(a||o)&&(u={...u,...Re(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:p}=u;if(t.select&&void 0!==u.data)if(i&&u.data===a?.data&&t.select===this.#R)c=this.#I;else try{this.#R=t.select,c=t.select(u.data),c=me(i?.data,c,t),this.#I=c,this.#S=null}catch(_){this.#S=_}else c=u.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===p){let e;if(i?.isPlaceholderData&&t.placeholderData===o?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#N?.state.data,this.#N):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#S=null}catch(_){this.#S=_}void 0!==e&&(p="success",c=me(i?.data,e,t),d=!0)}this.#S&&(f=this.#S,c=this.#I,h=Date.now(),p="error");const m="fetching"===u.fetchStatus,g="pending"===p,y="error"===p,b=g&&m,v=void 0!==c;return{status:p,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===p,isError:y,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&!v,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&v,isStale:qe(e,t),refetch:this.refetch}}updateResult(e){const t=this.#C,n=this.createResult(this.#k,this.options);if(this.#A=this.#k.state,this.#T=this.options,void 0!==this.#A.data&&(this.#N=this.#k),de(n,t))return;this.#C=n;const r={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#L.size)return!0;const r=new Set(n??this.#L);return this.options.throwOnError&&r.add("error"),Object.keys(this.#C).some((e=>{const n=e;return this.#C[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.#W({...r,...e})}#B(){const e=this.#E.getQueryCache().build(this.#E,this.options);if(e===this.#k)return;const t=this.#k;this.#k=e,this.#O=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#U()}#W(e){Ce.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#C)})),this.#E.getQueryCache().notify({query:this.#k,type:"observerResultsUpdated"})}))}};function ze(e,t){return function(e,t){return!1!==ie(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Be(e,t,t.refetchOnMount)}function Be(e,t,n){if(!1!==ie(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&qe(e,t)}return!1}function Ve(e,t,n,r){return(e!==t||!1===ie(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&qe(e,n)}function qe(e,t){return!1!==ie(t.enabled,e)&&e.isStaleByTime(re(t.staleTime,e))}var He,We,$e,Qe,Ke=class extends J{#E;#C=void 0;#$;#Q;constructor(e,t){super(),this.#E=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#E.defaultMutationOptions(e),de(this.options,t)||this.#E.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#$,observer:this}),t?.mutationKey&&this.options.mutationKey&&le(t.mutationKey)!==le(this.options.mutationKey)?this.reset():"pending"===this.#$?.state.status&&this.#$.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#$?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#W(e)}getCurrentResult(){return this.#C}reset(){this.#$?.removeObserver(this),this.#$=void 0,this.#K(),this.#W()}mutate(e,t){return this.#Q=t,this.#$?.removeObserver(this),this.#$=this.#E.getMutationCache().build(this.#E,this.options),this.#$.addObserver(this),this.#$.execute(e)}#K(){const e=this.#$?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#C={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#W(e){Ce.batch((()=>{if(this.#Q&&this.hasListeners()){const t=this.#C.variables,n=this.#C.context;"success"===e?.type?(this.#Q.onSuccess?.(e.data,t,n),this.#Q.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#Q.onError?.(e.error,t,n),this.#Q.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach((e=>{e(this.#C)}))}))}},Ye=0,Ge=[],Xe=t,Je=Xe.__b,Ze=Xe.__r,et=Xe.diffed,tt=Xe.__c,nt=Xe.unmount,rt=Xe.__;function it(e,t){Xe.__h&&Xe.__h(We,e,Ye||t),Ye=0;var n=We.__H||(We.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function at(e){return Ye=1,ot(xt,e)}function ot(e,t,n){var r=it(He++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):xt(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=We,!We.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var o=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};We.u=!0;var a=We.shouldComponentUpdate,o=We.componentWillUpdate;We.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},We.shouldComponentUpdate=i}return r.__N||r.__}function st(e,t){var n=it(He++,3);!Xe.__s&&wt(n.__H,t)&&(n.__=e,n.i=t,We.__H.__h.push(n))}function lt(e,t){var n=it(He++,4);!Xe.__s&&wt(n.__H,t)&&(n.__=e,n.i=t,We.__h.push(n))}function ct(e){return Ye=5,dt((function(){return{current:e}}),[])}function ut(e,t,n){Ye=6,lt((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 dt(e,t){var n=it(He++,7);return wt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ft(e,t){return Ye=8,dt((function(){return e}),t)}function ht(e){var t=We.context[e.__c],n=it(He++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(We)),t.props.value):e.__}function pt(e,t){Xe.useDebugValue&&Xe.useDebugValue(t?t(e):e)}function mt(){var e=it(He++,11);if(!e.__){for(var t=We.__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 gt(){for(var e;e=Ge.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(vt),e.__H.__h.forEach(_t),e.__H.__h=[]}catch(t){e.__H.__h=[],Xe.__e(t,e.__v)}}Xe.__b=function(e){We=null,Je&&Je(e)},Xe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rt&&rt(e,t)},Xe.__r=function(e){Ze&&Ze(e),He=0;var t=(We=e.__c).__H;t&&($e===We?(t.__h=[],We.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(vt),t.__h.forEach(_t),t.__h=[],He=0)),$e=We},Xe.diffed=function(e){et&&et(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Ge.push(t)&&Qe===Xe.requestAnimationFrame||((Qe=Xe.requestAnimationFrame)||bt)(gt)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),$e=We=null},Xe.__c=function(e,t){t.some((function(e){try{e.__h.forEach(vt),e.__h=e.__h.filter((function(e){return!e.__||_t(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Xe.__e(n,e.__v)}})),tt&&tt(e,t)},Xe.unmount=function(e){nt&&nt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{vt(e)}catch(n){t=n}})),n.__H=void 0,t&&Xe.__e(t,n.__v))};var yt="function"==typeof requestAnimationFrame;function bt(e){var t,n=function(){clearTimeout(r),yt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);yt&&(t=requestAnimationFrame(n))}function vt(e){var t=We,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),We=t}function _t(e){var t=We;e.__c=e.__(),We=t}function wt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function xt(e,t){return"function"==typeof t?t(e):t}function Et(e,t){for(var n in t)e[n]=t[n];return e}function St(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 kt(e,t){this.props=e,this.context=t}function Ot(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:St(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(kt.prototype=new w).isPureReactComponent=!0,kt.prototype.shouldComponentUpdate=function(e,t){return St(this.props,e)||St(this.state,t)};var Ct=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ct&&Ct(e)};var At="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Tt(e){function t(t){var n=Et({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=At,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Rt=function(e,t){return null==e?null:A(A(e).map(t))},It={map:Rt,forEach:Rt,count:function(e){return e?A(e).length:0},only:function(e){var t=A(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:A},Nt=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Nt(e,t,n,r)};var Dt=t.unmount;function Pt(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=Et({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Pt(e,t,n)}))),e}function Ft(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ft(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 Lt(){this.__u=0,this.t=null,this.__b=null}function Mt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ut(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return y(n,i)}return i.displayName="Lazy",i.__f=!0,i}function jt(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Dt&&Dt(e)},(Lt.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=Mt(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ft(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(o,o)},Lt.prototype.componentWillUnmount=function(){this.t=[]},Lt.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]=Pt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&y(_,null,e.fallback);return i&&(i.__u&=-33),[y(_,null,t.__a?null:e.children),i]};var zt=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 Bt(e){return this.getChildContext=function(){return e.context},e.children}function Vt(e){var t=this,n=e.i;t.componentWillUnmount=function(){U(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(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)}}),U(y(Bt,{context:t.context},e.__v),t.l)}function qt(e,t){var n=y(Vt,{__v:e,i:t});return n.containerInfo=t,n}(jt.prototype=new w).__a=function(e){var t=this,n=Mt(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),zt(t,e,r)):i()};n?n(a):a()}},jt.prototype.render=function(e){this.u=null,this.o=new Map;var t=A(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},jt.prototype.componentDidUpdate=jt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){zt(e,n,t)}))};var Ht="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Wt=/^(?: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]/,$t=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Qt=/[A-Z0-9]/g,Kt="undefined"!=typeof document,Yt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Gt(e,t,n){return null==t.__k&&(t.textContent=""),U(e,t),"function"==typeof n&&n(),e?e.__c:null}function Xt(e,t,n){return j(e,t),"function"==typeof n&&n(),e?e.__c:null}w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Jt=t.event;function Zt(){}function en(){return this.cancelBubble}function tn(){return this.defaultPrevented}t.event=function(e){return Jt&&(e=Jt(e)),e.persist=Zt,e.isPropagationStopped=en,e.isDefaultPrevented=tn,e.nativeEvent=e};var nn,rn={enumerable:!1,configurable:!0,get:function(){return this.class}},an=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var a in t){var o=t[a];if(!("value"===a&&"defaultValue"in t&&null==o||Kt&&"children"===a&&"noscript"===n||"class"===a||"className"===a)){var s=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===o?o="":"translate"===s&&"no"===o?o=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?a="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Yt(t.type)?"onfocus"===s?a="onfocusin":"onblur"===s?a="onfocusout":$t.test(a)&&(a=s):s=a="oninput":i&&Wt.test(a)?a=a.replace(Qt,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===s&&r[a=s]&&(a="oninputCapture"),r[a]=o}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=A(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=A(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",rn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ht,an&&an(e)};var on=t.__r;t.__r=function(e){on&&on(e),nn=e.__c};var sn=t.diffed;t.diffed=function(e){sn&&sn(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),nn=null};var ln={ReactCurrentDispatcher:{current:{readContext:function(e){return nn.__n[e.__c].props.value},useCallback:ft,useContext:ht,useDebugValue:pt,useDeferredValue:_n,useEffect:st,useId:mt,useImperativeHandle:ut,useInsertionEffect:xn,useLayoutEffect:lt,useMemo:dt,useReducer:ot,useRef:ct,useState:at,useSyncExternalStore:Sn,useTransition:wn}}};function cn(e){return y.bind(null,e)}function un(e){return!!e&&e.$$typeof===Ht}function dn(e){return un(e)&&e.type===_}function fn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function hn(e){return un(e)?z.apply(null,arguments):e}function pn(e){return!!e.__k&&(U(null,e),!0)}function mn(e){return e&&(e.base||1===e.nodeType&&e)||null}var gn=function(e,t){return e(t)},yn=function(e,t){return e(t)},bn=_;function vn(e){e()}function _n(e){return e}function wn(){return[!1,vn]}var xn=lt,En=un;function Sn(e,t){var n=t(),r=at({h:{__:n,v:t}}),i=r[0].h,a=r[1];return lt((function(){i.__=n,i.v=t,kn(i)&&a({h:i})}),[e,n,t]),st((function(){return kn(i)&&a({h:i}),e((function(){kn(i)&&a({h:i})}))}),[e]),n}function kn(e){var t,n,r=e.v,i=e.__;try{var a=r();return!((t=i)===(n=a)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(o){return!0}}var On={useState:at,useId:mt,useReducer:ot,useEffect:st,useLayoutEffect:lt,useInsertionEffect:xn,useTransition:wn,useDeferredValue:_n,useSyncExternalStore:Sn,startTransition:vn,useRef:ct,useImperativeHandle:ut,useMemo:dt,useCallback:ft,useContext:ht,useDebugValue:pt,version:"17.0.2",Children:It,render:Gt,hydrate:Xt,unmountComponentAtNode:pn,createPortal:qt,createElement:y,createContext:B,createFactory:cn,cloneElement:hn,createRef:v,Fragment:_,isValidElement:un,isElement:En,isFragment:dn,isMemo:fn,findDOMNode:mn,Component:w,PureComponent:kt,memo:Ot,forwardRef:Tt,flushSync:yn,unstable_batchedUpdates:gn,StrictMode:bn,Suspense:Lt,SuspenseList:jt,lazy:Ut,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ln};const Cn=Object.freeze(Object.defineProperty({__proto__:null,Children:It,Component:w,Fragment:_,PureComponent:kt,StrictMode:bn,Suspense:Lt,SuspenseList:jt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ln,cloneElement:hn,createContext:B,createElement:y,createFactory:cn,createPortal:qt,createRef:v,default:On,findDOMNode:mn,flushSync:yn,forwardRef:Tt,hydrate:Xt,isElement:En,isFragment:dn,isMemo:fn,isValidElement:un,lazy:Ut,memo:Ot,render:Gt,startTransition:vn,unmountComponentAtNode:pn,unstable_batchedUpdates:gn,useCallback:ft,useContext:ht,useDebugValue:pt,useDeferredValue:_n,useEffect:st,useErrorBoundary:function(e){var t=it(He++,10),n=at();return t.__=e,We.componentDidCatch||(We.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:mt,useImperativeHandle:ut,useInsertionEffect:xn,useLayoutEffect:lt,useMemo:dt,useReducer:ot,useRef:ct,useState:at,useSyncExternalStore:Sn,useTransition:wn,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var An=B(void 0),Tn=e=>{const t=ht(An);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Rn=({client:e,children:t})=>(st((()=>(e.mount(),()=>{e.unmount()})),[e]),X(An.Provider,{value:e,children:t})),In=B(!1),Nn=()=>ht(In);In.Provider;var Dn=B(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Pn=()=>ht(Dn);function Fn(e,t){return"function"==typeof e?e(...t):!!e}function Ln(){}var Mn,Un,jn,zn,Bn=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Vn=e=>{st((()=>{e.clearReset()}),[e])},qn=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Fn(n,[e.error,r]),Hn=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},Wn=(e,t)=>e?.suspense&&t.isPending,$n=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Qn(e,t){return function(e,t){const n=Tn(),r=Nn(),i=Pn(),a=n.defaultQueryOptions(e);n.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=r?"isRestoring":"optimistic",Hn(a),Bn(a,i),Vn(i);const[o]=at((()=>new t(n,a))),s=o.getOptimisticResult(a);if(Sn(ft((e=>{const t=r?()=>{}:o.subscribe(Ce.batchCalls(e));return o.updateResult(),t}),[o,r]),(()=>o.getCurrentResult())),st((()=>{o.setOptions(a,{listeners:!1})}),[a,o]),Wn(a,s))throw $n(a,o,i);if(qn({result:s,errorResetBoundary:i,throwOnError:a.throwOnError,query:n.getQueryCache().get(a.queryHash)}))throw s.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(a,s),a.notifyOnChangeProps?s:o.trackResult(s)}(e,je)}function Kn(e,t){const n=Tn(),[r]=at((()=>new Ke(n,e)));st((()=>{r.setOptions(e)}),[r,e]);const i=Sn(ft((e=>r.subscribe(Ce.batchCalls(e))),[r]),(()=>r.getCurrentResult())),a=ft(((e,t)=>{r.mutate(e,t).catch(Ln)}),[r]);if(i.error&&Fn(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Yn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Yn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Yn(e))&&(r&&(r+=" "),r+=t);return r}function Xn(){return Xn=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},Xn.apply(this,arguments)}function Jn(e){void 0===e&&(e={});let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:i=!1}=e;t=n.map(((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=l(null==r?t.length-1:r),o=Mn.Pop,s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[a]}function u(e,n,r){void 0===n&&(n=null);let i=function(e,t,n,r){void 0===n&&(n=null);let i=Xn({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?nr(t):t,{state:n,key:t&&t.key||r||tr()});return i}(t?c().pathname:"/",e,n,r);return er("/"===i.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),i}function d(e){return"string"==typeof e?e:function(e){let{pathname:t="/",search:n="",hash:r=""}=e;n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n);r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r);return t}(e)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?nr(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){o=Mn.Push;let r=u(e,n);a+=1,t.splice(a,t.length,r),i&&s&&s({action:o,location:r,delta:1})},replace(e,n){o=Mn.Replace;let r=u(e,n);t[a]=r,i&&s&&s({action:o,location:r,delta:0})},go(e){o=Mn.Pop;let n=l(a+e),r=t[n];a=n,s&&s({action:o,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function Zn(e,t){if(!1===e||null==e)throw new Error(t)}function er(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function tr(){return Math.random().toString(36).substr(2,8)}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rr(e,t,n){return void 0===n&&(n="/"),function(e,t,n){let r="string"==typeof t?nr(t):t,i=yr(r.pathname||"/",n);if(null==i)return null;let a=ir(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let s=0;null==o&&s<a.length;++s){let e=gr(i);o=pr(a[s],e)}return o}(e,t,n)}function ir(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,a)=>{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(Zn(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let s=Sr([r,o.relativePath]),l=n.concat(o);e.children&&e.children.length>0&&(Zn(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),ir(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:hr(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of ar(e.path))i(e,t,r);else i(e,t)})),t}function ar(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return i?[a,""]:[a];let o=ar(r.join("/")),s=[];return s.push(...o.map((e=>""===e?a:[a,e].join("/")))),i&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}(Un=Mn||(Mn={})).Pop="POP",Un.Push="PUSH",Un.Replace="REPLACE",(zn=jn||(jn={})).data="data",zn.deferred="deferred",zn.redirect="redirect",zn.error="error";const or=/^:[\w-]+$/,sr=3,lr=2,cr=1,ur=10,dr=-2,fr=e=>"*"===e;function hr(e,t){let n=e.split("/"),r=n.length;return n.some(fr)&&(r+=dr),t&&(r+=lr),n.filter((e=>!fr(e))).reduce(((e,t)=>e+(or.test(t)?sr:""===t?cr:ur)),r)}function pr(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s<r.length;++s){let e=r[s],n=s===r.length-1,l="/"===a?t:t.slice(a.length)||"/",c=mr({path:e.relativePath,caseSensitive:e.caseSensitive,end:n},l),u=e.route;if(!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:Sr([a,c.pathname]),pathnameBase:kr(Sr([a,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(a=Sr([a,c.pathnameBase]))}return o}function mr(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);er("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function gr(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return er(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function yr(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const br=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vr=e=>br.test(e);function _r(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function wr(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function xr(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function Er(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=nr(e):(i=Xn({},e),Zn(!i.pathname||!i.pathname.includes("?"),wr("?","pathname","search",i)),Zn(!i.pathname||!i.pathname.includes("#"),wr("#","pathname","hash",i)),Zn(!i.search||!i.search.includes("#"),wr("#","search","hash",i)));let a,o=""===e||""===i.pathname,s=o?"/":i.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let n,{pathname:r,search:i="",hash:a=""}="string"==typeof e?nr(e):e;if(r)if(vr(r))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),er(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?_r(r.substring(1),"/"):_r(r,t)}else n=t;return{pathname:n,search:Or(i),hash:Cr(a)}}(i,a),c=s&&"/"!==s&&s.endsWith("/"),u=(o||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Sr=e=>e.join("/").replace(/\/\/+/g,"/"),kr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Or=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Cr=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";const Ar=["post","put","patch","delete"];new Set(Ar);const Tr=["get",...Ar];function Rr(){return Rr=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},Rr.apply(this,arguments)}new Set(Tr);const Ir=B(null),Nr=B(null),Dr=B(null),Pr=B(null),Fr=B({outlet:null,matches:[],isDataRoute:!1}),Lr=B(null);function Mr(){return null!=ht(Pr)}function Ur(){return Mr()||Zn(!1),ht(Pr).location}function jr(e){ht(Dr).static||lt(e)}function zr(){let{isDataRoute:e}=ht(Fr);return e?function(){let{router:e}=function(){let e=ht(Ir);return e||Zn(!1),e}($r.UseNavigateStable),t=Kr(Qr.UseNavigateStable),n=ct(!1);return jr((()=>{n.current=!0})),ft((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Rr({fromRouteId:t},i)))}),[e,t])}():function(){Mr()||Zn(!1);let e=ht(Ir),{basename:t,future:n,navigator:r}=ht(Dr),{matches:i}=ht(Fr),{pathname:a}=Ur(),o=JSON.stringify(xr(i,n.v7_relativeSplatPath)),s=ct(!1);return jr((()=>{s.current=!0})),ft((function(n,i){if(void 0===i&&(i={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=Er(n,JSON.parse(o),a,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Sr([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[t,r,o,a,e])}()}function Br(e,t){return function(e,t,n,r){Mr()||Zn(!1);let{navigator:i}=ht(Dr),{matches:a}=ht(Fr),o=a[a.length-1],s=o?o.params:{};!o||o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c,u=Ur();if(t){var d;let e="string"==typeof t?nr(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||Zn(!1),c=e}else c=u;let f=c.pathname||"/",h=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let p=rr(e,{pathname:h}),m=function(e,t,n,r){var i;void 0===t&&(t=[]);void 0===n&&(n=null);void 0===r&&(r=null);if(null==e){var a;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let o=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=o.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||Zn(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let e=o[u];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=u),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){l=!0,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight(((e,r,i)=>{let a,u=!1,d=null,f=null;var h;n&&(a=s&&r.route.id?s[r.route.id]:void 0,d=r.route.errorElement||qr,l&&(c<0&&0===i?(Yr[h="route-fallback"]||(Yr[h]=!0),u=!0,f=null):c===i&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,i+1)),m=()=>{let t;return t=a?d:u?f:r.route.Component?y(r.route.Component,null):r.route.element?r.route.element:e,y(Wr,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?y(Hr,{location:n.location,revalidation:n.revalidation,component:d,error:a,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Sr([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Sr([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,n,r);if(t&&m)return y(Pr.Provider,{value:{location:Rr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Mn.Pop}},m);return m}(e,t)}function Vr(){let e=function(){var e;let t=ht(Lr),n=function(){let e=ht(Nr);return e||Zn(!1),e}(),r=Kr();if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y(_,null,y("h2",null,"Unexpected Application Error!"),y("h3",{style:{fontStyle:"italic"}},t),n?y("pre",{style:r},n):null,null)}const qr=y(Vr,null);class Hr extends w{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?y(Fr.Provider,{value:this.props.routeContext},y(Lr.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Wr(e){let{routeContext:t,match:n,children:r}=e,i=ht(Ir);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y(Fr.Provider,{value:t},r)}var $r=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($r||{}),Qr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qr||{});function Kr(e){let t=function(){let e=ht(Fr);return e||Zn(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||Zn(!1),n.route.id}const Yr={};const Gr=Cn.startTransition;function Xr(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:a}=e,o=ct();null==o.current&&(o.current=Jn({initialEntries:r,initialIndex:i,v5Compat:!0}));let s=o.current,[l,c]=at({action:s.action,location:s.location}),{v7_startTransition:u}=a||{},d=ft((e=>{u&&Gr?Gr((()=>c(e))):c(e)}),[c,u]);return lt((()=>s.listen(d)),[s,d]),st((()=>{return null==(e=a)||e.v7_startTransition,void(null==e||e.v7_relativeSplatPath);var e}),[a]),y(ei,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:a})}function Jr(e){let{to:t,replace:n,state:r,relative:i}=e;Mr()||Zn(!1);let{future:a,static:o}=ht(Dr),{matches:s}=ht(Fr),{pathname:l}=Ur(),c=zr(),u=Er(t,xr(s,a.v7_relativeSplatPath),l,"path"===i),d=JSON.stringify(u);return st((()=>c(JSON.parse(d),{replace:n,state:r,relative:i})),[c,d,i,n,r]),null}function Zr(e){Zn(!1)}function ei(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Mn.Pop,navigator:a,static:o=!1,future:s}=e;Mr()&&Zn(!1);let l=t.replace(/^\/*/,"/"),c=dt((()=>({basename:l,navigator:a,static:o,future:Rr({v7_relativeSplatPath:!1},s)})),[l,s,a,o]);"string"==typeof r&&(r=nr(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,m=dt((()=>{let e=yr(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:h,key:p},navigationType:i}}),[l,u,d,f,h,p,i]);return null==m?null:y(Dr.Provider,{value:c},y(Pr.Provider,{children:n,value:m}))}function ti(e){let{children:t,location:n}=e;return Br(ni(t),n)}function ni(e,t){void 0===t&&(t=[]);let n=[];return It.forEach(e,((e,r)=>{if(!un(e))return;let i=[...t,r];if(e.type===_)return void n.push.apply(n,ni(e.props.children,i));e.type!==Zr&&Zn(!1),e.props.index&&e.props.children&&Zn(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ni(e.props.children,i)),n.push(a)})),n}function ri(){return ri=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},ri.apply(null,arguments)}function ii(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}function ai(e,t){return(ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ai(e,t)}function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}new Promise((()=>{}));var li,ci,ui,di,fi,hi={exports:{}};function pi(){if(ci)return li;ci=1;return li="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function mi(){if(di)return ui;di=1;var e=pi();function t(){}function n(){}return n.resetWarningCache=t,ui=function(){function r(t,n,r,i,a,o){if(o!==e){var s=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 s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}function gi(){return fi||(fi=1,hi.exports=mi()()),hi.exports}const yi=si(gi());function bi(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const vi=!1,_i=On.createContext(null);var wi=function(e){return e.scrollTop},xi="unmounted",Ei="exited",Si="entering",ki="entered",Oi="exiting",Ci=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=Ei,r.appearStatus=Si):i=ki:i=t.unmountOnExit||t.mountOnEnter?xi:Ei,r.state={status:i},r.nextCallback=null,r}oi(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xi?{status:Ei}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Si&&n!==ki&&(t=Si):n!==Si&&n!==ki||(t=Oi)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Si){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:On.findDOMNode(this);n&&wi(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ei&&this.setState({status:xi})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[On.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||vi?this.safeSetState({status:ki},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,o),this.safeSetState({status:Si},(function(){t.props.onEntering(a,o),t.onTransitionEnd(l,(function(){t.safeSetState({status:ki},(function(){t.props.onEntered(a,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:On.findDOMNode(this);t&&!vi?(this.props.onExit(r),this.safeSetState({status:Oi},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ei},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ei},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:On.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===xi)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ii(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return On.createElement(_i.Provider,{value:null},"function"==typeof n?n(e,r):On.cloneElement(On.Children.only(n),r))},t}(On.Component);function Ai(){}Ci.contextType=_i,Ci.propTypes={},Ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ai,onEntering:Ai,onEntered:Ai,onExit:Ai,onExiting:Ai,onExited:Ai},Ci.UNMOUNTED=xi,Ci.EXITED=Ei,Ci.ENTERING=Si,Ci.ENTERED=ki,Ci.EXITING=Oi;var Ti=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=bi(n.className,r):n.setAttribute("class",bi(n.className&&n.className.baseVal||"",r)));var n,r}))},Ri=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,"exit"),t.addClass(i,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.addClass(i,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.removeClasses(i,a),t.addClass(i,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}oi(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&wi(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Ti(e,r),i&&Ti(e,i),a&&Ti(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ii(e,["classNames"]);return On.createElement(Ci,ri({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(On.Component);function Ii(e,t){var n=Object.create(null);return e&&It.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&un(e)?t(e):e}(e)})),n}function Ni(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Di(e,t,n){var r=Ii(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),a=[];for(var o in e)o in t?a.length&&(i[o]=a,a=[]):a.push(o);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var o=i[a];if(un(o)){var s=a in t,l=a in r,c=t[a],u=un(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&un(c)&&(i[a]=hn(o,{onExited:n.bind(null,o),in:c.props.in,exit:Ni(o,"exit",e),enter:Ni(o,"enter",e)})):i[a]=hn(o,{in:!1}):i[a]=hn(o,{onExited:n.bind(null,o),in:!0,exit:Ni(o,"exit",e),enter:Ni(o,"enter",e)})}})),i}Ri.defaultProps={classNames:""},Ri.propTypes={};var Pi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fi=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}oi(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Ii(n.children,(function(e){return hn(e,{onExited:r.bind(null,e),in:!0,appear:Ni(e,"appear",n),enter:Ni(e,"enter",n),exit:Ni(e,"exit",n)})}))):Di(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=Ii(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ri({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ii(e,["component","childFactory"]),i=this.state.contextValue,a=Pi(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?On.createElement(_i.Provider,{value:i},a):On.createElement(_i.Provider,{value:i},On.createElement(t,r,a))},t}(On.Component);Fi.propTypes={},Fi.defaultProps={component:"div",childFactory:function(e){return e}};function Li(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){Li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ji=()=>{};let zi={},Bi={},Vi=null,qi={mark:ji,measure:ji};try{"undefined"!=typeof window&&(zi=window),"undefined"!=typeof document&&(Bi=document),"undefined"!=typeof MutationObserver&&(Vi=MutationObserver),"undefined"!=typeof performance&&(qi=performance)}catch(og){}const{userAgent:Hi=""}=zi.navigator||{},Wi=zi,$i=Bi,Qi=Vi,Ki=qi;Wi.document;const Yi=!!$i.documentElement&&!!$i.head&&"function"==typeof $i.addEventListener&&"function"==typeof $i.createElement,Gi=~Hi.indexOf("MSIE")||~Hi.indexOf("Trident/");var Xi={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Ji=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Zi="classic",ea="duotone",ta=[Zi,ea,"sharp","sharp-duotone"],na=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),ra=["fak","fa-kit","fakd","fa-kit-duotone"],ia={fak:"kit","fa-kit":"kit"},aa={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},oa=["fak","fakd"],sa={kit:"fak"},la={"kit-duotone":"fakd"},ca={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ua=["fak","fa-kit","fakd","fa-kit-duotone"],da={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},fa=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ha=[1,2,3,4,5,6,7,8,9,10],pa=ha.concat([11,12,13,14,15,16,17,18,19,20]),ma=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ca.GROUP,ca.SWAP_OPACITY,ca.PRIMARY,ca.SECONDARY].concat(ha.map((e=>"".concat(e,"x")))).concat(pa.map((e=>"w-".concat(e))));const ga="___FONT_AWESOME___",ya=16,ba="fa",va="svg-inline--fa",_a="data-fa-i2svg",wa="data-fa-pseudo-element",xa="data-fa-pseudo-element-pending",Ea="data-prefix",Sa="data-icon",ka="fontawesome-i2svg",Oa="async",Ca=["HTML","HEAD","STYLE","SCRIPT"],Aa=(()=>{try{return!0}catch(e){return!1}})();function Ta(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Zi]})}const Ra=Ui({},Xi);Ra[Zi]=Ui(Ui(Ui(Ui({},{"fa-duotone":"duotone"}),Xi[Zi]),ia),aa);const Ia=Ta(Ra),Na=Ui({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});Na[Zi]=Ui(Ui(Ui(Ui({},{duotone:"fad"}),Na[Zi]),sa),la);const Da=Ta(Na),Pa=Ui({},da);Pa[Zi]=Ui(Ui({},Pa[Zi]),{fak:"fa-kit"});const Fa=Ta(Pa),La=Ui({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});La[Zi]=Ui(Ui({},La[Zi]),{"fa-kit":"fak"}),Ta(La);const Ma=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Ua="fa-layers-text",ja=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;Ta(Ui({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}}));const za=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ba={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Va=["kit",...ma],qa=Wi.FontAwesomeConfig||{};if($i&&"function"==typeof $i.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=$i.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(qa[n]=r)}))}const Ha={styleDefault:"solid",familyDefault:Zi,cssPrefix:ba,replacementClass:va,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};qa.familyPrefix&&(qa.cssPrefix=qa.familyPrefix);const Wa=Ui(Ui({},Ha),qa);Wa.autoReplaceSvg||(Wa.observeMutations=!1);const $a={};Object.keys(Ha).forEach((e=>{Object.defineProperty($a,e,{enumerable:!0,set:function(t){Wa[e]=t,Qa.forEach((e=>e($a)))},get:function(){return Wa[e]}})})),Object.defineProperty($a,"familyPrefix",{enumerable:!0,set:function(e){Wa.cssPrefix=e,Qa.forEach((e=>e($a)))},get:function(){return Wa.cssPrefix}}),Wi.FontAwesomeConfig=$a;const Qa=[];const Ka=ya,Ya={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};const Ga="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Xa(){let e=12,t="";for(;e-- >0;)t+=Ga[62*Math.random()|0];return t}function Ja(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Za(e){return e.classList?Ja(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function eo(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function to(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function no(e){return e.size!==Ya.size||e.x!==Ya.x||e.y!==Ya.y||e.rotate!==Ya.rotate||e.flipX||e.flipY}var ro=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';function io(){const e=ba,t=va,n=$a.cssPrefix,r=$a.replacementClass;let i=ro;if(n!==e||r!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let ao=!1;function oo(){$a.autoAddCss&&!ao&&(!function(e){if(!e||!Yi)return;const t=$i.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=$i.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const e=n[i],t=(e.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(t)>-1&&(r=e)}$i.head.insertBefore(t,r)}(io()),ao=!0)}var so={mixout:()=>({dom:{css:io,insertCss:oo}}),hooks:()=>({beforeDOMElementCreation(){oo()},beforeI2svg(){oo()}})};const lo=Wi||{};lo[ga]||(lo[ga]={}),lo[ga].styles||(lo[ga].styles={}),lo[ga].hooks||(lo[ga].hooks={}),lo[ga].shims||(lo[ga].shims=[]);var co=lo[ga];const uo=[],fo=function(){$i.removeEventListener("DOMContentLoaded",fo),ho=1,uo.map((e=>e()))};let ho=!1;function po(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?eo(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(eo(e[n]),'" ')),"").trim()}(n),">").concat(r.map(po).join(""),"</").concat(t,">")}function mo(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Yi&&(ho=($i.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($i.readyState),ho||$i.addEventListener("DOMContentLoaded",fo));var go=function(e,t,n,r){var i,a,o,s=Object.keys(e),l=s.length,c=t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<l;i++)o=c(o,e[a=s[i]],a,e);return o};function yo(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function bo(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function vo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=bo(t);"function"!=typeof co.hooks.addPack||r?co.styles[e]=Ui(Ui({},co.styles[e]||{}),i):co.hooks.addPack(e,bo(t)),"fas"===e&&vo("fa",t)}const{styles:_o,shims:wo}=co,xo=Object.keys(Fa),Eo=xo.reduce(((e,t)=>(e[t]=Object.keys(Fa[t]),e)),{});let So=null,ko={},Oo={},Co={},Ao={},To={};function Ro(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(a=i,~Va.indexOf(a))?null:i;var a}const Io=()=>{const e=e=>go(_o,((t,n,r)=>(t[r]=go(n,e,{}),t)),{});ko=e(((e,t,n)=>{if(t[3]&&(e[t[3]]=n),t[2]){t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n}))}return e})),Oo=e(((e,t,n)=>{if(e[n]=n,t[2]){t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n}))}return e})),To=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in _o||$a.autoFetchSvg,n=go(wo,((e,n)=>{const r=n[0];let i=n[1];const a=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});Co=n.names,Ao=n.unicodes,So=Uo($a.styleDefault,{family:$a.familyDefault})};var No;function Do(e,t){return(ko[e]||{})[t]}function Po(e,t){return(To[e]||{})[t]}function Fo(e){return Co[e]||{prefix:null,iconName:null}}function Lo(){return So}No=e=>{So=Uo(e.styleDefault,{family:$a.familyDefault})},Qa.push(No),Io();const Mo=()=>({prefix:null,iconName:null,rest:[]});function Uo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Zi}=t,r=Ia[n][e];if(n===ea&&!e)return"fad";const i=Da[n][e]||Da[n][r],a=e in co.styles?e:null;return i||a||null}function jo(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function zo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=fa.concat(ua),a=jo(e.filter((e=>i.includes(e)))),o=jo(e.filter((e=>!fa.includes(e)))),s=a.filter((e=>(r=e,!Ji.includes(e)))),[l=null]=s,c=function(e){let t=Zi;const n=xo.reduce(((e,t)=>(e[t]="".concat($a.cssPrefix,"-").concat(t),e)),{});return ta.forEach((r=>{(e.includes(n[r])||e.some((e=>Eo[r].includes(e))))&&(t=r)})),t}(a),u=Ui(Ui({},function(e){let t=[],n=null;return e.forEach((e=>{const r=Ro($a.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(o)),{},{prefix:Uo(l,{family:c})});return Ui(Ui(Ui({},u),function(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:a={},config:o={}}=e,s=n===ea,l=t.includes("fa-duotone")||t.includes("fad"),c="duotone"===o.familyDefault,u="fad"===r.prefix||"fa-duotone"===r.prefix;!s&&(l||c||u)&&(r.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab");if(!r.prefix&&Bo.includes(n)){if(Object.keys(a).find((e=>Vo.includes(e)))||o.autoFetchSvg){const e=na.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=Po(r.prefix,r.iconName)||r.iconName}}"fa"!==r.prefix&&"fa"!==i||(r.prefix=Lo()||"fas");return r}({values:e,family:c,styles:_o,config:$a,canonical:u,givenPrefix:r})),function(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const a="fa"===t?Fo(i):{},o=Po(r,i);i=a.iconName||o||i,r=a.prefix||r,"far"!==r||_o.far||!_o.fas||$a.autoFetchSvg||(r="fas");return{prefix:r,iconName:i}}(n,r,u))}const Bo=ta.filter((e=>e!==Zi||e!==ea)),Vo=Object.keys(da).filter((e=>e!==Zi)).map((e=>Object.keys(da[e]))).flat();let qo=[],Ho={};const Wo={},$o=Object.keys(Wo);function Qo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Ho[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Ko(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Ho[e]||[]).forEach((e=>{e.apply(null,n)}))}function Yo(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Wo[e]?Wo[e].apply(null,t):void 0}function Go(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Lo();if(t)return t=Po(n,t)||t,mo(Xo.definitions,n,t)||mo(co.styles,n,t)}const Xo=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]=Ui(Ui({},this.definitions[e]||{}),r[e]),vo(e,r[e]);const t=Fa[Zi][e];t&&vo(t,r[e]),Io()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:i,icon:a}=n[t],o=a[2];e[r]||(e[r]={}),o.length>0&&o.forEach((t=>{"string"==typeof t&&(e[r][t]=a)})),e[r][i]=a})),e}},Jo={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Yi?(Ko("beforeI2svg",e),Yo("pseudoElements2svg",e),Yo("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===$a.autoReplaceSvg&&($a.autoReplaceSvg=!0),$a.observeMutations=!0,n=()=>{es({autoReplaceSvgRoot:t}),Ko("watch",e)},Yi&&(ho?setTimeout(n,0):uo.push(n))}},Zo={noAuto:()=>{$a.autoReplaceSvg=!1,$a.observeMutations=!1,Ko("noAuto")},config:$a,dom:Jo,parse:{icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Po(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Uo(e[0]);return{prefix:n,iconName:Po(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat($a.cssPrefix,"-"))>-1||e.match(Ma))){const t=zo(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Lo(),iconName:Po(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Lo();return{prefix:t,iconName:Po(t,e)||e}}}},library:Xo,findIconDefinition:Go,toHtml:po},es=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=$i}=e;(Object.keys(co.styles).length>0||$a.autoFetchSvg)&&Yi&&$a.autoReplaceSvg&&Zo.dom.i2svg({node:t})};function ts(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>po(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Yi)return;const t=$i.createElement("div");return t.innerHTML=e.html,t.children}}),e}function ns(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:a,symbol:o,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:h}=n.found?n:t,p=oa.includes(r),m=[$a.replacementClass,i?"".concat($a.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:Ui(Ui({},u.attributes),{},{"data-prefix":r,"data-icon":i,class:m,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(h)})};const y=p&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/h*16*.0625,"em")}:{};d&&(g.attributes[_a]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||Xa())},children:[s]}),delete g.attributes.title);const b=Ui(Ui({},g),{},{prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:a,symbol:o,styles:Ui(Ui({},y),u.styles)}),{children:v,attributes:_}=n.found&&t.found?Yo("generateAbstractMask",b)||{children:[],attributes:{}}:Yo("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=v,b.attributes=_,o?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:a}=e;const o=!0===a?"".concat(t,"-").concat($a.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ui(Ui({},i),{},{id:o}),children:r}]}]}(b):function(e){let{children:t,main:n,mask:r,attributes:i,styles:a,transform:o}=e;if(no(o)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=to(Ui(Ui({},a),{},{"transform-origin":"".concat(r.x+o.x/16,"em ").concat(r.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(b)}function rs(e){const{content:t,width:n,height:r,transform:i,title:a,extra:o,watchable:s=!1}=e,l=Ui(Ui(Ui({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(l[_a]="");const c=Ui({},o.styles);no(i)&&(c.transform=function(e){let{transform:t,width:n=ya,height:r=ya,startCentered:i=!1}=e,a="";return a+=i&&Gi?"translate(".concat(t.x/Ka-n/2,"em, ").concat(t.y/Ka-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/Ka,"em), calc(-50% + ").concat(t.y/Ka,"em)) "):"translate(".concat(t.x/Ka,"em, ").concat(t.y/Ka,"em) "),a+="scale(".concat(t.size/Ka*(t.flipX?-1:1),", ").concat(t.size/Ka*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=to(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}const{styles:is}=co;function as(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return i=Array.isArray(r)?{tag:"g",attributes:{class:"".concat($a.cssPrefix,"-").concat(Ba.GROUP)},children:[{tag:"path",attributes:{class:"".concat($a.cssPrefix,"-").concat(Ba.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat($a.cssPrefix,"-").concat(Ba.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const os={found:!1,width:512,height:512};function ss(e,t){let n=t;return"fa"===t&&null!==$a.styleDefault&&(t=Lo()),new Promise(((r,i)=>{if("fa"===n){const n=Fo(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&is[t]&&is[t][e]){return r(as(is[t][e]))}!function(e,t){Aa||$a.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Ui(Ui({},os),{},{icon:$a.showMissingIcons&&e&&Yo("missingIconAbstract")||{}}))}))}const ls=()=>{},cs=$a.measurePerformance&&Ki&&Ki.mark&&Ki.measure?Ki:{mark:ls,measure:ls},us='FA "6.7.2"',ds=e=>{cs.mark("".concat(us," ").concat(e," ends")),cs.measure("".concat(us," ").concat(e),"".concat(us," ").concat(e," begins"),"".concat(us," ").concat(e," ends"))};var fs={begin:e=>(cs.mark("".concat(us," ").concat(e," begins")),()=>ds(e)),end:ds};const hs=()=>{};function ps(e){return"string"==typeof(e.getAttribute?e.getAttribute(_a):null)}function ms(e){return $i.createElementNS("http://www.w3.org/2000/svg",e)}function gs(e){return $i.createElement(e)}function ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?ms:gs)}=t;if("string"==typeof e)return $i.createTextNode(e);const r=n(e.tag);Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])}));return(e.children||[]).forEach((function(e){r.appendChild(ys(e,{ceFn:n}))})),r}const bs={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(ys(e),t)})),null===t.getAttribute(_a)&&$a.keepOriginalSource){let e=$i.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Za(t).indexOf($a.replacementClass))return bs.replace(e);const r=new RegExp("".concat($a.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===$a.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const i=n.map((e=>po(e))).join("\n");t.setAttribute(_a,""),t.innerHTML=i}};function vs(e){e()}function _s(e,t){const n="function"==typeof t?t:hs;if(0===e.length)n();else{let t=vs;$a.mutateApproach===Oa&&(t=Wi.requestAnimationFrame||vs),t((()=>{const t=!0===$a.autoReplaceSvg?bs.replace:bs[$a.autoReplaceSvg]||bs.replace,r=fs.begin("mutate");e.map(t),r(),n()}))}}let ws=!1;function xs(){ws=!0}function Es(){ws=!1}let Ss=null;function ks(e){if(!Qi)return;if(!$a.observeMutations)return;const{treeCallback:t=hs,nodeCallback:n=hs,pseudoElementsCallback:r=hs,observeMutationsRoot:i=$i}=e;Ss=new Qi((e=>{if(ws)return;const i=Lo();Ja(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!ps(e.addedNodes[0])&&($a.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&$a.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&ps(e.target)&&~za.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(Ea):null,n=e.getAttribute?e.getAttribute(Sa):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=zo(Za(e.target));e.target.setAttribute(Ea,t||i),n&&e.target.setAttribute(Sa,n)}else(a=e.target)&&a.classList&&a.classList.contains&&a.classList.contains($a.replacementClass)&&n(e.target);var a}))})),Yi&&Ss.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Os(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let i=zo(Za(e));return i.prefix||(i.prefix=Lo()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=(a=i.prefix,o=e.innerText,(Oo[a]||{})[o]||Do(i.prefix,yo(e.innerText)))),!i.iconName&&$a.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var a,o}function Cs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=Os(e),a=function(e){const t=Ja(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return $a.autoA11y&&(n?t["aria-labelledby"]="".concat($a.replacementClass,"-title-").concat(r||Xa()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),o=Qo("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return Ui({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Ya,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:a}},o)}const{styles:As}=co;function Ts(e){const t="nest"===$a.autoReplaceSvg?Cs(e,{styleParser:!1}):Cs(e);return~t.extra.classes.indexOf(Ua)?Yo("generateLayersText",e,t):Yo("generateSvgReplacementMutation",e,t)}function Rs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Yi)return Promise.resolve();const n=$i.documentElement.classList,r=e=>n.add("".concat(ka,"-").concat(e)),i=e=>n.remove("".concat(ka,"-").concat(e)),a=$a.autoFetchSvg?[...ra,...fa]:Ji.concat(Object.keys(As));a.includes("fa")||a.push("fa");const o=[".".concat(Ua,":not([").concat(_a,"])")].concat(a.map((e=>".".concat(e,":not([").concat(_a,"])")))).join(", ");if(0===o.length)return Promise.resolve();let s=[];try{s=Ja(e.querySelectorAll(o))}catch(u){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=fs.begin("onTree"),c=s.reduce(((e,t)=>{try{const n=Ts(t);n&&e.push(n)}catch(u){Aa||"MissingIcon"===u.name&&console.error(u)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{_s(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ts(e).then((e=>{e&&_s([e],t)}))}const Ns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ya,symbol:r=!1,mask:i=null,maskId:a=null,title:o=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:h}=e;return ts(Ui({type:"icon"},e),(()=>(Ko("beforeDOMElementCreation",{iconDefinition:e,params:t}),$a.autoA11y&&(o?c["aria-labelledby"]="".concat($a.replacementClass,"-title-").concat(s||Xa()):(c["aria-hidden"]="true",c.focusable="false")),ns({icons:{main:as(h),mask:i?as(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:Ui(Ui({},Ya),n),symbol:r,title:o,maskId:a,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var Ds={mixout(){return{icon:(e=Ns,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:Go(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Go(i||{})),e(r,Ui(Ui({},n),{},{mask:i}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Rs,e.nodeCallback=Is,e)}),provides(e){e.i2svg=function(e){const{node:t=$i,callback:n=()=>{}}=e;return Rs(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:i,prefix:a,transform:o,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([ss(n,a),l.iconName?ss(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,ns({icons:{main:d,mask:f},prefix:a,iconName:n,transform:o,symbol:s,maskId:c,title:r,titleId:i,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:i,styles:a}=e;const o=to(a);let s;return o.length>0&&(n.style=o),no(i)&&(s=Yo("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Ps={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return ts({type:"layer"},(()=>{Ko("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat($a.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},Fs={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:a={}}=t;return ts({type:"counter",content:e},(()=>(Ko("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i=Ui(Ui(Ui({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=to(r.styles);a.length>0&&(i.style=a);const o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}({content:e.toString(),title:n,extra:{attributes:i,styles:a,classes:["".concat($a.cssPrefix,"-layers-counter"),...r]}}))))}})},Ls={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ya,title:r=null,classes:i=[],attributes:a={},styles:o={}}=t;return ts({type:"text",content:e},(()=>(Ko("beforeDOMElementCreation",{content:e,params:t}),rs({content:e,transform:Ui(Ui({},Ya),n),title:r,extra:{attributes:a,styles:o,classes:["".concat($a.cssPrefix,"-layers-text"),...i]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:i}=t;let a=null,o=null;if(Gi){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();a=n.width/t,o=n.height/t}return $a.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,rs({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}};const Ms=new RegExp('"',"ug"),Us=[1105920,1112319],js=Ui(Ui(Ui(Ui({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),zs=Object.keys(js).reduce(((e,t)=>(e[t.toLowerCase()]=js[t],e)),{}),Bs=Object.keys(zs).reduce(((e,t)=>{const n=zs[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Vs(e,t){const n="".concat(xa).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const a=Ja(e.children).filter((e=>e.getAttribute(wa)===t))[0],o=Wi.getComputedStyle(e,t),s=o.getPropertyValue("font-family"),l=s.match(ja),c=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&"none"!==u&&""!==u){const u=o.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(zs[n]||{})[i]||Bs[n]}(s,c);const{value:f,isSecondary:h}=function(e){const t=e.replace(Ms,""),n=function(e,t){const n=e.length;let r,i=e.charCodeAt(t);return i>=55296&&i<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(i-55296)+r-56320+65536:i}(t,0),r=n>=Us[0]&&n<=Us[1],i=2===t.length&&t[0]===t[1];return{value:yo(i?t[0]:t),isSecondary:r||i}}(u),p=l[0].startsWith("FontAwesome");let m=Do(d,f),g=m;if(p){const e=function(e){const t=Ao[e],n=Do("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(m=e.iconName,d=e.prefix)}if(!m||h||a&&a.getAttribute(Ea)===d&&a.getAttribute(Sa)===g)r();else{e.setAttribute(n,g),a&&e.removeChild(a);const o={iconName:null,title:null,titleId:null,prefix:null,transform:Ya,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=o;s.attributes[wa]=t,ss(m,d).then((i=>{const a=ns(Ui(Ui({},o),{},{icons:{main:i,mask:Mo()},prefix:d,iconName:g,extra:s,watchable:!0})),l=$i.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=a.map((e=>po(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function qs(e){return Promise.all([Vs(e,"::before"),Vs(e,"::after")])}function Hs(e){return!(e.parentNode===document.head||~Ca.indexOf(e.tagName.toUpperCase())||e.getAttribute(wa)||e.parentNode&&"svg"===e.parentNode.tagName)}function Ws(e){if(Yi)return new Promise(((t,n)=>{const r=Ja(e.querySelectorAll("*")).filter(Hs).map(qs),i=fs.begin("searchPseudoElements");xs(),Promise.all(r).then((()=>{i(),Es(),t()})).catch((()=>{i(),Es(),n()}))}))}let $s=!1;const Qs=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});const Ks={x:0,y:0,width:"100%",height:"100%"};function Ys(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){let{mixoutsTo:n}=t;qo=e,Ho={},Object.keys(Wo).forEach((e=>{-1===$o.indexOf(e)&&delete Wo[e]})),qo.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{Ho[e]||(Ho[e]=[]),Ho[e].push(t[e])}))}e.provides&&e.provides(Wo)}))}([so,Ds,Ps,Fs,Ls,{hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Ws,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=$i}=e;$a.searchPseudoElements&&Ws(t)}}},{mixout:()=>({dom:{unwatch(){xs(),$s=!0}}}),hooks:()=>({bootstrap(){ks(Qo("mutationObserverCallbacks",{}))},noAuto(){Ss&&Ss.disconnect()},watch(e){const{observeMutationsRoot:t}=e;$s?Es():ks(Qo("mutationObserverCallbacks",{observeMutationsRoot:t}))}})},{mixout:()=>({parse:{transform:e=>Qs(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Qs(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e;const a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={outer:a,inner:{transform:"".concat(o," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Ui({},c.outer),children:[{tag:"g",attributes:Ui({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Ui(Ui({},t.icon.attributes),c.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?zo(n.split(" ").map((e=>e.trim()))):Mo();return r.prefix||(r.prefix=Lo()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:i,maskId:a,transform:o}=e;const{width:s,icon:l}=r,{width:c,icon:u}=i,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(a," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:o,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:Ui(Ui({},Ks),{},{fill:"white"})},h=l.children?{children:l.children.map(Ys)}:{},p={tag:"g",attributes:Ui({},d.inner),children:[Ys(Ui({tag:l.tag,attributes:Ui(Ui({},l.attributes),d.path)},h))]},m={tag:"g",attributes:Ui({},d.outer),children:[p]},g="mask-".concat(a||Xa()),y="clip-".concat(a||Xa()),b={tag:"mask",attributes:Ui(Ui({},Ks),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(_=u,"g"===_.tag?_.children:[_])},b]};var _;return t.push(v,{tag:"rect",attributes:Ui({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},Ks)}),{children:t,attributes:n}}}},{provides(e){let t=!1;Wi.matchMedia&&(t=Wi.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Ui(Ui({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=Ui(Ui({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Ui(Ui({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Ui(Ui({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ui(Ui({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:Ui(Ui({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Ui(Ui({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Ui(Ui({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ui(Ui({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:Zo});const Gs=Zo.config,Xs=Zo.library,Js=Zo.dom,Zs=Zo.parse,el=Zo.icon,tl={prefix:"far",iconName:"hexagon-xmark",icon:[512,512,["times-hexagon","xmark-hexagon"],"f2ee","M17.1 292c-12.9-22.3-12.9-49.7 0-72L105.4 67.1c12.9-22.3 36.6-36 62.4-36l176.6 0c25.7 0 49.5 13.7 62.4 36L494.9 220c12.9 22.3 12.9 49.7 0 72L406.6 444.9c-12.9 22.3-36.6 36-62.4 36l-176.6 0c-25.7 0-49.5-13.7-62.4-36L17.1 292zm41.6-48c-4.3 7.4-4.3 16.6 0 24l88.3 152.9c4.3 7.4 12.2 12 20.8 12l176.6 0c8.6 0 16.5-4.6 20.8-12L453.4 268c4.3-7.4 4.3-16.6 0-24L365.1 91.1c-4.3-7.4-12.2-12-20.8-12l-176.6 0c-8.6 0-16.5 4.6-20.8 12L58.6 244zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},nl={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},rl={prefix:"far",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","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"]},il={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},al={prefix:"fas",iconName:"shield-check",icon:[512,512,[],"f2f7","M269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2c.5 99.2 41.3 280.7 213.6 363.2c16.7 8 36.1 8 52.8 0C454.7 420.7 495.5 239.2 496 140c.1-26.2-16.3-47.9-38.3-57.2L269.4 2.9zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},ol=({class:e,children:t,...n})=>{const r=Object.keys(n).find((e=>n[e])),i=r?sl[r]:void 0,{heading1:a,paragraph1:o,label:s,field:l,hint:c,terms:u,link:d,h1:f,h2:h,h3:p,span:m,p:g,brand:y,danger:b,dark:v,darker:_,light:w,default:x,...E}=n,S={class:Gn(i,e),...E};return X(a?dl:o?fl:s?hl:l?pl:c?ml:u?gl:d?yl:f?"h1":h?"h2":p?"h3":m?"span":"p",{...S,children:t})},sl={brand:"text-primary-base",danger:"text-red-500",dark:"text-gray-700",darker:"text-gray-900",light:"text-gray-400",default:"text-gray-600"},ll=`text-3xl font-bold leading-9 ${sl.darker}`,cl=`text-base font-medium leading-6 ${sl.dark}`,ul=`text-sm font-medium leading-5 ${sl.dark}`,dl=e=>X("h1",{...e,class:Gn(ll,e.class)}),fl=e=>X("p",{...e,class:Gn("text-lg leading-7",e.class)}),hl=e=>X("span",{...e,class:Gn(cl,e.class)}),pl=e=>X("span",{...e,class:Gn(ul,e.class)}),ml=e=>X("p",{...e,class:Gn("text-sm",e.class)}),gl=e=>X("p",{...e,class:Gn("text-xs",e.class)}),yl=e=>X("a",{...e,class:Gn("underline cursor-pointer",e.class)});Xs.add(il,nl,al),Gs.autoAddCss=!1;const bl=({children:e})=>X(_,{children:[X("style",{children:'@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}a{text-decoration-line:underline}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-top-3{top:-.75rem}.left-3{left:.75rem}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.right-4{right:1rem}.top-2{top:.5rem}.top-3{top:.75rem}.top-4{top:1rem}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.mr-2\\.5{margin-right:.625rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-\\[23rem\\]{min-height:23rem}.min-h-full{min-height:100%}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-4{min-width:1rem}.min-w-60{min-width:15rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[58rem\\]{max-width:58rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-x-0{--tw-translate-x: 0px;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-x-full{--tw-translate-x: 100%;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;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-4{--tw-translate-y: 1rem;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))}.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(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3\\.5{gap:.875rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.overflow-x-clip{overflow-x:clip}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.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-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.border-teal-500{--tw-border-opacity: 1;border-color:rgb(20 184 166 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500\\/75{background-color:#6b7280bf}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity))}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-12{padding-left:3rem;padding-right:3rem}.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-5{padding-left:1.25rem;padding-right:1.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pr-8{padding-right:2rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Inter,sans-serif}.text-3xl{font-size:1.875rem;line-height:2.25rem}.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-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-9{line-height:2.25rem}.leading-\\[38px\\]{line-height:38px}.leading-tight{line-height:1.25}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / 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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-inherit{color:inherit}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-primary-text{color:var(--fl-color-primary-text)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.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)}:host{--fl-color-primary_from_host: var(--fl-color-primary);--fl-color-primary-text_from_host: var(--fl-color-primary-text)}*{--fl-color-primary: var(--fl-color-primary_from_host, #2E66F7);--fl-color-primary-text: var(--fl-color-primary-text_from_host, #ffffff)}.slide-exit,.slide-exit-active{position:absolute;inset:0}.slide-enter{transform:translate(100%)}.slide-enter-active{transform:translate(0);transition:transform .3s ease-out}.slide-exit{transform:translate(0)}.slide-exit-active{transform:translate(-100%);transition:transform .3s ease-out}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);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)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-primary-base:focus{--tw-ring-color: var(--fl-color-primary)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:border-gray-700:focus-visible{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.focus-visible\\:border-red-600:focus-visible{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.data-\\[highlighted\\]\\:bg-primary-base[data-highlighted]{background-color:var(--fl-color-primary)}.data-\\[highlighted\\]\\:text-primary-text[data-highlighted]{color:var(--fl-color-primary-text)}@media(min-width:640px){.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:flex{display:flex}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}}@media(min-width:768px){.md\\:mt-3{margin-top:.75rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:min-w-\\[41rem\\]{min-width:41rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1024px){.lg\\:min-h-\\[33rem\\]{min-height:33rem}.lg\\:min-w-\\[58rem\\]{min-width:58rem}}'+Js.css()}),X("div",{class:Gn("font-sans",sl.default),children:e})]});function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(n),!0).forEach((function(t){xl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wl(e){return(wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function El(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Sl(e){return function(e){if(Array.isArray(e))return kl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return kl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ol(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Cl=["style"];var Al=!1;try{Al=!0}catch(og){}function Tl(e){return e&&"object"===wl(e)&&e.prefix&&e.iconName&&e.icon?e:Zs.icon?Zs.icon(e):null===e?null:e&&"object"===wl(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Rl(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?xl({},e,t):{}}var Il={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Nl=On.forwardRef((function(e,t){var n=_l(_l({},Il),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Tl(r),d=Rl("classes",[].concat(Sl(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,h=e.inverse,p=e.border,m=e.listItem,g=e.flip,y=e.size,b=e.rotation,v=e.pull,_=(xl(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":h,"fa-border":p,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),null!=y),xl(t,"fa-rotate-".concat(b),null!=b&&0!==b),xl(t,"fa-pull-".concat(v),null!=v),xl(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(_).map((function(e){return _[e]?e:null})).filter((function(e){return e}))}(n)),Sl((o||"").split(" ")))),f=Rl("transform","string"==typeof n.transform?Zs.transform(n.transform):n.transform),h=Rl("mask",Tl(i)),p=el(u,_l(_l(_l(_l({},d),f),h),{},{symbol:a,title:s,titleId:l,maskId:c}));if(!p)return function(){var e;!Al&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var m=p.abstract,g={ref:t};return Object.keys(n).forEach((function(e){Il.hasOwnProperty(e)||(g[e]=n[e])})),Dl(m[0],g)}));Nl.displayName="FontAwesomeIcon",Nl.propTypes={beat:yi.bool,border:yi.bool,beatFade:yi.bool,bounce:yi.bool,className:yi.string,fade:yi.bool,flash:yi.bool,mask:yi.oneOfType([yi.object,yi.array,yi.string]),maskId:yi.string,fixedWidth:yi.bool,inverse:yi.bool,flip:yi.oneOf([!0,!1,"horizontal","vertical","both"]),icon:yi.oneOfType([yi.object,yi.array,yi.string]),listItem:yi.bool,pull:yi.oneOf(["right","left"]),pulse:yi.bool,rotation:yi.oneOf([0,90,180,270]),shake:yi.bool,size:yi.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:yi.bool,spinPulse:yi.bool,spinReverse:yi.bool,symbol:yi.oneOfType([yi.bool,yi.string]),title:yi.string,titleId:yi.string,transform:yi.oneOfType([yi.string,yi.object]),swapOpacity:yi.bool};var Dl=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=Ol(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Ol(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,l=El(r,Cl);return a.attrs.style=_l(_l({},a.attrs.style),s),t.apply(void 0,[n.tag,_l(_l({},a.attrs),l)].concat(Sl(i)))}.bind(null,On.createElement);const Pl=e=>X("div",{class:Gn("flex px-5 py-3.5 rounded-lg gap-3.5 items-center relative overflow-visible","completed"===e.type?"bg-teal-50 border border-solid border-teal-500":"bg-gray-50 border border-dashed border-primary-base",e.class),children:[X("div",{class:"absolute -top-3 h-6 pd z-50 py-0.5 px-2 rounded-s rounded-e border border-solid border-primary-base\n bg-white text-primary-base text-xs font-medium gap-1",children:X("p",{children:"Flare Benefits Allowance"})}),"completed"===e.type?X("div",{class:"flex flex-shrink-0 items-center justify-center bg-teal-400 rounded-full w-6 h-6",children:X(Nl,{className:"text-white text-sm self-center",icon:il})}):null,X("div",{class:"flex-auto flex-col",children:[e.title?X(ol,{class:"flex-auto font-semibold leading-tight",darker:!0,paragraph1:!0,children:e.title}):null,e.subtitle?X(ol,{class:"text-sm",darker:!0,children:e.subtitle}):null]})]}),Fl=e=>X("svg",{class:Gn("animate-spin",e.class),fill:"none",viewBox:"0 0 24 24",children:[X("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),X("path",{class:"opacity-75",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),Ll=()=>X("div",{class:"flex flex-col gap-8 items-center justify-center h-full",children:X(Fl,{class:Gn("w-10 h-10",sl.brand)})}),Ml=({status:e="idle",...t})=>X("button",{class:Gn(["relative items-center px-4 py-2 border border-transparent font-medium rounded-md text-base hover:brightness-110 focus:outline-none",t.secondary?`${sl.darker}`:"bg-primary-base text-primary-text shadow-sm focus:ring-primary-base focus:ring-2 focus:ring-offset-2",t.disabled?"opacity-30":"","pending"===e||t.disabled?"pointer-events-none":"",t.class]),"data-testid":t.testId,disabled:"pending"===e||t.disabled,onClick:t.onClick,tabindex:"pending"===e||t.disabled?-1:void 0,type:"button",children:[X("span",{class:Gn(["pending"===e?"opacity-0":""]),children:t.children}),"pending"===e?X("div",{class:"absolute inset-0 flex justify-center items-center",children:X(Fl,{class:"h-5 w-5"})}):null]}),Ul=e=>X("div",{class:"flex flex-col gap-8 items-center justify-center h-full",children:[X(Nl,{className:sl.danger,icon:tl,size:"4x"}),X("div",{class:" max-w-[30rem]",children:[X(ol,{class:"text-center",heading1:!0,children:"Sorry about that!"}),X(ol,{class:"text-center",paragraph1:!0,children:"Something unexpected has occurred and we are working hard to fix it. Please try again later."})]}),X(Ml,{onClick:e.retry,children:"Retry"})]}),jl=({class:e,...t})=>X("div",{class:Gn("flex-1 md:min-w-[41rem] min-h-[23rem] lg:min-w-[58rem] lg:min-h-[33rem] mt-8 md:mt-3",e),...t});var zl=(e=>(e.Ineligible="Ineligible",e.Completion="Completion",e.Consent="Consent",e.Question="Question",e))(zl||{}),Bl=(e=>(e.TriviaSingleSelect="TriviaSingleSelect",e.SingleSelect="SingleSelect",e.Lookup="Lookup",e.MultiSelect="MultiSelect",e.Text="Text",e.Date="Date",e.Currency="Currency",e.Slider="Slider",e))(Bl||{}),Vl=(e=>(e.String="String",e.DateTime="DateTime",e.Date="Date",e.Integer="Integer",e.Decimal="Decimal",e.Boolean="Boolean",e.Lookup="Lookup",e))(Vl||{}),ql=(e=>(e.Weekends="Weekends",e.PublicHolidays="PublicHolidays",e))(ql||{}),Hl=(e=>(e.SalaryPackagingCars="SalaryPackagingCars",e.Health="Health",e.Everyday="Everyday",e.Devices="Devices",e.HomeLoan="HomeLoan",e.Trivia="Trivia",e.Energy="Energy",e.Broadband="Broadband",e))(Hl||{}),Wl=(e=>(e.ProgressStep="ProgressStep",e.UpdateAnswersOfCompletedActivity="UpdateAnswersOfCompletedActivity",e.ProgressStartToComplete="ProgressStartToComplete",e))(Wl||{}),$l=(e=>(e.Standard="standard",e.Lookup="lookup",e))($l||{}),Ql=(e=>(e.ACT="ACT",e.NSW="NSW",e.NT="NT",e.QLD="QLD",e.SA="SA",e.TAS="TAS",e.VIC="VIC",e.WA="WA",e))(Ql||{}),Kl=(e=>(e.AssessmentViewed="Assessment Viewed",e.AssessmentSkipped="Assessment Skipped",e.AssessmentFieldUpdated="AssessmentField Updated",e.AssessmentSubmitted="Assessment Submitted",e.AssessmentSummaryViewed="AssessmentSummary Viewed",e))(Kl||{}),Yl=(e=>(e.BenefitsWellbeingArticle="benefitsWellbeingArticle",e.BenefitsPlanActivityArticle="benefitsPlanActivityArticle",e.BenefitsPlanActivityAdvertisement="benefitsPlanActivityAdvertisement",e.BenefitsProductOffer="benefitsProductOffer",e.BenefitsCarsOffer="benefitsCarsOffer",e.BenefitsMarketplaceOffer="benefitsMarketplaceOffer",e))(Yl||{});function Gl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xl}=Object.prototype,{getPrototypeOf:Jl}=Object,{iterator:Zl,toStringTag:ec}=Symbol,tc=(e=>t=>{const n=Xl.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),nc=e=>(e=e.toLowerCase(),t=>tc(t)===e),rc=e=>t=>typeof t===e,{isArray:ic}=Array,ac=rc("undefined");function oc(e){return null!==e&&!ac(e)&&null!==e.constructor&&!ac(e.constructor)&&cc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sc=nc("ArrayBuffer");const lc=rc("string"),cc=rc("function"),uc=rc("number"),dc=e=>null!==e&&"object"==typeof e,fc=e=>{if("object"!==tc(e))return!1;const t=Jl(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ec in e||Zl in e)},hc=nc("Date"),pc=nc("File"),mc=nc("Blob"),gc=nc("FileList");const yc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},bc=void 0!==yc.FormData?yc.FormData:void 0,vc=nc("URLSearchParams"),[_c,wc,xc,Ec]=["ReadableStream","Request","Response","Headers"].map(nc);function Sc(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),ic(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(oc(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function kc(e,t){if(oc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Oc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Cc=e=>!ac(e)&&e!==Oc;const Ac=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Jl(Uint8Array)),Tc=nc("HTMLFormElement"),Rc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ic=nc("RegExp"),Nc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sc(n,((n,i)=>{let a;!1!==(a=t(n,i,e))&&(r[i]=a||n)})),Object.defineProperties(e,r)};const Dc=nc("AsyncFunction"),Pc=(Fc="function"==typeof setImmediate,Lc=cc(Oc.postMessage),Fc?setImmediate:Lc?(Mc=`axios@${Math.random()}`,Uc=[],Oc.addEventListener("message",(({source:e,data:t})=>{e===Oc&&t===Mc&&Uc.length&&Uc.shift()()}),!1),e=>{Uc.push(e),Oc.postMessage(Mc,"*")}):e=>setTimeout(e));var Fc,Lc,Mc,Uc;const jc="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Oc):"undefined"!=typeof process&&process.nextTick||Pc,zc={isArray:ic,isArrayBuffer:sc,isBuffer:oc,isFormData:e=>{let t;return e&&(bc&&e instanceof bc||cc(e.append)&&("formdata"===(t=tc(e))||"object"===t&&cc(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sc(e.buffer),t},isString:lc,isNumber:uc,isBoolean:e=>!0===e||!1===e,isObject:dc,isPlainObject:fc,isEmptyObject:e=>{if(!dc(e)||oc(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(og){return!1}},isReadableStream:_c,isRequest:wc,isResponse:xc,isHeaders:Ec,isUndefined:ac,isDate:hc,isFile:pc,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:mc,isRegExp:Ic,isFunction:cc,isStream:e=>dc(e)&&cc(e.pipe),isURLSearchParams:vc,isTypedArray:Ac,isFileList:gc,forEach:Sc,merge:function e(){const{caseless:t,skipUndefined:n}=Cc(this)&&this||{},r={},i=(i,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const o=t&&kc(r,a)||a;fc(r[o])&&fc(i)?r[o]=e(r[o],i):fc(i)?r[o]=e({},i):ic(i)?r[o]=i.slice():n&&ac(i)||(r[o]=i)};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&Sc(arguments[a],i);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Sc(t,((t,r)=>{n&&cc(t)?Object.defineProperty(e,r,{value:Gl(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})}),{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),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&Jl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:tc,kindOfTest:nc,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(ic(e))return e;let t=e.length;if(!uc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Zl]).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:Tc,hasOwnProperty:Rc,hasOwnProp:Rc,reduceDescriptors:Nc,freezeMethods:e=>{Nc(e,((t,n)=>{if(cc(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];cc(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 ic(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:kc,global:Oc,isContextDefined:Cc,isSpecCompliantForm:function(e){return!!(e&&cc(e.append)&&"FormData"===e[ec]&&e[Zl])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(dc(e)){if(t.indexOf(e)>=0)return;if(oc(e))return e;if(!("toJSON"in e)){t[r]=e;const i=ic(e)?[]:{};return Sc(e,((e,t)=>{const a=n(e,r+1);!ac(a)&&(i[t]=a)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Dc,isThenable:e=>e&&(dc(e)||cc(e))&&cc(e.then)&&cc(e.catch),setImmediate:Pc,asap:jc,isIterable:e=>null!=e&&cc(e[Zl])};let Bc=class e extends Error{static from(t,n,r,i,a,o){const s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){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:zc.toJSONObject(this.config),code:this.code,status:this.status}}};Bc.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Bc.ERR_BAD_OPTION="ERR_BAD_OPTION",Bc.ECONNABORTED="ECONNABORTED",Bc.ETIMEDOUT="ETIMEDOUT",Bc.ERR_NETWORK="ERR_NETWORK",Bc.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Bc.ERR_DEPRECATED="ERR_DEPRECATED",Bc.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Bc.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Bc.ERR_CANCELED="ERR_CANCELED",Bc.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Bc.ERR_INVALID_URL="ERR_INVALID_URL";function Vc(e){return zc.isPlainObject(e)||zc.isArray(e)}function qc(e){return zc.endsWith(e,"[]")?e.slice(0,-2):e}function Hc(e,t,n){return e?e.concat(t).map((function(e,t){return e=qc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Wc=zc.toFlatObject(zc,{},null,(function(e){return/^is[A-Z]/.test(e)}));function $c(e,t,n){if(!zc.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=zc.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!zc.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,a=n.dots,o=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&zc.isSpecCompliantForm(t);if(!zc.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(zc.isDate(e))return e.toISOString();if(zc.isBoolean(e))return e.toString();if(!s&&zc.isBlob(e))throw new Bc("Blob is not supported. Use a Buffer instead.");return zc.isArrayBuffer(e)||zc.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(zc.isReactNative(t)&&zc.isReactNativeBlob(e))return t.append(Hc(i,n,a),l(e)),!1;if(e&&!i&&"object"==typeof e)if(zc.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(zc.isArray(e)&&function(e){return zc.isArray(e)&&!e.some(Vc)}(e)||(zc.isFileList(e)||zc.endsWith(n,"[]"))&&(s=zc.toArray(e)))return n=qc(n),s.forEach((function(e,r){!zc.isUndefined(e)&&null!==e&&t.append(!0===o?Hc([n],r,a):null===o?n:n+"[]",l(e))})),!1;return!!Vc(e)||(t.append(Hc(i,n,a),l(e)),!1)}const u=[],d=Object.assign(Wc,{defaultVisitor:c,convertValue:l,isVisitable:Vc});if(!zc.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!zc.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),zc.forEach(n,(function(n,a){!0===(!(zc.isUndefined(n)||null===n)&&i.call(t,n,zc.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])})),u.pop()}}(e),t}function Qc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Kc(e,t){this._pairs=[],e&&$c(e,this,t)}const Yc=Kc.prototype;function Gc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xc(e,t,n){if(!t)return e;const r=n&&n.encode||Gc,i=zc.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;let o;if(o=a?a(t,i):zc.isURLSearchParams(t)?t.toString():new Kc(t,i).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Yc.append=function(e,t){this._pairs.push([e,t])},Yc.toString=function(e){const t=e?function(t){return e.call(this,t,Qc)}:Qc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Jc{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){zc.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Zc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},eu={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Kc,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},tu="undefined"!=typeof window&&"undefined"!=typeof document,nu="object"==typeof navigator&&navigator||void 0,ru=tu&&(!nu||["ReactNative","NativeScript","NS"].indexOf(nu.product)<0),iu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,au=tu&&window.location.href||"http://localhost",ou={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tu,hasStandardBrowserEnv:ru,hasStandardBrowserWebWorkerEnv:iu,navigator:nu,origin:au},Symbol.toStringTag,{value:"Module"})),...eu};function su(e){function t(e,n,r,i){let a=e[i++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),s=i>=e.length;if(a=!a&&zc.isArray(r)?r.length:a,s)return zc.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o;r[a]&&zc.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],i)&&zc.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}(r[a])),!o}if(zc.isFormData(e)&&zc.isFunction(e.entries)){const n={};return zc.forEachEntry(e,((e,r)=>{t(function(e){return zc.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const lu={transitional:Zc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=zc.isObject(e);i&&zc.isHTMLForm(e)&&(e=new FormData(e));if(zc.isFormData(e))return r?JSON.stringify(su(e)):e;if(zc.isArrayBuffer(e)||zc.isBuffer(e)||zc.isStream(e)||zc.isFile(e)||zc.isBlob(e)||zc.isReadableStream(e))return e;if(zc.isArrayBufferView(e))return e.buffer;if(zc.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $c(e,new ou.classes.URLSearchParams,{visitor:function(e,t,n,r){return ou.isNode&&zc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=zc.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $c(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(zc.isString(e))try{return(t||JSON.parse)(e),zc.trim(e)}catch(og){if("SyntaxError"!==og.name)throw og}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||lu.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(zc.isResponse(e)||zc.isReadableStream(e))return e;if(e&&zc.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(og){if(n){if("SyntaxError"===og.name)throw Bc.from(og,Bc.ERR_BAD_RESPONSE,this,null,this.response);throw og}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ou.classes.FormData,Blob:ou.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zc.forEach(["delete","get","head","post","put","patch"],(e=>{lu.headers[e]={}}));const cu=zc.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"]),uu=Symbol("internals");function du(e,t){if(!1!==e&&null!=e)if(zc.isArray(e))e.forEach((e=>du(e,t)));else if(!(e=>!/[\r\n]/.test(e))(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function fu(e){return e&&String(e).trim().toLowerCase()}function hu(e){return!1===e||null==e?e:zc.isArray(e)?e.map(hu):function(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(10!==n&&13!==n)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function pu(e,t,n,r,i){return zc.isFunction(r)?r.call(this,t,n):(i&&(t=n),zc.isString(t)?zc.isString(r)?-1!==t.indexOf(r):zc.isRegExp(r)?r.test(t):void 0:void 0)}let mu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=fu(t);if(!i)throw new Error("header name must be a non-empty string");const a=zc.findKey(r,i);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(du(e,t),r[a||t]=hu(e))}const a=(e,t)=>zc.forEach(e,((e,n)=>i(e,n,t)));if(zc.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(zc.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&cu[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(zc.isObject(e)&&zc.isIterable(e)){let n,r,i={};for(const t of e){if(!zc.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?zc.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=fu(e)){const n=zc.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(zc.isFunction(t))return t.call(this,e,n);if(zc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fu(e)){const n=zc.findKey(this,e);return!(!n||void 0===this[n]||t&&!pu(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=fu(e)){const i=zc.findKey(n,e);!i||t&&!pu(0,n[i],i,t)||(delete n[i],r=!0)}}return zc.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!pu(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return zc.forEach(this,((r,i)=>{const a=zc.findKey(n,i);if(a)return t[a]=hu(r),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();o!==i&&delete t[i],t[o]=hu(r),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return zc.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&zc.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[uu]=this[uu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=fu(e);t[r]||(!function(e,t){const n=zc.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return zc.isArray(e)?e.forEach(r):r(e),this}};function gu(e,t){const n=this||lu,r=t||n,i=mu.from(r.headers);let a=r.data;return zc.forEach(e,(function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)})),i.normalize(),a}function yu(e){return!(!e||!e.__CANCEL__)}mu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),zc.reduceDescriptors(mu.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),zc.freezeMethods(mu);let bu=class extends Bc{constructor(e,t,n){super(null==e?"canceled":e,Bc.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function vu(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Bc("Request failed with status code "+n.status,[Bc.ERR_BAD_REQUEST,Bc.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const _u=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[o];i||(i=l),n[a]=s,r[a]=l;let u=o,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-i<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,i=0,a=1e3/t;const o=(t,a=Date.now())=>{i=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=a?o(e,t):(n=e,r||(r=setTimeout((()=>{r=null,o(n)}),a-s)))},()=>n&&o(n)]}((n=>{const a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,l=i(s);r=a;e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&a<=o?(o-a)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),n)},wu=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xu=e=>(...t)=>zc.asap((()=>e(...t))),Eu=ou.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ou.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ou.origin),ou.navigator&&/(msie|trident)/i.test(ou.navigator.userAgent)):()=>!0,Su=ou.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];zc.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),zc.isString(r)&&s.push(`path=${r}`),zc.isString(i)&&s.push(`domain=${i}`),!0===a&&s.push("secure"),zc.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function ku(e,t,n){let r=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ou=e=>e instanceof mu?{...e}:e;function Cu(e,t){t=t||{};const n={};function r(e,t,n,r){return zc.isPlainObject(e)&&zc.isPlainObject(t)?zc.merge.call({caseless:r},e,t):zc.isPlainObject(t)?zc.merge({},t):zc.isArray(t)?t.slice():t}function i(e,t,n,i){return zc.isUndefined(t)?zc.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function a(e,t){if(!zc.isUndefined(t))return r(void 0,t)}function o(e,t){return zc.isUndefined(t)?zc.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,a){return a in t?r(n,i):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Ou(e),Ou(t),0,!0)};return zc.forEach(Object.keys({...e,...t}),(function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=zc.hasOwnProp(l,r)?l[r]:i,o=a(e[r],t[r],r);zc.isUndefined(o)&&a!==s||(n[r]=o)})),n}const Au=e=>{const t=Cu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=mu.from(o),t.url=Xc(ku(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),zc.isFormData(n))if(ou.hasStandardBrowserEnv||ou.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(zc.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)}))}if(ou.hasStandardBrowserEnv&&(r&&zc.isFunction(r)&&(r=r(t)),r||!1!==r&&Eu(t.url))){const e=i&&a&&Su.read(a);e&&o.set(i,e)}return t},Tu="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Au(e);let i=r.data;const a=mu.from(r.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=mu.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());vu((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Bc("Request aborted",Bc.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new Bc(r,Bc.ERR_NETWORK,e,m);i.event=t||null,n(i),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Zc;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Bc(t,i.clarifyTimeoutError?Bc.ETIMEDOUT:Bc.ECONNABORTED,e,m)),m=null},void 0===i&&a.setContentType(null),"setRequestHeader"in m&&zc.forEach(a.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),zc.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([l,u]=_u(h,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=_u(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(o=t=>{m&&(n(!t||t.type?new bu(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ou.protocols.indexOf(y)?n(new Bc("Unsupported protocol "+y+":",Bc.ERR_BAD_REQUEST,e)):m.send(i||null)}))},Ru=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Bc?t:new bu(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,i(new Bc(`timeout of ${t}ms exceeded`,Bc.ETIMEDOUT))}),t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>zc.asap(o),s}},Iu=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Nu=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()}},Du=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of Nu(e))yield*Iu(n,t)}(e,t);let a,o=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=o+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},{isFunction:Pu}=zc,Fu=(({Request:e,Response:t})=>({Request:e,Response:t}))(zc.global),{ReadableStream:Lu,TextEncoder:Mu}=zc.global,Uu=(e,...t)=>{try{return!!e(...t)}catch(og){return!1}},ju=e=>{e=zc.merge.call({skipUndefined:!0},Fu,e);const{fetch:t,Request:n,Response:r}=e,i=t?Pu(t):"function"==typeof fetch,a=Pu(n),o=Pu(r);if(!i)return!1;const s=i&&Pu(Lu),l=i&&("function"==typeof Mu?(e=>t=>e.encode(t))(new Mu):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&s&&Uu((()=>{let e=!1;const t=new Lu,r=new n(ou.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!r})),u=o&&s&&Uu((()=>zc.isReadableStream(new r("").body))),d={stream:u&&(e=>e.body)};i&&["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 Bc(`Response type '${e}' is not supported`,Bc.ERR_NOT_SUPPORT,n)})}));const f=async(e,t)=>{const r=zc.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(zc.isBlob(e))return e.size;if(zc.isSpecCompliantForm(e)){const t=new n(ou.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return zc.isArrayBufferView(e)||zc.isArrayBuffer(e)?e.byteLength:(zc.isURLSearchParams(e)&&(e+=""),zc.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:i,method:o,data:s,signal:l,cancelToken:h,timeout:p,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:_}=Au(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let x=Ru([l,h&&h.toAbortSignal()],p),E=null;const S=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let k;try{if(g&&c&&"get"!==o&&"head"!==o&&0!==(k=await f(b,s))){let e,t=new n(i,{method:"POST",body:s,duplex:"half"});if(zc.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=wu(k,_u(xu(g)));s=Du(t.body,65536,e,n)}}zc.isString(v)||(v=v?"include":"omit");const t=a&&"credentials"in n.prototype,l={..._,signal:x,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};E=a&&new n(i,l);let h=await(a?w(E,_):w(i,l));const p=u&&("stream"===y||"response"===y);if(u&&(m||p&&S)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=zc.toFiniteNumber(h.headers.get("content-length")),[n,i]=m&&wu(t,_u(xu(m),!0))||[];h=new r(Du(h.body,65536,n,(()=>{i&&i(),S&&S()})),e)}y=y||"text";let O=await d[zc.findKey(d,y)||"text"](h,e);return!p&&S&&S(),await new Promise(((t,n)=>{vu(t,n,{data:O,headers:mu.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:E})}))}catch(O){if(S&&S(),O&&"TypeError"===O.name&&/Load failed|fetch/i.test(O.message))throw Object.assign(new Bc("Network Error",Bc.ERR_NETWORK,e,E,O&&O.response),{cause:O.cause||O});throw Bc.from(O,O&&O.code,e,E,O&&O.response)}}},zu=new Map,Bu=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let o,s,l=a.length,c=zu;for(;l--;)o=a[l],s=c.get(o),void 0===s&&c.set(o,s=l?new Map:ju(t)),c=s;return s};Bu();const Vu={http:null,xhr:Tu,fetch:{get:Bu}};zc.forEach(Vu,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(og){}Object.defineProperty(e,"adapterName",{value:t})}}));const qu=e=>`- ${e}`,Hu=e=>zc.isFunction(e)||null===e||!1===e;const Wu={getAdapter:function(e,t){e=zc.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let o=0;o<n;o++){let n;if(r=e[o],i=r,!Hu(r)&&(i=Vu[(n=String(r)).toLowerCase()],void 0===i))throw new Bc(`Unknown adapter '${n}'`);if(i&&(zc.isFunction(i)||(i=i.get(t))))break;a[n||"#"+o]=i}if(!i){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=n?e.length>1?"since :\n"+e.map(qu).join("\n"):" "+qu(e[0]):"as no adapter specified";throw new Bc("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:Vu};function $u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bu(null,e)}function Qu(e){$u(e),e.headers=mu.from(e.headers),e.data=gu.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Wu.getAdapter(e.adapter||lu.adapter,e)(e).then((function(t){return $u(e),t.data=gu.call(e,e.transformResponse,t),t.headers=mu.from(t.headers),t}),(function(t){return yu(t)||($u(e),t&&t.response&&(t.response.data=gu.call(e,e.transformResponse,t.response),t.response.headers=mu.from(t.response.headers))),Promise.reject(t)}))}const Ku="1.15.0",Yu={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Yu[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Gu={};Yu.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ku+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,a)=>{if(!1===e)throw new Bc(r(i," has been removed"+(t?" in "+t:"")),Bc.ERR_DEPRECATED);return t&&!Gu[i]&&(Gu[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},Yu.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Xu={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Bc("options must be an object",Bc.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const t=e[a],n=void 0===t||o(t,a,e);if(!0!==n)throw new Bc("option "+a+" must be "+n,Bc.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Bc("Unknown option "+a,Bc.ERR_BAD_OPTION)}},validators:Yu},Ju=Xu.validators;let Zu=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Jc,response:new Jc}}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=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),r=-1===e?-1:t.indexOf("\n",e+1),i=-1===r?"":t.slice(r+1);String(n.stack).endsWith(i)||(n.stack+="\n"+t)}}else n.stack=t}catch(og){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Cu(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Xu.assertOptions(n,{silentJSONParsing:Ju.transitional(Ju.boolean),forcedJSONParsing:Ju.transitional(Ju.boolean),clarifyTimeoutError:Ju.transitional(Ju.boolean),legacyInterceptorReqResOrdering:Ju.transitional(Ju.boolean)},!1),null!=r&&(zc.isFunction(r)?t.paramsSerializer={serialize:r}:Xu.assertOptions(r,{encode:Ju.function,serialize:Ju.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Xu.assertOptions(t,{baseUrl:Ju.spelling("baseURL"),withXsrfToken:Ju.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&zc.merge(i.common,i[t.method]);i&&zc.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=mu.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Zc;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(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=[Qu.bind(this),void 0];for(e.unshift(...o),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let f=t;for(;d<u;){const e=o[d++],t=o[d++];try{f=e(f)}catch(h){t.call(this,h);break}}try{c=Qu.call(this,f)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Xc(ku((e=Cu(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};zc.forEach(["delete","get","head","options"],(function(e){Zu.prototype[e]=function(t,n){return this.request(Cu(n||{},{method:e,url:t,data:(n||{}).data}))}})),zc.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Cu(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Zu.prototype[e]=t(),Zu.prototype[e+"Form"]=t(!0)}));const ed={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ed).forEach((([e,t])=>{ed[t]=e}));const td=function e(t){const n=new Zu(t),r=Gl(Zu.prototype.request,n);return zc.extend(r,Zu.prototype,n,{allOwnKeys:!0}),zc.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Cu(t,n))},r}(lu);td.Axios=Zu,td.CanceledError=bu,td.CancelToken=class e{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,i){n.reason||(n.reason=new bu(e,r,i),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 t;return{token:new e((function(e){t=e})),cancel:t}}},td.isCancel=yu,td.VERSION=Ku,td.toFormData=$c,td.AxiosError=Bc,td.Cancel=td.CanceledError,td.all=function(e){return Promise.all(e)},td.spread=function(e){return function(t){return e.apply(null,t)}},td.isAxiosError=function(e){return zc.isObject(e)&&!0===e.isAxiosError},td.mergeConfig=Cu,td.AxiosHeaders=mu,td.formToJSON=e=>su(zc.isHTMLForm(e)?new FormData(e):e),td.getAdapter=Wu.getAdapter,td.HttpStatusCode=ed,td.default=td;const{Axios:nd,AxiosError:rd,CanceledError:id,isCancel:ad,CancelToken:od,VERSION:sd,all:ld,Cancel:cd,isAxiosError:ud,spread:dd,toFormData:fd,AxiosHeaders:hd,HttpStatusCode:pd,formToJSON:md,getAdapter:gd,mergeConfig:yd}=td;let bd;const vd=async(e,t)=>(await(bd?.get(e,t)))?.data,_d=async(e,t,n)=>(await(bd?.post(e,t,n)))?.data;let wd;const xd=()=>{if(wd)return wd;return wd=new Ue({defaultOptions:{queries:{retry:(e,t)=>0===e&&![401,403].includes(t.response?.status||0)}}}),wd},Ed="/benefits-plan/workplace-backend",Sd=(e,t)=>vd(`${Ed}/v2.0/activities/${e.activityId}/steps`,t),kd=(e,t)=>{const n=e.progressEvents?.map((({dataType:e,...t})=>e===$l.Standard?t:{dataType:e,...t}));return(async(e,t,n)=>(await(bd?.put(e,t,n)))?.data)(`${Ed}/v1.0/customer/activities/${e.activityId}`,{activityAction:e.activityAction,progressEvents:n},t)},Od=(e,t)=>_d(`${Ed}/v2.0/analytics/track`,e,t),Cd=()=>vd("/benefits-plan/customer-backend/v1.0/public-holidays"),Ad=async(e,t)=>{const n=await(async(e,t)=>{const n=(await td.get(e,{...t,baseURL:"https://cdn.contentful.com/spaces/hos0i9i3wvo7/environments/master",headers:{Authorization:"Bearer pZ8KQVJZ8iSqixnowan6aKl9xmpE61FDPJvyAB49bpY","Content-Type":"application/json"}}))?.data;return n})("/entries",{params:{content_type:t,"sys.id":e}});if(0===n.items.length)throw new Error("Invalid contentful response");return n},Td=e=>({params:{experiment:e.trackExperiment,treatment:e.trackTreatment}}),Rd=e=>{const{data:t,isError:n,isLoading:r,isSuccess:i,refetch:a}=Qn({queryKey:["benefitsPlanGetCalculate",e.assessmentId],queryFn:()=>(async(e,t)=>vd(`${Ed}/v1.0/activities/${e.activityId}/calculate`,t))({activityId:e.assessmentId},Td(e)),staleTime:0,gcTime:0});st((()=>{Od({event:Kl.AssessmentSummaryViewed,properties:{id:e.assessmentId,name:e.assessmentTitle}},Td(e))}),[e]);const o=t?.calculationType===Hl.SalaryPackagingCars||t?.calculationType===Hl.Trivia,s=t?.calculationType===Hl.Broadband&&!t?.estimates,l=o?"All done":s?"We are unable to offer internet plans not on NBN":t?.estimates?.primary.title||"",c=s?"At the moment we only offer internet plans available on NBN. Seems like your location does not have NBN available yet. Please check back later":t?.calculationType===Hl.Trivia?void 0:t?.estimates?.blurb.text,u=o?void 0:t?.estimates?.blurb.imageUrl,d=o||"true"===e.skipMoreDetails?void 0:t?.estimates?.moreDetailsUrl,f=o?void 0:t?.estimates?.complianceUrl,h=Id(e.specialBannerType&&t?.estimates?t.calculationType:void 0);return X(jl,{children:[r&&X(Ll,{}),n&&X(Ul,{retry:a}),i?X("div",{class:"md:grid md:grid-cols-2",children:[X("div",{class:"flex flex-col gap-6",children:[X(ol,{heading1:!0,children:l}),X(ol,{paragraph1:!0,children:c}),h?X(Pl,{title:h,type:"completed"}):null,u?X("img",{loading:"lazy",src:u}):null,X("div",{class:"flex gap-1 flex-wrap",children:[d?X(Ml,{class:Gn(e.onComplete?"flex-grow":""),onClick:()=>window.open(d,"_blank"),children:"See your plans"}):null,e.onComplete?X(Ml,{class:Gn(d?"flex-grow":""),onClick:e.onComplete,children:"Next"}):null]}),f?X(ol,{class:"text-xs",href:f,link:!0,target:"_blank",children:"View available health funds"}):null]}),X("div",{class:Gn("flex",e.verticalAlignment),children:X("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})})]}):null]})},Id=e=>{if(void 0===e||e===Hl.Trivia)return;let t;return t=e===Hl.SalaryPackagingCars?"cars":e===Hl.HomeLoan?"home loan":e.toLowerCase(),`Your estimated ${t} reimbursement will be calculated and sent to your email address`},{entries:Nd,setPrototypeOf:Dd,isFrozen:Pd,getPrototypeOf:Fd,getOwnPropertyDescriptor:Ld}=Object;let{freeze:Md,seal:Ud,create:jd}=Object,{apply:zd,construct:Bd}="undefined"!=typeof Reflect&&Reflect;Md||(Md=function(e){return e}),Ud||(Ud=function(e){return e}),zd||(zd=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),Bd||(Bd=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Vd=rf(Array.prototype.forEach),qd=rf(Array.prototype.lastIndexOf),Hd=rf(Array.prototype.pop),Wd=rf(Array.prototype.push),$d=rf(Array.prototype.splice),Qd=rf(String.prototype.toLowerCase),Kd=rf(String.prototype.toString),Yd=rf(String.prototype.match),Gd=rf(String.prototype.replace),Xd=rf(String.prototype.indexOf),Jd=rf(String.prototype.trim),Zd=rf(Object.prototype.hasOwnProperty),ef=rf(RegExp.prototype.test),tf=(nf=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bd(nf,t)});var nf;function rf(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return zd(e,t,r)}}function af(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qd;Dd&&Dd(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(Pd(t)||(t[r]=e),i=e)}e[i]=!0}return e}function of(e){for(let t=0;t<e.length;t++){Zd(e,t)||(e[t]=null)}return e}function sf(e){const t=jd(null);for(const[n,r]of Nd(e)){Zd(e,n)&&(Array.isArray(r)?t[n]=of(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=sf(r):t[n]=r)}return t}function lf(e,t){for(;null!==e;){const n=Ld(e,t);if(n){if(n.get)return rf(n.get);if("function"==typeof n.value)return rf(n.value)}e=Fd(e)}return function(){return null}}const cf=Md(["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","search","section","select","shadow","slot","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"]),uf=Md(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),df=Md(["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"]),ff=Md(["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"]),hf=Md(["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"]),pf=Md(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mf=Md(["#text"]),gf=Md(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),yf=Md(["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","mask-type","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"]),bf=Md(["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"]),vf=Md(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_f=Ud(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wf=Ud(/<%[\w\W]*|[\w\W]*%>/gm),xf=Ud(/\$\{[\w\W]*/gm),Ef=Ud(/^data-[\-\w.\u00B7-\uFFFF]+$/),Sf=Ud(/^aria-[\-\w]+$/),kf=Ud(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Of=Ud(/^(?:\w+script|data):/i),Cf=Ud(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Af=Ud(/^html$/i),Tf=Ud(/^[a-z][.\w]*(-[.\w]+)+$/i);var Rf=Object.freeze({__proto__:null,ARIA_ATTR:Sf,ATTR_WHITESPACE:Cf,CUSTOM_ELEMENT:Tf,DATA_ATTR:Ef,DOCTYPE_NAME:Af,ERB_EXPR:wf,IS_ALLOWED_URI:kf,IS_SCRIPT_OR_DATA:Of,MUSTACHE_EXPR:_f,TMPLIT_EXPR:xf});const If=1,Nf=3,Df=7,Pf=8,Ff=9;var Lf=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.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==Ff||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=t,m=c.prototype,g=lf(m,"cloneNode"),y=lf(m,"remove"),b=lf(m,"nextSibling"),v=lf(m,"childNodes"),_=lf(m,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,x="";const{implementation:E,createNodeIterator:S,createDocumentFragment:k,getElementsByTagName:O}=r,{importNode:C}=i;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Nd&&"function"==typeof _&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:T,ERB_EXPR:R,TMPLIT_EXPR:I,DATA_ATTR:N,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:L}=Rf;let{IS_ALLOWED_URI:M}=Rf,U=null;const j=af({},[...cf,...uf,...df,...hf,...mf]);let z=null;const B=af({},[...gf,...yf,...bf,...vf]);let V=Object.seal(jd(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,H=null;const W=Object.seal(jd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $=!0,Q=!0,K=!1,Y=!0,G=!1,X=!0,J=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!0,ae=!1,oe=!0,se=!1,le={},ce=null;const ue=af({},["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 fe=af({},["audio","video","img","source","image","track"]);let he=null;const pe=af({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml";let be=ye,ve=!1,_e=null;const we=af({},[me,ge,ye],Kd);let xe=af({},["mi","mo","mn","ms","mtext"]),Ee=af({},["annotation-xml"]);const Se=af({},["title","style","font","a","script"]);let ke=null;const Oe=["application/xhtml+xml","text/html"];let Ce=null,Ae=null;const Te=r.createElement("form"),Re=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=sf(e),ke=-1===Oe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===ke?Kd:Qd,U=Zd(e,"ALLOWED_TAGS")?af({},e.ALLOWED_TAGS,Ce):j,z=Zd(e,"ALLOWED_ATTR")?af({},e.ALLOWED_ATTR,Ce):B,_e=Zd(e,"ALLOWED_NAMESPACES")?af({},e.ALLOWED_NAMESPACES,Kd):we,he=Zd(e,"ADD_URI_SAFE_ATTR")?af(sf(pe),e.ADD_URI_SAFE_ATTR,Ce):pe,de=Zd(e,"ADD_DATA_URI_TAGS")?af(sf(fe),e.ADD_DATA_URI_TAGS,Ce):fe,ce=Zd(e,"FORBID_CONTENTS")?af({},e.FORBID_CONTENTS,Ce):ue,q=Zd(e,"FORBID_TAGS")?af({},e.FORBID_TAGS,Ce):sf({}),H=Zd(e,"FORBID_ATTR")?af({},e.FORBID_ATTR,Ce):sf({}),le=!!Zd(e,"USE_PROFILES")&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,Q=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,ae=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||kf,be=e.NAMESPACE||ye,xe=e.MATHML_TEXT_INTEGRATION_POINTS||xe,Ee=e.HTML_INTEGRATION_POINTS||Ee,V=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Re(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Re(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),G&&(Q=!1),ne&&(te=!0),le&&(U=af({},mf),z=jd(null),!0===le.html&&(af(U,cf),af(z,gf)),!0===le.svg&&(af(U,uf),af(z,yf),af(z,vf)),!0===le.svgFilters&&(af(U,df),af(z,yf),af(z,vf)),!0===le.mathMl&&(af(U,hf),af(z,bf),af(z,vf))),Zd(e,"ADD_TAGS")||(W.tagCheck=null),Zd(e,"ADD_ATTR")||(W.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?W.tagCheck=e.ADD_TAGS:(U===j&&(U=sf(U)),af(U,e.ADD_TAGS,Ce))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?W.attributeCheck=e.ADD_ATTR:(z===B&&(z=sf(z)),af(z,e.ADD_ATTR,Ce))),e.ADD_URI_SAFE_ATTR&&af(he,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(ce===ue&&(ce=sf(ce)),af(ce,e.FORBID_CONTENTS,Ce)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=sf(ce)),af(ce,e.ADD_FORBID_CONTENTS,Ce)),oe&&(U["#text"]=!0),J&&af(U,["html","head","body"]),U.table&&(af(U,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw tf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw tf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else void 0===w&&(w=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 i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(p,a)),null!==w&&"string"==typeof x&&(x=w.createHTML(""));Md&&Md(e),Ae=e}},Ne=af({},[...uf,...df,...ff]),De=af({},[...hf,...pf]),Pe=function(e){Wd(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){y(e)}},Fe=function(e,t){try{Wd(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Wd(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Pe(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Le=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Yd(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ke&&be===ye&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=w?w.createHTML(e):e;if(be===ye)try{t=(new h).parseFromString(i,ke)}catch(o){}if(!t||!t.documentElement){t=E.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?x:i}catch(o){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),be===ye?O.call(t,J?"html":"body")[0]:J?t.documentElement:a},Me=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function ze(e,t,r){Vd(e,(e=>{e.call(n,t,r,Ae)}))}const Be=function(e){let t=null;if(ze(A.beforeSanitizeElements,e,null),Ue(e))return Pe(e),!0;const r=Ce(e.nodeName);if(ze(A.uponSanitizeElement,e,{tagName:r,allowedTags:U}),X&&e.hasChildNodes()&&!je(e.firstElementChild)&&ef(/<[/\w!]/g,e.innerHTML)&&ef(/<[/\w!]/g,e.textContent))return Pe(e),!0;if(e.nodeType===Df)return Pe(e),!0;if(X&&e.nodeType===Pf&&ef(/<[/\w]/g,e.data))return Pe(e),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(r))&&(!U[r]||q[r])){if(!q[r]&&qe(r)){if(V.tagNameCheck instanceof RegExp&&ef(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(oe&&!ce[r]){const t=_(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=g(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,b(e))}}}return Pe(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const n=Qd(e.tagName),r=Qd(t.tagName);return!!_e[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===ye?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||xe[r]):Boolean(Ne[n]):e.namespaceURI===me?t.namespaceURI===ye?"math"===n:t.namespaceURI===ge?"math"===n&&Ee[r]:Boolean(De[n]):e.namespaceURI===ye?!(t.namespaceURI===ge&&!Ee[r])&&!(t.namespaceURI===me&&!xe[r])&&!De[n]&&(Se[n]||!Ne[n]):!("application/xhtml+xml"!==ke||!_e[e.namespaceURI]))}(e)?(Pe(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ef(/<\/no(script|embed|frames)/i,e.innerHTML)?(G&&e.nodeType===Nf&&(t=e.textContent,Vd([T,R,I],(e=>{t=Gd(t,e," ")})),e.textContent!==t&&(Wd(n.removed,{element:e.cloneNode()}),e.textContent=t)),ze(A.afterSanitizeElements,e,null),!1):(Pe(e),!0)},Ve=function(e,t,n){if(H[t])return!1;if(ie&&("id"===t||"name"===t)&&(n in r||n in Te))return!1;if(Q&&!H[t]&&ef(N,t));else if($&&ef(D,t));else if(W.attributeCheck instanceof Function&&W.attributeCheck(t,e));else if(!z[t]||H[t]){if(!(qe(e)&&(V.tagNameCheck instanceof RegExp&&ef(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&ef(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t,e))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&ef(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(he[t]);else if(ef(M,Gd(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Xd(n,"data:")||!de[e]){if(K&&!ef(P,Gd(n,F,"")));else if(n)return!1}else;return!0},qe=function(e){return"annotation-xml"!==e&&Yd(e,L)},He=function(e){ze(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ue(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:s,namespaceURI:l,value:c}=o,u=Ce(s),d=c;let f="value"===s?d:Jd(d);if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,ze(A.uponSanitizeAttribute,e,r),f=r.attrValue,!ae||"id"!==u&&"name"!==u||(Fe(s,e),f="user-content-"+f),X&&ef(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Fe(s,e);continue}if("attributename"===u&&Yd(f,"href")){Fe(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Fe(s,e);continue}if(!Y&&ef(/\/>/i,f)){Fe(s,e);continue}G&&Vd([T,R,I],(e=>{f=Gd(f,e," ")}));const h=Ce(e.nodeName);if(Ve(h,u,f)){if(w&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(l);else switch(p.getAttributeType(h,u)){case"TrustedHTML":f=w.createHTML(f);break;case"TrustedScriptURL":f=w.createScriptURL(f)}if(f!==d)try{l?e.setAttributeNS(l,s,f):e.setAttribute(s,f),Ue(e)?Pe(e):Hd(n.removed)}catch(a){Fe(s,e)}}else Fe(s,e)}ze(A.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const r=Me(t);for(ze(A.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)ze(A.uponSanitizeShadowNode,n,null),Be(n),He(n),n.content instanceof o&&e(n.content);ze(A.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw tf("toString is not a function");if("string"!=typeof(e=e.toString()))throw tf("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Ie(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Ce(e.nodeName);if(!U[t]||q[t])throw tf("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Le("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===If&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!te&&!G&&!J&&-1===e.indexOf("<"))return w&&re?w.createHTML(e):e;if(r=Le(e),!r)return te?null:re?x:""}r&&ee&&Pe(r.firstChild);const u=Me(se?e:r);for(;s=u.nextNode();)Be(s),He(s),s.content instanceof o&&We(s.content);if(se)return e;if(te){if(ne)for(c=k.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(z.shadowroot||z.shadowrootmode)&&(c=C.call(i,c,!0)),c}let d=J?r.outerHTML:r.innerHTML;return J&&U["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ef(Af,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),G&&Vd([T,R,I],(e=>{d=Gd(d,e," ")})),w&&re?w.createHTML(d):d},n.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ae=null,Z=!1},n.isValidAttribute=function(e,t,n){Ae||Ie({});const r=Ce(e),i=Ce(t);return Ve(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&Wd(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=qd(A[e],t);return-1===n?void 0:$d(A[e],n,1)[0]}return Hd(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Mf=({children:e})=>X(_,{children:e}),Uf=({children:e})=>X(_,{children:e}),jf=({open:e,children:t})=>{const n=dt((()=>On.Children.toArray(t).find((e=>e.type===Mf))),[t]),r=dt((()=>On.Children.toArray(t).find((e=>e.type===Uf))),[t]),[i,a]=at(!e);return st((()=>{let t;return e?a(!1):t=setTimeout((()=>{a(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),X("div",{hidden:i,children:X("div",{className:"z-50 fixed inset-0 w-screen bg-gray-500/75 transition-opacity "+(e?"ease-in duration-300 opacity-100":"ease-in duration-200 opacity-0"),children:X("div",{className:"flex overflow-y-auto min-h-full items-end justify-center p-4 sm:items-center sm:p-0",children:X("div",{className:"relative transform overflow-hidden rounded-lg bg-white shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg "+(e?"ease-out duration-300 opacity-100 translate-y-0 sm:scale-100":"ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"),children:X("div",{className:"bg-white p-4 sm:p-6",children:X("div",{className:"sm:flex sm:items-start",children:X("div",{className:"mt-3 sm:ml-4 sm:mt-0",children:[n,X("div",{className:"mt-4",children:r})]})})})})})})})},zf=e=>{const t=zr(),n=e.declineButton&&e.onDecline,{mutate:r,status:i}=Kn({mutationFn:e?.onAccept??qf,onSuccess:()=>t("/question")}),{mutate:a,status:o}=Kn({mutationFn:e?.onDecline??qf}),[s,l]=at({visible:!1}),c=Array.isArray(e.terms)?e.terms:e.terms?.additionalTerms;return X(_,{children:[X(jl,{class:"md:grid md:grid-cols-2",children:[X("div",{class:"flex flex-col gap-6",children:[X("div",{children:[X(ol,{class:"mb-2",heading1:!0,children:e.assessmentTitle}),X(ol,{paragraph1:!0,children:e.description})]}),e.details?.length?X("div",{class:"flex flex-col p-6 rounded-lg border border-gray-200 shadow-sm gap-2",children:e.details.map(((e,t)=>X("div",{class:"flex",children:[X(Nl,{className:"text-primary-base mt-1 mr-2.5 text-sm",icon:il}),e]},t)))}):null,e.specialBannerType?X(Pl,{subtitle:e.specialBannerSubtitle,title:e.specialBannerTitle,type:e.specialBannerType}):null,X("div",{class:"flex gap-1 flex-wrap",children:[X(Ml,{class:Gn(n?"flex-grow":""),onClick:r,status:i,testId:`offer_${e.marketplaceOfferName}_button_accept`,children:e.acceptButton}),n&&X(Ml,{class:"flex-grow",onClick:a,secondary:!0,status:o,testId:`offer_${e.marketplaceOfferName}_button_decline`,children:e.declineButton})]}),!Array.isArray(e.terms)&&e.terms?.consentText&&X(ol,{class:"text-xs",dangerouslySetInnerHTML:{__html:Lf.sanitize(e.terms.consentText,{ADD_ATTR:["target"]})},p:!0}),X("div",{class:"flex gap-4 flex-wrap",children:[c?.length?X(ol,{class:"text-xs",children:["*",X(ol,{brand:!0,link:!0,onClick:()=>l({visible:!0,description:c,title:"Terms & Conditions"}),children:"T&C's apply"})]}):null,X(Bf,{...e,setDialog:l})]})]}),X("div",{class:Gn("flex",e.verticalAlignment),children:X("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})})]}),X(Vf,{description:s.description,hide:()=>l((e=>({...e,visible:!1}))),title:s.title,visible:s.visible})]})},Bf=e=>{const{setDialog:t,assessmentId:n}=e,r=Qn({queryKey:["benefitsPlanGetSteps",n],queryFn:()=>Sd({activityId:n},Td(e)),staleTime:0,gcTime:0}),i=Qn({queryKey:["getContentfulArticle",Yl.BenefitsMarketplaceOffer],queryFn:()=>Ad("",Yl.BenefitsMarketplaceOffer)}),a=r.data?.calculationType===Hl.Health&&i.data?.items[0].fields.complianceContent;return a?X(ol,{class:"text-xs",children:[X(Nl,{className:"text-cyan-500 w-4 h-4",icon:al}),X(ol,{brand:!0,link:!0,onClick:()=>t({visible:!0,description:[a.subtitle],title:a.title}),children:a.title})]}):null},Vf=({visible:e,hide:t,title:n,description:r})=>X(jf,{open:e,children:[X(Mf,{children:[X(ol,{class:"text-lg font-semibold",darker:!0,h1:!0,children:n}),X(Nl,{className:"absolute top-4 right-4 min-h-4 min-w-4 p-2 rounded-full cursor-pointer bg-gray-200 hover:bg-gray-100",icon:rl,onClick:t})]}),X(Uf,{children:(r??[]).map(((e,t)=>X(ol,{class:"text-sm mb-3",dangerouslySetInnerHTML:{__html:Lf.sanitize(e,{ADD_ATTR:["target"]})},p:!0},t)))})]}),qf=()=>Promise.resolve(),Hf=e=>{const{data:t,isError:n,isLoading:r,refetch:i}=Qn({queryKey:["benefitsPlanGetSteps",e.assessmentId],queryFn:()=>Sd({activityId:e.assessmentId},Td(e))}),{id:a}=function(){let{matches:e}=ht(Fr),t=e[e.length-1];return t?t.params:{}}(),o=t?.steps.find((e=>e.id===a));return X(jl,{children:[r&&X(Ll,{}),n&&X(Ul,{retry:i}),!o||r||n?null:X(_,{children:X("div",{class:"md:grid md:grid-cols-2",children:[X("div",{children:[X(ol,{class:"mb-2",heading1:!0,children:o.title}),X(ol,{class:"mb-6",paragraph1:!0,children:o.description}),e.onComplete?X(Ml,{onClick:e.onComplete,children:"Next"}):null]}),X("div",{class:Gn("flex",e.verticalAlignment),children:X("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})})]})})]})};var Wf=e=>"checkbox"===e.type,$f=e=>e instanceof Date,Qf=e=>null==e;const Kf=e=>"object"==typeof e;var Yf=e=>!Qf(e)&&!Array.isArray(e)&&Kf(e)&&!$f(e),Gf=e=>Yf(e)&&e.target?Wf(e.target)?e.target.checked:e.target.value:e,Xf=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Jf=e=>{const t=e.constructor&&e.constructor.prototype;return Yf(t)&&t.hasOwnProperty("isPrototypeOf")},Zf="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function eh(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Zf&&(e instanceof Blob||e instanceof FileList)||!n&&!Yf(e))return e;if(t=n?[]:{},n||Jf(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=eh(e[n]));else t=e}return t}var th=e=>Array.isArray(e)?e.filter(Boolean):[],nh=e=>void 0===e,rh=(e,t,n)=>{if(!t||!Yf(e))return n;const r=th(t.split(/[,[\].]+?/)).reduce(((e,t)=>Qf(e)?e:e[t]),e);return nh(r)||r===e?nh(e[t])?n:e[t]:r},ih=e=>"boolean"==typeof e,ah=e=>/^\w*$/.test(e),oh=e=>th(e.replace(/["|']|\]/g,"").split(/\.|\[/)),sh=(e,t,n)=>{let r=-1;const i=ah(t)?[t]:oh(t),a=i.length,o=a-1;for(;++r<a;){const t=i[r];let a=n;if(r!==o){const n=e[t];a=Yf(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if("__proto__"===t)return;e[t]=a,e=e[t]}return e};const lh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ch={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},uh="max",dh="min",fh="maxLength",hh="minLength",ph="pattern",mh="required",gh="validate",yh=On.createContext(null),bh=()=>On.useContext(yh);var vh=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const i=a;return t._proxyFormState[i]!==ch.all&&(t._proxyFormState[i]=!r||ch.all),n&&(n[i]=!0),e[i]}});return i},_h=e=>Yf(e)&&!Object.keys(e).length,wh=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return _h(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!r||ch.all)))},xh=e=>Array.isArray(e)?e:[e],Eh=(e,t,n)=>!e||!t||e===t||xh(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function Sh(e){const t=On.useRef(e);t.current=e,On.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var kh=e=>"string"==typeof e,Oh=(e,t,n,r,i)=>kh(e)?(r&&t.watch.add(e),rh(n,e,i)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),rh(n,e)))):(r&&(t.watchAll=!0),n);function Ch(e){const t=bh(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=On.useRef(r);s.current=r,Sh({disabled:a,subject:n._subjects.values,next:e=>{Eh(s.current,e.name,o)&&c(eh(Oh(s.current,n._names,e.values||n._formValues,!1,i)))}});const[l,c]=On.useState(n._getWatch(r,i));return On.useEffect((()=>n._removeUnmounted())),l}function Ah(e){const t=bh(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=Xf(i._names.array,n),s=Ch({control:i,name:n,defaultValue:rh(i._formValues,n,rh(i._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=bh(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=On.useState(n._formState),l=On.useRef(!0),c=On.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=On.useRef(i);return u.current=i,Sh({disabled:r,next:e=>l.current&&Eh(u.current,e.name,a)&&wh(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),On.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),vh(o,n,c.current,!1)}({control:i,name:n,exact:!0}),c=On.useRef(i.register(n,{...e.rules,value:s,...ih(e.disabled)?{disabled:e.disabled}:{}}));return On.useEffect((()=>{const e=i._options.shouldUnregister||a,t=(e,t)=>{const n=rh(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=eh(rh(i._options.defaultValues,n));sh(i._defaultValues,n,e),nh(rh(i._formValues,n))&&sh(i._formValues,n,e)}return()=>{(o?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}}),[n,i,o,a]),On.useEffect((()=>{rh(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:rh(i._fields,n)._f.value})}),[r,n,i]),{field:{name:n,value:s,...ih(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:On.useCallback((e=>c.current.onChange({target:{value:Gf(e),name:n},type:lh.CHANGE})),[n]),onBlur:On.useCallback((()=>c.current.onBlur({target:{value:rh(i._formValues,n),name:n},type:lh.BLUR})),[n,i]),ref:On.useCallback((e=>{const t=rh(i._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!rh(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!rh(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!rh(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!rh(l.validatingFields,n)},error:{enumerable:!0,get:()=>rh(l.errors,n)}})}}const Th=e=>e.render(Ah(e));var Rh=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Ih=e=>({isOnSubmit:!e||e===ch.onSubmit,isOnBlur:e===ch.onBlur,isOnChange:e===ch.onChange,isOnAll:e===ch.all,isOnTouch:e===ch.onTouched}),Nh=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const Dh=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const n=rh(e,i);if(n){const{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(Dh(a,t))break}else if(Yf(a)&&Dh(a,t))break}}};var Ph=(e,t,n)=>{const r=xh(rh(e,n));return sh(r,"root",t[n]),sh(e,n,r),e},Fh=e=>"file"===e.type,Lh=e=>"function"==typeof e,Mh=e=>{if(!Zf)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Uh=e=>kh(e),jh=e=>"radio"===e.type,zh=e=>e instanceof RegExp;const Bh={value:!1,isValid:!1},Vh={value:!0,isValid:!0};var qh=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!nh(e[0].attributes.value)?nh(e[0].value)||""===e[0].value?Vh:{value:e[0].value,isValid:!0}:Vh:Bh}return Bh};const Hh={isValid:!1,value:null};var Wh=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Hh):Hh;function $h(e,t,n="validate"){if(Uh(e)||Array.isArray(e)&&e.every(Uh)||ih(e)&&!e)return{type:n,message:Uh(e)?e:"",ref:t}}var Qh=e=>Yf(e)&&!zh(e)?e:{value:e,message:""},Kh=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:h,name:p,valueAsNumber:m,mount:g,disabled:y}=e._f,b=rh(t,p);if(!g||y)return{};const v=o?o[0]:a,_=e=>{r&&v.reportValidity&&(v.setCustomValidity(ih(e)?"":e||""),v.reportValidity())},w={},x=jh(a),E=Wf(a),S=x||E,k=(m||Fh(a))&&nh(a.value)&&nh(b)||Mh(a)&&""===a.value||""===b||Array.isArray(b)&&!b.length,O=Rh.bind(null,p,n,w),C=(e,t,n,r=fh,i=hh)=>{const o=e?t:n;w[p]={type:e?r:i,message:o,ref:a,...O(e?r:i,o)}};if(i?!Array.isArray(b)||!b.length:s&&(!S&&(k||Qf(b))||ih(b)&&!b||E&&!qh(o).isValid||x&&!Wh(o).isValid)){const{value:e,message:t}=Uh(s)?{value:!!s,message:s}:Qh(s);if(e&&(w[p]={type:mh,message:t,ref:v,...O(mh,t)},!n))return _(t),w}if(!(k||Qf(u)&&Qf(d))){let e,t;const r=Qh(d),i=Qh(u);if(Qf(b)||isNaN(b)){const n=a.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;kh(r.value)&&b&&(e=s?o(b)>o(r.value):l?b>r.value:n>new Date(r.value)),kh(i.value)&&b&&(t=s?o(b)<o(i.value):l?b<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(b?+b:b);Qf(r.value)||(e=n>r.value),Qf(i.value)||(t=n<i.value)}if((e||t)&&(C(!!e,r.message,i.message,uh,dh),!n))return _(w[p].message),w}if((l||c)&&!k&&(kh(b)||i&&Array.isArray(b))){const e=Qh(l),t=Qh(c),r=!Qf(e.value)&&b.length>+e.value,i=!Qf(t.value)&&b.length<+t.value;if((r||i)&&(C(r,e.message,t.message),!n))return _(w[p].message),w}if(f&&!k&&kh(b)){const{value:e,message:t}=Qh(f);if(zh(e)&&!b.match(e)&&(w[p]={type:ph,message:t,ref:a,...O(ph,t)},!n))return _(t),w}if(h)if(Lh(h)){const e=$h(await h(b,t),v);if(e&&(w[p]={...e,...O(gh,e.message)},!n))return _(e.message),w}else if(Yf(h)){let e={};for(const r in h){if(!_h(e)&&!n)break;const i=$h(await h[r](b,t),v,r);i&&(e={...i,...O(r,i.message)},_(i.message),n&&(w[p]=e))}if(!_h(e)&&(w[p]={ref:v,...e},!n))return w}return _(!0),w};function Yh(e,t){const n=Array.isArray(t)?t:ah(t)?[t]:oh(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=nh(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,a=n[i];return r&&delete r[a],0!==i&&(Yf(r)&&_h(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!nh(e[t]))return!1;return!0}(r))&&Yh(e,n.slice(0,-1)),e}var Gh=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Xh=e=>Qf(e)||!Kf(e);function Jh(e,t){if(Xh(e)||Xh(t))return e===t;if($f(e)&&$f(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if($f(n)&&$f(e)||Yf(n)&&Yf(e)||Array.isArray(n)&&Array.isArray(e)?!Jh(n,e):n!==e)return!1}}return!0}var Zh=e=>"select-multiple"===e.type,ep=e=>jh(e)||Wf(e),tp=e=>Mh(e)&&e.isConnected,np=e=>{for(const t in e)if(Lh(e[t]))return!0;return!1};function rp(e,t={}){const n=Array.isArray(e);if(Yf(e)||n)for(const r in e)Array.isArray(e[r])||Yf(e[r])&&!np(e[r])?(t[r]=Array.isArray(e[r])?[]:{},rp(e[r],t[r])):Qf(e[r])||(t[r]=!0);return t}function ip(e,t,n){const r=Array.isArray(e);if(Yf(e)||r)for(const i in e)Array.isArray(e[i])||Yf(e[i])&&!np(e[i])?nh(t)||Xh(n[i])?n[i]=Array.isArray(e[i])?rp(e[i],[]):{...rp(e[i])}:ip(e[i],Qf(t)?{}:t[i],n[i]):n[i]=!Jh(e[i],t[i]);return n}var ap=(e,t)=>ip(e,t,rp(t)),op=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>nh(e)?e:t?""===e?NaN:e?+e:e:n&&kh(e)?new Date(e):r?r(e):e;function sp(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return Fh(t)?t.files:jh(t)?Wh(e.refs).value:Zh(t)?[...t.selectedOptions].map((({value:e})=>e)):Wf(t)?qh(e.refs).value:op(nh(t.value)?e.ref.value:t.value,e)}var lp=(e,t,n,r)=>{const i={};for(const a of e){const e=rh(t,a);e&&sh(i,a,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},cp=e=>nh(e)?e:zh(e)?e.source:Yf(e)?zh(e.value)?e.value.source:e.value:e;const up="AsyncFunction";var dp=e=>!(e&&e.validate||!(Lh(e.validate)&&e.validate.constructor.name===up||Yf(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===up)))),fp=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function hp(e,t,n){const r=rh(e,n);if(r||ah(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),a=rh(t,r),o=rh(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};i.pop()}return{name:n}}var pp=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e),mp=(e,t)=>!th(rh(e,t)).length&&Yh(e,t);const gp={mode:ch.onSubmit,reValidateMode:ch.onChange,shouldFocusError:!0};function yp(e={}){let t,n={...gp,...e},r={submitCount:0,isDirty:!1,isLoading:Lh(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},a=(Yf(n.defaultValues)||Yf(n.values))&&eh(n.defaultValues||n.values)||{},o=n.shouldUnregister?{}:eh(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Gh(),array:Gh(),state:Gh()},f=Ih(n.mode),h=Ih(n.reValidateMode),p=n.criteriaMode===ch.all,m=async e=>{if(u.isValid||e){const e=n.resolver?_h((await _()).errors):await w(i,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{(u.isValidating||u.validatingFields)&&((e||Array.from(l.mount)).forEach((e=>{e&&(t?sh(r.validatingFields,e,t):Yh(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!_h(r.validatingFields)}))},y=(e,t,n,r)=>{const l=rh(i,e);if(l){const i=rh(o,e,nh(n)?rh(a,e):n);nh(i)||r&&r.defaultChecked||t?sh(o,e,t?i:sp(l._f)):S(e,i),s.mount&&m()}},b=(e,t,n,o,s)=>{let l=!1,c=!1;const f={name:e},h=!!(rh(i,e)&&rh(i,e)._f&&rh(i,e)._f.disabled);if(!n||o){u.isDirty&&(c=r.isDirty,r.isDirty=f.isDirty=x(),l=c!==f.isDirty);const n=h||Jh(rh(a,e),t);c=!(h||!rh(r.dirtyFields,e)),n||h?Yh(r.dirtyFields,e):sh(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,l=l||u.dirtyFields&&c!==!n}if(n){const t=rh(r.touchedFields,e);t||(sh(r.touchedFields,e,n),f.touchedFields=r.touchedFields,l=l||u.touchedFields&&t!==n)}return l&&s&&d.state.next(f),l?f:{}},v=(n,i,a,o)=>{const s=rh(r.errors,n),l=u.isValid&&ih(i)&&r.isValid!==i;var f;if(e.delayError&&a?(f=()=>((e,t)=>{sh(r.errors,e,t),d.state.next({errors:r.errors})})(n,a),t=e=>{clearTimeout(c),c=setTimeout(f,e)},t(e.delayError)):(clearTimeout(c),t=null,a?sh(r.errors,n,a):Yh(r.errors,n)),(a?!Jh(s,a):s)||!_h(o)||l){const e={...o,...l&&ih(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}},_=async e=>{g(e,!0);const t=await n.resolver(o,n.context,lp(e||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,i={valid:!0})=>{for(const a in e){const s=e[a];if(s){const{_f:e,...c}=s;if(e){const c=l.array.has(e.name),d=s._f&&dp(s._f);d&&u.validatingFields&&g([a],!0);const f=await Kh(s,o,p,n.shouldUseNativeValidation&&!t,c);if(d&&u.validatingFields&&g([a]),f[e.name]&&(i.valid=!1,t))break;!t&&(rh(f,e.name)?c?Ph(r.errors,f,e.name):sh(r.errors,e.name,f[e.name]):Yh(r.errors,e.name))}!_h(c)&&await w(c,t,i)}}return i.valid},x=(e,t)=>(e&&t&&sh(o,e,t),!Jh(R(),a)),E=(e,t,n)=>Oh(e,l,{...s.mount?o:nh(t)?a:kh(e)?{[e]:t}:t},n,t),S=(e,t,n={})=>{const r=rh(i,e);let a=t;if(r){const n=r._f;n&&(!n.disabled&&sh(o,e,op(t,n)),a=Mh(n.ref)&&Qf(t)?"":t,Zh(n.ref)?[...n.ref.options].forEach((e=>e.selected=a.includes(e.value))):n.refs?Wf(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find((t=>t===e.value)):a===e.value))):n.refs[0]&&(n.refs[0].checked=!!a):n.refs.forEach((e=>e.checked=e.value===a)):Fh(n.ref)?n.ref.value="":(n.ref.value=a,n.ref.type||d.values.next({name:e,values:{...o}})))}(n.shouldDirty||n.shouldTouch)&&b(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&T(e)},k=(e,t,n)=>{for(const r in t){const a=t[r],o=`${e}.${r}`,s=rh(i,o);!l.array.has(e)&&Xh(a)&&(!s||s._f)||$f(a)?S(o,a,n):k(o,a,n)}},O=(e,t,n={})=>{const c=rh(i,e),f=l.array.has(e),h=eh(t);sh(o,e,h),f?(d.array.next({name:e,values:{...o}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:ap(a,o),isDirty:x(e,h)})):!c||c._f||Qf(h)?S(e,h,n):k(e,h,n),Nh(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...o}})},C=async a=>{s.mount=!0;const c=a.target;let y=c.name,x=!0;const E=rh(i,y),S=e=>{x=Number.isNaN(e)||Jh(e,rh(o,y,e))};if(E){let s,k;const O=c.type?sp(E._f):Gf(a),C=a.type===lh.BLUR||a.type===lh.FOCUS_OUT,A=!fp(E._f)&&!n.resolver&&!rh(r.errors,y)&&!E._f.deps||pp(C,rh(r.touchedFields,y),r.isSubmitted,h,f),R=Nh(y,l,C);sh(o,y,O),C?(E._f.onBlur&&E._f.onBlur(a),t&&t(0)):E._f.onChange&&E._f.onChange(a);const I=b(y,O,C,!1),N=!_h(I)||R;if(!C&&d.values.next({name:y,type:a.type,values:{...o}}),A)return u.isValid&&("onBlur"===e.mode?C&&m():m()),N&&d.state.next({name:y,...R?{}:I});if(!C&&R&&d.state.next({...r}),n.resolver){const{errors:e}=await _([y]);if(S(O),x){const t=hp(r.errors,i,y),n=hp(e,i,t.name||y);s=n.error,y=n.name,k=_h(e)}}else g([y],!0),s=(await Kh(E,o,p,n.shouldUseNativeValidation))[y],g([y]),S(O),x&&(s?k=!1:u.isValid&&(k=await w(i,!0)));x&&(E._f.deps&&T(E._f.deps),v(y,k,s,I))}},A=(e,t)=>{if(rh(r.errors,t)&&e.focus)return e.focus(),1},T=async(e,t={})=>{let a,o;const s=xh(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await _(e);if(e)for(const n of e){const e=rh(t,n);e?sh(r.errors,n,e):Yh(r.errors,n)}else r.errors=t;return t})(nh(e)?e:s);a=_h(t),o=e?!s.some((e=>rh(t,e))):a}else e?(o=(await Promise.all(s.map((async e=>{const t=rh(i,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(o||r.isValid)&&m()):o=a=await w(i);return d.state.next({...!kh(e)||u.isValid&&a!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:a}:{},errors:r.errors}),t.shouldFocus&&!o&&Dh(i,A,e?s:l.mount),o},R=e=>{const t={...s.mount?o:a};return nh(e)?t:kh(e)?rh(t,e):e.map((e=>rh(t,e)))},I=(e,t)=>({invalid:!!rh((t||r).errors,e),isDirty:!!rh((t||r).dirtyFields,e),error:rh((t||r).errors,e),isValidating:!!rh(r.validatingFields,e),isTouched:!!rh((t||r).touchedFields,e)}),N=(e,t,n)=>{const a=(rh(i,e,{_f:{}})._f||{}).ref,o=rh(r.errors,e)||{},{ref:s,message:l,type:c,...u}=o;sh(r.errors,e,{...u,...t,ref:a}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&a&&a.focus&&a.focus()},D=(e,t={})=>{for(const s of e?xh(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Yh(i,s),Yh(o,s)),!t.keepError&&Yh(r.errors,s),!t.keepDirty&&Yh(r.dirtyFields,s),!t.keepTouched&&Yh(r.touchedFields,s),!t.keepIsValidating&&Yh(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Yh(a,s);d.values.next({values:{...o}}),d.state.next({...r,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&m()},P=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(ih(e)&&s.mount||e){const a=e?void 0:nh(i)?sp(n?n._f:rh(r,t)._f):i;sh(o,t,a),b(t,a,!1,!1,!0)}},F=(t,r={})=>{let o=rh(i,t);const c=ih(r.disabled)||ih(e.disabled);return sh(i,t,{...o||{},_f:{...o&&o._f?o._f:{ref:{name:t}},name:t,mount:!0,...r}}),l.mount.add(t),o?P({field:o,disabled:ih(r.disabled)?r.disabled:e.disabled,name:t,value:r.value}):y(t,!0,r.value),{...c?{disabled:r.disabled||e.disabled}:{},...n.progressive?{required:!!r.required,min:cp(r.min),max:cp(r.max),minLength:cp(r.minLength),maxLength:cp(r.maxLength),pattern:cp(r.pattern)}:{},name:t,onChange:C,onBlur:C,ref:e=>{if(e){F(t,r),o=rh(i,t);const n=nh(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,s=ep(n),l=o._f.refs||[];if(s?l.find((e=>e===n)):n===o._f.ref)return;sh(i,t,{_f:{...o._f,...s?{refs:[...l.filter(tp),n,...Array.isArray(rh(a,t))?[{}]:[]],ref:{type:n.type,name:t}}:{ref:n}}}),y(t,!1,void 0,n)}else o=rh(i,t,{}),o._f&&(o._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!Xf(l.array,t)||!s.action)&&l.unMount.add(t)}}},L=()=>n.shouldFocusError&&Dh(i,A,l.mount),M=(e,t)=>async a=>{let s;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let l=eh(o);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await _();r.errors=e,l=t}else await w(i);if(Yh(r.errors,"root"),_h(r.errors)){d.state.next({errors:{}});try{await e(l,a)}catch(c){s=c}}else t&&await t({...r.errors},a),L(),setTimeout(L);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_h(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},U=(t,n={})=>{const c=t?eh(t):a,f=eh(c),h=_h(t),p=h?a:f;if(n.keepDefaultValues||(a=c),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)rh(r.dirtyFields,e)?sh(p,e,rh(o,e)):O(e,rh(p,e));else{if(Zf&&nh(t))for(const e of l.mount){const t=rh(i,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Mh(e)){const t=e.closest("form");if(t){t.reset();break}}}}i={}}o=e.shouldUnregister?n.keepDefaultValues?eh(a):{}:eh(p),d.array.next({values:{...p}}),d.values.next({values:{...p}})}l={mount:n.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!n.keepIsValid||!!n.keepDirtyValues,s.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!h&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||Jh(t,a))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:h?{}:n.keepDirtyValues?n.keepDefaultValues&&o?ap(a,o):r.dirtyFields:n.keepDefaultValues&&t?ap(a,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},j=(e,t)=>U(Lh(e)?e(o):e,t);return{control:{register:F,unregister:D,getFieldState:I,handleSubmit:M,setError:N,_executeSchema:_,_getWatch:E,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=rh(i,e);t&&(t._f.refs?t._f.refs.every((e=>!tp(e))):!tp(t._f.ref))&&D(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,c=!0,f=!0)=>{if(l&&n){if(s.action=!0,f&&Array.isArray(rh(i,e))){const t=n(rh(i,e),l.argA,l.argB);c&&sh(i,e,t)}if(f&&Array.isArray(rh(r.errors,e))){const t=n(rh(r.errors,e),l.argA,l.argB);c&&sh(r.errors,e,t),mp(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(rh(r.touchedFields,e))){const t=n(rh(r.touchedFields,e),l.argA,l.argB);c&&sh(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=ap(a,o)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else sh(o,e,t)},_updateDisabledField:P,_getFieldArray:t=>th(rh(s.mount?o:a,t,e.shouldUnregister?rh(a,t,[]):[])),_reset:U,_resetDefaultValues:()=>Lh(n.defaultValues)&&n.defaultValues().then((e=>{j(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{ih(e)&&(d.state.next({disabled:e}),Dh(i,((t,n)=>{const r=rh(i,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(e){s=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:T,register:F,handleSubmit:M,watch:(e,t)=>Lh(e)?d.values.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:O,getValues:R,reset:j,resetField:(e,t={})=>{rh(i,e)&&(nh(t.defaultValue)?O(e,eh(rh(a,e))):(O(e,t.defaultValue),sh(a,e,eh(t.defaultValue))),t.keepTouched||Yh(r.touchedFields,e),t.keepDirty||(Yh(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,eh(rh(a,e))):x()),t.keepError||(Yh(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&xh(e).forEach((e=>Yh(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:D,setError:N,setFocus:(e,t={})=>{const n=rh(i,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:I}}function bp(e,t){return e===t}function vp(e,t){return t}function _p(e,t,n){var r=n&&n.equalityFn||bp,i=ot(vp,e),a=i[0],o=i[1],s=function(e,t,n){var r=this,i=ct(null),a=ct(0),o=ct(null),s=ct([]),l=ct(),c=ct(),u=ct(e),d=ct(!0);u.current=e;var f="undefined"!=typeof window,h=!t&&0!==t&&f;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,b=g?Math.max(+n.maxWait||0,t):null;st((function(){return d.current=!0,function(){d.current=!1}}),[]);var v=dt((function(){var e=function(e){var t=s.current,n=l.current;return s.current=l.current=null,a.current=e,c.current=u.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(e):setTimeout(e,t)},v=function(e){if(!d.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||g&&e-a.current>=b},_=function(t){return o.current=null,m&&s.current?e(t):(s.current=l.current=null,c.current)},w=function e(){var r=Date.now();if(v(r))return _(r);if(d.current){var o=t-(r-i.current),s=g?Math.min(o,b-(r-a.current)):o;n(e,s)}},x=function(){if(f||y){var u=Date.now(),h=v(u);if(s.current=[].slice.call(arguments),l.current=r,i.current=u,h){if(!o.current&&d.current)return a.current=i.current,n(w,t),p?e(i.current):c.current;if(g)return n(w,t),e(i.current)}return o.current||n(w,t),c.current}};return x.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=l.current=o.current=null},x.isPending=function(){return!!o.current},x.flush=function(){return o.current?_(Date.now()):c.current},x}),[p,g,t,b,m,h,f,y]);return v}(ft((function(e){return o(e)}),[o]),t,n),l=ct(e);return r(l.current,e)||(s(e),l.current=e),r(a,e)&&s.cancel(),[a,s]}const wp=({label:e,error:t,hint:n,class:r,...i})=>X("div",{class:r,children:X("div",{class:"flex flex-col gap-2",children:[X(ol,{label:!0,children:e}),X("div",{children:i.children}),t&&X(ol,{danger:!0,hint:!0,children:t}),n&&X(ol,{hint:!0,children:n})]})});var xp,Ep,Sp={exports:{}},kp={};Ep||(Ep=1,Sp.exports=function(){if(xp)return kp;xp=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case f:case o:return e;default:return p}}case n:return p}}}return e=Symbol.for("react.module.reference"),kp.ContextConsumer=s,kp.ContextProvider=o,kp.Element=t,kp.ForwardRef=c,kp.Fragment=r,kp.Lazy=h,kp.Memo=f,kp.Portal=n,kp.Profiler=a,kp.StrictMode=i,kp.Suspense=u,kp.SuspenseList=d,kp.isAsyncMode=function(){return!1},kp.isConcurrentMode=function(){return!1},kp.isContextConsumer=function(e){return m(e)===s},kp.isContextProvider=function(e){return m(e)===o},kp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},kp.isForwardRef=function(e){return m(e)===c},kp.isFragment=function(e){return m(e)===r},kp.isLazy=function(e){return m(e)===h},kp.isMemo=function(e){return m(e)===f},kp.isPortal=function(e){return m(e)===n},kp.isProfiler=function(e){return m(e)===a},kp.isStrictMode=function(e){return m(e)===i},kp.isSuspense=function(e){return m(e)===u},kp.isSuspenseList=function(e){return m(e)===d},kp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===i||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===o||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},kp.typeOf=m,kp}()),Sp.exports;const Op=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Cp=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Ap=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Cp(n.overflowY,t)||Cp(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Tp=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,Rp=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Ip=function(){return Ip=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ip.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Np=0;function Dp(){}function Pp(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Fp(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(void 0,a)}),t)}return i.cancel=r,i}function Lp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Mp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function Up(e,t){return e&&t?Object.keys(e).reduce((function(n,r){return n[r]=function(e,t){return void 0!==e[t]}(t,r)?t[r]:e[r],n}),{}):e}function jp(e,t,n,r,i){void 0===i&&(i=!1);var a=n.length;if(0===a)return-1;var o=a-1;("number"!=typeof e||e<0||e>o)&&(e=t>0?-1:o+1);var s=e+t;s<0?s=i?o:0:s>o&&(s=i?0:o);var l=zp(s,t<0,n,r,i);return-1===l?e>=a?-1:e:l}function zp(e,t,n,r,i){void 0===i&&(i=!1);var a=n.length;if(t){for(var o=e;o>=0;o--)if(!r(n[o],o))return o}else for(var s=e;s<a;s++)if(!r(n[s],s))return s;return i?zp(t?a-1:0,t,n,r):-1}function Bp(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(Pp(t,e,n)||r&&Pp(t,n.document.activeElement,n))}))}var Vp=Fp((function(e){qp(e).textContent=""}),500);function qp(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Hp={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Wp(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,o="on"+Yp(e)+"Change";i[o]&&void 0!==r[e]&&r[e]!==n[e]&&i[o](ri({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(ri({type:i},a))}var $p=Fp((function(e,t){!function(e,t){e&&t&&(qp(t).textContent=e,Vp(t))}(e,t)}),200),Qp="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?lt:st,Kp="useId"in On?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,a=e.toggleButtonId,o=e.inputId,s="downshift-"+On.useId();return t||(t=s),ct({labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:i||function(e){return t+"-item-"+e},toggleButtonId:a||t+"-toggle-button",inputId:o||t+"-input"}).current}:function(e){var t=e.id,n=void 0===t?"downshift-"+String(Np++):t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId;return ct({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"}).current};function Yp(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Gp(e){var t=ct(e);return t.current=e,t}function Xp(e,t,n,r){var i=function(e,t,n,r){var i=ct(),a=ct(),o=ot(ft((function(t,n){a.current=n,t=Up(t,n.props);var r=e(t,n);return n.props.stateReducer(t,ri({},n,{changes:r}))}),[e]),t,n),s=o[0],l=o[1],c=Gp(t),u=ft((function(e){return l(ri({props:c.current},e))}),[c]),d=a.current;return st((function(){var e=Up(i.current,null==d?void 0:d.props);d&&i.current&&!r(e,s)&&Wp(d,e,s),i.current=s}),[s,d,r]),[s,u]}(e,t,n,r),a=i[0],o=i[1];return[Up(a,t),o]}var Jp={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){e&&((e,t)=>{var n,r,i,a;if("undefined"==typeof document)return[];const{inline:o,boundary:s,skipOverflowHiddenElements:l}=t,c="function"==typeof s?s:e=>e!==s;if(!Op(e))throw new TypeError("Invalid target");const u=document.scrollingElement||document.documentElement,d=[];let f=e;for(;Op(f)&&c(f);){if(f=Rp(f),f===u){d.push(f);break}null!=f&&f===document.body&&Ap(f)&&!Ap(document.documentElement)||null!=f&&Ap(f,l)&&d.push(f)}const h=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,p=null!=(a=null==(i=window.visualViewport)?void 0:i.height)?a:innerHeight,{scrollX:m,scrollY:g}=window,{height:y,width:b,top:v,right:_,bottom:w,left:x}=e.getBoundingClientRect(),{top:E,right:S,left:k}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O=v-E,C="center"===o?x+b/2-k+S:"end"===o?_+S:x-k;const A=[];for(let T=0;T<d.length;T++){const e=d[T],{height:t,width:n,top:r,right:i,bottom:a,left:s}=e.getBoundingClientRect();if(v>=0&&x>=0&&w<=p&&_<=h&&v>=r&&w<=a&&x>=s&&_<=i)return A;const l=getComputedStyle(e),c=parseInt(l.borderLeftWidth,10),f=parseInt(l.borderTopWidth,10),E=parseInt(l.borderRightWidth,10),S=parseInt(l.borderBottomWidth,10);let k=0,R=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-c-E:0,N="offsetHeight"in e?e.offsetHeight-e.clientHeight-f-S:0,D="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,P="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(u===e)k=Tp(g,g+p,p,f,S,g+O,g+O+y,y),R="start"===o?C:"center"===o?C-h/2:"end"===o?C-h:Tp(m,m+h,h,c,E,m+C,m+C+b,b),k=Math.max(0,k+g),R=Math.max(0,R+m);else{k=Tp(r,a,t,f,S+N,O,O+y,y),R="start"===o?C-s-c:"center"===o?C-(s+n/2)+I/2:"end"===o?C-i+E+I:Tp(s,i,n,c,E+I,C,C+b,b);const{scrollLeft:l,scrollTop:u}=e;k=0===P?0:Math.max(0,Math.min(u+k/P,e.scrollHeight-t/P+N)),R=0===D?0:Math.max(0,Math.min(l+R/D,e.scrollWidth-n/D+I)),O+=u-k,C+=l-R}A.push({el:e,top:k,left:R})}return A})(e,{boundary:t}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))},environment:"undefined"==typeof window?void 0:window};function Zp(e,t,n){void 0===n&&(n=Hp);var r=e["default"+Yp(t)];return void 0!==r?r:n[t]}function em(e,t,n){void 0===n&&(n=Hp);var r=e[t];if(void 0!==r)return r;var i=e["initial"+Yp(t)];return void 0!==i?i:Zp(e,t,n)}function tm(e){var t=em(e,"selectedItem"),n=em(e,"isOpen"),r=function(e){var t=em(e,"highlightedIndex");if(t>-1&&e.isItemDisabled(e.items[t],t))return-1;return t}(e),i=em(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):r,isOpen:n,selectedItem:t,inputValue:i}}function nm(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===r.length?-1:void 0===i||c!==i||o(r[i],i)?void 0===a||o(r[a],a)?l?r.findIndex((function(e){return s(l)===s(e)})):n<0&&!o(r[r.length-1],r.length-1)?r.length-1:n>0&&!o(r[0],0)?0:-1:a:i}function rm(e,t,n,r){void 0===r&&(r={});var i,a=r.document,o=(i=On.useRef(!0),On.useEffect((function(){return i.current=!1,function(){i.current=!0}}),[]),i.current);st((function(){if(e&&!o&&a){var n=e(t);$p(n,a)}}),n),st((function(){return function(){var e,t;$p.cancel(),(t=null==(e=a)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[a])}function im(e,t,n){var r;return ri({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&ri({selectedItem:e.items[t],isOpen:Zp(e,"isOpen"),highlightedIndex:Zp(e,"highlightedIndex")},n))}function am(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function om(e){var t=Zp(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var sm={environment:yi.shape({addEventListener:yi.func.isRequired,removeEventListener:yi.func.isRequired,document:yi.shape({createElement:yi.func.isRequired,getElementById:yi.func.isRequired,activeElement:yi.any.isRequired,body:yi.any.isRequired}).isRequired,Node:yi.func.isRequired}),itemToString:yi.func,itemToKey:yi.func,stateReducer:yi.func},lm=ri({},sm,{getA11yStatusMessage:yi.func,highlightedIndex:yi.number,defaultHighlightedIndex:yi.number,initialHighlightedIndex:yi.number,isOpen:yi.bool,defaultIsOpen:yi.bool,initialIsOpen:yi.bool,selectedItem:yi.any,initialSelectedItem:yi.any,defaultSelectedItem:yi.any,id:yi.string,labelId:yi.string,menuId:yi.string,getItemId:yi.func,toggleButtonId:yi.string,onSelectedItemChange:yi.func,onHighlightedIndexChange:yi.func,onStateChange:yi.func,onIsOpenChange:yi.func,scrollIntoView:yi.func});Ip(Ip({},lm),{items:yi.array.isRequired,isItemDisabled:yi.func});var cm=Ip(Ip({},Jp),{isItemDisabled:function(){return!1}}),um=1,dm=2,fm=3,hm=4,pm=5,mm=6,gm=7,ym=8,bm=9,vm=10,_m=11,wm=14,xm=19,Em=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:xm,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:wm,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:_m,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:um,ToggleButtonKeyDownArrowUp:dm,ToggleButtonKeyDownCharacter:fm,ToggleButtonKeyDownEnd:mm,ToggleButtonKeyDownEnter:gm,ToggleButtonKeyDownEscape:hm,ToggleButtonKeyDownHome:pm,ToggleButtonKeyDownPageDown:vm,ToggleButtonKeyDownPageUp:bm,ToggleButtonKeyDownSpaceButton:ym});function Sm(e,t){var n,r,i=t.type,a=t.props,o=t.altKey;switch(i){case wm:r={isOpen:Zp(a,"isOpen"),highlightedIndex:om(a),selectedItem:a.items[t.index]};break;case fm:var s=t.key,l=""+e.inputValue+s;r={inputValue:l,highlightedIndex:function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.isItemDisabled,o=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length,c=r[l];if(void 0!==c&&i(c).toLowerCase().startsWith(o)&&!a(c,l))return l}return n}({keysSoFar:l,highlightedIndex:!e.isOpen&&e.selectedItem?a.items.findIndex((function(t){return a.itemToKey(t)===a.itemToKey(e.selectedItem)})):e.highlightedIndex,items:a.items,itemToString:a.itemToString,isItemDisabled:a.isItemDisabled}),isOpen:!0};break;case um:r={highlightedIndex:e.isOpen?jp(e.highlightedIndex,1,a.items,a.isItemDisabled):o&&null==e.selectedItem?-1:nm(a,e,1),isOpen:!0};break;case dm:if(e.isOpen&&o)r=im(a,e.highlightedIndex,!1);else r={highlightedIndex:e.isOpen?jp(e.highlightedIndex,-1,a.items,a.isItemDisabled):nm(a,e,-1),isOpen:!0};break;case gm:case ym:r=im(a,e.highlightedIndex,!1);break;case pm:r={highlightedIndex:zp(0,!1,a.items,a.isItemDisabled),isOpen:!0};break;case mm:r={highlightedIndex:zp(a.items.length-1,!0,a.items,a.isItemDisabled),isOpen:!0};break;case bm:r={highlightedIndex:jp(e.highlightedIndex,-10,a.items,a.isItemDisabled)};break;case vm:r={highlightedIndex:jp(e.highlightedIndex,10,a.items,a.isItemDisabled)};break;case hm:r={isOpen:!1,highlightedIndex:-1};break;case _m:r=ri({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=a.items)?void 0:n.length)&&{selectedItem:a.items[e.highlightedIndex]});break;case xm:r={selectedItem:t.selectedItem};break;default:return function(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:nm(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:nm(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:a.isItemDisabled(a.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:om(a),isOpen:Zp(a,"isOpen"),selectedItem:Zp(a,"selectedItem"),inputValue:Zp(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ri({},e,r)}(e,t,Em)}return ri({},e,r)}var km=["onClick"],Om=["onMouseLeave","refKey","ref"],Cm=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],Am=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Tm(e){void 0===e&&(e={});var t=ri({},cm,e),n=t.scrollIntoView,r=t.environment,i=t.getA11yStatusMessage,a=Xp(Sm,t,tm,am),o=a[0],s=a[1],l=o.isOpen,c=o.highlightedIndex,u=o.selectedItem,d=o.inputValue,f=ct(null),h=ct(null),p=ct({}),m=ct(null),g=Kp(t),y=Gp({state:o,props:t}),b=ft((function(e){return p.current[g.getItemId(e)]}),[g]);rm(i,o,[l,c,u,d],r);var v=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=ct(!0);return Qp((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:o(i(t),a))}),[t]),s}({menuElement:h.current,highlightedIndex:c,isOpen:l,itemRefs:p,scrollIntoView:n,getItemNodeFromIndex:b});st((function(){return m.current=Fp((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),st((function(){d&&m.current(s)}),[s,d]),st((function(){em(t,"isOpen")&&f.current&&f.current.focus()}),[]);var _=function(e,t,n){var r=ct({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return st((function(){if(!e)return Dp;var i=n.map((function(e){return e.current}));function a(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function o(n){r.current.isMouseDown=!1,Bp(n.target,i,e)||t()}function s(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function l(){r.current.isTouchMove=!0}function c(n){r.current.isTouchEnd=!0,r.current.isTouchMove||Bp(n.target,i,e,!1)||t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",o),e.addEventListener("touchstart",s),e.addEventListener("touchmove",l),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",l),e.removeEventListener("touchend",c)}}),[n,e,t]),r.current}(r,ft((function(){y.current.state.isOpen&&s({type:_m})}),[s,y]),dt((function(){return[h,f]}),[h.current,f.current])),w=Dp;st((function(){l||(p.current={})}),[l]);var x=dt((function(){return{ArrowDown:function(e){e.preventDefault(),s({type:um,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),s({type:dm,altKey:e.altKey})},Home:function(e){e.preventDefault(),s({type:pm})},End:function(e){e.preventDefault(),s({type:mm})},Escape:function(){y.current.state.isOpen&&s({type:hm})},Enter:function(e){e.preventDefault(),s({type:y.current.state.isOpen?gm:0})},PageUp:function(e){y.current.state.isOpen&&(e.preventDefault(),s({type:bm}))},PageDown:function(e){y.current.state.isOpen&&(e.preventDefault(),s({type:vm}))}," ":function(e){e.preventDefault();var t=y.current.state;t.isOpen?t.inputValue?s({type:fm,key:" "}):s({type:ym}):s({type:0})}}}),[s,y]),E=ft((function(){s({type:15})}),[s]),S=ft((function(){s({type:17})}),[s]),k=ft((function(){s({type:16})}),[s]),O=ft((function(e){s({type:18,highlightedIndex:e})}),[s]),C=ft((function(e){s({type:xm,selectedItem:e})}),[s]),A=ft((function(){s({type:21})}),[s]),T=ft((function(e){s({type:20,inputValue:e})}),[s]),R=ft((function(e){var t=void 0===e?{}:e,n=t.onClick,r=ii(t,km);return ri({id:g.labelId,htmlFor:g.toggleButtonId,onClick:Lp(n,(function(){var e;null==(e=f.current)||e.focus()}))},r)}),[g]),I=ft((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,o=void 0===a?"ref":a,l=r.ref,c=ii(r,Om);(void 0===t?{}:t).suppressRefError;return ri(((n={})[o]=Mp(l,(function(e){h.current=e})),n.id=g.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+g.labelId,n.onMouseLeave=Lp(i,(function(){s({type:12})})),n),c)}),[s,w,g]);return{getToggleButtonProps:ft((function(e,t){var n,r=void 0===e?{}:e,i=r.onBlur,a=r.onClick;r.onPress;var o=r.onKeyDown,l=r.refKey,c=void 0===l?"ref":l,u=r.ref,d=ii(r,Cm);(void 0===t?{}:t).suppressRefError;var h=y.current.state,p=ri(((n={})[c]=Mp(u,(function(e){f.current=e})),n["aria-activedescendant"]=h.isOpen&&h.highlightedIndex>-1?g.getItemId(h.highlightedIndex):"",n["aria-controls"]=g.menuId,n["aria-expanded"]=y.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+g.labelId,n.id=g.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=Lp(i,(function(){h.isOpen&&!_.isMouseDown&&s({type:_m})})),n),d);return d.disabled||(p.onClick=Lp(a,(function(){s({type:0})})),p.onKeyDown=Lp(o,(function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&x[t]?x[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&s({type:fm,key:t})}))),p}),[s,g,y,_,w,x]),getLabelProps:R,getMenuProps:I,getItemProps:ft((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,o=n.onClick,l=n.onMouseDown;n.onPress;var c=n.refKey,u=void 0===c?"ref":c,d=n.disabled,f=n.ref,h=ii(n,Am);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var m=y.current,b=m.state,w=m.props,x=function(e,t,n,r){var i,a;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],a=t}else a=void 0===t?n.indexOf(e):t,i=e;return[i,a]}(r,i,w.items,"Pass either item or index to getItemProps!"),E=x[0],S=x[1],k=w.isItemDisabled(E,S),O=ri(((t={})[u]=Mp(f,(function(e){e&&(p.current[g.getItemId(S)]=e)})),t["aria-disabled"]=k,t["aria-selected"]=E===b.selectedItem,t.id=g.getItemId(S),t.role="option",t),h);return k||(O.onClick=Lp(o,(function(){s({type:wm,index:S})}))),O.onMouseMove=Lp(a,(function(){_.isTouchEnd||S===b.highlightedIndex||(v.current=!1,s({type:13,index:S,disabled:k}))})),O.onMouseDown=Lp(l,(function(e){return e.preventDefault()})),O}),[y,g,_,v,s]),toggleMenu:E,openMenu:k,closeMenu:S,setHighlightedIndex:O,selectItem:C,reset:A,setInputValue:T,highlightedIndex:c,isOpen:l,selectedItem:u,inputValue:d}}Tm.stateChangeTypes=Em,ri({},lm,{items:yi.array.isRequired,isItemDisabled:yi.func,inputValue:yi.string,defaultInputValue:yi.string,initialInputValue:yi.string,inputId:yi.string,onInputValueChange:yi.func}),ri({},Jp,{isItemDisabled:function(){return!1}}),yi.array,yi.array,yi.array,yi.func,yi.number,yi.number,yi.number,yi.func,yi.func,yi.string,yi.string;const Rm=B(null),Im=()=>{const e=ht(Rm);if(!e)throw new Error("Listbox components must be used within a Listbox");return e},Nm=({value:e,onChange:t,options:n,children:r})=>{const i=Tm({items:n,selectedItem:n.find((t=>t.label===e?.label))||null,onSelectedItemChange:({selectedItem:e})=>{t(e)},itemToString:e=>e?e.label:""});return X(Rm.Provider,{value:{state:i,options:n},children:r})},Dm=({children:e,class:t,suppressKeyDown:n,testId:r})=>{const{state:i}=Im(),{getToggleButtonProps:a}=i,{onKeyDown:o,...s}=a();return X("button",{"data-testid":r,type:"button",...s,class:t,onKeyDown:n?void 0:o,children:e})},Pm=({children:e,class:t,openOnOptionsChange:n})=>{const{state:r,options:i}=Im(),{getMenuProps:a,isOpen:o,openMenu:s}=r;return st((()=>{n&&s()}),[s,n,i.length]),X("ul",{...a({},{suppressRefError:!0}),class:Gn(t,(!o||!i.length)&&"hidden"),children:o&&e})},Fm=({value:e,children:t,class:n})=>{const{state:r,options:i}=Im(),{getItemProps:a,highlightedIndex:o}=r,s=i.findIndex((t=>t.label===e.label)),l=i[s],c=o===s,{onClick:u,...d}=a({item:l,index:s});return X("li",{...d,class:n,"data-highlighted":c?"true":void 0,onTouchEnd:e=>{e.stopPropagation(),e.preventDefault(),u(e)},children:t})},Lm=({label:e,error:t,hint:n,options:r,class:i,value:a,onChange:o,onChangeText:s,query:l,testId:c,...u})=>X(wp,{class:i,error:t,hint:n,label:e,children:X(Nm,{onChange:e=>{o(r.find((t=>t.label===e.label)))},options:r,value:a,children:X("div",{class:"relative",children:[X(Dm,{class:"w-full",suppressKeyDown:!0,children:[X("input",{class:Gn(Mm,ul,t&&jm,Um),"data-testid":c,onChange:e=>{o(null),s(e.currentTarget.value)},type:"text",value:a?.label||l}),u.loading?X(Fl,{class:"absolute top-2 right-2 w-5 h-5 text-primary-base"}):null]}),X(Pm,{class:Gn("absolute z-20 mt-1 w-full rounded-md border border-gray-300 bg-white shadow-lg max-h-70 overflow-auto focus:outline-none","transition duration-100 ease-in-out"),openOnOptionsChange:!0,children:r.map((e=>X(Fm,{class:"group flex cursor-default items-center gap-2 py-2 px-3 select-none data-[highlighted]:bg-primary-base data-[highlighted]:text-primary-text",value:e,children:X(ol,{class:"text-inherit",field:!0,children:e.label})},e.label)))})]})})}),Mm="relative block w-full py-2 pl-3 pr-8 rounded-md shadow-sm text-left border border-gray-300 bg-white",Um="focus:outline-none focus-visible:border-gray-700",jm="text-red-900 border-red-300 focus-visible:border-red-600",zm=({label:e,error:t,hint:n,options:r,class:i,onChange:a,value:o,testId:s})=>{const l=r.find((e=>e.value===o));return X(wp,{class:i,error:t,hint:n,label:e,children:X("div",{class:"relative w-fit min-w-60",children:X(Nm,{onChange:e=>{a(r.find((t=>t.label===e.label))?.value)},options:r,value:l,children:[X(Dm,{class:Gn(Bm,t&&qm,Vm,!l?.label&&"text-gray-500"),testId:s,children:[X(ol,{class:Gn(!l?.label&&"text-inherit"),field:!0,children:l?.label||"Select"}),X(Nl,{className:"pointer-events-none absolute top-3 right-2.5 text-gray-500",icon:nl,size:"xs"})]}),X(Pm,{class:Gn("absolute z-20 mt-1 w-full rounded-md border border-gray-300 bg-white shadow-lg max-h-70 overflow-auto focus:outline-none","transition duration-100 ease-in-out"),children:r.map((e=>X(Fm,{class:"group flex cursor-default items-center gap-2 py-2 px-3 select-none data-[highlighted]:bg-primary-base data-[highlighted]:text-primary-text",value:e,children:X(ol,{class:"text-inherit",field:!0,children:e.label})},e.label)))})]})})})},Bm="relative block w-full py-1.5 pl-3 pr-8 rounded-md shadow-sm text-left border border-gray-300 bg-white",Vm="focus:outline-none focus-visible:border-gray-700",qm="text-red-900 border-red-300 focus-visible:border-red-600",Hm=({prefix:e,label:t,error:n,hint:r,leadingSymbol:i,type:a,class:o,testId:s,...l})=>X(wp,{class:Gn(i,o),error:n,hint:r,label:t,children:X("div",{class:"relative",children:[X("input",{class:Gn(Wm,ul,n&&Qm,$m,i&&"pl-6"),"data-testid":s,type:a,...l}),i?X(ol,{class:"absolute text-neutral-500 w-6 leading-[38px] left-3",field:!0,children:i}):null]})}),Wm="self-start py-2 px-3 rounded-md border border-gray-300 bg-white shadow-sm",$m="focus:outline-none focus-visible:border-gray-700",Qm="text-red-900 border-red-300 focus-visible:border-red-600",Km=({label:e,error:t,hint:n,options:r,class:i,testId:a,...o})=>{const s=r.findIndex((e=>e.value===o.value)),l=ct([]);return X(wp,{class:i,error:t,hint:n,label:e,children:X("div",{className:"flex items-start",children:X("div",{className:"relative flex gap-2 bg-gray-100 rounded-lg",children:[X("span",{className:"absolute rounded-md border border-gray-200 bg-white shadow-sm transition-transform ease-out duration-200 h-full w-1/2 "+(0===s?"translate-x-0":"translate-x-full")}),r.map(((e,t)=>X("button",{className:Gn("relative z-10 focus:outline-none py-2 px-12",t===s?"text-gray-900":"text-gray-500"),"data-testid":`${a}_${e.label.toLowerCase()}`,onClick:()=>(e=>{o.onChange(r[e].value)})(t),ref:e=>l.current[t]=e,tabIndex:s===t?0:-1,type:"button",children:X(ol,{class:"text-inherit",field:!0,children:e.label})},e.label)))]})})})},Ym=e=>{const{data:t,isSuccess:n,isError:r,isLoading:i,refetch:a}=Qn({queryKey:["benefitsPlanGetSteps",e.assessmentId],queryFn:()=>Sd({activityId:e.assessmentId},Td(e)),staleTime:0,gcTime:0});return st((()=>{Od({event:Kl.AssessmentViewed,properties:{id:e.assessmentId,name:e.assessmentTitle}},Td(e))}),[e]),X(jl,{children:[i&&X(Ll,{}),r&&X(Ul,{retry:a}),n&&X("div",{className:Gn("md:grid",e.imageUrl&&"md:grid-cols-2"),children:[X("div",{children:[X(ol,{class:"mb-2",heading1:!0,children:e.assessmentTitle}),X(ol,{class:"mb-6",paragraph1:!0,children:e.assessmentInstructions||e.description}),X(Gm,{...{...t,...e}})]}),X("div",{class:Gn("flex",e.verticalAlignment),children:X("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})})]})]})},Gm=e=>{const t=ig(e),{control:n,formState:r,handleSubmit:i}=function(e={}){const t=On.useRef(),n=On.useRef(),[r,i]=On.useState({isDirty:!1,isValidating:!1,isLoading:Lh(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Lh(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...yp(e),formState:r});const a=t.current.control;return a._options=e,Sh({subject:a._subjects.state,next:e=>{wh(e,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),On.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),On.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,r.isDirty]),On.useEffect((()=>{e.values&&!Jh(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i((e=>({...e})))):a._resetDefaultValues()}),[e.values,a]),On.useEffect((()=>{e.errors&&a._setErrors(e.errors)}),[e.errors,a]),On.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),On.useEffect((()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})}),[e.shouldUnregister,a]),t.current.formState=vh(r,a),t.current}({mode:"onSubmit",defaultValues:t,shouldFocusError:!1}),a=Ch({control:n}),o=ng(e,a),s=o.filter((e=>e.stepType===zl.Question)),l=zr(),{mutate:c,status:u}=Kn({mutationFn:t=>kd(t,Td(e)),onSuccess:()=>{if("true"===e.skipSummary)return void e.onComplete?.();const t=o[o.length-1];l(t.stepType===zl.Ineligible?`/ineligible/${t.id}`:"/completion")}}),[d,f]=at();st((()=>{const e=(e=>{for(const t of Object.values(Ql))if(new RegExp(`\\b${t}\\b`,"i").test(e))return t})(JSON.stringify(a));f(e)}),[a]);const h=ct(a);st((()=>{const t=Object.keys(a).find((e=>JSON.stringify(h.current[e])!==JSON.stringify(a[e]))),n=o.find((e=>e.id===t));if(n?.stepType===zl.Question){const t=n.customerAttribute;t&&Od({event:Kl.AssessmentFieldUpdated,properties:{id:e.assessmentId,name:e.assessmentTitle,attribute:t}},Td(e))}h.current=a}),[a]);const p=e.onSkip;return X(_,{children:[X("form",{class:"flex flex-col gap-4",children:s.map((t=>{const i=r.errors[t.id]?.message;switch(t.template){case Bl.Text:return X(Xm,{control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);case Bl.Currency:return X(Jm,{control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);case Bl.Date:return X(Zm,{australianState:d,control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);case Bl.SingleSelect:return X(eg,{control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);case Bl.Lookup:return X(tg,{control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);default:return null}}))}),X("div",{class:"flex gap-1 flex-wrap mt-6",children:[X(Ml,{class:Gn(p?"flex-grow":"min-w-60"),onClick:i((t=>{const n=o.map((e=>e.id)),r=Object.fromEntries(Object.entries(t).filter((([e])=>n.includes(e)))),i=Object.entries(r).map((([e,t])=>s.find((t=>t.id===e))?.template===Bl.Lookup?{dataType:$l.Lookup,stepId:e,id:t.id,label:t.label}:{dataType:$l.Standard,stepId:e,value:t})),a={activityAction:Wl.ProgressStartToComplete,activityId:e.assessmentId,progressEvents:i};Od({event:Kl.AssessmentSubmitted,properties:{id:e.assessmentId,name:e.assessmentTitle,experiment:e.trackExperiment,treatment:e.trackTreatment,responses:i.reduce(((e,t)=>{const n=s.find((e=>e.id===t.stepId))?.customerAttribute,r=t.dataType===$l.Lookup?t.label:t.value;return{...e,...n&&r?{[n]:r}:null}}),{})}},Td(e)),c(a)})),status:u,testId:`offer_${e.marketplaceOfferName}_assessment_button_submit`,children:"Submit"}),p&&X(Ml,{class:"flex-grow",onClick:()=>{e.onSkip?.(),Od({event:Kl.AssessmentSkipped,properties:{id:e.assessmentId,name:e.assessmentTitle}},Td(e))},secondary:!0,testId:`offer_${e.marketplaceOfferName}_button_skip`,children:"Decline benefit"})]})]})},Xm=({control:e,step:t,error:n,marketplaceOfferName:r})=>X(Th,{control:e,name:t.id,render:({field:e})=>X(Hm,{error:n,hint:t.hint,label:t.title,testId:`offer_${r}_assessment_input_${t.customerAttribute}`,type:"text",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const n=t.invalidMessage||!1,r=t.matchExpression;return!r||(!!RegExp(r).test(e)||n)}}}),Jm=({control:e,step:t,error:n,marketplaceOfferName:r})=>X(Th,{control:e,name:t.id,render:({field:e})=>X(Hm,{error:n,hint:t.hint,label:t.title,leadingSymbol:"$",testId:`offer_${r}_assessment_input_${t.customerAttribute}`,type:"text",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const n=t.invalidMessage||!1;if(!(t.dataType===Vl.Integer?/^\d+$/.test(e):/^-?\d+(\.\d+)?$/.test(e)))return n;const r=parseFloat(e);return t.maximumValue&&r>parseInt(t.maximumValue,10)?n:!(t.minimumValue&&r<parseInt(t.minimumValue,10))||n}}}),Zm=({control:e,step:t,australianState:n,error:r,marketplaceOfferName:i})=>{const a=Qn({queryKey:["benefitsPlanGetPublicHolidays"],queryFn:Cd,staleTime:1/0});return X(Th,{control:e,name:t.id,render:({field:e})=>X(Hm,{error:r,hint:t.hint,label:t.title,testId:`offer_${i}_assessment_input_${t.customerAttribute}`,type:"date",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const r=new Date(e);r.setHours(0,0,0,0);const i=t.invalidDays?.includes(ql.Weekends),o=r.getDay();if(i&&(0===o||6===o))return t.invalidMessage;const s=t.invalidDays?.includes(ql.PublicHolidays);if(s){const e=a.data?.holidays.filter((e=>e.state.toUpperCase()===n?.toUpperCase())).map((e=>{const t=new Date(e.date);return t.setHours(0,0,0,0),t})),i=e?.some((e=>e.getTime()===r.getTime()));if(i)return t.invalidMessage}let l,c;return t.minimumValue&&("today"===t.minimumValue.toLowerCase()?(l=new Date,l.setDate(l.getDate()+(t.minimumValueAddDays||0)),l.setHours(0,0,0,0)):(l=new Date(t.minimumValue),l.setHours(0,0,0,0)),r<l)?t.invalidMessage:!(t.maximumValue&&("one year"===t.maximumValue.toLowerCase()?(c=l?new Date(l.getTime()):new Date,c.setFullYear(c.getFullYear()+1)):c=new Date(t.maximumValue),c.setHours(0,0,0,0),r>c))||t.invalidMessage}}})},eg=({control:e,step:t,error:n,marketplaceOfferName:r})=>X(Th,{control:e,name:t.id,render:({field:e})=>rg(t)?X(Km,{error:n,hint:t.hint,label:t.title,options:t.options,testId:`offer_${r}_assessment_input_${t.customerAttribute}`,...e}):X(zm,{error:n,hint:t.hint,label:t.title,options:t.options,testId:`offer_${r}_assessment_input_${t.customerAttribute}`,...e}),rules:{required:{value:!0,message:"This field is required"}}}),tg=({control:e,step:t,error:n,marketplaceOfferName:r})=>{const[i,a]=at(),[o]=_p(i,300,{trailing:!0}),[s,l]=at(!1),[c,u]=at([]);return st((()=>{o&&o.length>=t.minimumCharacters?(async()=>{let e;try{l(!0),e=await(n={url:(r=t.url,r.replace(/^[a-zA-Z]+:\/\/[^/]+\/?/,"")),query:o||""},_d(n.url,{query:n.query}))}catch(og){}var n,r;l(!1),u(e?.addresses?e.addresses:[])})():u([])}),[o,t.minimumCharacters,t.url]),X(Th,{control:e,name:t.id,render:({field:e})=>X(Lm,{error:n,hint:t.hint,label:t.title,loading:s,onChangeText:a,options:c,query:i,testId:`offer_${r}_assessment_input_${t.customerAttribute}`,...e}),rules:{validate:e=>!(!e?.id||!e?.label)||"This field is required"}})},ng=(e,t)=>{const{firstStepId:n,steps:r}=e,i=r.reduce(((e,t)=>({...e,[t.id]:t})),{}),a=(e,n)=>{if(!e)return n;const r=i[e],o=[...n,r];if(r.stepType===zl.Completion||r.stepType===zl.Ineligible)return o;if(r.stepType===zl.Consent)return a(r.nextStepId,o);const s=t?.[r.id];if(r.stepType===zl.Question&&r.template===Bl.SingleSelect&&!s)return o;const l=r.stepType===zl.Question&&r.template===Bl.SingleSelect?r.options?.find((e=>e.value===s))?.nextStepId:r.nextStepId;return a(l,o)};return a(n,[])},rg=e=>2===e.options.length&&e.options.some((e=>"yes"===e.label.toLowerCase()))&&e.options.some((e=>"no"===e.label.toLowerCase())),ig=e=>e.steps.reduce(((e,t)=>{let n;return n=t.stepType===zl.Question&&t.template===Bl.SingleSelect?rg(t)&&void 0===t.defaultValue?t.options.find((({label:e})=>"yes"===e.toLowerCase()))?.value:t.defaultValue:t.stepType===zl.Ineligible||t.stepType===zl.Completion||t.stepType===zl.Consent||t.template===Bl.TriviaSingleSelect?void 0:t.defaultValue,{...e,[t.id]:n}}),{}),ag=e=>{const t=Ur(),n="true"===e.skipToCompletion?"/completion":"true"===e.skipIntro?"/question":"/consent";return X(Fi,{class:Gn("relative flex flex-1 overflow-x-clip",!1),children:X(Ri,{classNames:{enter:n===t.pathname?"":"slide-enter",enterActive:n===t.pathname?"":"slide-enter-active",exit:"slide-exit",exitActive:"slide-exit-active"},timeout:300,children:X(ti,{location:t,children:[X(Zr,{element:X(zf,{...e}),path:"consent"}),X(Zr,{element:X(Ym,{...e}),path:"question"}),X(Zr,{element:X(Rd,{...e}),path:"completion"}),X(Zr,{element:X(Hf,{...e}),path:"ineligible/:id"}),X(Zr,{element:X(Jr,{to:n}),path:"*"})]})},t.pathname)})};!function(e,t,n,r){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=W,i.prototype.attributeChangedCallback=Q,i.prototype.disconnectedCallback=K,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach((function(e){Object.defineProperty(i.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,i)}((e=>(lt((()=>{var t;t=e,bd||(bd=td.create({baseURL:t.baseUrl,allowAbsoluteUrls:!1}),bd.interceptors.request.use((e=>(e.headers.Authorization=`Bearer ${t.accessToken}`,e.headers["X-PROFILE-ID"]=t.profileId,e.params={client:t.trackClient,source:t.trackSource,channel:t.trackChannel,...e.params},e))))}),[]),X(bn,{children:X(bl,{children:X(Rn,{client:xd(),children:X(Xr,{children:X(ag,{...e})})})})}))),"benefits-plan-assessment",["terms","details","on-accept","on-decline","on-complete","on-skip"],{shadow:!0});
|
|
1
|
+
var e,t,n,r,i,a,o,s,l,c,u,d={},f=[],h=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,p=Array.isArray;function m(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function y(t,n,r){var i,a,o,s={};for(o in n)"key"==o?i=n[o]:"ref"==o?a=n[o]:s[o]=n[o];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):r),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return b(t,s,i,a,null)}function b(e,r,i,a,o){var s={type:e,props:r,key:i,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++n:o,__i:-1,__u:0};return null==o&&null!=t.vnode&&t.vnode(s),s}function v(){return{current:null}}function _(e){return e.children}function w(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(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?x(e):null}function E(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 E(e)}}function S(e){(!e.__d&&(e.__d=!0)&&r.push(e)&&!k.__r++||i!==t.debounceRendering)&&((i=t.debounceRendering)||a)(k)}function k(){var e,n,i,a,s,l,c,u;for(r.sort(o);e=r.shift();)e.__d&&(n=r.length,a=void 0,l=(s=(i=e).__v).__e,c=[],u=[],i.__P&&((a=m({},s)).__v=s.__v+1,t.vnode&&t.vnode(a),D(i.__P,a,s,i.__n,i.__P.namespaceURI,32&s.__u?[l]:null,c,null==l?x(s):l,!!(32&s.__u),u),a.__v=s.__v,a.__.__k[a.__i]=a,P(c,a,u),a.__e!=l&&E(a)),r.length>n&&r.sort(o));k.__r=0}function O(e,t,n,r,i,a,o,s,l,c,u){var h,m,g,y,v,w=r&&r.__k||f,E=t.length;for(n.__d=l,function(e,t,n){var r,i,a,o,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)o=r+d,null!=(i=e.__k[r]=null==(i=t[r])||"boolean"==typeof i||"function"==typeof i?null:"string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?b(null,i,null,null,null):p(i)?b(_,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?b(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=T(i,n,o,u),i.__i=s,a=null,-1!==s&&(u--,(a=n[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==o&&(s==o-1?d--:s==o+1?d++:s>o?u>l-o?d+=s-o:d--:s<o&&(s==o-d?d-=s-o:d++),s!==r+d&&(i.__u|=65536))):(a=n[o])&&null==a.key&&a.__e&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=x(a)),L(a,a,!1),n[o]=null,u--);if(u)for(r=0;r<c;r++)null!=(a=n[r])&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=x(a)),L(a,a))}(n,t,w),l=n.__d,h=0;h<E;h++)null!=(g=n.__k[h])&&"boolean"!=typeof g&&"function"!=typeof g&&(m=-1===g.__i?d:w[g.__i]||d,g.__i=h,D(e,g,m,i,a,o,s,l,c,u),y=g.__e,g.ref&&m.ref!=g.ref&&(m.ref&&F(m.ref,null,g),u.push(g.ref,g.__c||y,g)),null==v&&null!=y&&(v=y),65536&g.__u||m.__k===g.__k?l=C(g,l,e):"function"==typeof g.type&&void 0!==g.__d?l=g.__d:y&&(l=y.nextSibling),g.__d=void 0,g.__u&=-196609);n.__d=l,n.__e=v}function C(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=C(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=x(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function A(e,t){return t=t||[],null==e||"boolean"==typeof e||(p(e)?e.some((function(e){A(e,t)})):t.push(e)),t}function T(e,t,n,r){var i=e.key,a=e.type,o=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&a===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&i==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&a===l.type)return s;s++}}return-1}function R(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||h.test(t)?n:n+"px"}function I(e,t,n,r,i){var a;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||R(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||R(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=n,n?r?n.u=r.u:(n.u=s,e.addEventListener(t,a?c:l,a)):e.removeEventListener(t,a?c:l,a);else{if("http://www.w3.org/2000/svg"==i)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&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(o){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function N(e){return function(n){if(this.l){var r=this.l[n.type+e];if(null==n.t)n.t=s++;else if(n.t<r.u)return;return r(t.event?t.event(n):n)}}}function D(n,r,i,a,o,s,l,c,u,f){var h,y,b,v,E,S,k,C,A,T,R,N,D,P,F,L,U=r.type;if(void 0!==r.constructor)return null;128&i.__u&&(u=!!(32&i.__u),s=[c=r.__e=i.__e]),(h=t.__b)&&h(r);e:if("function"==typeof U)try{if(C=r.props,A="prototype"in U&&U.prototype.render,T=(h=U.contextType)&&a[h.__c],R=h?T?T.props.value:h.__:a,i.__c?k=(y=r.__c=i.__c).__=y.__E:(A?r.__c=y=new U(C,R):(r.__c=y=new w(C,R),y.constructor=U,y.render=M),T&&T.sub(y),y.props=C,y.state||(y.state={}),y.context=R,y.__n=a,b=y.__d=!0,y.__h=[],y._sb=[]),A&&null==y.__s&&(y.__s=y.state),A&&null!=U.getDerivedStateFromProps&&(y.__s==y.state&&(y.__s=m({},y.__s)),m(y.__s,U.getDerivedStateFromProps(C,y.__s))),v=y.props,E=y.state,y.__v=r,b)A&&null==U.getDerivedStateFromProps&&null!=y.componentWillMount&&y.componentWillMount(),A&&null!=y.componentDidMount&&y.__h.push(y.componentDidMount);else{if(A&&null==U.getDerivedStateFromProps&&C!==v&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(C,R),!y.__e&&(null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(C,y.__s,R)||r.__v===i.__v)){for(r.__v!==i.__v&&(y.props=C,y.state=y.__s,y.__d=!1),r.__e=i.__e,r.__k=i.__k,r.__k.forEach((function(e){e&&(e.__=r)})),N=0;N<y._sb.length;N++)y.__h.push(y._sb[N]);y._sb=[],y.__h.length&&l.push(y);break e}null!=y.componentWillUpdate&&y.componentWillUpdate(C,y.__s,R),A&&null!=y.componentDidUpdate&&y.__h.push((function(){y.componentDidUpdate(v,E,S)}))}if(y.context=R,y.props=C,y.__P=n,y.__e=!1,D=t.__r,P=0,A){for(y.state=y.__s,y.__d=!1,D&&D(r),h=y.render(y.props,y.state,y.context),F=0;F<y._sb.length;F++)y.__h.push(y._sb[F]);y._sb=[]}else do{y.__d=!1,D&&D(r),h=y.render(y.props,y.state,y.context),y.state=y.__s}while(y.__d&&++P<25);y.state=y.__s,null!=y.getChildContext&&(a=m(m({},a),y.getChildContext())),A&&!b&&null!=y.getSnapshotBeforeUpdate&&(S=y.getSnapshotBeforeUpdate(v,E)),O(n,p(L=null!=h&&h.type===_&&null==h.key?h.props.children:h)?L:[L],r,i,a,o,s,l,c,u,f),y.base=r.__e,r.__u&=-161,y.__h.length&&l.push(y),k&&(y.__E=y.__=null)}catch(j){if(r.__v=null,u||null!=s){for(r.__u|=u?160:32;c&&8===c.nodeType&&c.nextSibling;)c=c.nextSibling;s[s.indexOf(c)]=null,r.__e=c}else r.__e=i.__e,r.__k=i.__k;t.__e(j,r,i)}else null==s&&r.__v===i.__v?(r.__k=i.__k,r.__e=i.__e):r.__e=function(t,n,r,i,a,o,s,l,c){var u,f,h,m,y,b,v,_=r.props,w=n.props,E=n.type;if("svg"===E?a="http://www.w3.org/2000/svg":"math"===E?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=o)for(u=0;u<o.length;u++)if((y=o[u])&&"setAttribute"in y==!!E&&(E?y.localName===E:3===y.nodeType)){t=y,o[u]=null;break}if(null==t){if(null===E)return document.createTextNode(w);t=document.createElementNS(a,E,w.is&&w),o=null,l=!1}if(null===E)_===w||l&&t.data===w||(t.data=w);else{if(o=o&&e.call(t.childNodes),_=r.props||d,!l&&null!=o)for(_={},u=0;u<t.attributes.length;u++)_[(y=t.attributes[u]).name]=y.value;for(u in _)if(y=_[u],"children"==u);else if("dangerouslySetInnerHTML"==u)h=y;else if("key"!==u&&!(u in w)){if("value"==u&&"defaultValue"in w||"checked"==u&&"defaultChecked"in w)continue;I(t,u,null,y,a)}for(u in w)y=w[u],"children"==u?m=y:"dangerouslySetInnerHTML"==u?f=y:"value"==u?b=y:"checked"==u?v=y:"key"===u||l&&"function"!=typeof y||_[u]===y||I(t,u,y,_[u],a);if(f)l||h&&(f.__html===h.__html||f.__html===t.innerHTML)||(t.innerHTML=f.__html),n.__k=[];else if(h&&(t.innerHTML=""),O(t,p(m)?m:[m],n,r,i,"foreignObject"===E?"http://www.w3.org/1999/xhtml":a,o,s,o?o[0]:r.__k&&x(r,0),l,c),null!=o)for(u=o.length;u--;)null!=o[u]&&g(o[u]);l||(u="value",void 0!==b&&(b!==t[u]||"progress"===E&&!b||"option"===E&&b!==_[u])&&I(t,u,b,_[u],a),u="checked",void 0!==v&&v!==t[u]&&I(t,u,v,_[u],a))}return t}(i.__e,r,i,a,o,s,l,u,f);(h=t.diffed)&&h(r)}function P(e,n,r){n.__d=void 0;for(var i=0;i<r.length;i++)F(r[i],r[++i],r[++i]);t.__c&&t.__c(n,e),e.some((function(n){try{e=n.__h,n.__h=[],e.some((function(e){e.call(n)}))}catch(r){t.__e(r,n.__v)}}))}function F(e,n,r){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==n||(e.__u=e(n))}else e.current=n}catch(a){t.__e(a,r)}}function L(e,n,r){var i,a;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||F(i,null,n)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(o){t.__e(o,n)}i.base=i.__P=null}if(i=e.__k)for(a=0;a<i.length;a++)i[a]&&L(i[a],n,r||"function"!=typeof e.type);r||null==e.__e||g(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function M(e,t,n){return this.constructor(e,n)}function U(n,r,i){var a,o,s,l;t.__&&t.__(n,r),o=(a="function"==typeof i)?null:i&&i.__k||r.__k,s=[],l=[],D(r,n=(!a&&i||r).__k=y(_,null,[n]),o||d,d,r.namespaceURI,!a&&i?[i]:o?null:r.firstChild?e.call(r.childNodes):null,s,!a&&i?i:o?o.__e:r.firstChild,a,l),P(s,n,l)}function j(e,t){U(e,t,j)}function z(t,n,r){var i,a,o,s,l=m({},t.props);for(o in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),n)"key"==o?i=n[o]:"ref"==o?a=n[o]:l[o]=void 0===n[o]&&void 0!==s?s[o]:n[o];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):r),b(t.type,l,i||t.key,a||t.ref,null)}function B(e,t){var n={__c:t="__cC"+u++,__: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.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,S(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function V(){return(V=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)}e=f.slice,t={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(s){e=s}throw e}},n=0,w.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof e&&(e=e(m({},n),this.props)),e&&m(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),S(this))},w.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),S(this))},w.prototype.render=_,r=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,o=function(e,t){return e.__v.__b-t.__v.__b},k.__r=0,s=0,l=N(!1),c=N(!0),u=0;var q=["context","children"];function H(e){return this.getChildContext=function(){return e.context},z(e.children,function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)t.indexOf(n=a[r])>=0||(i[n]=e[n]);return i}(e,q))}function W(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=y(H,V({},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=[],i={},a=0,o=t.attributes,s=t.childNodes;for(a=o.length;a--;)"slot"!==o[a].name&&(i[o[a].name]=o[a].value,i[$(o[a].name)]=o[a].value);for(a=s.length;a--;){var l=e(s[a],null),c=s[a].slot;c?i[c]=y(Y,{name:c},l):r[a]=l}var u=n?y(Y,null,r):r;return y(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?j:U)(this._vdom,this._root)}function $(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[$(e)]=n,this._vdom=z(this._vdom,r),U(this._vdom,this._root)}}function K(){U(this._vdom=null,this._root)}function Y(e,t){var n=this;return y("slot",V({},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 G=0;function X(e,n,r,i,a,o){n||(n={});var s,l,c=n;if("ref"in c)for(l in c={},n)"ref"==l?s=n[l]:c[l]=n[l];var u={type:e,props:c,key:r,ref:s,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--G,__i:-1,__u:0,__source:a,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return t.vnode&&t.vnode(u),u}var J=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Z="undefined"==typeof window||"Deno"in globalThis;function ee(){}function te(e){return"number"==typeof e&&e>=0&&e!==1/0}function ne(e,t){return Math.max(e+(t||0)-Date.now(),0)}function re(e,t){return"function"==typeof e?e(t):e}function ie(e,t){return"function"==typeof e?e(t):e}function ae(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o)if(r){if(t.queryHash!==se(o,t.options))return!1}else if(!ce(t.queryKey,o))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(a&&!a(t)))}function oe(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(le(t.options.mutationKey)!==le(a))return!1}else if(!ce(t.options.mutationKey,a))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function se(e,t){return(t?.queryKeyHashFn||le)(e)}function le(e){return JSON.stringify(e,((e,t)=>he(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ce(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ce(e[n],t[n]))))}function ue(e,t){if(e===t)return e;const n=fe(e)&&fe(t);if(n||he(e)&&he(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),o=a.length,s=n?[]:{};let l=0;for(let c=0;c<o;c++){const i=n?c:a[c];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=ue(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===o&&l===i?e:s}return t}function de(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function fe(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function he(e){if(!pe(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!pe(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function pe(e){return"[object Object]"===Object.prototype.toString.call(e)}function me(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?ue(e,t):t}function ge(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function ye(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var be=Symbol();function ve(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==be?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var _e=new class extends J{#e;#t;#n;constructor(){super(),this.#n=e=>{if(!Z&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},we=new class extends J{#r=!0;#t;#n;constructor(){super(),this.#n=e=>{if(!Z&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#r!==e&&(this.#r=e,this.listeners.forEach((t=>{t(e)})))}isOnline(){return this.#r}};function xe(e){return Math.min(1e3*2**e,3e4)}function Ee(e){return"online"!==(e??"online")||we.isOnline()}var Se=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function ke(e){return e instanceof Se}function Oe(e){let t,n,r,i=!1,a=0,o=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>_e.isFocused()&&("always"===e.networkMode||we.isOnline())&&e.canRun(),c=()=>Ee(e.networkMode)&&e.canRun(),u=r=>{o||(o=!0,e.onSuccess?.(r),t?.(),n(r))},d=n=>{o||(o=!0,e.onError?.(n),t?.(),r(n))},f=()=>new Promise((n=>{t=e=>{(o||l())&&n(e)},e.onPause?.()})).then((()=>{t=void 0,o||e.onContinue?.()})),h=()=>{if(o)return;let t;const n=0===a?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(u).catch((t=>{if(o)return;const n=e.retry??(Z?0:3),r=e.retryDelay??xe,s="function"==typeof r?r(a,t):r,c=!0===n||"number"==typeof n&&a<n||"function"==typeof n&&n(a,t);var u;!i&&c?(a++,e.onFail?.(a,t),(u=s,new Promise((e=>{setTimeout(e,u)}))).then((()=>l()?void 0:f())).then((()=>{i?d(t):h()}))):d(t)}))};return{promise:s,cancel:t=>{o||(d(new Se(t)),e.abort?.())},continue:()=>(t?.(),s),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:c,start:()=>(c()?h():f().then(h),s)}}var Ce=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const a=r=>{t?e.push(r):i((()=>{n(r)}))},o=()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),Ae=class{#i;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),te(this.gcTime)&&(this.#i=setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Z?1/0:3e5))}clearGcTimeout(){this.#i&&(clearTimeout(this.#i),this.#i=void 0)}},Te=class extends Ae{#a;#o;#s;#l;#c;#u;constructor(e){super(),this.#u=!1,this.#c=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#s=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#a=function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#a,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#l?.promise}setOptions(e){this.options={...this.#c,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#s.remove(this)}setData(e,t){const n=me(this.state.data,e,this.options);return this.#d({data:n,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e,t){this.#d({type:"setState",state:e,setStateOptions:t})}cancel(e){const t=this.#l?.promise;return this.#l?.cancel(e),t?t.then(ee).catch(ee):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#a)}isActive(){return this.observers.some((e=>!1!==ie(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!ne(this.state.dataUpdatedAt,e)}onFocus(){const e=this.observers.find((e=>e.shouldFetchOnWindowFocus()));e?.refetch({cancelRefetch:!1}),this.#l?.continue()}onOnline(){const e=this.observers.find((e=>e.shouldFetchOnReconnect()));e?.refetch({cancelRefetch:!1}),this.#l?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.#l&&(this.#u?this.#l.cancel({revert:!0}):this.#l.cancelRetry()),this.scheduleGc()),this.#s.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#d({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#l)return this.#l.continueRetry(),this.#l.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#u=!0,n.signal)})},i={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=ve(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return r(n),this.#u=!1,this.options.persister?this.options.persister(e,n,this):e(n)}};r(i),this.options.behavior?.onFetch(i,this),this.#o=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===i.fetchOptions?.meta||this.#d({type:"fetch",meta:i.fetchOptions?.meta});const a=e=>{ke(e)&&e.silent||this.#d({type:"error",error:e}),ke(e)||(this.#s.config.onError?.(e,this),this.#s.config.onSettled?.(this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.#l=Oe({initialPromise:t?.initialPromise,fn:i.fetchFn,abort:n.abort.bind(n),onSuccess:e=>{void 0!==e?(this.setData(e),this.#s.config.onSuccess?.(e,this),this.#s.config.onSettled?.(e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):a(new Error(`${this.queryHash} data is undefined`))},onError:a,onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:i.options.retry,retryDelay:i.options.retryDelay,networkMode:i.options.networkMode,canRun:()=>!0}),this.#l.start()}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...Re(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return ke(n)&&n.revert&&this.#o?{...this.#o,fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),Ce.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),this.#s.notify({query:this,type:"updated",action:e})}))}};function Re(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Ee(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Ie=class extends J{constructor(e={}){super(),this.config=e,this.#f=new Map}#f;build(e,t,n){const r=t.queryKey,i=t.queryHash??se(r,t);let a=this.get(i);return a||(a=new Te({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#f.has(e.queryHash)||(this.#f.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#f.get(e.queryHash);t&&(e.destroy(),t===e&&this.#f.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Ce.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return this.#f.get(e)}getAll(){return[...this.#f.values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>ae(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>ae(e,t))):t}notify(e){Ce.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Ce.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Ce.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},Ne=class extends Ae{#h;#p;#l;constructor(e){super(),this.mutationId=e.mutationId,this.#p=e.mutationCache,this.#h=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#h.includes(e)||(this.#h.push(e),this.clearGcTimeout(),this.#p.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#h=this.#h.filter((t=>t!==e)),this.scheduleGc(),this.#p.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#h.length||("pending"===this.state.status?this.scheduleGc():this.#p.remove(this))}continue(){return this.#l?.continue()??this.execute(this.state.variables)}async execute(e){this.#l=Oe({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#d({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#d({type:"pause"})},onContinue:()=>{this.#d({type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#p.canRun(this)});const t="pending"===this.state.status,n=!this.#l.canStart();try{if(!t){this.#d({type:"pending",variables:e,isPaused:n}),await(this.#p.config.onMutate?.(e,this));const t=await(this.options.onMutate?.(e));t!==this.state.context&&this.#d({type:"pending",context:t,variables:e,isPaused:n})}const r=await this.#l.start();return await(this.#p.config.onSuccess?.(r,e,this.state.context,this)),await(this.options.onSuccess?.(r,e,this.state.context)),await(this.#p.config.onSettled?.(r,null,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(r,null,e,this.state.context)),this.#d({type:"success",data:r}),r}catch(r){try{throw await(this.#p.config.onError?.(r,e,this.state.context,this)),await(this.options.onError?.(r,e,this.state.context)),await(this.#p.config.onSettled?.(void 0,r,this.state.variables,this.state.context,this)),await(this.options.onSettled?.(void 0,r,e,this.state.context)),r}finally{this.#d({type:"error",error:r})}}finally{this.#p.runNext(this)}}#d(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),Ce.batch((()=>{this.#h.forEach((t=>{t.onMutationUpdate(e)})),this.#p.notify({mutation:this,type:"updated",action:e})}))}};var De=class extends J{constructor(e={}){super(),this.config=e,this.#m=new Map,this.#g=Date.now()}#m;#g;build(e,t,n){const r=new Ne({mutationCache:this,mutationId:++this.#g,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Pe(e),n=this.#m.get(t)??[];n.push(e),this.#m.set(t,n),this.notify({type:"added",mutation:e})}remove(e){const t=Pe(e);if(this.#m.has(t)){const n=this.#m.get(t)?.filter((t=>t!==e));n&&(0===n.length?this.#m.delete(t):this.#m.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){const t=this.#m.get(Pe(e))?.find((e=>"pending"===e.state.status));return!t||t===e}runNext(e){const t=this.#m.get(Pe(e))?.find((t=>t!==e&&t.state.isPaused));return t?.continue()??Promise.resolve()}clear(){Ce.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...this.#m.values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>oe(t,e)))}findAll(e={}){return this.getAll().filter((t=>oe(e,t)))}notify(e){Ce.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Ce.batch((()=>Promise.all(e.map((e=>e.continue().catch(ee))))))}};function Pe(e){return e.options.scope?.id??String(e.mutationId)}function Fe(e){return{onFetch:(t,n)=>{const r=async()=>{const n=t.options,r=t.fetchOptions?.meta?.fetchMore?.direction,i=t.state.data?.pages||[],a=t.state.data?.pageParams||[],o={pages:[],pageParams:[]};let s=!1;const l=ve(t.options,t.fetchOptions),c=async(e,n,r)=>{if(s)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const i={queryKey:t.queryKey,pageParam:n,direction:r?"backward":"forward",meta:t.options.meta};var a;a=i,Object.defineProperty(a,"signal",{enumerable:!0,get:()=>(t.signal.aborted?s=!0:t.signal.addEventListener("abort",(()=>{s=!0})),t.signal)});const o=await l(i),{maxPages:c}=t.options,u=r?ye:ge;return{pages:u(e.pages,o,c),pageParams:u(e.pageParams,n,c)}};let u;if(r&&i.length){const e="backward"===r,t={pages:i,pageParams:a},o=(e?Me:Le)(n,t);u=await c(t,o,e)}else{u=await c(o,a[0]??n.initialPageParam);const t=e??i.length;for(let e=1;e<t;e++){const e=Le(n,u);if(null==e)break;u=await c(u,e)}}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):t.fetchFn=r}}}function Le(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Me(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Ue=class{#y;#p;#c;#b;#v;#_;#w;#x;constructor(e={}){this.#y=e.queryCache||new Ie,this.#p=e.mutationCache||new De,this.#c=e.defaultOptions||{},this.#b=new Map,this.#v=new Map,this.#_=0}mount(){this.#_++,1===this.#_&&(this.#w=_e.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#y.onFocus())})),this.#x=we.subscribe((async e=>{e&&(await this.resumePausedMutations(),this.#y.onOnline())})))}unmount(){this.#_--,0===this.#_&&(this.#w?.(),this.#w=void 0,this.#x?.(),this.#x=void 0)}isFetching(e){return this.#y.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#p.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=this.#y.build(this,n);return e.revalidateIfStale&&r.isStaleByTime(re(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#y.findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=this.#y.get(r.queryHash),a=i?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,a);if(void 0!==o)return this.#y.build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Ce.batch((()=>this.#y.findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#y.get(t.queryHash)?.state}removeQueries(e){const t=this.#y;Ce.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=this.#y,r={type:"active",...e};return Ce.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Ce.batch((()=>this.#y.findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(ee).catch(ee)}invalidateQueries(e={},t={}){return Ce.batch((()=>{if(this.#y.findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:t?.cancelRefetch??!0},r=Ce.batch((()=>this.#y.findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(ee)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(ee)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=this.#y.build(this,t);return n.isStaleByTime(re(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ee).catch(ee)}fetchInfiniteQuery(e){return e.behavior=Fe(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ee).catch(ee)}resumePausedMutations(){return we.isOnline()?this.#p.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#y}getMutationCache(){return this.#p}getDefaultOptions(){return this.#c}setDefaultOptions(e){this.#c=e}setQueryDefaults(e,t){this.#b.set(le(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#b.values()];let n={};return t.forEach((t=>{ce(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){this.#v.set(le(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#v.values()];let n={};return t.forEach((t=>{ce(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#c.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=se(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===be&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#c.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#y.clear(),this.#p.clear()}},je=class extends J{constructor(e,t){super(),this.options=t,this.#E=e,this.#S=null,this.bindMethods(),this.setOptions(t)}#E;#k=void 0;#O=void 0;#C=void 0;#A;#T;#S;#R;#I;#N;#D;#P;#F;#L=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#k.addObserver(this),ze(this.#k,this.options)?this.#M():this.updateResult(),this.#U())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Be(this.#k,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Be(this.#k,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#j(),this.#z(),this.#k.removeObserver(this)}setOptions(e,t){const n=this.options,r=this.#k;if(this.options=this.#E.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof ie(this.options.enabled,this.#k))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#B(),this.#k.setOptions(this.options),n._defaulted&&!de(this.options,n)&&this.#E.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#k,observer:this});const i=this.hasListeners();i&&Ve(this.#k,r,this.options,n)&&this.#M(),this.updateResult(t),!i||this.#k===r&&ie(this.options.enabled,this.#k)===ie(n.enabled,this.#k)&&re(this.options.staleTime,this.#k)===re(n.staleTime,this.#k)||this.#V();const a=this.#q();!i||this.#k===r&&ie(this.options.enabled,this.#k)===ie(n.enabled,this.#k)&&a===this.#F||this.#H(a)}getOptimisticResult(e){const t=this.#E.getQueryCache().build(this.#E,e),n=this.createResult(t,e);return function(e,t){if(!de(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(this.#C=n,this.#T=this.options,this.#A=this.#k.state),n}getCurrentResult(){return this.#C}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),t?.(r),e[r])})})),n}trackProp(e){this.#L.add(e)}getCurrentQuery(){return this.#k}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#E.defaultQueryOptions(e),n=this.#E.getQueryCache().build(this.#E,t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return this.#M({...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),this.#C)))}#M(e){this.#B();let t=this.#k.fetch(this.options,e);return e?.throwOnError||(t=t.catch(ee)),t}#V(){this.#j();const e=re(this.options.staleTime,this.#k);if(Z||this.#C.isStale||!te(e))return;const t=ne(this.#C.dataUpdatedAt,e)+1;this.#D=setTimeout((()=>{this.#C.isStale||this.updateResult()}),t)}#q(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#k):this.options.refetchInterval)??!1}#H(e){this.#z(),this.#F=e,!Z&&!1!==ie(this.options.enabled,this.#k)&&te(this.#F)&&0!==this.#F&&(this.#P=setInterval((()=>{(this.options.refetchIntervalInBackground||_e.isFocused())&&this.#M()}),this.#F))}#U(){this.#V(),this.#H(this.#q())}#j(){this.#D&&(clearTimeout(this.#D),this.#D=void 0)}#z(){this.#P&&(clearInterval(this.#P),this.#P=void 0)}createResult(e,t){const n=this.#k,r=this.options,i=this.#C,a=this.#A,o=this.#T,s=e!==n?e.state:this.#O,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),a=!i&&ze(e,t),o=i&&Ve(e,n,t,r);(a||o)&&(u={...u,...Re(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:p}=u;if(t.select&&void 0!==u.data)if(i&&u.data===a?.data&&t.select===this.#R)c=this.#I;else try{this.#R=t.select,c=t.select(u.data),c=me(i?.data,c,t),this.#I=c,this.#S=null}catch(_){this.#S=_}else c=u.data;if(void 0!==t.placeholderData&&void 0===c&&"pending"===p){let e;if(i?.isPlaceholderData&&t.placeholderData===o?.placeholderData)e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#N?.state.data,this.#N):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#S=null}catch(_){this.#S=_}void 0!==e&&(p="success",c=me(i?.data,e,t),d=!0)}this.#S&&(f=this.#S,c=this.#I,h=Date.now(),p="error");const m="fetching"===u.fetchStatus,g="pending"===p,y="error"===p,b=g&&m,v=void 0!==c;return{status:p,fetchStatus:u.fetchStatus,isPending:g,isSuccess:"success"===p,isError:y,isInitialLoading:b,isLoading:b,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:u.dataUpdateCount>0||u.errorUpdateCount>0,isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:y&&!v,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&v,isStale:qe(e,t),refetch:this.refetch}}updateResult(e){const t=this.#C,n=this.createResult(this.#k,this.options);if(this.#A=this.#k.state,this.#T=this.options,void 0!==this.#A.data&&(this.#N=this.#k),de(n,t))return;this.#C=n;const r={};!1!==e?.listeners&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!this.#L.size)return!0;const r=new Set(n??this.#L);return this.options.throwOnError&&r.add("error"),Object.keys(this.#C).some((e=>{const n=e;return this.#C[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),this.#W({...r,...e})}#B(){const e=this.#E.getQueryCache().build(this.#E,this.options);if(e===this.#k)return;const t=this.#k;this.#k=e,this.#O=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#U()}#W(e){Ce.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(this.#C)})),this.#E.getQueryCache().notify({query:this.#k,type:"observerResultsUpdated"})}))}};function ze(e,t){return function(e,t){return!1!==ie(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Be(e,t,t.refetchOnMount)}function Be(e,t,n){if(!1!==ie(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&qe(e,t)}return!1}function Ve(e,t,n,r){return(e!==t||!1===ie(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&qe(e,n)}function qe(e,t){return!1!==ie(t.enabled,e)&&e.isStaleByTime(re(t.staleTime,e))}var He,We,$e,Qe,Ke=class extends J{#E;#C=void 0;#$;#Q;constructor(e,t){super(),this.#E=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#E.defaultMutationOptions(e),de(this.options,t)||this.#E.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#$,observer:this}),t?.mutationKey&&this.options.mutationKey&&le(t.mutationKey)!==le(this.options.mutationKey)?this.reset():"pending"===this.#$?.state.status&&this.#$.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#$?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#W(e)}getCurrentResult(){return this.#C}reset(){this.#$?.removeObserver(this),this.#$=void 0,this.#K(),this.#W()}mutate(e,t){return this.#Q=t,this.#$?.removeObserver(this),this.#$=this.#E.getMutationCache().build(this.#E,this.options),this.#$.addObserver(this),this.#$.execute(e)}#K(){const e=this.#$?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#C={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#W(e){Ce.batch((()=>{if(this.#Q&&this.hasListeners()){const t=this.#C.variables,n=this.#C.context;"success"===e?.type?(this.#Q.onSuccess?.(e.data,t,n),this.#Q.onSettled?.(e.data,null,t,n)):"error"===e?.type&&(this.#Q.onError?.(e.error,t,n),this.#Q.onSettled?.(void 0,e.error,t,n))}this.listeners.forEach((e=>{e(this.#C)}))}))}},Ye=0,Ge=[],Xe=t,Je=Xe.__b,Ze=Xe.__r,et=Xe.diffed,tt=Xe.__c,nt=Xe.unmount,rt=Xe.__;function it(e,t){Xe.__h&&Xe.__h(We,e,Ye||t),Ye=0;var n=We.__H||(We.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function at(e){return Ye=1,ot(xt,e)}function ot(e,t,n){var r=it(He++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):xt(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=We,!We.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!a||a.call(this,e,t,n);var o=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&r.__c.props===e)&&(!a||a.call(this,e,t,n))};We.u=!0;var a=We.shouldComponentUpdate,o=We.componentWillUpdate;We.componentWillUpdate=function(e,t,n){if(this.__e){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},We.shouldComponentUpdate=i}return r.__N||r.__}function st(e,t){var n=it(He++,3);!Xe.__s&&wt(n.__H,t)&&(n.__=e,n.i=t,We.__H.__h.push(n))}function lt(e,t){var n=it(He++,4);!Xe.__s&&wt(n.__H,t)&&(n.__=e,n.i=t,We.__h.push(n))}function ct(e){return Ye=5,dt((function(){return{current:e}}),[])}function ut(e,t,n){Ye=6,lt((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 dt(e,t){var n=it(He++,7);return wt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ft(e,t){return Ye=8,dt((function(){return e}),t)}function ht(e){var t=We.context[e.__c],n=it(He++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(We)),t.props.value):e.__}function pt(e,t){Xe.useDebugValue&&Xe.useDebugValue(t?t(e):e)}function mt(){var e=it(He++,11);if(!e.__){for(var t=We.__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 gt(){for(var e;e=Ge.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(vt),e.__H.__h.forEach(_t),e.__H.__h=[]}catch(t){e.__H.__h=[],Xe.__e(t,e.__v)}}Xe.__b=function(e){We=null,Je&&Je(e)},Xe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),rt&&rt(e,t)},Xe.__r=function(e){Ze&&Ze(e),He=0;var t=(We=e.__c).__H;t&&($e===We?(t.__h=[],We.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(vt),t.__h.forEach(_t),t.__h=[],He=0)),$e=We},Xe.diffed=function(e){et&&et(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Ge.push(t)&&Qe===Xe.requestAnimationFrame||((Qe=Xe.requestAnimationFrame)||bt)(gt)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),$e=We=null},Xe.__c=function(e,t){t.some((function(e){try{e.__h.forEach(vt),e.__h=e.__h.filter((function(e){return!e.__||_t(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Xe.__e(n,e.__v)}})),tt&&tt(e,t)},Xe.unmount=function(e){nt&&nt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{vt(e)}catch(n){t=n}})),n.__H=void 0,t&&Xe.__e(t,n.__v))};var yt="function"==typeof requestAnimationFrame;function bt(e){var t,n=function(){clearTimeout(r),yt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);yt&&(t=requestAnimationFrame(n))}function vt(e){var t=We,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),We=t}function _t(e){var t=We;e.__c=e.__(),We=t}function wt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function xt(e,t){return"function"==typeof t?t(e):t}function Et(e,t){for(var n in t)e[n]=t[n];return e}function St(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 kt(e,t){this.props=e,this.context=t}function Ot(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:St(this.props,e)}function r(t){return this.shouldComponentUpdate=n,y(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(kt.prototype=new w).isPureReactComponent=!0,kt.prototype.shouldComponentUpdate=function(e,t){return St(this.props,e)||St(this.state,t)};var Ct=t.__b;t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Ct&&Ct(e)};var At="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Tt(e){function t(t){var n=Et({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=At,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Rt=function(e,t){return null==e?null:A(A(e).map(t))},It={map:Rt,forEach:Rt,count:function(e){return e?A(e).length:0},only:function(e){var t=A(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:A},Nt=t.__e;t.__e=function(e,t,n,r){if(e.then)for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Nt(e,t,n,r)};var Dt=t.unmount;function Pt(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=Et({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Pt(e,t,n)}))),e}function Ft(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Ft(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 Lt(){this.__u=0,this.t=null,this.__b=null}function Mt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ut(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return y(n,i)}return i.displayName="Lazy",i.__f=!0,i}function jt(){this.u=null,this.o=null}t.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Dt&&Dt(e)},(Lt.prototype=new w).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=Mt(r.__v),a=!1,o=function(){a||(a=!0,n.__R=null,i?i(s):s())};n.__R=o;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Ft(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(o,o)},Lt.prototype.componentWillUnmount=function(){this.t=[]},Lt.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]=Pt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&y(_,null,e.fallback);return i&&(i.__u&=-33),[y(_,null,t.__a?null:e.children),i]};var zt=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 Bt(e){return this.getChildContext=function(){return e.context},e.children}function Vt(e){var t=this,n=e.i;t.componentWillUnmount=function(){U(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(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)}}),U(y(Bt,{context:t.context},e.__v),t.l)}function qt(e,t){var n=y(Vt,{__v:e,i:t});return n.containerInfo=t,n}(jt.prototype=new w).__a=function(e){var t=this,n=Mt(t.__v),r=t.o.get(e);return r[0]++,function(i){var a=function(){t.props.revealOrder?(r.push(i),zt(t,e,r)):i()};n?n(a):a()}},jt.prototype.render=function(e){this.u=null,this.o=new Map;var t=A(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},jt.prototype.componentDidUpdate=jt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){zt(e,n,t)}))};var Ht="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,Wt=/^(?: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]/,$t=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Qt=/[A-Z0-9]/g,Kt="undefined"!=typeof document,Yt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Gt(e,t,n){return null==t.__k&&(t.textContent=""),U(e,t),"function"==typeof n&&n(),e?e.__c:null}function Xt(e,t,n){return j(e,t),"function"==typeof n&&n(),e?e.__c:null}w.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(w.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Jt=t.event;function Zt(){}function en(){return this.cancelBubble}function tn(){return this.defaultPrevented}t.event=function(e){return Jt&&(e=Jt(e)),e.persist=Zt,e.isPropagationStopped=en,e.isDefaultPrevented=tn,e.nativeEvent=e};var nn,rn={enumerable:!1,configurable:!0,get:function(){return this.class}},an=t.vnode;t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var a in t){var o=t[a];if(!("value"===a&&"defaultValue"in t&&null==o||Kt&&"children"===a&&"noscript"===n||"class"===a||"className"===a)){var s=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===o?o="":"translate"===s&&"no"===o?o=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?a="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||Yt(t.type)?"onfocus"===s?a="onfocusin":"onblur"===s?a="onfocusout":$t.test(a)&&(a=s):s=a="oninput":i&&Wt.test(a)?a=a.replace(Qt,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===s&&r[a=s]&&(a="oninputCapture"),r[a]=o}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=A(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=A(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",rn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=Ht,an&&an(e)};var on=t.__r;t.__r=function(e){on&&on(e),nn=e.__c};var sn=t.diffed;t.diffed=function(e){sn&&sn(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),nn=null};var ln={ReactCurrentDispatcher:{current:{readContext:function(e){return nn.__n[e.__c].props.value},useCallback:ft,useContext:ht,useDebugValue:pt,useDeferredValue:_n,useEffect:st,useId:mt,useImperativeHandle:ut,useInsertionEffect:xn,useLayoutEffect:lt,useMemo:dt,useReducer:ot,useRef:ct,useState:at,useSyncExternalStore:Sn,useTransition:wn}}};function cn(e){return y.bind(null,e)}function un(e){return!!e&&e.$$typeof===Ht}function dn(e){return un(e)&&e.type===_}function fn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function hn(e){return un(e)?z.apply(null,arguments):e}function pn(e){return!!e.__k&&(U(null,e),!0)}function mn(e){return e&&(e.base||1===e.nodeType&&e)||null}var gn=function(e,t){return e(t)},yn=function(e,t){return e(t)},bn=_;function vn(e){e()}function _n(e){return e}function wn(){return[!1,vn]}var xn=lt,En=un;function Sn(e,t){var n=t(),r=at({h:{__:n,v:t}}),i=r[0].h,a=r[1];return lt((function(){i.__=n,i.v=t,kn(i)&&a({h:i})}),[e,n,t]),st((function(){return kn(i)&&a({h:i}),e((function(){kn(i)&&a({h:i})}))}),[e]),n}function kn(e){var t,n,r=e.v,i=e.__;try{var a=r();return!((t=i)===(n=a)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(o){return!0}}var On={useState:at,useId:mt,useReducer:ot,useEffect:st,useLayoutEffect:lt,useInsertionEffect:xn,useTransition:wn,useDeferredValue:_n,useSyncExternalStore:Sn,startTransition:vn,useRef:ct,useImperativeHandle:ut,useMemo:dt,useCallback:ft,useContext:ht,useDebugValue:pt,version:"17.0.2",Children:It,render:Gt,hydrate:Xt,unmountComponentAtNode:pn,createPortal:qt,createElement:y,createContext:B,createFactory:cn,cloneElement:hn,createRef:v,Fragment:_,isValidElement:un,isElement:En,isFragment:dn,isMemo:fn,findDOMNode:mn,Component:w,PureComponent:kt,memo:Ot,forwardRef:Tt,flushSync:yn,unstable_batchedUpdates:gn,StrictMode:bn,Suspense:Lt,SuspenseList:jt,lazy:Ut,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ln};const Cn=Object.freeze(Object.defineProperty({__proto__:null,Children:It,Component:w,Fragment:_,PureComponent:kt,StrictMode:bn,Suspense:Lt,SuspenseList:jt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:ln,cloneElement:hn,createContext:B,createElement:y,createFactory:cn,createPortal:qt,createRef:v,default:On,findDOMNode:mn,flushSync:yn,forwardRef:Tt,hydrate:Xt,isElement:En,isFragment:dn,isMemo:fn,isValidElement:un,lazy:Ut,memo:Ot,render:Gt,startTransition:vn,unmountComponentAtNode:pn,unstable_batchedUpdates:gn,useCallback:ft,useContext:ht,useDebugValue:pt,useDeferredValue:_n,useEffect:st,useErrorBoundary:function(e){var t=it(He++,10),n=at();return t.__=e,We.componentDidCatch||(We.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:mt,useImperativeHandle:ut,useInsertionEffect:xn,useLayoutEffect:lt,useMemo:dt,useReducer:ot,useRef:ct,useState:at,useSyncExternalStore:Sn,useTransition:wn,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var An=B(void 0),Tn=e=>{const t=ht(An);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Rn=({client:e,children:t})=>(st((()=>(e.mount(),()=>{e.unmount()})),[e]),X(An.Provider,{value:e,children:t})),In=B(!1),Nn=()=>ht(In);In.Provider;var Dn=B(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),Pn=()=>ht(Dn);function Fn(e,t){return"function"==typeof e?e(...t):!!e}function Ln(){}var Mn,Un,jn,zn,Bn=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},Vn=e=>{st((()=>{e.clearReset()}),[e])},qn=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Fn(n,[e.error,r]),Hn=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},Wn=(e,t)=>e?.suspense&&t.isPending,$n=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function Qn(e,t){return function(e,t){const n=Tn(),r=Nn(),i=Pn(),a=n.defaultQueryOptions(e);n.getDefaultOptions().queries?._experimental_beforeQuery?.(a),a._optimisticResults=r?"isRestoring":"optimistic",Hn(a),Bn(a,i),Vn(i);const[o]=at((()=>new t(n,a))),s=o.getOptimisticResult(a);if(Sn(ft((e=>{const t=r?()=>{}:o.subscribe(Ce.batchCalls(e));return o.updateResult(),t}),[o,r]),(()=>o.getCurrentResult())),st((()=>{o.setOptions(a,{listeners:!1})}),[a,o]),Wn(a,s))throw $n(a,o,i);if(qn({result:s,errorResetBoundary:i,throwOnError:a.throwOnError,query:n.getQueryCache().get(a.queryHash)}))throw s.error;return n.getDefaultOptions().queries?._experimental_afterQuery?.(a,s),a.notifyOnChangeProps?s:o.trackResult(s)}(e,je)}function Kn(e,t){const n=Tn(),[r]=at((()=>new Ke(n,e)));st((()=>{r.setOptions(e)}),[r,e]);const i=Sn(ft((e=>r.subscribe(Ce.batchCalls(e))),[r]),(()=>r.getCurrentResult())),a=ft(((e,t)=>{r.mutate(e,t).catch(Ln)}),[r]);if(i.error&&Fn(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function Yn(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Yn(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Gn(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Yn(e))&&(r&&(r+=" "),r+=t);return r}function Xn(){return Xn=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},Xn.apply(this,arguments)}function Jn(e){void 0===e&&(e={});let t,{initialEntries:n=["/"],initialIndex:r,v5Compat:i=!1}=e;t=n.map(((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0)));let a=l(null==r?t.length-1:r),o=Mn.Pop,s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[a]}function u(e,n,r){void 0===n&&(n=null);let i=function(e,t,n,r){void 0===n&&(n=null);let i=Xn({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?nr(t):t,{state:n,key:t&&t.key||r||tr()});return i}(t?c().pathname:"/",e,n,r);return er("/"===i.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),i}function d(e){return"string"==typeof e?e:function(e){let{pathname:t="/",search:n="",hash:r=""}=e;n&&"?"!==n&&(t+="?"===n.charAt(0)?n:"?"+n);r&&"#"!==r&&(t+="#"===r.charAt(0)?r:"#"+r);return t}(e)}return{get index(){return a},get action(){return o},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?nr(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){o=Mn.Push;let r=u(e,n);a+=1,t.splice(a,t.length,r),i&&s&&s({action:o,location:r,delta:1})},replace(e,n){o=Mn.Replace;let r=u(e,n);t[a]=r,i&&s&&s({action:o,location:r,delta:0})},go(e){o=Mn.Pop;let n=l(a+e),r=t[n];a=n,s&&s({action:o,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function Zn(e,t){if(!1===e||null==e)throw new Error(t)}function er(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(n){}}}function tr(){return Math.random().toString(36).substr(2,8)}function nr(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function rr(e,t,n){return void 0===n&&(n="/"),function(e,t,n){let r="string"==typeof t?nr(t):t,i=yr(r.pathname||"/",n);if(null==i)return null;let a=ir(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(a);let o=null;for(let s=0;null==o&&s<a.length;++s){let e=gr(i);o=pr(a[s],e)}return o}(e,t,n)}function ir(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,a)=>{let o={relativePath:void 0===a?e.path||"":a,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};o.relativePath.startsWith("/")&&(Zn(o.relativePath.startsWith(r),'Absolute route path "'+o.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),o.relativePath=o.relativePath.slice(r.length));let s=Sr([r,o.relativePath]),l=n.concat(o);e.children&&e.children.length>0&&(Zn(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),ir(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:hr(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of ar(e.path))i(e,t,r);else i(e,t)})),t}function ar(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(0===r.length)return i?[a,""]:[a];let o=ar(r.join("/")),s=[];return s.push(...o.map((e=>""===e?a:[a,e].join("/")))),i&&s.push(...o),s.map((t=>e.startsWith("/")&&""===t?"/":t))}(Un=Mn||(Mn={})).Pop="POP",Un.Push="PUSH",Un.Replace="REPLACE",(zn=jn||(jn={})).data="data",zn.deferred="deferred",zn.redirect="redirect",zn.error="error";const or=/^:[\w-]+$/,sr=3,lr=2,cr=1,ur=10,dr=-2,fr=e=>"*"===e;function hr(e,t){let n=e.split("/"),r=n.length;return n.some(fr)&&(r+=dr),t&&(r+=lr),n.filter((e=>!fr(e))).reduce(((e,t)=>e+(or.test(t)?sr:""===t?cr:ur)),r)}function pr(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s<r.length;++s){let e=r[s],n=s===r.length-1,l="/"===a?t:t.slice(a.length)||"/",c=mr({path:e.relativePath,caseSensitive:e.caseSensitive,end:n},l),u=e.route;if(!c)return null;Object.assign(i,c.params),o.push({params:i,pathname:Sr([a,c.pathname]),pathnameBase:kr(Sr([a,c.pathnameBase])),route:u}),"/"!==c.pathnameBase&&(a=Sr([a,c.pathnameBase]))}return o}function mr(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=!0);er("*"===e||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were "'+e.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+e.replace(/\*$/,"/*")+'".');let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,((e,t,n)=>(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let a=new RegExp(i,t?void 0:"i");return[a,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),s=i.slice(1);return{params:r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=s[n]||"";o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:a,pathnameBase:o,pattern:e}}function gr(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return er(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function yr(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}const br=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,vr=e=>br.test(e);function _r(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}function wr(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function xr(e,t){let n=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function Er(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=nr(e):(i=Xn({},e),Zn(!i.pathname||!i.pathname.includes("?"),wr("?","pathname","search",i)),Zn(!i.pathname||!i.pathname.includes("#"),wr("#","pathname","hash",i)),Zn(!i.search||!i.search.includes("#"),wr("#","search","hash",i)));let a,o=""===e||""===i.pathname,s=o?"/":i.pathname;if(null==s)a=n;else{let e=t.length-1;if(!r&&s.startsWith("..")){let t=s.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}a=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let n,{pathname:r,search:i="",hash:a=""}="string"==typeof e?nr(e):e;if(r)if(vr(r))n=r;else{if(r.includes("//")){let e=r;r=r.replace(/\/\/+/g,"/"),er(!1,"Pathnames cannot have embedded double slashes - normalizing "+e+" -> "+r)}n=r.startsWith("/")?_r(r.substring(1),"/"):_r(r,t)}else n=t;return{pathname:n,search:Or(i),hash:Cr(a)}}(i,a),c=s&&"/"!==s&&s.endsWith("/"),u=(o||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Sr=e=>e.join("/").replace(/\/\/+/g,"/"),kr=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Or=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",Cr=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";const Ar=["post","put","patch","delete"];new Set(Ar);const Tr=["get",...Ar];function Rr(){return Rr=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},Rr.apply(this,arguments)}new Set(Tr);const Ir=B(null),Nr=B(null),Dr=B(null),Pr=B(null),Fr=B({outlet:null,matches:[],isDataRoute:!1}),Lr=B(null);function Mr(){return null!=ht(Pr)}function Ur(){return Mr()||Zn(!1),ht(Pr).location}function jr(e){ht(Dr).static||lt(e)}function zr(){let{isDataRoute:e}=ht(Fr);return e?function(){let{router:e}=function(){let e=ht(Ir);return e||Zn(!1),e}($r.UseNavigateStable),t=Kr(Qr.UseNavigateStable),n=ct(!1);return jr((()=>{n.current=!0})),ft((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Rr({fromRouteId:t},i)))}),[e,t])}():function(){Mr()||Zn(!1);let e=ht(Ir),{basename:t,future:n,navigator:r}=ht(Dr),{matches:i}=ht(Fr),{pathname:a}=Ur(),o=JSON.stringify(xr(i,n.v7_relativeSplatPath)),s=ct(!1);return jr((()=>{s.current=!0})),ft((function(n,i){if(void 0===i&&(i={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=Er(n,JSON.parse(o),a,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Sr([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[t,r,o,a,e])}()}function Br(e,t){return function(e,t,n,r){Mr()||Zn(!1);let{navigator:i}=ht(Dr),{matches:a}=ht(Fr),o=a[a.length-1],s=o?o.params:{};!o||o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c,u=Ur();if(t){var d;let e="string"==typeof t?nr(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||Zn(!1),c=e}else c=u;let f=c.pathname||"/",h=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");h="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let p=rr(e,{pathname:h}),m=function(e,t,n,r){var i;void 0===t&&(t=[]);void 0===n&&(n=null);void 0===r&&(r=null);if(null==e){var a;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(a=r)&&a.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let o=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=o.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||Zn(!1),o=o.slice(0,Math.min(o.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<o.length;u++){let e=o[u];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=u),e.route.id){let{loaderData:t,errors:r}=n,i=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||i){l=!0,o=c>=0?o.slice(0,c+1):[o[0]];break}}}return o.reduceRight(((e,r,i)=>{let a,u=!1,d=null,f=null;var h;n&&(a=s&&r.route.id?s[r.route.id]:void 0,d=r.route.errorElement||qr,l&&(c<0&&0===i?(Yr[h="route-fallback"]||(Yr[h]=!0),u=!0,f=null):c===i&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(o.slice(0,i+1)),m=()=>{let t;return t=a?d:u?f:r.route.Component?y(r.route.Component,null):r.route.element?r.route.element:e,y(Wr,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?y(Hr,{location:n.location,revalidation:n.revalidation,component:d,error:a,children:m(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):m()}),null)}(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Sr([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Sr([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),a,n,r);if(t&&m)return y(Pr.Provider,{value:{location:Rr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Mn.Pop}},m);return m}(e,t)}function Vr(){let e=function(){var e;let t=ht(Lr),n=function(){let e=ht(Nr);return e||Zn(!1),e}(),r=Kr();if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=function(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return y(_,null,y("h2",null,"Unexpected Application Error!"),y("h3",{style:{fontStyle:"italic"}},t),n?y("pre",{style:r},n):null,null)}const qr=y(Vr,null);class Hr extends w{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?y(Fr.Provider,{value:this.props.routeContext},y(Lr.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Wr(e){let{routeContext:t,match:n,children:r}=e,i=ht(Ir);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y(Fr.Provider,{value:t},r)}var $r=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}($r||{}),Qr=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Qr||{});function Kr(e){let t=function(){let e=ht(Fr);return e||Zn(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||Zn(!1),n.route.id}const Yr={};const Gr=Cn.startTransition;function Xr(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:a}=e,o=ct();null==o.current&&(o.current=Jn({initialEntries:r,initialIndex:i,v5Compat:!0}));let s=o.current,[l,c]=at({action:s.action,location:s.location}),{v7_startTransition:u}=a||{},d=ft((e=>{u&&Gr?Gr((()=>c(e))):c(e)}),[c,u]);return lt((()=>s.listen(d)),[s,d]),st((()=>{return null==(e=a)||e.v7_startTransition,void(null==e||e.v7_relativeSplatPath);var e}),[a]),y(ei,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:a})}function Jr(e){let{to:t,replace:n,state:r,relative:i}=e;Mr()||Zn(!1);let{future:a,static:o}=ht(Dr),{matches:s}=ht(Fr),{pathname:l}=Ur(),c=zr(),u=Er(t,xr(s,a.v7_relativeSplatPath),l,"path"===i),d=JSON.stringify(u);return st((()=>c(JSON.parse(d),{replace:n,state:r,relative:i})),[c,d,i,n,r]),null}function Zr(e){Zn(!1)}function ei(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Mn.Pop,navigator:a,static:o=!1,future:s}=e;Mr()&&Zn(!1);let l=t.replace(/^\/*/,"/"),c=dt((()=>({basename:l,navigator:a,static:o,future:Rr({v7_relativeSplatPath:!1},s)})),[l,s,a,o]);"string"==typeof r&&(r=nr(r));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default"}=r,m=dt((()=>{let e=yr(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:h,key:p},navigationType:i}}),[l,u,d,f,h,p,i]);return null==m?null:y(Dr.Provider,{value:c},y(Pr.Provider,{children:n,value:m}))}function ti(e){let{children:t,location:n}=e;return Br(ni(t),n)}function ni(e,t){void 0===t&&(t=[]);let n=[];return It.forEach(e,((e,r)=>{if(!un(e))return;let i=[...t,r];if(e.type===_)return void n.push.apply(n,ni(e.props.children,i));e.type!==Zr&&Zn(!1),e.props.index&&e.props.children&&Zn(!1);let a={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ni(e.props.children,i)),n.push(a)})),n}function ri(){return ri=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},ri.apply(null,arguments)}function ii(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}function ai(e,t){return(ai=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function oi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ai(e,t)}function si(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}new Promise((()=>{}));var li,ci,ui,di,fi,hi={exports:{}};function pi(){if(ci)return li;ci=1;return li="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}function mi(){if(di)return ui;di=1;var e=pi();function t(){}function n(){}return n.resetWarningCache=t,ui=function(){function r(t,n,r,i,a,o){if(o!==e){var s=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 s.name="Invariant Violation",s}}function i(){return r}r.isRequired=r;var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a}}function gi(){return fi||(fi=1,hi.exports=mi()()),hi.exports}const yi=si(gi());function bi(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const vi=!1,_i=On.createContext(null);var wi=function(e){return e.scrollTop},xi="unmounted",Ei="exited",Si="entering",ki="entered",Oi="exiting",Ci=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(i=Ei,r.appearStatus=Si):i=ki:i=t.unmountOnExit||t.mountOnEnter?xi:Ei,r.state={status:i},r.nextCallback=null,r}oi(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===xi?{status:Ei}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==Si&&n!==ki&&(t=Si):n!==Si&&n!==ki||(t=Oi)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t)if(this.cancelNextCallback(),t===Si){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:On.findDOMNode(this);n&&wi(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ei&&this.setState({status:xi})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[On.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||vi?this.safeSetState({status:ki},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,o),this.safeSetState({status:Si},(function(){t.props.onEntering(a,o),t.onTransitionEnd(l,(function(){t.safeSetState({status:ki},(function(){t.props.onEntered(a,o)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:On.findDOMNode(this);t&&!vi?(this.props.onExit(r),this.safeSetState({status:Oi},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Ei},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Ei},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:On.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===xi)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=ii(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return On.createElement(_i.Provider,{value:null},"function"==typeof n?n(e,r):On.cloneElement(On.Children.only(n),r))},t}(On.Component);function Ai(){}Ci.contextType=_i,Ci.propTypes={},Ci.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ai,onEntering:Ai,onEntered:Ai,onExit:Ai,onExiting:Ai,onExited:Ai},Ci.UNMOUNTED=xi,Ci.EXITED=Ei,Ci.ENTERING=Si,Ci.ENTERED=ki,Ci.EXITING=Oi;var Ti=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=bi(n.className,r):n.setAttribute("class",bi(n.className&&n.className.baseVal||"",r)));var n,r}))},Ri=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1];t.removeClasses(i,"exit"),t.addClass(i,a?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.addClass(i,a,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],a=r[1]?"appear":"enter";t.removeClasses(i,a),t.addClass(i,a,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,i=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:i,activeClassName:r?i+"-active":n[e+"Active"],doneClassName:r?i+"-done":n[e+"Done"]}},t}oi(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(r+=" "+i),"active"===n&&e&&wi(e),r&&(this.appliedClasses[t][n]=r,function(e,t){e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"==typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)));var n,r}))}(e,r))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,i=n.active,a=n.done;this.appliedClasses[t]={},r&&Ti(e,r),i&&Ti(e,i),a&&Ti(e,a)},n.render=function(){var e=this.props;e.classNames;var t=ii(e,["classNames"]);return On.createElement(Ci,ri({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(On.Component);function Ii(e,t){var n=Object.create(null);return e&&It.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&un(e)?t(e):e}(e)})),n}function Ni(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Di(e,t,n){var r=Ii(e.children),i=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),a=[];for(var o in e)o in t?a.length&&(i[o]=a,a=[]):a.push(o);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var c=i[l][r];s[i[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(t,r);return Object.keys(i).forEach((function(a){var o=i[a];if(un(o)){var s=a in t,l=a in r,c=t[a],u=un(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&un(c)&&(i[a]=hn(o,{onExited:n.bind(null,o),in:c.props.in,exit:Ni(o,"exit",e),enter:Ni(o,"enter",e)})):i[a]=hn(o,{in:!1}):i[a]=hn(o,{onExited:n.bind(null,o),in:!0,exit:Ni(o,"exit",e),enter:Ni(o,"enter",e)})}})),i}Ri.defaultProps={classNames:""},Ri.propTypes={};var Pi=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Fi=function(e){function t(t,n){var r,i=(r=e.call(this,t,n)||this).handleExited.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}oi(t,e);var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n,r,i=t.children,a=t.handleExited;return{children:t.firstRender?(n=e,r=a,Ii(n.children,(function(e){return hn(e,{onExited:r.bind(null,e),in:!0,appear:Ni(e,"appear",n),enter:Ni(e,"enter",n),exit:Ni(e,"exit",n)})}))):Di(e,i,a),firstRender:!1}},n.handleExited=function(e,t){var n=Ii(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=ri({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=ii(e,["component","childFactory"]),i=this.state.contextValue,a=Pi(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?On.createElement(_i.Provider,{value:i},a):On.createElement(_i.Provider,{value:i},On.createElement(t,r,a))},t}(On.Component);Fi.propTypes={},Fi.defaultProps={component:"div",childFactory:function(e){return e}};function Li(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mi(Object(n),!0).forEach((function(t){Li(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ji=()=>{};let zi={},Bi={},Vi=null,qi={mark:ji,measure:ji};try{"undefined"!=typeof window&&(zi=window),"undefined"!=typeof document&&(Bi=document),"undefined"!=typeof MutationObserver&&(Vi=MutationObserver),"undefined"!=typeof performance&&(qi=performance)}catch(og){}const{userAgent:Hi=""}=zi.navigator||{},Wi=zi,$i=Bi,Qi=Vi,Ki=qi;Wi.document;const Yi=!!$i.documentElement&&!!$i.head&&"function"==typeof $i.addEventListener&&"function"==typeof $i.createElement,Gi=~Hi.indexOf("MSIE")||~Hi.indexOf("Trident/");var Xi={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},Ji=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Zi="classic",ea="duotone",ta=[Zi,ea,"sharp","sharp-duotone"],na=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),ra=["fak","fa-kit","fakd","fa-kit-duotone"],ia={fak:"kit","fa-kit":"kit"},aa={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},oa=["fak","fakd"],sa={kit:"fak"},la={"kit-duotone":"fakd"},ca={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ua=["fak","fa-kit","fakd","fa-kit-duotone"],da={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},fa=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ha=[1,2,3,4,5,6,7,8,9,10],pa=ha.concat([11,12,13,14,15,16,17,18,19,20]),ma=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ca.GROUP,ca.SWAP_OPACITY,ca.PRIMARY,ca.SECONDARY].concat(ha.map((e=>"".concat(e,"x")))).concat(pa.map((e=>"w-".concat(e))));const ga="___FONT_AWESOME___",ya=16,ba="fa",va="svg-inline--fa",_a="data-fa-i2svg",wa="data-fa-pseudo-element",xa="data-fa-pseudo-element-pending",Ea="data-prefix",Sa="data-icon",ka="fontawesome-i2svg",Oa="async",Ca=["HTML","HEAD","STYLE","SCRIPT"],Aa=(()=>{try{return!0}catch(e){return!1}})();function Ta(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[Zi]})}const Ra=Ui({},Xi);Ra[Zi]=Ui(Ui(Ui(Ui({},{"fa-duotone":"duotone"}),Xi[Zi]),ia),aa);const Ia=Ta(Ra),Na=Ui({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});Na[Zi]=Ui(Ui(Ui(Ui({},{duotone:"fad"}),Na[Zi]),sa),la);const Da=Ta(Na),Pa=Ui({},da);Pa[Zi]=Ui(Ui({},Pa[Zi]),{fak:"fa-kit"});const Fa=Ta(Pa),La=Ui({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});La[Zi]=Ui(Ui({},La[Zi]),{"fa-kit":"fak"}),Ta(La);const Ma=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Ua="fa-layers-text",ja=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;Ta(Ui({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}}));const za=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ba={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},Va=["kit",...ma],qa=Wi.FontAwesomeConfig||{};if($i&&"function"==typeof $i.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,n]=e;const r=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=$i.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(qa[n]=r)}))}const Ha={styleDefault:"solid",familyDefault:Zi,cssPrefix:ba,replacementClass:va,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};qa.familyPrefix&&(qa.cssPrefix=qa.familyPrefix);const Wa=Ui(Ui({},Ha),qa);Wa.autoReplaceSvg||(Wa.observeMutations=!1);const $a={};Object.keys(Ha).forEach((e=>{Object.defineProperty($a,e,{enumerable:!0,set:function(t){Wa[e]=t,Qa.forEach((e=>e($a)))},get:function(){return Wa[e]}})})),Object.defineProperty($a,"familyPrefix",{enumerable:!0,set:function(e){Wa.cssPrefix=e,Qa.forEach((e=>e($a)))},get:function(){return Wa.cssPrefix}}),Wi.FontAwesomeConfig=$a;const Qa=[];const Ka=ya,Ya={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};const Ga="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function Xa(){let e=12,t="";for(;e-- >0;)t+=Ga[62*Math.random()|0];return t}function Ja(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Za(e){return e.classList?Ja(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function eo(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function to(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function no(e){return e.size!==Ya.size||e.x!==Ya.x||e.y!==Ya.y||e.rotate!==Ya.rotate||e.flipX||e.flipY}var ro=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n transform: translate(-50%, -50%);\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-counter-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n transform: scale(var(--fa-layers-scale, 0.25));\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(-1 * var(--fa-li-width, 2em));\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n animation-name: fa-beat;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n animation-name: fa-bounce;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n animation-name: fa-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n animation-name: fa-beat-fade;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n animation-name: fa-flip;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n animation-name: fa-shake;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n animation-name: fa-spin;\n animation-delay: var(--fa-animation-delay, 0s);\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 2s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n animation-name: fa-spin;\n animation-direction: var(--fa-animation-direction, normal);\n animation-duration: var(--fa-animation-duration, 1s);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n animation-delay: -1ms;\n animation-duration: 1ms;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n transform: scale(1);\n }\n 45% {\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-bounce {\n 0% {\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-flip {\n 50% {\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-shake {\n 0% {\n transform: rotate(-15deg);\n }\n 4% {\n transform: rotate(15deg);\n }\n 8%, 24% {\n transform: rotate(-18deg);\n }\n 12%, 28% {\n transform: rotate(18deg);\n }\n 16% {\n transform: rotate(-22deg);\n }\n 20% {\n transform: rotate(22deg);\n }\n 32% {\n transform: rotate(-12deg);\n }\n 36% {\n transform: rotate(12deg);\n }\n 40%, 100% {\n transform: rotate(0deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}';function io(){const e=ba,t=va,n=$a.cssPrefix,r=$a.replacementClass;let i=ro;if(n!==e||r!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let ao=!1;function oo(){$a.autoAddCss&&!ao&&(!function(e){if(!e||!Yi)return;const t=$i.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=$i.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const e=n[i],t=(e.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(t)>-1&&(r=e)}$i.head.insertBefore(t,r)}(io()),ao=!0)}var so={mixout:()=>({dom:{css:io,insertCss:oo}}),hooks:()=>({beforeDOMElementCreation(){oo()},beforeI2svg(){oo()}})};const lo=Wi||{};lo[ga]||(lo[ga]={}),lo[ga].styles||(lo[ga].styles={}),lo[ga].hooks||(lo[ga].hooks={}),lo[ga].shims||(lo[ga].shims=[]);var co=lo[ga];const uo=[],fo=function(){$i.removeEventListener("DOMContentLoaded",fo),ho=1,uo.map((e=>e()))};let ho=!1;function po(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?eo(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(eo(e[n]),'" ')),"").trim()}(n),">").concat(r.map(po).join(""),"</").concat(t,">")}function mo(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}Yi&&(ho=($i.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test($i.readyState),ho||$i.addEventListener("DOMContentLoaded",fo));var go=function(e,t,n,r){var i,a,o,s=Object.keys(e),l=s.length,c=t;for(void 0===n?(i=1,o=e[s[0]]):(i=0,o=n);i<l;i++)o=c(o,e[a=s[i]],a,e);return o};function yo(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}(e);return 1===t.length?t[0].toString(16):null}function bo(e){return Object.keys(e).reduce(((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t}),{})}function vo(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=bo(t);"function"!=typeof co.hooks.addPack||r?co.styles[e]=Ui(Ui({},co.styles[e]||{}),i):co.hooks.addPack(e,bo(t)),"fas"===e&&vo("fa",t)}const{styles:_o,shims:wo}=co,xo=Object.keys(Fa),Eo=xo.reduce(((e,t)=>(e[t]=Object.keys(Fa[t]),e)),{});let So=null,ko={},Oo={},Co={},Ao={},To={};function Ro(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(a=i,~Va.indexOf(a))?null:i;var a}const Io=()=>{const e=e=>go(_o,((t,n,r)=>(t[r]=go(n,e,{}),t)),{});ko=e(((e,t,n)=>{if(t[3]&&(e[t[3]]=n),t[2]){t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=n}))}return e})),Oo=e(((e,t,n)=>{if(e[n]=n,t[2]){t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n}))}return e})),To=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in _o||$a.autoFetchSvg,n=go(wo,((e,n)=>{const r=n[0];let i=n[1];const a=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:a}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:a}),e}),{names:{},unicodes:{}});Co=n.names,Ao=n.unicodes,So=Uo($a.styleDefault,{family:$a.familyDefault})};var No;function Do(e,t){return(ko[e]||{})[t]}function Po(e,t){return(To[e]||{})[t]}function Fo(e){return Co[e]||{prefix:null,iconName:null}}function Lo(){return So}No=e=>{So=Uo(e.styleDefault,{family:$a.familyDefault})},Qa.push(No),Io();const Mo=()=>({prefix:null,iconName:null,rest:[]});function Uo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=Zi}=t,r=Ia[n][e];if(n===ea&&!e)return"fad";const i=Da[n][e]||Da[n][r],a=e in co.styles?e:null;return i||a||null}function jo(e){return e.sort().filter(((e,t,n)=>n.indexOf(e)===t))}function zo(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=fa.concat(ua),a=jo(e.filter((e=>i.includes(e)))),o=jo(e.filter((e=>!fa.includes(e)))),s=a.filter((e=>(r=e,!Ji.includes(e)))),[l=null]=s,c=function(e){let t=Zi;const n=xo.reduce(((e,t)=>(e[t]="".concat($a.cssPrefix,"-").concat(t),e)),{});return ta.forEach((r=>{(e.includes(n[r])||e.some((e=>Eo[r].includes(e))))&&(t=r)})),t}(a),u=Ui(Ui({},function(e){let t=[],n=null;return e.forEach((e=>{const r=Ro($a.cssPrefix,e);r?n=r:e&&t.push(e)})),{iconName:n,rest:t}}(o)),{},{prefix:Uo(l,{family:c})});return Ui(Ui(Ui({},u),function(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:a={},config:o={}}=e,s=n===ea,l=t.includes("fa-duotone")||t.includes("fad"),c="duotone"===o.familyDefault,u="fad"===r.prefix||"fa-duotone"===r.prefix;!s&&(l||c||u)&&(r.prefix="fad");(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab");if(!r.prefix&&Bo.includes(n)){if(Object.keys(a).find((e=>Vo.includes(e)))||o.autoFetchSvg){const e=na.get(n).defaultShortPrefixId;r.prefix=e,r.iconName=Po(r.prefix,r.iconName)||r.iconName}}"fa"!==r.prefix&&"fa"!==i||(r.prefix=Lo()||"fas");return r}({values:e,family:c,styles:_o,config:$a,canonical:u,givenPrefix:r})),function(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const a="fa"===t?Fo(i):{},o=Po(r,i);i=a.iconName||o||i,r=a.prefix||r,"far"!==r||_o.far||!_o.fas||$a.autoFetchSvg||(r="fas");return{prefix:r,iconName:i}}(n,r,u))}const Bo=ta.filter((e=>e!==Zi||e!==ea)),Vo=Object.keys(da).filter((e=>e!==Zi)).map((e=>Object.keys(da[e]))).flat();let qo=[],Ho={};const Wo={},$o=Object.keys(Wo);function Qo(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return(Ho[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Ko(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Ho[e]||[]).forEach((e=>{e.apply(null,n)}))}function Yo(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Wo[e]?Wo[e].apply(null,t):void 0}function Go(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Lo();if(t)return t=Po(n,t)||t,mo(Xo.definitions,n,t)||mo(co.styles,n,t)}const Xo=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=t.reduce(this._pullDefinitions,{});Object.keys(r).forEach((e=>{this.definitions[e]=Ui(Ui({},this.definitions[e]||{}),r[e]),vo(e,r[e]);const t=Fa[Zi][e];t&&vo(t,r[e]),Io()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((t=>{const{prefix:r,iconName:i,icon:a}=n[t],o=a[2];e[r]||(e[r]={}),o.length>0&&o.forEach((t=>{"string"==typeof t&&(e[r][t]=a)})),e[r][i]=a})),e}},Jo={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Yi?(Ko("beforeI2svg",e),Yo("pseudoElements2svg",e),Yo("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var n;!1===$a.autoReplaceSvg&&($a.autoReplaceSvg=!0),$a.observeMutations=!0,n=()=>{es({autoReplaceSvgRoot:t}),Ko("watch",e)},Yi&&(ho?setTimeout(n,0):uo.push(n))}},Zo={noAuto:()=>{$a.autoReplaceSvg=!1,$a.observeMutations=!1,Ko("noAuto")},config:$a,dom:Jo,parse:{icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Po(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=Uo(e[0]);return{prefix:n,iconName:Po(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat($a.cssPrefix,"-"))>-1||e.match(Ma))){const t=zo(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Lo(),iconName:Po(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Lo();return{prefix:t,iconName:Po(t,e)||e}}}},library:Xo,findIconDefinition:Go,toHtml:po},es=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=$i}=e;(Object.keys(co.styles).length>0||$a.autoFetchSvg)&&Yi&&$a.autoReplaceSvg&&Zo.dom.i2svg({node:t})};function ts(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>po(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Yi)return;const t=$i.createElement("div");return t.innerHTML=e.html,t.children}}),e}function ns(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:a,symbol:o,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:h}=n.found?n:t,p=oa.includes(r),m=[$a.replacementClass,i?"".concat($a.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:Ui(Ui({},u.attributes),{},{"data-prefix":r,"data-icon":i,class:m,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(h)})};const y=p&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/h*16*.0625,"em")}:{};d&&(g.attributes[_a]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||Xa())},children:[s]}),delete g.attributes.title);const b=Ui(Ui({},g),{},{prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:a,symbol:o,styles:Ui(Ui({},y),u.styles)}),{children:v,attributes:_}=n.found&&t.found?Yo("generateAbstractMask",b)||{children:[],attributes:{}}:Yo("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=v,b.attributes=_,o?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:a}=e;const o=!0===a?"".concat(t,"-").concat($a.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ui(Ui({},i),{},{id:o}),children:r}]}]}(b):function(e){let{children:t,main:n,mask:r,attributes:i,styles:a,transform:o}=e;if(no(o)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=to(Ui(Ui({},a),{},{"transform-origin":"".concat(r.x+o.x/16,"em ").concat(r.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(b)}function rs(e){const{content:t,width:n,height:r,transform:i,title:a,extra:o,watchable:s=!1}=e,l=Ui(Ui(Ui({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});s&&(l[_a]="");const c=Ui({},o.styles);no(i)&&(c.transform=function(e){let{transform:t,width:n=ya,height:r=ya,startCentered:i=!1}=e,a="";return a+=i&&Gi?"translate(".concat(t.x/Ka-n/2,"em, ").concat(t.y/Ka-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/Ka,"em), calc(-50% + ").concat(t.y/Ka,"em)) "):"translate(".concat(t.x/Ka,"em, ").concat(t.y/Ka,"em) "),a+="scale(".concat(t.size/Ka*(t.flipX?-1:1),", ").concat(t.size/Ka*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=to(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),a&&d.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),d}const{styles:is}=co;function as(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return i=Array.isArray(r)?{tag:"g",attributes:{class:"".concat($a.cssPrefix,"-").concat(Ba.GROUP)},children:[{tag:"path",attributes:{class:"".concat($a.cssPrefix,"-").concat(Ba.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat($a.cssPrefix,"-").concat(Ba.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const os={found:!1,width:512,height:512};function ss(e,t){let n=t;return"fa"===t&&null!==$a.styleDefault&&(t=Lo()),new Promise(((r,i)=>{if("fa"===n){const n=Fo(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&is[t]&&is[t][e]){return r(as(is[t][e]))}!function(e,t){Aa||$a.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r(Ui(Ui({},os),{},{icon:$a.showMissingIcons&&e&&Yo("missingIconAbstract")||{}}))}))}const ls=()=>{},cs=$a.measurePerformance&&Ki&&Ki.mark&&Ki.measure?Ki:{mark:ls,measure:ls},us='FA "6.7.2"',ds=e=>{cs.mark("".concat(us," ").concat(e," ends")),cs.measure("".concat(us," ").concat(e),"".concat(us," ").concat(e," begins"),"".concat(us," ").concat(e," ends"))};var fs={begin:e=>(cs.mark("".concat(us," ").concat(e," begins")),()=>ds(e)),end:ds};const hs=()=>{};function ps(e){return"string"==typeof(e.getAttribute?e.getAttribute(_a):null)}function ms(e){return $i.createElementNS("http://www.w3.org/2000/svg",e)}function gs(e){return $i.createElement(e)}function ys(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?ms:gs)}=t;if("string"==typeof e)return $i.createTextNode(e);const r=n(e.tag);Object.keys(e.attributes||[]).forEach((function(t){r.setAttribute(t,e.attributes[t])}));return(e.children||[]).forEach((function(e){r.appendChild(ys(e,{ceFn:n}))})),r}const bs={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(ys(e),t)})),null===t.getAttribute(_a)&&$a.keepOriginalSource){let e=$i.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Za(t).indexOf($a.replacementClass))return bs.replace(e);const r=new RegExp("".concat($a.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===$a.replacementClass||t.match(r)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});n[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const i=n.map((e=>po(e))).join("\n");t.setAttribute(_a,""),t.innerHTML=i}};function vs(e){e()}function _s(e,t){const n="function"==typeof t?t:hs;if(0===e.length)n();else{let t=vs;$a.mutateApproach===Oa&&(t=Wi.requestAnimationFrame||vs),t((()=>{const t=!0===$a.autoReplaceSvg?bs.replace:bs[$a.autoReplaceSvg]||bs.replace,r=fs.begin("mutate");e.map(t),r(),n()}))}}let ws=!1;function xs(){ws=!0}function Es(){ws=!1}let Ss=null;function ks(e){if(!Qi)return;if(!$a.observeMutations)return;const{treeCallback:t=hs,nodeCallback:n=hs,pseudoElementsCallback:r=hs,observeMutationsRoot:i=$i}=e;Ss=new Qi((e=>{if(ws)return;const i=Lo();Ja(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!ps(e.addedNodes[0])&&($a.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&$a.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&ps(e.target)&&~za.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(Ea):null,n=e.getAttribute?e.getAttribute(Sa):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=zo(Za(e.target));e.target.setAttribute(Ea,t||i),n&&e.target.setAttribute(Sa,n)}else(a=e.target)&&a.classList&&a.classList.contains&&a.classList.contains($a.replacementClass)&&n(e.target);var a}))})),Yi&&Ss.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Os(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let i=zo(Za(e));return i.prefix||(i.prefix=Lo()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=(a=i.prefix,o=e.innerText,(Oo[a]||{})[o]||Do(i.prefix,yo(e.innerText)))),!i.iconName&&$a.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var a,o}function Cs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=Os(e),a=function(e){const t=Ja(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return $a.autoA11y&&(n?t["aria-labelledby"]="".concat($a.replacementClass,"-title-").concat(r||Xa()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),o=Qo("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce(((e,t)=>{const n=t.split(":"),r=n[0],i=n.slice(1);return r&&i.length>0&&(e[r]=i.join(":").trim()),e}),{})),n}(e):[];return Ui({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:Ya,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:a}},o)}const{styles:As}=co;function Ts(e){const t="nest"===$a.autoReplaceSvg?Cs(e,{styleParser:!1}):Cs(e);return~t.extra.classes.indexOf(Ua)?Yo("generateLayersText",e,t):Yo("generateSvgReplacementMutation",e,t)}function Rs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Yi)return Promise.resolve();const n=$i.documentElement.classList,r=e=>n.add("".concat(ka,"-").concat(e)),i=e=>n.remove("".concat(ka,"-").concat(e)),a=$a.autoFetchSvg?[...ra,...fa]:Ji.concat(Object.keys(As));a.includes("fa")||a.push("fa");const o=[".".concat(Ua,":not([").concat(_a,"])")].concat(a.map((e=>".".concat(e,":not([").concat(_a,"])")))).join(", ");if(0===o.length)return Promise.resolve();let s=[];try{s=Ja(e.querySelectorAll(o))}catch(u){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=fs.begin("onTree"),c=s.reduce(((e,t)=>{try{const n=Ts(t);n&&e.push(n)}catch(u){Aa||"MissingIcon"===u.name&&console.error(u)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{_s(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Is(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Ts(e).then((e=>{e&&_s([e],t)}))}const Ns=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ya,symbol:r=!1,mask:i=null,maskId:a=null,title:o=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:h}=e;return ts(Ui({type:"icon"},e),(()=>(Ko("beforeDOMElementCreation",{iconDefinition:e,params:t}),$a.autoA11y&&(o?c["aria-labelledby"]="".concat($a.replacementClass,"-title-").concat(s||Xa()):(c["aria-hidden"]="true",c.focusable="false")),ns({icons:{main:as(h),mask:i?as(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:Ui(Ui({},Ya),n),symbol:r,title:o,maskId:a,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var Ds={mixout(){return{icon:(e=Ns,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:Go(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:Go(i||{})),e(r,Ui(Ui({},n),{},{mask:i}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Rs,e.nodeCallback=Is,e)}),provides(e){e.i2svg=function(e){const{node:t=$i,callback:n=()=>{}}=e;return Rs(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:i,prefix:a,transform:o,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([ss(n,a),l.iconName?ss(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,ns({icons:{main:d,mask:f},prefix:a,iconName:n,transform:o,symbol:s,maskId:c,title:r,titleId:i,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:i,styles:a}=e;const o=to(a);let s;return o.length>0&&(n.style=o),no(i)&&(s=Yo("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Ps={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return ts({type:"layer"},(()=>{Ko("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e((e=>{Array.isArray(e)?e.map((e=>{r=r.concat(e.abstract)})):r=r.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat($a.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},Fs={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:a={}}=t;return ts({type:"counter",content:e},(()=>(Ko("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i=Ui(Ui(Ui({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=to(r.styles);a.length>0&&(i.style=a);const o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}({content:e.toString(),title:n,extra:{attributes:i,styles:a,classes:["".concat($a.cssPrefix,"-layers-counter"),...r]}}))))}})},Ls={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=Ya,title:r=null,classes:i=[],attributes:a={},styles:o={}}=t;return ts({type:"text",content:e},(()=>(Ko("beforeDOMElementCreation",{content:e,params:t}),rs({content:e,transform:Ui(Ui({},Ya),n),title:r,extra:{attributes:a,styles:o,classes:["".concat($a.cssPrefix,"-layers-text"),...i]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:i}=t;let a=null,o=null;if(Gi){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();a=n.width/t,o=n.height/t}return $a.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,rs({content:e.innerHTML,width:a,height:o,transform:r,title:n,extra:i,watchable:!0})])}}};const Ms=new RegExp('"',"ug"),Us=[1105920,1112319],js=Ui(Ui(Ui(Ui({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),zs=Object.keys(js).reduce(((e,t)=>(e[t.toLowerCase()]=js[t],e)),{}),Bs=Object.keys(zs).reduce(((e,t)=>{const n=zs[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Vs(e,t){const n="".concat(xa).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const a=Ja(e.children).filter((e=>e.getAttribute(wa)===t))[0],o=Wi.getComputedStyle(e,t),s=o.getPropertyValue("font-family"),l=s.match(ja),c=o.getPropertyValue("font-weight"),u=o.getPropertyValue("content");if(a&&!l)return e.removeChild(a),r();if(l&&"none"!==u&&""!==u){const u=o.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(zs[n]||{})[i]||Bs[n]}(s,c);const{value:f,isSecondary:h}=function(e){const t=e.replace(Ms,""),n=function(e,t){const n=e.length;let r,i=e.charCodeAt(t);return i>=55296&&i<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(i-55296)+r-56320+65536:i}(t,0),r=n>=Us[0]&&n<=Us[1],i=2===t.length&&t[0]===t[1];return{value:yo(i?t[0]:t),isSecondary:r||i}}(u),p=l[0].startsWith("FontAwesome");let m=Do(d,f),g=m;if(p){const e=function(e){const t=Ao[e],n=Do("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(m=e.iconName,d=e.prefix)}if(!m||h||a&&a.getAttribute(Ea)===d&&a.getAttribute(Sa)===g)r();else{e.setAttribute(n,g),a&&e.removeChild(a);const o={iconName:null,title:null,titleId:null,prefix:null,transform:Ya,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=o;s.attributes[wa]=t,ss(m,d).then((i=>{const a=ns(Ui(Ui({},o),{},{icons:{main:i,mask:Mo()},prefix:d,iconName:g,extra:s,watchable:!0})),l=$i.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=a.map((e=>po(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function qs(e){return Promise.all([Vs(e,"::before"),Vs(e,"::after")])}function Hs(e){return!(e.parentNode===document.head||~Ca.indexOf(e.tagName.toUpperCase())||e.getAttribute(wa)||e.parentNode&&"svg"===e.parentNode.tagName)}function Ws(e){if(Yi)return new Promise(((t,n)=>{const r=Ja(e.querySelectorAll("*")).filter(Hs).map(qs),i=fs.begin("searchPseudoElements");xs(),Promise.all(r).then((()=>{i(),Es(),t()})).catch((()=>{i(),Es(),n()}))}))}let $s=!1;const Qs=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});const Ks={x:0,y:0,width:"100%",height:"100%"};function Ys(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}!function(e,t){let{mixoutsTo:n}=t;qo=e,Ho={},Object.keys(Wo).forEach((e=>{-1===$o.indexOf(e)&&delete Wo[e]})),qo.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(n[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((r=>{n[e]||(n[e]={}),n[e][r]=t[e][r]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{Ho[e]||(Ho[e]=[]),Ho[e].push(t[e])}))}e.provides&&e.provides(Wo)}))}([so,Ds,Ps,Fs,Ls,{hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Ws,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=$i}=e;$a.searchPseudoElements&&Ws(t)}}},{mixout:()=>({dom:{unwatch(){xs(),$s=!0}}}),hooks:()=>({bootstrap(){ks(Qo("mutationObserverCallbacks",{}))},noAuto(){Ss&&Ss.disconnect()},watch(e){const{observeMutationsRoot:t}=e;$s?Es():ks(Qo("mutationObserverCallbacks",{observeMutationsRoot:t}))}})},{mixout:()=>({parse:{transform:e=>Qs(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=Qs(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e;const a={transform:"translate(".concat(r/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={outer:a,inner:{transform:"".concat(o," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(i/2*-1," -256)")}};return{tag:"g",attributes:Ui({},c.outer),children:[{tag:"g",attributes:Ui({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:Ui(Ui({},t.icon.attributes),c.path)}]}]}}}},{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?zo(n.split(" ").map((e=>e.trim()))):Mo();return r.prefix||(r.prefix=Lo()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:n,main:r,mask:i,maskId:a,transform:o}=e;const{width:s,icon:l}=r,{width:c,icon:u}=i,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(a," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:o,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:Ui(Ui({},Ks),{},{fill:"white"})},h=l.children?{children:l.children.map(Ys)}:{},p={tag:"g",attributes:Ui({},d.inner),children:[Ys(Ui({tag:l.tag,attributes:Ui(Ui({},l.attributes),d.path)},h))]},m={tag:"g",attributes:Ui({},d.outer),children:[p]},g="mask-".concat(a||Xa()),y="clip-".concat(a||Xa()),b={tag:"mask",attributes:Ui(Ui({},Ks),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,m]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(_=u,"g"===_.tag?_.children:[_])},b]};var _;return t.push(v,{tag:"rect",attributes:Ui({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(g,")")},Ks)}),{children:t,attributes:n}}}},{provides(e){let t=!1;Wi.matchMedia&&(t=Wi.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],n={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:Ui(Ui({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const i=Ui(Ui({},r),{},{attributeName:"opacity"}),a={tag:"circle",attributes:Ui(Ui({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||a.children.push({tag:"animate",attributes:Ui(Ui({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ui(Ui({},i),{},{values:"1;0;1;1;0;1;"})}),e.push(a),e.push({tag:"path",attributes:Ui(Ui({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Ui(Ui({},i),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:Ui(Ui({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ui(Ui({},i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=null!==n&&(""===n||n);return e.symbol=r,e}})}],{mixoutsTo:Zo});const Gs=Zo.config,Xs=Zo.library,Js=Zo.dom,Zs=Zo.parse,el=Zo.icon,tl={prefix:"far",iconName:"hexagon-xmark",icon:[512,512,["times-hexagon","xmark-hexagon"],"f2ee","M17.1 292c-12.9-22.3-12.9-49.7 0-72L105.4 67.1c12.9-22.3 36.6-36 62.4-36l176.6 0c25.7 0 49.5 13.7 62.4 36L494.9 220c12.9 22.3 12.9 49.7 0 72L406.6 444.9c-12.9 22.3-36.6 36-62.4 36l-176.6 0c-25.7 0-49.5-13.7-62.4-36L17.1 292zm41.6-48c-4.3 7.4-4.3 16.6 0 24l88.3 152.9c4.3 7.4 12.2 12 20.8 12l176.6 0c8.6 0 16.5-4.6 20.8-12L453.4 268c4.3-7.4 4.3-16.6 0-24L365.1 91.1c-4.3-7.4-12.2-12-20.8-12l-176.6 0c-8.6 0-16.5 4.6-20.8 12L58.6 244zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},nl={prefix:"far",iconName:"chevron-down",icon:[512,512,[],"f078","M239 401c9.4 9.4 24.6 9.4 33.9 0L465 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-175 175L81 175c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9L239 401z"]},rl={prefix:"far",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","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"]},il={prefix:"far",iconName:"check",icon:[448,512,[10003,10004],"f00c","M441 103c9.4 9.4 9.4 24.6 0 33.9L177 401c-9.4 9.4-24.6 9.4-33.9 0L7 265c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l119 119L407 103c9.4-9.4 24.6-9.4 33.9 0z"]},al={prefix:"fas",iconName:"shield-check",icon:[512,512,[],"f2f7","M269.4 2.9C265.2 1 260.7 0 256 0s-9.2 1-13.4 2.9L54.3 82.8c-22 9.3-38.4 31-38.3 57.2c.5 99.2 41.3 280.7 213.6 363.2c16.7 8 36.1 8 52.8 0C454.7 420.7 495.5 239.2 496 140c.1-26.2-16.3-47.9-38.3-57.2L269.4 2.9zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},ol=({class:e,children:t,...n})=>{const r=Object.keys(n).find((e=>n[e])),i=r?sl[r]:void 0,{heading1:a,paragraph1:o,label:s,field:l,hint:c,terms:u,link:d,h1:f,h2:h,h3:p,span:m,p:g,brand:y,danger:b,dark:v,darker:_,light:w,default:x,...E}=n,S={class:Gn(i,e),...E};return X(a?dl:o?fl:s?hl:l?pl:c?ml:u?gl:d?yl:f?"h1":h?"h2":p?"h3":m?"span":"p",{...S,children:t})},sl={brand:"text-primary-base",danger:"text-red-500",dark:"text-gray-700",darker:"text-gray-900",light:"text-gray-400",default:"text-gray-600"},ll=`text-3xl font-bold leading-9 ${sl.darker}`,cl=`text-base font-medium leading-6 ${sl.dark}`,ul=`text-sm font-medium leading-5 ${sl.dark}`,dl=e=>X("h1",{...e,class:Gn(ll,e.class)}),fl=e=>X("p",{...e,class:Gn("text-lg leading-7",e.class)}),hl=e=>X("span",{...e,class:Gn(cl,e.class)}),pl=e=>X("span",{...e,class:Gn(ul,e.class)}),ml=e=>X("p",{...e,class:Gn("text-sm",e.class)}),gl=e=>X("p",{...e,class:Gn("text-xs",e.class)}),yl=e=>X("a",{...e,class:Gn("underline cursor-pointer",e.class)});Xs.add(il,nl,al),Gs.autoAddCss=!1;const bl=({children:e})=>X(_,{children:[X("style",{children:'@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap";*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}a{text-decoration-line:underline}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.-top-3{top:-.75rem}.left-3{left:.75rem}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.right-4{right:1rem}.top-2{top:.5rem}.top-3{top:.75rem}.top-4{top:1rem}.z-10{z-index:10}.z-20{z-index:20}.z-50{z-index:50}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-6{margin-bottom:1.5rem}.mr-2\\.5{margin-right:.625rem}.mt-1{margin-top:.25rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-full{height:100%}.min-h-4{min-height:1rem}.min-h-\\[23rem\\]{min-height:23rem}.min-h-full{min-height:100%}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-screen{width:100vw}.min-w-4{min-width:1rem}.min-w-60{min-width:15rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[58rem\\]{max-width:58rem}.flex-1{flex:1 1 0%}.flex-auto{flex:1 1 auto}.flex-shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.translate-x-0{--tw-translate-x: 0px;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-x-full{--tw-translate-x: 100%;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;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-4{--tw-translate-y: 1rem;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))}.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(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3\\.5{gap:.875rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-visible{overflow:visible}.overflow-y-auto{overflow-y:auto}.overflow-x-clip{overflow-x:clip}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-e{border-start-end-radius:.25rem;border-end-end-radius:.25rem}.rounded-s{border-start-start-radius:.25rem;border-end-start-radius:.25rem}.border{border-width:1px}.border-solid{border-style:solid}.border-dashed{border-style:dashed}.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-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity))}.border-teal-500{--tw-border-opacity: 1;border-color:rgb(20 184 166 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-gray-500\\/75{background-color:#6b7280bf}.bg-primary-base{background-color:var(--fl-color-primary)}.bg-teal-400{--tw-bg-opacity: 1;background-color:rgb(45 212 191 / var(--tw-bg-opacity))}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-12{padding-left:3rem;padding-right:3rem}.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-5{padding-left:1.25rem;padding-right:1.25rem}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.pl-3{padding-left:.75rem}.pl-6{padding-left:1.5rem}.pr-8{padding-right:2rem}.text-left{text-align:left}.text-center{text-align:center}.font-sans{font-family:Inter,sans-serif}.text-3xl{font-size:1.875rem;line-height:2.25rem}.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-semibold{font-weight:600}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-9{line-height:2.25rem}.leading-\\[38px\\]{line-height:38px}.leading-tight{line-height:1.25}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / 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-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity))}.text-inherit{color:inherit}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity))}.text-primary-base{color:var(--fl-color-primary)}.text-primary-text{color:var(--fl-color-primary-text)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-25{opacity:.25}.opacity-30{opacity:.3}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.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)}:host{--fl-color-primary_from_host: var(--fl-color-primary);--fl-color-primary-text_from_host: var(--fl-color-primary-text)}*{--fl-color-primary: var(--fl-color-primary_from_host, #2E66F7);--fl-color-primary-text: var(--fl-color-primary-text_from_host, #ffffff)}.slide-exit,.slide-exit-active{position:absolute;inset:0}.slide-enter{transform:translate(100%)}.slide-enter-active{transform:translate(0);transition:transform .3s ease-out}.slide-exit{transform:translate(0)}.slide-exit-active{transform:translate(-100%);transition:transform .3s ease-out}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.hover\\:brightness-110:hover{--tw-brightness: brightness(1.1);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)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-primary-base:focus{--tw-ring-color: var(--fl-color-primary)}.focus\\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\\:border-gray-700:focus-visible{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity))}.focus-visible\\:border-red-600:focus-visible{--tw-border-opacity: 1;border-color:rgb(220 38 38 / var(--tw-border-opacity))}.data-\\[highlighted\\]\\:bg-primary-base[data-highlighted]{background-color:var(--fl-color-primary)}.data-\\[highlighted\\]\\:text-primary-text[data-highlighted]{color:var(--fl-color-primary-text)}@media(min-width:640px){.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:flex{display:flex}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:translate-y-0{--tw-translate-y: 0px;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))}.sm\\:scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.sm\\:scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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))}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}}@media(min-width:768px){.md\\:mt-3{margin-top:.75rem}.md\\:block{display:block}.md\\:grid{display:grid}.md\\:min-w-\\[41rem\\]{min-width:41rem}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(min-width:1024px){.lg\\:min-h-\\[33rem\\]{min-height:33rem}.lg\\:min-w-\\[58rem\\]{min-width:58rem}}'+Js.css()}),X("div",{class:Gn("font-sans",sl.default),children:e})]});function vl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vl(Object(n),!0).forEach((function(t){xl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wl(e){return(wl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function El(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Sl(e){return function(e){if(Array.isArray(e))return kl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return kl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ol(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var Cl=["style"];var Al=!1;try{Al=!0}catch(og){}function Tl(e){return e&&"object"===wl(e)&&e.prefix&&e.iconName&&e.icon?e:Zs.icon?Zs.icon(e):null===e?null:e&&"object"===wl(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function Rl(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?xl({},e,t):{}}var Il={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Nl=On.forwardRef((function(e,t){var n=_l(_l({},Il),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Tl(r),d=Rl("classes",[].concat(Sl(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,h=e.inverse,p=e.border,m=e.listItem,g=e.flip,y=e.size,b=e.rotation,v=e.pull,_=(xl(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":h,"fa-border":p,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(y),null!=y),xl(t,"fa-rotate-".concat(b),null!=b&&0!==b),xl(t,"fa-pull-".concat(v),null!=v),xl(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(_).map((function(e){return _[e]?e:null})).filter((function(e){return e}))}(n)),Sl((o||"").split(" ")))),f=Rl("transform","string"==typeof n.transform?Zs.transform(n.transform):n.transform),h=Rl("mask",Tl(i)),p=el(u,_l(_l(_l(_l({},d),f),h),{},{symbol:a,title:s,titleId:l,maskId:c}));if(!p)return function(){var e;!Al&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var m=p.abstract,g={ref:t};return Object.keys(n).forEach((function(e){Il.hasOwnProperty(e)||(g[e]=n[e])})),Dl(m[0],g)}));Nl.displayName="FontAwesomeIcon",Nl.propTypes={beat:yi.bool,border:yi.bool,beatFade:yi.bool,bounce:yi.bool,className:yi.string,fade:yi.bool,flash:yi.bool,mask:yi.oneOfType([yi.object,yi.array,yi.string]),maskId:yi.string,fixedWidth:yi.bool,inverse:yi.bool,flip:yi.oneOf([!0,!1,"horizontal","vertical","both"]),icon:yi.oneOfType([yi.object,yi.array,yi.string]),listItem:yi.bool,pull:yi.oneOf(["right","left"]),pulse:yi.bool,rotation:yi.oneOf([0,90,180,270]),shake:yi.bool,size:yi.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:yi.bool,spinPulse:yi.bool,spinReverse:yi.bool,symbol:yi.oneOfType([yi.bool,yi.string]),title:yi.string,titleId:yi.string,transform:yi.oneOfType([yi.string,yi.object]),swapOpacity:yi.bool};var Dl=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),a=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=r.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n,r=t.indexOf(":"),i=Ol(t.slice(0,r)),a=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=a:e[i]=a,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Ol(t)]=r}return e}),{attrs:{}}),o=r.style,s=void 0===o?{}:o,l=El(r,Cl);return a.attrs.style=_l(_l({},a.attrs.style),s),t.apply(void 0,[n.tag,_l(_l({},a.attrs),l)].concat(Sl(i)))}.bind(null,On.createElement);const Pl=e=>X("div",{class:Gn("flex px-5 py-3.5 rounded-lg gap-3.5 items-center relative overflow-visible","completed"===e.type?"bg-teal-50 border border-solid border-teal-500":"bg-gray-50 border border-dashed border-primary-base",e.class),children:[X("div",{class:"absolute -top-3 h-6 pd z-50 py-0.5 px-2 rounded-s rounded-e border border-solid border-primary-base\n bg-white text-primary-base text-xs font-medium gap-1",children:X("p",{children:"Flare Benefits Allowance"})}),"completed"===e.type?X("div",{class:"flex flex-shrink-0 items-center justify-center bg-teal-400 rounded-full w-6 h-6",children:X(Nl,{className:"text-white text-sm self-center",icon:il})}):null,X("div",{class:"flex-auto flex-col",children:[e.title?X(ol,{class:"flex-auto font-semibold leading-tight",darker:!0,paragraph1:!0,children:e.title}):null,e.subtitle?X(ol,{class:"text-sm",darker:!0,children:e.subtitle}):null]})]}),Fl=e=>X("svg",{class:Gn("animate-spin",e.class),fill:"none",viewBox:"0 0 24 24",children:[X("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),X("path",{class:"opacity-75",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z",fill:"currentColor"})]}),Ll=()=>X("div",{class:"flex flex-col gap-8 items-center justify-center h-full",children:X(Fl,{class:Gn("w-10 h-10",sl.brand)})}),Ml=({status:e="idle",...t})=>X("button",{class:Gn(["relative items-center px-4 py-2 border border-transparent font-medium rounded-md text-base hover:brightness-110 focus:outline-none",t.secondary?`${sl.darker}`:"bg-primary-base text-primary-text shadow-sm focus:ring-primary-base focus:ring-2 focus:ring-offset-2",t.disabled?"opacity-30":"","pending"===e||t.disabled?"pointer-events-none":"",t.class]),"data-testid":t.testId,disabled:"pending"===e||t.disabled,onClick:t.onClick,tabindex:"pending"===e||t.disabled?-1:void 0,type:"button",children:[X("span",{class:Gn(["pending"===e?"opacity-0":""]),children:t.children}),"pending"===e?X("div",{class:"absolute inset-0 flex justify-center items-center",children:X(Fl,{class:"h-5 w-5"})}):null]}),Ul=e=>X("div",{class:"flex flex-col gap-8 items-center justify-center h-full",children:[X(Nl,{className:sl.danger,icon:tl,size:"4x"}),X("div",{class:" max-w-[30rem]",children:[X(ol,{class:"text-center",heading1:!0,children:"Sorry about that!"}),X(ol,{class:"text-center",paragraph1:!0,children:"Something unexpected has occurred and we are working hard to fix it. Please try again later."})]}),X(Ml,{onClick:e.retry,children:"Retry"})]}),jl=({class:e,...t})=>X("div",{class:Gn("flex-1 md:min-w-[41rem] min-h-[23rem] lg:min-w-[58rem] lg:min-h-[33rem] mt-8 md:mt-3",e),...t});var zl=(e=>(e.Ineligible="Ineligible",e.Completion="Completion",e.Consent="Consent",e.Question="Question",e))(zl||{}),Bl=(e=>(e.TriviaSingleSelect="TriviaSingleSelect",e.SingleSelect="SingleSelect",e.Lookup="Lookup",e.MultiSelect="MultiSelect",e.Text="Text",e.Date="Date",e.Currency="Currency",e.Slider="Slider",e))(Bl||{}),Vl=(e=>(e.String="String",e.DateTime="DateTime",e.Date="Date",e.Integer="Integer",e.Decimal="Decimal",e.Boolean="Boolean",e.Lookup="Lookup",e))(Vl||{}),ql=(e=>(e.Weekends="Weekends",e.PublicHolidays="PublicHolidays",e))(ql||{}),Hl=(e=>(e.SalaryPackagingCars="SalaryPackagingCars",e.Health="Health",e.Everyday="Everyday",e.Devices="Devices",e.HomeLoan="HomeLoan",e.Trivia="Trivia",e.Energy="Energy",e.Broadband="Broadband",e))(Hl||{}),Wl=(e=>(e.ProgressStep="ProgressStep",e.UpdateAnswersOfCompletedActivity="UpdateAnswersOfCompletedActivity",e.ProgressStartToComplete="ProgressStartToComplete",e))(Wl||{}),$l=(e=>(e.Standard="standard",e.Lookup="lookup",e))($l||{}),Ql=(e=>(e.ACT="ACT",e.NSW="NSW",e.NT="NT",e.QLD="QLD",e.SA="SA",e.TAS="TAS",e.VIC="VIC",e.WA="WA",e))(Ql||{}),Kl=(e=>(e.AssessmentViewed="Assessment Viewed",e.AssessmentSkipped="Assessment Skipped",e.AssessmentFieldUpdated="AssessmentField Updated",e.AssessmentSubmitted="Assessment Submitted",e.AssessmentSummaryViewed="AssessmentSummary Viewed",e))(Kl||{}),Yl=(e=>(e.BenefitsWellbeingArticle="benefitsWellbeingArticle",e.BenefitsPlanActivityArticle="benefitsPlanActivityArticle",e.BenefitsPlanActivityAdvertisement="benefitsPlanActivityAdvertisement",e.BenefitsProductOffer="benefitsProductOffer",e.BenefitsCarsOffer="benefitsCarsOffer",e.BenefitsMarketplaceOffer="benefitsMarketplaceOffer",e))(Yl||{});function Gl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Xl}=Object.prototype,{getPrototypeOf:Jl}=Object,{iterator:Zl,toStringTag:ec}=Symbol,tc=(e=>t=>{const n=Xl.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),nc=e=>(e=e.toLowerCase(),t=>tc(t)===e),rc=e=>t=>typeof t===e,{isArray:ic}=Array,ac=rc("undefined");function oc(e){return null!==e&&!ac(e)&&null!==e.constructor&&!ac(e.constructor)&&cc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const sc=nc("ArrayBuffer");const lc=rc("string"),cc=rc("function"),uc=rc("number"),dc=e=>null!==e&&"object"==typeof e,fc=e=>{if("object"!==tc(e))return!1;const t=Jl(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||ec in e||Zl in e)},hc=nc("Date"),pc=nc("File"),mc=nc("Blob"),gc=nc("FileList");const yc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},bc=void 0!==yc.FormData?yc.FormData:void 0,vc=nc("URLSearchParams"),[_c,wc,xc,Ec]=["ReadableStream","Request","Response","Headers"].map(nc);function Sc(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),ic(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{if(oc(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let o;for(r=0;r<a;r++)o=i[r],t.call(null,e[o],o,e)}}function kc(e,t){if(oc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,i=n.length;for(;i-- >0;)if(r=n[i],t===r.toLowerCase())return r;return null}const Oc="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Cc=e=>!ac(e)&&e!==Oc;const Ac=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&Jl(Uint8Array)),Tc=nc("HTMLFormElement"),Rc=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Ic=nc("RegExp"),Nc=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Sc(n,((n,i)=>{let a;!1!==(a=t(n,i,e))&&(r[i]=a||n)})),Object.defineProperties(e,r)};const Dc=nc("AsyncFunction"),Pc=(Fc="function"==typeof setImmediate,Lc=cc(Oc.postMessage),Fc?setImmediate:Lc?(Mc=`axios@${Math.random()}`,Uc=[],Oc.addEventListener("message",(({source:e,data:t})=>{e===Oc&&t===Mc&&Uc.length&&Uc.shift()()}),!1),e=>{Uc.push(e),Oc.postMessage(Mc,"*")}):e=>setTimeout(e));var Fc,Lc,Mc,Uc;const jc="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Oc):"undefined"!=typeof process&&process.nextTick||Pc,zc={isArray:ic,isArrayBuffer:sc,isBuffer:oc,isFormData:e=>{let t;return e&&(bc&&e instanceof bc||cc(e.append)&&("formdata"===(t=tc(e))||"object"===t&&cc(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&sc(e.buffer),t},isString:lc,isNumber:uc,isBoolean:e=>!0===e||!1===e,isObject:dc,isPlainObject:fc,isEmptyObject:e=>{if(!dc(e)||oc(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(og){return!1}},isReadableStream:_c,isRequest:wc,isResponse:xc,isHeaders:Ec,isUndefined:ac,isDate:hc,isFile:pc,isReactNativeBlob:e=>!(!e||void 0===e.uri),isReactNative:e=>e&&void 0!==e.getParts,isBlob:mc,isRegExp:Ic,isFunction:cc,isStream:e=>dc(e)&&cc(e.pipe),isURLSearchParams:vc,isTypedArray:Ac,isFileList:gc,forEach:Sc,merge:function e(){const{caseless:t,skipUndefined:n}=Cc(this)&&this||{},r={},i=(i,a)=>{if("__proto__"===a||"constructor"===a||"prototype"===a)return;const o=t&&kc(r,a)||a;fc(r[o])&&fc(i)?r[o]=e(r[o],i):fc(i)?r[o]=e({},i):ic(i)?r[o]=i.slice():n&&ac(i)||(r[o]=i)};for(let a=0,o=arguments.length;a<o;a++)arguments[a]&&Sc(arguments[a],i);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Sc(t,((t,r)=>{n&&cc(t)?Object.defineProperty(e,r,{value:Gl(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})}),{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),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],r&&!r(o,e,t)||s[o]||(t[o]=e[o],s[o]=!0);e=!1!==n&&Jl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:tc,kindOfTest:nc,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(ic(e))return e;let t=e.length;if(!uc(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Zl]).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:Tc,hasOwnProperty:Rc,hasOwnProp:Rc,reduceDescriptors:Nc,freezeMethods:e=>{Nc(e,((t,n)=>{if(cc(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];cc(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 ic(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:kc,global:Oc,isContextDefined:Cc,isSpecCompliantForm:function(e){return!!(e&&cc(e.append)&&"FormData"===e[ec]&&e[Zl])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(dc(e)){if(t.indexOf(e)>=0)return;if(oc(e))return e;if(!("toJSON"in e)){t[r]=e;const i=ic(e)?[]:{};return Sc(e,((e,t)=>{const a=n(e,r+1);!ac(a)&&(i[t]=a)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Dc,isThenable:e=>e&&(dc(e)||cc(e))&&cc(e.then)&&cc(e.catch),setImmediate:Pc,asap:jc,isIterable:e=>null!=e&&cc(e[Zl])};let Bc=class e extends Error{static from(t,n,r,i,a,o){const s=new e(t.message,n||t.code,r,i,a);return s.cause=t,s.name=t.name,null!=t.status&&null==s.status&&(s.status=t.status),o&&Object.assign(s,o),s}constructor(e,t,n,r,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status)}toJSON(){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:zc.toJSONObject(this.config),code:this.code,status:this.status}}};Bc.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",Bc.ERR_BAD_OPTION="ERR_BAD_OPTION",Bc.ECONNABORTED="ECONNABORTED",Bc.ETIMEDOUT="ETIMEDOUT",Bc.ERR_NETWORK="ERR_NETWORK",Bc.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",Bc.ERR_DEPRECATED="ERR_DEPRECATED",Bc.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",Bc.ERR_BAD_REQUEST="ERR_BAD_REQUEST",Bc.ERR_CANCELED="ERR_CANCELED",Bc.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",Bc.ERR_INVALID_URL="ERR_INVALID_URL";function Vc(e){return zc.isPlainObject(e)||zc.isArray(e)}function qc(e){return zc.endsWith(e,"[]")?e.slice(0,-2):e}function Hc(e,t,n){return e?e.concat(t).map((function(e,t){return e=qc(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Wc=zc.toFlatObject(zc,{},null,(function(e){return/^is[A-Z]/.test(e)}));function $c(e,t,n){if(!zc.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=zc.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!zc.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,a=n.dots,o=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&zc.isSpecCompliantForm(t);if(!zc.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(zc.isDate(e))return e.toISOString();if(zc.isBoolean(e))return e.toString();if(!s&&zc.isBlob(e))throw new Bc("Blob is not supported. Use a Buffer instead.");return zc.isArrayBuffer(e)||zc.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(zc.isReactNative(t)&&zc.isReactNativeBlob(e))return t.append(Hc(i,n,a),l(e)),!1;if(e&&!i&&"object"==typeof e)if(zc.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(zc.isArray(e)&&function(e){return zc.isArray(e)&&!e.some(Vc)}(e)||(zc.isFileList(e)||zc.endsWith(n,"[]"))&&(s=zc.toArray(e)))return n=qc(n),s.forEach((function(e,r){!zc.isUndefined(e)&&null!==e&&t.append(!0===o?Hc([n],r,a):null===o?n:n+"[]",l(e))})),!1;return!!Vc(e)||(t.append(Hc(i,n,a),l(e)),!1)}const u=[],d=Object.assign(Wc,{defaultVisitor:c,convertValue:l,isVisitable:Vc});if(!zc.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!zc.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),zc.forEach(n,(function(n,a){!0===(!(zc.isUndefined(n)||null===n)&&i.call(t,n,zc.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])})),u.pop()}}(e),t}function Qc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Kc(e,t){this._pairs=[],e&&$c(e,this,t)}const Yc=Kc.prototype;function Gc(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xc(e,t,n){if(!t)return e;const r=n&&n.encode||Gc,i=zc.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;let o;if(o=a?a(t,i):zc.isURLSearchParams(t)?t.toString():new Kc(t,i).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}Yc.append=function(e,t){this._pairs.push([e,t])},Yc.toString=function(e){const t=e?function(t){return e.call(this,t,Qc)}:Qc;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class Jc{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){zc.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const Zc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},eu={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Kc,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},tu="undefined"!=typeof window&&"undefined"!=typeof document,nu="object"==typeof navigator&&navigator||void 0,ru=tu&&(!nu||["ReactNative","NativeScript","NS"].indexOf(nu.product)<0),iu="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,au=tu&&window.location.href||"http://localhost",ou={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:tu,hasStandardBrowserEnv:ru,hasStandardBrowserWebWorkerEnv:iu,navigator:nu,origin:au},Symbol.toStringTag,{value:"Module"})),...eu};function su(e){function t(e,n,r,i){let a=e[i++];if("__proto__"===a)return!0;const o=Number.isFinite(+a),s=i>=e.length;if(a=!a&&zc.isArray(r)?r.length:a,s)return zc.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!o;r[a]&&zc.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],i)&&zc.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r<i;r++)a=n[r],t[a]=e[a];return t}(r[a])),!o}if(zc.isFormData(e)&&zc.isFunction(e.entries)){const n={};return zc.forEachEntry(e,((e,r)=>{t(function(e){return zc.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const lu={transitional:Zc,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=zc.isObject(e);i&&zc.isHTMLForm(e)&&(e=new FormData(e));if(zc.isFormData(e))return r?JSON.stringify(su(e)):e;if(zc.isArrayBuffer(e)||zc.isBuffer(e)||zc.isStream(e)||zc.isFile(e)||zc.isBlob(e)||zc.isReadableStream(e))return e;if(zc.isArrayBufferView(e))return e.buffer;if(zc.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return $c(e,new ou.classes.URLSearchParams,{visitor:function(e,t,n,r){return ou.isNode&&zc.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=zc.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return $c(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(zc.isString(e))try{return(t||JSON.parse)(e),zc.trim(e)}catch(og){if("SyntaxError"!==og.name)throw og}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||lu.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(zc.isResponse(e)||zc.isReadableStream(e))return e;if(e&&zc.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(og){if(n){if("SyntaxError"===og.name)throw Bc.from(og,Bc.ERR_BAD_RESPONSE,this,null,this.response);throw og}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ou.classes.FormData,Blob:ou.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};zc.forEach(["delete","get","head","post","put","patch"],(e=>{lu.headers[e]={}}));const cu=zc.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"]),uu=Symbol("internals");function du(e,t){if(!1!==e&&null!=e)if(zc.isArray(e))e.forEach((e=>du(e,t)));else if(!(e=>!/[\r\n]/.test(e))(String(e)))throw new Error(`Invalid character in header content ["${t}"]`)}function fu(e){return e&&String(e).trim().toLowerCase()}function hu(e){return!1===e||null==e?e:zc.isArray(e)?e.map(hu):function(e){let t=e.length;for(;t>0;){const n=e.charCodeAt(t-1);if(10!==n&&13!==n)break;t-=1}return t===e.length?e:e.slice(0,t)}(String(e))}function pu(e,t,n,r,i){return zc.isFunction(r)?r.call(this,t,n):(i&&(t=n),zc.isString(t)?zc.isString(r)?-1!==t.indexOf(r):zc.isRegExp(r)?r.test(t):void 0:void 0)}let mu=class{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=fu(t);if(!i)throw new Error("header name must be a non-empty string");const a=zc.findKey(r,i);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(du(e,t),r[a||t]=hu(e))}const a=(e,t)=>zc.forEach(e,((e,n)=>i(e,n,t)));if(zc.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(zc.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,i;return e&&e.split("\n").forEach((function(e){i=e.indexOf(":"),n=e.substring(0,i).trim().toLowerCase(),r=e.substring(i+1).trim(),!n||t[n]&&cu[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(zc.isObject(e)&&zc.isIterable(e)){let n,r,i={};for(const t of e){if(!zc.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[r=t[0]]=(n=i[r])?zc.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(i,t)}else null!=e&&i(t,e,n);return this}get(e,t){if(e=fu(e)){const n=zc.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(zc.isFunction(t))return t.call(this,e,n);if(zc.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=fu(e)){const n=zc.findKey(this,e);return!(!n||void 0===this[n]||t&&!pu(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=fu(e)){const i=zc.findKey(n,e);!i||t&&!pu(0,n[i],i,t)||(delete n[i],r=!0)}}return zc.isArray(e)?e.forEach(i):i(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const i=t[n];e&&!pu(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return zc.forEach(this,((r,i)=>{const a=zc.findKey(n,i);if(a)return t[a]=hu(r),void delete t[i];const o=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();o!==i&&delete t[i],t[o]=hu(r),n[o]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return zc.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&zc.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[uu]=this[uu]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=fu(e);t[r]||(!function(e,t){const n=zc.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return zc.isArray(e)?e.forEach(r):r(e),this}};function gu(e,t){const n=this||lu,r=t||n,i=mu.from(r.headers);let a=r.data;return zc.forEach(e,(function(e){a=e.call(n,a,i.normalize(),t?t.status:void 0)})),i.normalize(),a}function yu(e){return!(!e||!e.__CANCEL__)}mu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),zc.reduceDescriptors(mu.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),zc.freezeMethods(mu);let bu=class extends Bc{constructor(e,t,n){super(null==e?"canceled":e,Bc.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}};function vu(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Bc("Request failed with status code "+n.status,[Bc.ERR_BAD_REQUEST,Bc.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}const _u=(e,t,n=3)=>{let r=0;const i=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i,a=0,o=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[o];i||(i=l),n[a]=s,r[a]=l;let u=o,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===o&&(o=(o+1)%e),l-i<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,i=0,a=1e3/t;const o=(t,a=Date.now())=>{i=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=a?o(e,t):(n=e,r||(r=setTimeout((()=>{r=null,o(n)}),a-s)))},()=>n&&o(n)]}((n=>{const a=n.loaded,o=n.lengthComputable?n.total:void 0,s=a-r,l=i(s);r=a;e({loaded:a,total:o,progress:o?a/o:void 0,bytes:s,rate:l||void 0,estimated:l&&o&&a<=o?(o-a)/l:void 0,event:n,lengthComputable:null!=o,[t?"download":"upload"]:!0})}),n)},wu=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},xu=e=>(...t)=>zc.asap((()=>e(...t))),Eu=ou.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ou.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ou.origin),ou.navigator&&/(msie|trident)/i.test(ou.navigator.userAgent)):()=>!0,Su=ou.hasStandardBrowserEnv?{write(e,t,n,r,i,a,o){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];zc.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),zc.isString(r)&&s.push(`path=${r}`),zc.isString(i)&&s.push(`domain=${i}`),!0===a&&s.push("secure"),zc.isString(o)&&s.push(`SameSite=${o}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function ku(e,t,n){let r=!("string"==typeof(i=t)&&/^([a-z][a-z\d+\-.]*:)?\/\//i.test(i));var i;return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Ou=e=>e instanceof mu?{...e}:e;function Cu(e,t){t=t||{};const n={};function r(e,t,n,r){return zc.isPlainObject(e)&&zc.isPlainObject(t)?zc.merge.call({caseless:r},e,t):zc.isPlainObject(t)?zc.merge({},t):zc.isArray(t)?t.slice():t}function i(e,t,n,i){return zc.isUndefined(t)?zc.isUndefined(e)?void 0:r(void 0,e,0,i):r(e,t,0,i)}function a(e,t){if(!zc.isUndefined(t))return r(void 0,t)}function o(e,t){return zc.isUndefined(t)?zc.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,a){return a in t?r(n,i):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(e,t,n)=>i(Ou(e),Ou(t),0,!0)};return zc.forEach(Object.keys({...e,...t}),(function(r){if("__proto__"===r||"constructor"===r||"prototype"===r)return;const a=zc.hasOwnProp(l,r)?l[r]:i,o=a(e[r],t[r],r);zc.isUndefined(o)&&a!==s||(n[r]=o)})),n}const Au=e=>{const t=Cu({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;if(t.headers=o=mu.from(o),t.url=Xc(ku(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),zc.isFormData(n))if(ou.hasStandardBrowserEnv||ou.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if(zc.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach((([e,n])=>{t.includes(e.toLowerCase())&&o.set(e,n)}))}if(ou.hasStandardBrowserEnv&&(r&&zc.isFunction(r)&&(r=r(t)),r||!1!==r&&Eu(t.url))){const e=i&&a&&Su.read(a);e&&o.set(i,e)}return t},Tu="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Au(e);let i=r.data;const a=mu.from(r.headers).normalize();let o,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:h}=r;function p(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(o),r.signal&&r.signal.removeEventListener("abort",o)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=mu.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());vu((function(e){t(e),p()}),(function(e){n(e),p()}),{data:d&&"text"!==d&&"json"!==d?m.response:m.responseText,status:m.status,statusText:m.statusText,headers:r,config:e,request:m}),m=null}m.open(r.method.toUpperCase(),r.url,!0),m.timeout=r.timeout,"onloadend"in m?m.onloadend=g:m.onreadystatechange=function(){m&&4===m.readyState&&(0!==m.status||m.responseURL&&0===m.responseURL.indexOf("file:"))&&setTimeout(g)},m.onabort=function(){m&&(n(new Bc("Request aborted",Bc.ECONNABORTED,e,m)),m=null)},m.onerror=function(t){const r=t&&t.message?t.message:"Network Error",i=new Bc(r,Bc.ERR_NETWORK,e,m);i.event=t||null,n(i),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||Zc;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Bc(t,i.clarifyTimeoutError?Bc.ETIMEDOUT:Bc.ECONNABORTED,e,m)),m=null},void 0===i&&a.setContentType(null),"setRequestHeader"in m&&zc.forEach(a.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),zc.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),h&&([l,u]=_u(h,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=_u(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(o=t=>{m&&(n(!t||t.type?new bu(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(o),r.signal&&(r.signal.aborted?o():r.signal.addEventListener("abort",o)));const y=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);y&&-1===ou.protocols.indexOf(y)?n(new Bc("Unsupported protocol "+y+":",Bc.ERR_BAD_REQUEST,e)):m.send(i||null)}))},Ru=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const i=function(e){if(!n){n=!0,o();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Bc?t:new bu(t instanceof Error?t.message:t))}};let a=t&&setTimeout((()=>{a=null,i(new Bc(`timeout of ${t}ms exceeded`,Bc.ETIMEDOUT))}),t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((e=>e.addEventListener("abort",i)));const{signal:s}=r;return s.unsubscribe=()=>zc.asap(o),s}},Iu=function*(e,t){let n=e.byteLength;if(n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Nu=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()}},Du=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of Nu(e))yield*Iu(n,t)}(e,t);let a,o=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await i.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=o+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},{isFunction:Pu}=zc,Fu=(({Request:e,Response:t})=>({Request:e,Response:t}))(zc.global),{ReadableStream:Lu,TextEncoder:Mu}=zc.global,Uu=(e,...t)=>{try{return!!e(...t)}catch(og){return!1}},ju=e=>{e=zc.merge.call({skipUndefined:!0},Fu,e);const{fetch:t,Request:n,Response:r}=e,i=t?Pu(t):"function"==typeof fetch,a=Pu(n),o=Pu(r);if(!i)return!1;const s=i&&Pu(Lu),l=i&&("function"==typeof Mu?(e=>t=>e.encode(t))(new Mu):async e=>new Uint8Array(await new n(e).arrayBuffer())),c=a&&s&&Uu((()=>{let e=!1;const t=new Lu,r=new n(ou.origin,{body:t,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return t.cancel(),e&&!r})),u=o&&s&&Uu((()=>zc.isReadableStream(new r("").body))),d={stream:u&&(e=>e.body)};i&&["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 Bc(`Response type '${e}' is not supported`,Bc.ERR_NOT_SUPPORT,n)})}));const f=async(e,t)=>{const r=zc.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(zc.isBlob(e))return e.size;if(zc.isSpecCompliantForm(e)){const t=new n(ou.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return zc.isArrayBufferView(e)||zc.isArrayBuffer(e)?e.byteLength:(zc.isURLSearchParams(e)&&(e+=""),zc.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:i,method:o,data:s,signal:l,cancelToken:h,timeout:p,onDownloadProgress:m,onUploadProgress:g,responseType:y,headers:b,withCredentials:v="same-origin",fetchOptions:_}=Au(e),w=t||fetch;y=y?(y+"").toLowerCase():"text";let x=Ru([l,h&&h.toAbortSignal()],p),E=null;const S=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let k;try{if(g&&c&&"get"!==o&&"head"!==o&&0!==(k=await f(b,s))){let e,t=new n(i,{method:"POST",body:s,duplex:"half"});if(zc.isFormData(s)&&(e=t.headers.get("content-type"))&&b.setContentType(e),t.body){const[e,n]=wu(k,_u(xu(g)));s=Du(t.body,65536,e,n)}}zc.isString(v)||(v=v?"include":"omit");const t=a&&"credentials"in n.prototype,l={..._,signal:x,method:o.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:t?v:void 0};E=a&&new n(i,l);let h=await(a?w(E,_):w(i,l));const p=u&&("stream"===y||"response"===y);if(u&&(m||p&&S)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=h[t]}));const t=zc.toFiniteNumber(h.headers.get("content-length")),[n,i]=m&&wu(t,_u(xu(m),!0))||[];h=new r(Du(h.body,65536,n,(()=>{i&&i(),S&&S()})),e)}y=y||"text";let O=await d[zc.findKey(d,y)||"text"](h,e);return!p&&S&&S(),await new Promise(((t,n)=>{vu(t,n,{data:O,headers:mu.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:E})}))}catch(O){if(S&&S(),O&&"TypeError"===O.name&&/Load failed|fetch/i.test(O.message))throw Object.assign(new Bc("Network Error",Bc.ERR_NETWORK,e,E,O&&O.response),{cause:O.cause||O});throw Bc.from(O,O&&O.code,e,E,O&&O.response)}}},zu=new Map,Bu=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:i}=t,a=[r,i,n];let o,s,l=a.length,c=zu;for(;l--;)o=a[l],s=c.get(o),void 0===s&&c.set(o,s=l?new Map:ju(t)),c=s;return s};Bu();const Vu={http:null,xhr:Tu,fetch:{get:Bu}};zc.forEach(Vu,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(og){}Object.defineProperty(e,"adapterName",{value:t})}}));const qu=e=>`- ${e}`,Hu=e=>zc.isFunction(e)||null===e||!1===e;const Wu={getAdapter:function(e,t){e=zc.isArray(e)?e:[e];const{length:n}=e;let r,i;const a={};for(let o=0;o<n;o++){let n;if(r=e[o],i=r,!Hu(r)&&(i=Vu[(n=String(r)).toLowerCase()],void 0===i))throw new Bc(`Unknown adapter '${n}'`);if(i&&(zc.isFunction(i)||(i=i.get(t))))break;a[n||"#"+o]=i}if(!i){const e=Object.entries(a).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));let t=n?e.length>1?"since :\n"+e.map(qu).join("\n"):" "+qu(e[0]):"as no adapter specified";throw new Bc("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return i},adapters:Vu};function $u(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new bu(null,e)}function Qu(e){$u(e),e.headers=mu.from(e.headers),e.data=gu.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Wu.getAdapter(e.adapter||lu.adapter,e)(e).then((function(t){return $u(e),t.data=gu.call(e,e.transformResponse,t),t.headers=mu.from(t.headers),t}),(function(t){return yu(t)||($u(e),t&&t.response&&(t.response.data=gu.call(e,e.transformResponse,t.response),t.response.headers=mu.from(t.response.headers))),Promise.reject(t)}))}const Ku="1.15.0",Yu={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{Yu[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const Gu={};Yu.transitional=function(e,t,n){function r(e,t){return"[Axios v"+Ku+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,a)=>{if(!1===e)throw new Bc(r(i," has been removed"+(t?" in "+t:"")),Bc.ERR_DEPRECATED);return t&&!Gu[i]&&(Gu[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,a)}},Yu.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};const Xu={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Bc("options must be an object",Bc.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const t=e[a],n=void 0===t||o(t,a,e);if(!0!==n)throw new Bc("option "+a+" must be "+n,Bc.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Bc("Unknown option "+a,Bc.ERR_BAD_OPTION)}},validators:Yu},Ju=Xu.validators;let Zu=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Jc,response:new Jc}}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=(()=>{if(!e.stack)return"";const t=e.stack.indexOf("\n");return-1===t?"":e.stack.slice(t+1)})();try{if(n.stack){if(t){const e=t.indexOf("\n"),r=-1===e?-1:t.indexOf("\n",e+1),i=-1===r?"":t.slice(r+1);String(n.stack).endsWith(i)||(n.stack+="\n"+t)}}else n.stack=t}catch(og){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Cu(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&Xu.assertOptions(n,{silentJSONParsing:Ju.transitional(Ju.boolean),forcedJSONParsing:Ju.transitional(Ju.boolean),clarifyTimeoutError:Ju.transitional(Ju.boolean),legacyInterceptorReqResOrdering:Ju.transitional(Ju.boolean)},!1),null!=r&&(zc.isFunction(r)?t.paramsSerializer={serialize:r}:Xu.assertOptions(r,{encode:Ju.function,serialize:Ju.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Xu.assertOptions(t,{baseUrl:Ju.spelling("baseURL"),withXsrfToken:Ju.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=i&&zc.merge(i.common,i[t.method]);i&&zc.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=mu.concat(a,i);const o=[];let s=!0;this.interceptors.request.forEach((function(e){if("function"==typeof e.runWhen&&!1===e.runWhen(t))return;s=s&&e.synchronous;const n=t.transitional||Zc;n&&n.legacyInterceptorReqResOrdering?o.unshift(e.fulfilled,e.rejected):o.push(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=[Qu.bind(this),void 0];for(e.unshift(...o),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=o.length;let f=t;for(;d<u;){const e=o[d++],t=o[d++];try{f=e(f)}catch(h){t.call(this,h);break}}try{c=Qu.call(this,f)}catch(h){return Promise.reject(h)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Xc(ku((e=Cu(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}};zc.forEach(["delete","get","head","options"],(function(e){Zu.prototype[e]=function(t,n){return this.request(Cu(n||{},{method:e,url:t,data:(n||{}).data}))}})),zc.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Cu(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Zu.prototype[e]=t(),Zu.prototype[e+"Form"]=t(!0)}));const ed={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ed).forEach((([e,t])=>{ed[t]=e}));const td=function e(t){const n=new Zu(t),r=Gl(Zu.prototype.request,n);return zc.extend(r,Zu.prototype,n,{allOwnKeys:!0}),zc.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Cu(t,n))},r}(lu);td.Axios=Zu,td.CanceledError=bu,td.CancelToken=class e{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,i){n.reason||(n.reason=new bu(e,r,i),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 t;return{token:new e((function(e){t=e})),cancel:t}}},td.isCancel=yu,td.VERSION=Ku,td.toFormData=$c,td.AxiosError=Bc,td.Cancel=td.CanceledError,td.all=function(e){return Promise.all(e)},td.spread=function(e){return function(t){return e.apply(null,t)}},td.isAxiosError=function(e){return zc.isObject(e)&&!0===e.isAxiosError},td.mergeConfig=Cu,td.AxiosHeaders=mu,td.formToJSON=e=>su(zc.isHTMLForm(e)?new FormData(e):e),td.getAdapter=Wu.getAdapter,td.HttpStatusCode=ed,td.default=td;const{Axios:nd,AxiosError:rd,CanceledError:id,isCancel:ad,CancelToken:od,VERSION:sd,all:ld,Cancel:cd,isAxiosError:ud,spread:dd,toFormData:fd,AxiosHeaders:hd,HttpStatusCode:pd,formToJSON:md,getAdapter:gd,mergeConfig:yd}=td;let bd;const vd=async(e,t)=>(await(bd?.get(e,t)))?.data,_d=async(e,t,n)=>(await(bd?.post(e,t,n)))?.data;let wd;const xd=()=>{if(wd)return wd;return wd=new Ue({defaultOptions:{queries:{retry:(e,t)=>0===e&&![401,403].includes(t.response?.status||0)}}}),wd},Ed="/benefits-plan/workplace-backend",Sd=(e,t)=>vd(`${Ed}/v2.0/activities/${e.activityId}/steps`,t),kd=(e,t)=>{const n=e.progressEvents?.map((({dataType:e,...t})=>e===$l.Standard?t:{dataType:e,...t}));return(async(e,t,n)=>(await(bd?.put(e,t,n)))?.data)(`${Ed}/v1.0/customer/activities/${e.activityId}`,{activityAction:e.activityAction,progressEvents:n},t)},Od=(e,t)=>_d(`${Ed}/v2.0/analytics/track`,e,t),Cd=()=>vd("/benefits-plan/customer-backend/v1.0/public-holidays"),Ad=async(e,t)=>{const n=await(async(e,t)=>{const n=(await td.get(e,{...t,baseURL:"https://cdn.contentful.com/spaces/hos0i9i3wvo7/environments/master",headers:{Authorization:"Bearer pZ8KQVJZ8iSqixnowan6aKl9xmpE61FDPJvyAB49bpY","Content-Type":"application/json"}}))?.data;return n})("/entries",{params:{content_type:t,"sys.id":e}});if(0===n.items.length)throw new Error("Invalid contentful response");return n},Td=e=>({params:{experiment:e.trackExperiment,treatment:e.trackTreatment}}),Rd=e=>{const{data:t,isError:n,isLoading:r,isSuccess:i,refetch:a}=Qn({queryKey:["benefitsPlanGetCalculate",e.assessmentId],queryFn:()=>(async(e,t)=>vd(`${Ed}/v1.0/activities/${e.activityId}/calculate`,t))({activityId:e.assessmentId},Td(e)),staleTime:0,gcTime:0});st((()=>{Od({event:Kl.AssessmentSummaryViewed,properties:{id:e.assessmentId,name:e.assessmentTitle}},Td(e))}),[e]);const o=t?.calculationType===Hl.SalaryPackagingCars||t?.calculationType===Hl.Trivia,s=t?.calculationType===Hl.Broadband&&!t?.estimates,l=o?"All done":s?"We are unable to offer internet plans not on NBN":t?.estimates?.primary.title||"",c=s?"At the moment we only offer internet plans available on NBN. Seems like your location does not have NBN available yet. Please check back later":t?.calculationType===Hl.Trivia?void 0:t?.estimates?.blurb.text,u=o?void 0:t?.estimates?.blurb.imageUrl,d=o||"true"===e.skipMoreDetails?void 0:t?.estimates?.moreDetailsUrl,f=o?void 0:t?.estimates?.complianceUrl,h=Id(e.specialBannerType&&t?.estimates?t.calculationType:void 0);return X(jl,{children:[r&&X(Ll,{}),n&&X(Ul,{retry:a}),i?X("div",{class:"md:grid md:grid-cols-2",children:[X("div",{class:"flex flex-col gap-6",children:[X(ol,{heading1:!0,children:l}),X(ol,{paragraph1:!0,children:c}),h?X(Pl,{title:h,type:"completed"}):null,u?X("img",{loading:"lazy",src:u}):null,X("div",{class:"flex gap-1 flex-wrap",children:[d?X(Ml,{class:Gn(e.onComplete?"flex-grow":""),onClick:()=>window.open(d,"_blank"),children:"See your plans"}):null,e.onComplete?X(Ml,{class:Gn(d?"flex-grow":""),onClick:e.onComplete,children:"Next"}):null]}),f?X(ol,{class:"text-xs",href:f,link:!0,target:"_blank",children:"View available health funds"}):null]}),X("div",{class:Gn("flex",e.verticalAlignment),children:X("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})})]}):null]})},Id=e=>{if(void 0===e||e===Hl.Trivia)return;let t;return t=e===Hl.SalaryPackagingCars?"cars":e===Hl.HomeLoan?"home loan":e.toLowerCase(),`Your estimated ${t} reimbursement will be calculated and sent to your email address`},{entries:Nd,setPrototypeOf:Dd,isFrozen:Pd,getPrototypeOf:Fd,getOwnPropertyDescriptor:Ld}=Object;let{freeze:Md,seal:Ud,create:jd}=Object,{apply:zd,construct:Bd}="undefined"!=typeof Reflect&&Reflect;Md||(Md=function(e){return e}),Ud||(Ud=function(e){return e}),zd||(zd=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),Bd||(Bd=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const Vd=rf(Array.prototype.forEach),qd=rf(Array.prototype.lastIndexOf),Hd=rf(Array.prototype.pop),Wd=rf(Array.prototype.push),$d=rf(Array.prototype.splice),Qd=rf(String.prototype.toLowerCase),Kd=rf(String.prototype.toString),Yd=rf(String.prototype.match),Gd=rf(String.prototype.replace),Xd=rf(String.prototype.indexOf),Jd=rf(String.prototype.trim),Zd=rf(Object.prototype.hasOwnProperty),ef=rf(RegExp.prototype.test),tf=(nf=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bd(nf,t)});var nf;function rf(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return zd(e,t,r)}}function af(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Qd;Dd&&Dd(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(Pd(t)||(t[r]=e),i=e)}e[i]=!0}return e}function of(e){for(let t=0;t<e.length;t++){Zd(e,t)||(e[t]=null)}return e}function sf(e){const t=jd(null);for(const[n,r]of Nd(e)){Zd(e,n)&&(Array.isArray(r)?t[n]=of(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=sf(r):t[n]=r)}return t}function lf(e,t){for(;null!==e;){const n=Ld(e,t);if(n){if(n.get)return rf(n.get);if("function"==typeof n.value)return rf(n.value)}e=Fd(e)}return function(){return null}}const cf=Md(["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","search","section","select","shadow","slot","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"]),uf=Md(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),df=Md(["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"]),ff=Md(["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"]),hf=Md(["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"]),pf=Md(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),mf=Md(["#text"]),gf=Md(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","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","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),yf=Md(["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","mask-type","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"]),bf=Md(["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"]),vf=Md(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),_f=Ud(/\{\{[\w\W]*|[\w\W]*\}\}/gm),wf=Ud(/<%[\w\W]*|[\w\W]*%>/gm),xf=Ud(/\$\{[\w\W]*/gm),Ef=Ud(/^data-[\-\w.\u00B7-\uFFFF]+$/),Sf=Ud(/^aria-[\-\w]+$/),kf=Ud(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Of=Ud(/^(?:\w+script|data):/i),Cf=Ud(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Af=Ud(/^html$/i),Tf=Ud(/^[a-z][.\w]*(-[.\w]+)+$/i);var Rf=Object.freeze({__proto__:null,ARIA_ATTR:Sf,ATTR_WHITESPACE:Cf,CUSTOM_ELEMENT:Tf,DATA_ATTR:Ef,DOCTYPE_NAME:Af,ERB_EXPR:wf,IS_ALLOWED_URI:kf,IS_SCRIPT_OR_DATA:Of,MUSTACHE_EXPR:_f,TMPLIT_EXPR:xf});const If=1,Nf=3,Df=7,Pf=8,Ff=9;var Lf=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.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==Ff||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,a=i.currentScript,{DocumentFragment:o,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=t,m=c.prototype,g=lf(m,"cloneNode"),y=lf(m,"remove"),b=lf(m,"nextSibling"),v=lf(m,"childNodes"),_=lf(m,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let w,x="";const{implementation:E,createNodeIterator:S,createDocumentFragment:k,getElementsByTagName:O}=r,{importNode:C}=i;let A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Nd&&"function"==typeof _&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:T,ERB_EXPR:R,TMPLIT_EXPR:I,DATA_ATTR:N,ARIA_ATTR:D,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:F,CUSTOM_ELEMENT:L}=Rf;let{IS_ALLOWED_URI:M}=Rf,U=null;const j=af({},[...cf,...uf,...df,...hf,...mf]);let z=null;const B=af({},[...gf,...yf,...bf,...vf]);let V=Object.seal(jd(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,H=null;const W=Object.seal(jd(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $=!0,Q=!0,K=!1,Y=!0,G=!1,X=!0,J=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!0,ae=!1,oe=!0,se=!1,le={},ce=null;const ue=af({},["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 fe=af({},["audio","video","img","source","image","track"]);let he=null;const pe=af({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),me="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",ye="http://www.w3.org/1999/xhtml";let be=ye,ve=!1,_e=null;const we=af({},[me,ge,ye],Kd);let xe=af({},["mi","mo","mn","ms","mtext"]),Ee=af({},["annotation-xml"]);const Se=af({},["title","style","font","a","script"]);let ke=null;const Oe=["application/xhtml+xml","text/html"];let Ce=null,Ae=null;const Te=r.createElement("form"),Re=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=sf(e),ke=-1===Oe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ce="application/xhtml+xml"===ke?Kd:Qd,U=Zd(e,"ALLOWED_TAGS")?af({},e.ALLOWED_TAGS,Ce):j,z=Zd(e,"ALLOWED_ATTR")?af({},e.ALLOWED_ATTR,Ce):B,_e=Zd(e,"ALLOWED_NAMESPACES")?af({},e.ALLOWED_NAMESPACES,Kd):we,he=Zd(e,"ADD_URI_SAFE_ATTR")?af(sf(pe),e.ADD_URI_SAFE_ATTR,Ce):pe,de=Zd(e,"ADD_DATA_URI_TAGS")?af(sf(fe),e.ADD_DATA_URI_TAGS,Ce):fe,ce=Zd(e,"FORBID_CONTENTS")?af({},e.FORBID_CONTENTS,Ce):ue,q=Zd(e,"FORBID_TAGS")?af({},e.FORBID_TAGS,Ce):sf({}),H=Zd(e,"FORBID_ATTR")?af({},e.FORBID_ATTR,Ce):sf({}),le=!!Zd(e,"USE_PROFILES")&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,Q=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Y=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,G=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,J=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,ae=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||kf,be=e.NAMESPACE||ye,xe=e.MATHML_TEXT_INTEGRATION_POINTS||xe,Ee=e.HTML_INTEGRATION_POINTS||Ee,V=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Re(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(V.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Re(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(V.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(V.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),G&&(Q=!1),ne&&(te=!0),le&&(U=af({},mf),z=jd(null),!0===le.html&&(af(U,cf),af(z,gf)),!0===le.svg&&(af(U,uf),af(z,yf),af(z,vf)),!0===le.svgFilters&&(af(U,df),af(z,yf),af(z,vf)),!0===le.mathMl&&(af(U,hf),af(z,bf),af(z,vf))),Zd(e,"ADD_TAGS")||(W.tagCheck=null),Zd(e,"ADD_ATTR")||(W.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?W.tagCheck=e.ADD_TAGS:(U===j&&(U=sf(U)),af(U,e.ADD_TAGS,Ce))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?W.attributeCheck=e.ADD_ATTR:(z===B&&(z=sf(z)),af(z,e.ADD_ATTR,Ce))),e.ADD_URI_SAFE_ATTR&&af(he,e.ADD_URI_SAFE_ATTR,Ce),e.FORBID_CONTENTS&&(ce===ue&&(ce=sf(ce)),af(ce,e.FORBID_CONTENTS,Ce)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=sf(ce)),af(ce,e.ADD_FORBID_CONTENTS,Ce)),oe&&(U["#text"]=!0),J&&af(U,["html","head","body"]),U.table&&(af(U,["tbody"]),delete q.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw tf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw tf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=e.TRUSTED_TYPES_POLICY,x=w.createHTML("")}else void 0===w&&(w=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 i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(a){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(p,a)),null!==w&&"string"==typeof x&&(x=w.createHTML(""));Md&&Md(e),Ae=e}},Ne=af({},[...uf,...df,...ff]),De=af({},[...hf,...pf]),Pe=function(e){Wd(n.removed,{element:e});try{_(e).removeChild(e)}catch(t){y(e)}},Fe=function(e,t){try{Wd(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Wd(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Pe(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Le=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Yd(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===ke&&be===ye&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=w?w.createHTML(e):e;if(be===ye)try{t=(new h).parseFromString(i,ke)}catch(o){}if(!t||!t.documentElement){t=E.createDocument(be,"template",null);try{t.documentElement.innerHTML=ve?x:i}catch(o){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),be===ye?O.call(t,J?"html":"body")[0]:J?t.documentElement:a},Me=function(e){return S.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function ze(e,t,r){Vd(e,(e=>{e.call(n,t,r,Ae)}))}const Be=function(e){let t=null;if(ze(A.beforeSanitizeElements,e,null),Ue(e))return Pe(e),!0;const r=Ce(e.nodeName);if(ze(A.uponSanitizeElement,e,{tagName:r,allowedTags:U}),X&&e.hasChildNodes()&&!je(e.firstElementChild)&&ef(/<[/\w!]/g,e.innerHTML)&&ef(/<[/\w!]/g,e.textContent))return Pe(e),!0;if(e.nodeType===Df)return Pe(e),!0;if(X&&e.nodeType===Pf&&ef(/<[/\w]/g,e.data))return Pe(e),!0;if(!(W.tagCheck instanceof Function&&W.tagCheck(r))&&(!U[r]||q[r])){if(!q[r]&&qe(r)){if(V.tagNameCheck instanceof RegExp&&ef(V.tagNameCheck,r))return!1;if(V.tagNameCheck instanceof Function&&V.tagNameCheck(r))return!1}if(oe&&!ce[r]){const t=_(e)||e.parentNode,n=v(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=g(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,b(e))}}}return Pe(e),!0}return e instanceof c&&!function(e){let t=_(e);t&&t.tagName||(t={namespaceURI:be,tagName:"template"});const n=Qd(e.tagName),r=Qd(t.tagName);return!!_e[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===ye?"svg"===n:t.namespaceURI===me?"svg"===n&&("annotation-xml"===r||xe[r]):Boolean(Ne[n]):e.namespaceURI===me?t.namespaceURI===ye?"math"===n:t.namespaceURI===ge?"math"===n&&Ee[r]:Boolean(De[n]):e.namespaceURI===ye?!(t.namespaceURI===ge&&!Ee[r])&&!(t.namespaceURI===me&&!xe[r])&&!De[n]&&(Se[n]||!Ne[n]):!("application/xhtml+xml"!==ke||!_e[e.namespaceURI]))}(e)?(Pe(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!ef(/<\/no(script|embed|frames)/i,e.innerHTML)?(G&&e.nodeType===Nf&&(t=e.textContent,Vd([T,R,I],(e=>{t=Gd(t,e," ")})),e.textContent!==t&&(Wd(n.removed,{element:e.cloneNode()}),e.textContent=t)),ze(A.afterSanitizeElements,e,null),!1):(Pe(e),!0)},Ve=function(e,t,n){if(H[t])return!1;if(ie&&("id"===t||"name"===t)&&(n in r||n in Te))return!1;if(Q&&!H[t]&&ef(N,t));else if($&&ef(D,t));else if(W.attributeCheck instanceof Function&&W.attributeCheck(t,e));else if(!z[t]||H[t]){if(!(qe(e)&&(V.tagNameCheck instanceof RegExp&&ef(V.tagNameCheck,e)||V.tagNameCheck instanceof Function&&V.tagNameCheck(e))&&(V.attributeNameCheck instanceof RegExp&&ef(V.attributeNameCheck,t)||V.attributeNameCheck instanceof Function&&V.attributeNameCheck(t,e))||"is"===t&&V.allowCustomizedBuiltInElements&&(V.tagNameCheck instanceof RegExp&&ef(V.tagNameCheck,n)||V.tagNameCheck instanceof Function&&V.tagNameCheck(n))))return!1}else if(he[t]);else if(ef(M,Gd(n,F,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Xd(n,"data:")||!de[e]){if(K&&!ef(P,Gd(n,F,"")));else if(n)return!1}else;return!0},qe=function(e){return"annotation-xml"!==e&&Yd(e,L)},He=function(e){ze(A.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ue(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:s,namespaceURI:l,value:c}=o,u=Ce(s),d=c;let f="value"===s?d:Jd(d);if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,ze(A.uponSanitizeAttribute,e,r),f=r.attrValue,!ae||"id"!==u&&"name"!==u||(Fe(s,e),f="user-content-"+f),X&&ef(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){Fe(s,e);continue}if("attributename"===u&&Yd(f,"href")){Fe(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){Fe(s,e);continue}if(!Y&&ef(/\/>/i,f)){Fe(s,e);continue}G&&Vd([T,R,I],(e=>{f=Gd(f,e," ")}));const h=Ce(e.nodeName);if(Ve(h,u,f)){if(w&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(l);else switch(p.getAttributeType(h,u)){case"TrustedHTML":f=w.createHTML(f);break;case"TrustedScriptURL":f=w.createScriptURL(f)}if(f!==d)try{l?e.setAttributeNS(l,s,f):e.setAttribute(s,f),Ue(e)?Pe(e):Hd(n.removed)}catch(a){Fe(s,e)}}else Fe(s,e)}ze(A.afterSanitizeAttributes,e,null)},We=function e(t){let n=null;const r=Me(t);for(ze(A.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)ze(A.uponSanitizeShadowNode,n,null),Be(n),He(n),n.content instanceof o&&e(n.content);ze(A.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if(ve=!e,ve&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw tf("toString is not a function");if("string"!=typeof(e=e.toString()))throw tf("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Ie(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=Ce(e.nodeName);if(!U[t]||q[t])throw tf("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Le("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===If&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!te&&!G&&!J&&-1===e.indexOf("<"))return w&&re?w.createHTML(e):e;if(r=Le(e),!r)return te?null:re?x:""}r&&ee&&Pe(r.firstChild);const u=Me(se?e:r);for(;s=u.nextNode();)Be(s),He(s),s.content instanceof o&&We(s.content);if(se)return e;if(te){if(ne)for(c=k.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(z.shadowroot||z.shadowrootmode)&&(c=C.call(i,c,!0)),c}let d=J?r.outerHTML:r.innerHTML;return J&&U["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&ef(Af,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),G&&Vd([T,R,I],(e=>{d=Gd(d,e," ")})),w&&re?w.createHTML(d):d},n.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Ae=null,Z=!1},n.isValidAttribute=function(e,t,n){Ae||Ie({});const r=Ce(e),i=Ce(t);return Ve(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&Wd(A[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=qd(A[e],t);return-1===n?void 0:$d(A[e],n,1)[0]}return Hd(A[e])},n.removeHooks=function(e){A[e]=[]},n.removeAllHooks=function(){A={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const Mf=({children:e})=>X(_,{children:e}),Uf=({children:e})=>X(_,{children:e}),jf=({open:e,children:t})=>{const n=dt((()=>On.Children.toArray(t).find((e=>e.type===Mf))),[t]),r=dt((()=>On.Children.toArray(t).find((e=>e.type===Uf))),[t]),[i,a]=at(!e);return st((()=>{let t;return e?a(!1):t=setTimeout((()=>{a(!0)}),200),()=>{t&&clearTimeout(t)}}),[e]),X("div",{hidden:i,children:X("div",{className:"z-50 fixed inset-0 w-screen bg-gray-500/75 transition-opacity "+(e?"ease-in duration-300 opacity-100":"ease-in duration-200 opacity-0"),children:X("div",{className:"flex overflow-y-auto min-h-full items-end justify-center p-4 sm:items-center sm:p-0",children:X("div",{className:"relative transform overflow-hidden rounded-lg bg-white shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg "+(e?"ease-out duration-300 opacity-100 translate-y-0 sm:scale-100":"ease-in duration-200 opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"),children:X("div",{className:"bg-white p-4 sm:p-6",children:X("div",{className:"sm:flex sm:items-start",children:X("div",{className:"mt-3 sm:ml-4 sm:mt-0",children:[n,X("div",{className:"mt-4",children:r})]})})})})})})})},zf=e=>{const t=zr(),n=e.declineButton&&e.onDecline,{mutate:r,status:i}=Kn({mutationFn:e?.onAccept??qf,onSuccess:()=>t("/question")}),{mutate:a,status:o}=Kn({mutationFn:e?.onDecline??qf}),[s,l]=at({visible:!1}),c=Array.isArray(e.terms)?e.terms:e.terms?.additionalTerms;return X(_,{children:[X(jl,{class:"md:grid md:grid-cols-2",children:[X("div",{class:"flex flex-col gap-6",children:[X("div",{children:[X(ol,{class:"mb-2",heading1:!0,children:e.assessmentTitle}),X(ol,{paragraph1:!0,children:e.description})]}),e.details?.length?X("div",{class:"flex flex-col p-6 rounded-lg border border-gray-200 shadow-sm gap-2",children:e.details.map(((e,t)=>X("div",{class:"flex",children:[X(Nl,{className:"text-primary-base mt-1 mr-2.5 text-sm",icon:il}),e]},t)))}):null,e.specialBannerType?X(Pl,{subtitle:e.specialBannerSubtitle,title:e.specialBannerTitle,type:e.specialBannerType}):null,X("div",{class:"flex gap-1 flex-wrap",children:[X(Ml,{class:Gn(n?"flex-grow":""),onClick:r,status:i,testId:`offer_${e.marketplaceOfferName}_button_accept`,children:e.acceptButton}),n&&X(Ml,{class:"flex-grow",onClick:a,secondary:!0,status:o,testId:`offer_${e.marketplaceOfferName}_button_decline`,children:e.declineButton})]}),!Array.isArray(e.terms)&&e.terms?.consentText&&X(ol,{class:"text-xs",dangerouslySetInnerHTML:{__html:Lf.sanitize(e.terms.consentText,{ADD_ATTR:["target"]})},p:!0}),X("div",{class:"flex gap-4 flex-wrap",children:[c?.length?X(ol,{class:"text-xs",children:["*",X(ol,{brand:!0,link:!0,onClick:()=>l({visible:!0,description:c,title:"Terms & Conditions"}),children:"T&C's apply"})]}):null,X(Bf,{...e,setDialog:l})]})]}),X("div",{class:Gn("flex",e.verticalAlignment),children:X("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})})]}),X(Vf,{description:s.description,hide:()=>l((e=>({...e,visible:!1}))),title:s.title,visible:s.visible})]})},Bf=e=>{const{setDialog:t,assessmentId:n}=e,r=Qn({queryKey:["benefitsPlanGetSteps",n],queryFn:()=>Sd({activityId:n},Td(e)),staleTime:0,gcTime:0}),i=Qn({queryKey:["getContentfulArticle",Yl.BenefitsMarketplaceOffer],queryFn:()=>Ad("",Yl.BenefitsMarketplaceOffer)}),a=r.data?.calculationType===Hl.Health&&i.data?.items[0].fields.complianceContent;return a?X(ol,{class:"text-xs",children:[X(Nl,{className:"text-cyan-500 w-4 h-4",icon:al}),X(ol,{brand:!0,link:!0,onClick:()=>t({visible:!0,description:[a.subtitle],title:a.title}),children:a.title})]}):null},Vf=({visible:e,hide:t,title:n,description:r})=>X(jf,{open:e,children:[X(Mf,{children:[X(ol,{class:"text-lg font-semibold",darker:!0,h1:!0,children:n}),X(Nl,{className:"absolute top-4 right-4 min-h-4 min-w-4 p-2 rounded-full cursor-pointer bg-gray-200 hover:bg-gray-100",icon:rl,onClick:t})]}),X(Uf,{children:(r??[]).map(((e,t)=>X(ol,{class:"text-sm mb-3",dangerouslySetInnerHTML:{__html:Lf.sanitize(e,{ADD_ATTR:["target"]})},p:!0},t)))})]}),qf=()=>Promise.resolve(),Hf=e=>{const{data:t,isError:n,isLoading:r,refetch:i}=Qn({queryKey:["benefitsPlanGetSteps",e.assessmentId],queryFn:()=>Sd({activityId:e.assessmentId},Td(e))}),{id:a}=function(){let{matches:e}=ht(Fr),t=e[e.length-1];return t?t.params:{}}(),o=t?.steps.find((e=>e.id===a));return X(jl,{children:[r&&X(Ll,{}),n&&X(Ul,{retry:i}),!o||r||n?null:X(_,{children:X("div",{class:"md:grid md:grid-cols-2",children:[X("div",{children:[X(ol,{class:"mb-2",heading1:!0,children:o.title}),X(ol,{class:"mb-6",paragraph1:!0,children:o.description}),e.onComplete?X(Ml,{onClick:e.onComplete,children:"Next"}):null]}),X("div",{class:Gn("flex",e.verticalAlignment),children:X("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})})]})})]})};var Wf=e=>"checkbox"===e.type,$f=e=>e instanceof Date,Qf=e=>null==e;const Kf=e=>"object"==typeof e;var Yf=e=>!Qf(e)&&!Array.isArray(e)&&Kf(e)&&!$f(e),Gf=e=>Yf(e)&&e.target?Wf(e.target)?e.target.checked:e.target.value:e,Xf=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Jf=e=>{const t=e.constructor&&e.constructor.prototype;return Yf(t)&&t.hasOwnProperty("isPrototypeOf")},Zf="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function eh(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else{if(Zf&&(e instanceof Blob||e instanceof FileList)||!n&&!Yf(e))return e;if(t=n?[]:{},n||Jf(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=eh(e[n]));else t=e}return t}var th=e=>Array.isArray(e)?e.filter(Boolean):[],nh=e=>void 0===e,rh=(e,t,n)=>{if(!t||!Yf(e))return n;const r=th(t.split(/[,[\].]+?/)).reduce(((e,t)=>Qf(e)?e:e[t]),e);return nh(r)||r===e?nh(e[t])?n:e[t]:r},ih=e=>"boolean"==typeof e,ah=e=>/^\w*$/.test(e),oh=e=>th(e.replace(/["|']|\]/g,"").split(/\.|\[/)),sh=(e,t,n)=>{let r=-1;const i=ah(t)?[t]:oh(t),a=i.length,o=a-1;for(;++r<a;){const t=i[r];let a=n;if(r!==o){const n=e[t];a=Yf(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if("__proto__"===t)return;e[t]=a,e=e[t]}return e};const lh={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},ch={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},uh="max",dh="min",fh="maxLength",hh="minLength",ph="pattern",mh="required",gh="validate",yh=On.createContext(null),bh=()=>On.useContext(yh);var vh=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const i=a;return t._proxyFormState[i]!==ch.all&&(t._proxyFormState[i]=!r||ch.all),n&&(n[i]=!0),e[i]}});return i},_h=e=>Yf(e)&&!Object.keys(e).length,wh=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return _h(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find((e=>t[e]===(!r||ch.all)))},xh=e=>Array.isArray(e)?e:[e],Eh=(e,t,n)=>!e||!t||e===t||xh(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function Sh(e){const t=On.useRef(e);t.current=e,On.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var kh=e=>"string"==typeof e,Oh=(e,t,n,r,i)=>kh(e)?(r&&t.watch.add(e),rh(n,e,i)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),rh(n,e)))):(r&&(t.watchAll=!0),n);function Ch(e){const t=bh(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:o}=e||{},s=On.useRef(r);s.current=r,Sh({disabled:a,subject:n._subjects.values,next:e=>{Eh(s.current,e.name,o)&&c(eh(Oh(s.current,n._names,e.values||n._formValues,!1,i)))}});const[l,c]=On.useState(n._getWatch(r,i));return On.useEffect((()=>n._removeUnmounted())),l}function Ah(e){const t=bh(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,o=Xf(i._names.array,n),s=Ch({control:i,name:n,defaultValue:rh(i._formValues,n,rh(i._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=bh(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[o,s]=On.useState(n._formState),l=On.useRef(!0),c=On.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=On.useRef(i);return u.current=i,Sh({disabled:r,next:e=>l.current&&Eh(u.current,e.name,a)&&wh(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),On.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),vh(o,n,c.current,!1)}({control:i,name:n,exact:!0}),c=On.useRef(i.register(n,{...e.rules,value:s,...ih(e.disabled)?{disabled:e.disabled}:{}}));return On.useEffect((()=>{const e=i._options.shouldUnregister||a,t=(e,t)=>{const n=rh(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=eh(rh(i._options.defaultValues,n));sh(i._defaultValues,n,e),nh(rh(i._formValues,n))&&sh(i._formValues,n,e)}return()=>{(o?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}}),[n,i,o,a]),On.useEffect((()=>{rh(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:rh(i._fields,n)._f.value})}),[r,n,i]),{field:{name:n,value:s,...ih(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:On.useCallback((e=>c.current.onChange({target:{value:Gf(e),name:n},type:lh.CHANGE})),[n]),onBlur:On.useCallback((()=>c.current.onBlur({target:{value:rh(i._formValues,n),name:n},type:lh.BLUR})),[n,i]),ref:On.useCallback((e=>{const t=rh(i._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!rh(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!rh(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!rh(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!rh(l.validatingFields,n)},error:{enumerable:!0,get:()=>rh(l.errors,n)}})}}const Th=e=>e.render(Ah(e));var Rh=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},Ih=e=>({isOnSubmit:!e||e===ch.onSubmit,isOnBlur:e===ch.onBlur,isOnChange:e===ch.onChange,isOnAll:e===ch.all,isOnTouch:e===ch.onTouched}),Nh=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const Dh=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const n=rh(e,i);if(n){const{_f:e,...a}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],i)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(Dh(a,t))break}else if(Yf(a)&&Dh(a,t))break}}};var Ph=(e,t,n)=>{const r=xh(rh(e,n));return sh(r,"root",t[n]),sh(e,n,r),e},Fh=e=>"file"===e.type,Lh=e=>"function"==typeof e,Mh=e=>{if(!Zf)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},Uh=e=>kh(e),jh=e=>"radio"===e.type,zh=e=>e instanceof RegExp;const Bh={value:!1,isValid:!1},Vh={value:!0,isValid:!0};var qh=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter((e=>e&&e.checked&&!e.disabled)).map((e=>e.value));return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!nh(e[0].attributes.value)?nh(e[0].value)||""===e[0].value?Vh:{value:e[0].value,isValid:!0}:Vh:Bh}return Bh};const Hh={isValid:!1,value:null};var Wh=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Hh):Hh;function $h(e,t,n="validate"){if(Uh(e)||Array.isArray(e)&&e.every(Uh)||ih(e)&&!e)return{type:n,message:Uh(e)?e:"",ref:t}}var Qh=e=>Yf(e)&&!zh(e)?e:{value:e,message:""},Kh=async(e,t,n,r,i)=>{const{ref:a,refs:o,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:h,name:p,valueAsNumber:m,mount:g,disabled:y}=e._f,b=rh(t,p);if(!g||y)return{};const v=o?o[0]:a,_=e=>{r&&v.reportValidity&&(v.setCustomValidity(ih(e)?"":e||""),v.reportValidity())},w={},x=jh(a),E=Wf(a),S=x||E,k=(m||Fh(a))&&nh(a.value)&&nh(b)||Mh(a)&&""===a.value||""===b||Array.isArray(b)&&!b.length,O=Rh.bind(null,p,n,w),C=(e,t,n,r=fh,i=hh)=>{const o=e?t:n;w[p]={type:e?r:i,message:o,ref:a,...O(e?r:i,o)}};if(i?!Array.isArray(b)||!b.length:s&&(!S&&(k||Qf(b))||ih(b)&&!b||E&&!qh(o).isValid||x&&!Wh(o).isValid)){const{value:e,message:t}=Uh(s)?{value:!!s,message:s}:Qh(s);if(e&&(w[p]={type:mh,message:t,ref:v,...O(mh,t)},!n))return _(t),w}if(!(k||Qf(u)&&Qf(d))){let e,t;const r=Qh(d),i=Qh(u);if(Qf(b)||isNaN(b)){const n=a.valueAsDate||new Date(b),o=e=>new Date((new Date).toDateString()+" "+e),s="time"==a.type,l="week"==a.type;kh(r.value)&&b&&(e=s?o(b)>o(r.value):l?b>r.value:n>new Date(r.value)),kh(i.value)&&b&&(t=s?o(b)<o(i.value):l?b<i.value:n<new Date(i.value))}else{const n=a.valueAsNumber||(b?+b:b);Qf(r.value)||(e=n>r.value),Qf(i.value)||(t=n<i.value)}if((e||t)&&(C(!!e,r.message,i.message,uh,dh),!n))return _(w[p].message),w}if((l||c)&&!k&&(kh(b)||i&&Array.isArray(b))){const e=Qh(l),t=Qh(c),r=!Qf(e.value)&&b.length>+e.value,i=!Qf(t.value)&&b.length<+t.value;if((r||i)&&(C(r,e.message,t.message),!n))return _(w[p].message),w}if(f&&!k&&kh(b)){const{value:e,message:t}=Qh(f);if(zh(e)&&!b.match(e)&&(w[p]={type:ph,message:t,ref:a,...O(ph,t)},!n))return _(t),w}if(h)if(Lh(h)){const e=$h(await h(b,t),v);if(e&&(w[p]={...e,...O(gh,e.message)},!n))return _(e.message),w}else if(Yf(h)){let e={};for(const r in h){if(!_h(e)&&!n)break;const i=$h(await h[r](b,t),v,r);i&&(e={...i,...O(r,i.message)},_(i.message),n&&(w[p]=e))}if(!_h(e)&&(w[p]={ref:v,...e},!n))return w}return _(!0),w};function Yh(e,t){const n=Array.isArray(t)?t:ah(t)?[t]:oh(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=nh(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,a=n[i];return r&&delete r[a],0!==i&&(Yf(r)&&_h(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!nh(e[t]))return!1;return!0}(r))&&Yh(e,n.slice(0,-1)),e}var Gh=()=>{let e=[];return{get observers(){return e},next:t=>{for(const n of e)n.next&&n.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter((e=>e!==t))}}),unsubscribe:()=>{e=[]}}},Xh=e=>Qf(e)||!Kf(e);function Jh(e,t){if(Xh(e)||Xh(t))return e===t;if($f(e)&&$f(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const n=e[i];if(!r.includes(i))return!1;if("ref"!==i){const e=t[i];if($f(n)&&$f(e)||Yf(n)&&Yf(e)||Array.isArray(n)&&Array.isArray(e)?!Jh(n,e):n!==e)return!1}}return!0}var Zh=e=>"select-multiple"===e.type,ep=e=>jh(e)||Wf(e),tp=e=>Mh(e)&&e.isConnected,np=e=>{for(const t in e)if(Lh(e[t]))return!0;return!1};function rp(e,t={}){const n=Array.isArray(e);if(Yf(e)||n)for(const r in e)Array.isArray(e[r])||Yf(e[r])&&!np(e[r])?(t[r]=Array.isArray(e[r])?[]:{},rp(e[r],t[r])):Qf(e[r])||(t[r]=!0);return t}function ip(e,t,n){const r=Array.isArray(e);if(Yf(e)||r)for(const i in e)Array.isArray(e[i])||Yf(e[i])&&!np(e[i])?nh(t)||Xh(n[i])?n[i]=Array.isArray(e[i])?rp(e[i],[]):{...rp(e[i])}:ip(e[i],Qf(t)?{}:t[i],n[i]):n[i]=!Jh(e[i],t[i]);return n}var ap=(e,t)=>ip(e,t,rp(t)),op=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>nh(e)?e:t?""===e?NaN:e?+e:e:n&&kh(e)?new Date(e):r?r(e):e;function sp(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return Fh(t)?t.files:jh(t)?Wh(e.refs).value:Zh(t)?[...t.selectedOptions].map((({value:e})=>e)):Wf(t)?qh(e.refs).value:op(nh(t.value)?e.ref.value:t.value,e)}var lp=(e,t,n,r)=>{const i={};for(const a of e){const e=rh(t,a);e&&sh(i,a,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},cp=e=>nh(e)?e:zh(e)?e.source:Yf(e)?zh(e.value)?e.value.source:e.value:e;const up="AsyncFunction";var dp=e=>!(e&&e.validate||!(Lh(e.validate)&&e.validate.constructor.name===up||Yf(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===up)))),fp=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function hp(e,t,n){const r=rh(e,n);if(r||ah(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),a=rh(t,r),o=rh(e,r);if(a&&!Array.isArray(a)&&n!==r)return{name:n};if(o&&o.type)return{name:r,error:o};i.pop()}return{name:n}}var pp=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e),mp=(e,t)=>!th(rh(e,t)).length&&Yh(e,t);const gp={mode:ch.onSubmit,reValidateMode:ch.onChange,shouldFocusError:!0};function yp(e={}){let t,n={...gp,...e},r={submitCount:0,isDirty:!1,isLoading:Lh(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},a=(Yf(n.defaultValues)||Yf(n.values))&&eh(n.defaultValues||n.values)||{},o=n.shouldUnregister?{}:eh(a),s={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},c=0;const u={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},d={values:Gh(),array:Gh(),state:Gh()},f=Ih(n.mode),h=Ih(n.reValidateMode),p=n.criteriaMode===ch.all,m=async e=>{if(u.isValid||e){const e=n.resolver?_h((await _()).errors):await w(i,!0);e!==r.isValid&&d.state.next({isValid:e})}},g=(e,t)=>{(u.isValidating||u.validatingFields)&&((e||Array.from(l.mount)).forEach((e=>{e&&(t?sh(r.validatingFields,e,t):Yh(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!_h(r.validatingFields)}))},y=(e,t,n,r)=>{const l=rh(i,e);if(l){const i=rh(o,e,nh(n)?rh(a,e):n);nh(i)||r&&r.defaultChecked||t?sh(o,e,t?i:sp(l._f)):S(e,i),s.mount&&m()}},b=(e,t,n,o,s)=>{let l=!1,c=!1;const f={name:e},h=!!(rh(i,e)&&rh(i,e)._f&&rh(i,e)._f.disabled);if(!n||o){u.isDirty&&(c=r.isDirty,r.isDirty=f.isDirty=x(),l=c!==f.isDirty);const n=h||Jh(rh(a,e),t);c=!(h||!rh(r.dirtyFields,e)),n||h?Yh(r.dirtyFields,e):sh(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,l=l||u.dirtyFields&&c!==!n}if(n){const t=rh(r.touchedFields,e);t||(sh(r.touchedFields,e,n),f.touchedFields=r.touchedFields,l=l||u.touchedFields&&t!==n)}return l&&s&&d.state.next(f),l?f:{}},v=(n,i,a,o)=>{const s=rh(r.errors,n),l=u.isValid&&ih(i)&&r.isValid!==i;var f;if(e.delayError&&a?(f=()=>((e,t)=>{sh(r.errors,e,t),d.state.next({errors:r.errors})})(n,a),t=e=>{clearTimeout(c),c=setTimeout(f,e)},t(e.delayError)):(clearTimeout(c),t=null,a?sh(r.errors,n,a):Yh(r.errors,n)),(a?!Jh(s,a):s)||!_h(o)||l){const e={...o,...l&&ih(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}},_=async e=>{g(e,!0);const t=await n.resolver(o,n.context,lp(e||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},w=async(e,t,i={valid:!0})=>{for(const a in e){const s=e[a];if(s){const{_f:e,...c}=s;if(e){const c=l.array.has(e.name),d=s._f&&dp(s._f);d&&u.validatingFields&&g([a],!0);const f=await Kh(s,o,p,n.shouldUseNativeValidation&&!t,c);if(d&&u.validatingFields&&g([a]),f[e.name]&&(i.valid=!1,t))break;!t&&(rh(f,e.name)?c?Ph(r.errors,f,e.name):sh(r.errors,e.name,f[e.name]):Yh(r.errors,e.name))}!_h(c)&&await w(c,t,i)}}return i.valid},x=(e,t)=>(e&&t&&sh(o,e,t),!Jh(R(),a)),E=(e,t,n)=>Oh(e,l,{...s.mount?o:nh(t)?a:kh(e)?{[e]:t}:t},n,t),S=(e,t,n={})=>{const r=rh(i,e);let a=t;if(r){const n=r._f;n&&(!n.disabled&&sh(o,e,op(t,n)),a=Mh(n.ref)&&Qf(t)?"":t,Zh(n.ref)?[...n.ref.options].forEach((e=>e.selected=a.includes(e.value))):n.refs?Wf(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(a)?!!a.find((t=>t===e.value)):a===e.value))):n.refs[0]&&(n.refs[0].checked=!!a):n.refs.forEach((e=>e.checked=e.value===a)):Fh(n.ref)?n.ref.value="":(n.ref.value=a,n.ref.type||d.values.next({name:e,values:{...o}})))}(n.shouldDirty||n.shouldTouch)&&b(e,a,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&T(e)},k=(e,t,n)=>{for(const r in t){const a=t[r],o=`${e}.${r}`,s=rh(i,o);!l.array.has(e)&&Xh(a)&&(!s||s._f)||$f(a)?S(o,a,n):k(o,a,n)}},O=(e,t,n={})=>{const c=rh(i,e),f=l.array.has(e),h=eh(t);sh(o,e,h),f?(d.array.next({name:e,values:{...o}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:ap(a,o),isDirty:x(e,h)})):!c||c._f||Qf(h)?S(e,h,n):k(e,h,n),Nh(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...o}})},C=async a=>{s.mount=!0;const c=a.target;let y=c.name,x=!0;const E=rh(i,y),S=e=>{x=Number.isNaN(e)||Jh(e,rh(o,y,e))};if(E){let s,k;const O=c.type?sp(E._f):Gf(a),C=a.type===lh.BLUR||a.type===lh.FOCUS_OUT,A=!fp(E._f)&&!n.resolver&&!rh(r.errors,y)&&!E._f.deps||pp(C,rh(r.touchedFields,y),r.isSubmitted,h,f),R=Nh(y,l,C);sh(o,y,O),C?(E._f.onBlur&&E._f.onBlur(a),t&&t(0)):E._f.onChange&&E._f.onChange(a);const I=b(y,O,C,!1),N=!_h(I)||R;if(!C&&d.values.next({name:y,type:a.type,values:{...o}}),A)return u.isValid&&("onBlur"===e.mode?C&&m():m()),N&&d.state.next({name:y,...R?{}:I});if(!C&&R&&d.state.next({...r}),n.resolver){const{errors:e}=await _([y]);if(S(O),x){const t=hp(r.errors,i,y),n=hp(e,i,t.name||y);s=n.error,y=n.name,k=_h(e)}}else g([y],!0),s=(await Kh(E,o,p,n.shouldUseNativeValidation))[y],g([y]),S(O),x&&(s?k=!1:u.isValid&&(k=await w(i,!0)));x&&(E._f.deps&&T(E._f.deps),v(y,k,s,I))}},A=(e,t)=>{if(rh(r.errors,t)&&e.focus)return e.focus(),1},T=async(e,t={})=>{let a,o;const s=xh(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await _(e);if(e)for(const n of e){const e=rh(t,n);e?sh(r.errors,n,e):Yh(r.errors,n)}else r.errors=t;return t})(nh(e)?e:s);a=_h(t),o=e?!s.some((e=>rh(t,e))):a}else e?(o=(await Promise.all(s.map((async e=>{const t=rh(i,e);return await w(t&&t._f?{[e]:t}:t)})))).every(Boolean),(o||r.isValid)&&m()):o=a=await w(i);return d.state.next({...!kh(e)||u.isValid&&a!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:a}:{},errors:r.errors}),t.shouldFocus&&!o&&Dh(i,A,e?s:l.mount),o},R=e=>{const t={...s.mount?o:a};return nh(e)?t:kh(e)?rh(t,e):e.map((e=>rh(t,e)))},I=(e,t)=>({invalid:!!rh((t||r).errors,e),isDirty:!!rh((t||r).dirtyFields,e),error:rh((t||r).errors,e),isValidating:!!rh(r.validatingFields,e),isTouched:!!rh((t||r).touchedFields,e)}),N=(e,t,n)=>{const a=(rh(i,e,{_f:{}})._f||{}).ref,o=rh(r.errors,e)||{},{ref:s,message:l,type:c,...u}=o;sh(r.errors,e,{...u,...t,ref:a}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&a&&a.focus&&a.focus()},D=(e,t={})=>{for(const s of e?xh(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Yh(i,s),Yh(o,s)),!t.keepError&&Yh(r.errors,s),!t.keepDirty&&Yh(r.dirtyFields,s),!t.keepTouched&&Yh(r.touchedFields,s),!t.keepIsValidating&&Yh(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Yh(a,s);d.values.next({values:{...o}}),d.state.next({...r,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&m()},P=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(ih(e)&&s.mount||e){const a=e?void 0:nh(i)?sp(n?n._f:rh(r,t)._f):i;sh(o,t,a),b(t,a,!1,!1,!0)}},F=(t,r={})=>{let o=rh(i,t);const c=ih(r.disabled)||ih(e.disabled);return sh(i,t,{...o||{},_f:{...o&&o._f?o._f:{ref:{name:t}},name:t,mount:!0,...r}}),l.mount.add(t),o?P({field:o,disabled:ih(r.disabled)?r.disabled:e.disabled,name:t,value:r.value}):y(t,!0,r.value),{...c?{disabled:r.disabled||e.disabled}:{},...n.progressive?{required:!!r.required,min:cp(r.min),max:cp(r.max),minLength:cp(r.minLength),maxLength:cp(r.maxLength),pattern:cp(r.pattern)}:{},name:t,onChange:C,onBlur:C,ref:e=>{if(e){F(t,r),o=rh(i,t);const n=nh(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,s=ep(n),l=o._f.refs||[];if(s?l.find((e=>e===n)):n===o._f.ref)return;sh(i,t,{_f:{...o._f,...s?{refs:[...l.filter(tp),n,...Array.isArray(rh(a,t))?[{}]:[]],ref:{type:n.type,name:t}}:{ref:n}}}),y(t,!1,void 0,n)}else o=rh(i,t,{}),o._f&&(o._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!Xf(l.array,t)||!s.action)&&l.unMount.add(t)}}},L=()=>n.shouldFocusError&&Dh(i,A,l.mount),M=(e,t)=>async a=>{let s;a&&(a.preventDefault&&a.preventDefault(),a.persist&&a.persist());let l=eh(o);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await _();r.errors=e,l=t}else await w(i);if(Yh(r.errors,"root"),_h(r.errors)){d.state.next({errors:{}});try{await e(l,a)}catch(c){s=c}}else t&&await t({...r.errors},a),L(),setTimeout(L);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:_h(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},U=(t,n={})=>{const c=t?eh(t):a,f=eh(c),h=_h(t),p=h?a:f;if(n.keepDefaultValues||(a=c),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)rh(r.dirtyFields,e)?sh(p,e,rh(o,e)):O(e,rh(p,e));else{if(Zf&&nh(t))for(const e of l.mount){const t=rh(i,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Mh(e)){const t=e.closest("form");if(t){t.reset();break}}}}i={}}o=e.shouldUnregister?n.keepDefaultValues?eh(a):{}:eh(p),d.array.next({values:{...p}}),d.values.next({values:{...p}})}l={mount:n.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!u.isValid||!!n.keepIsValid||!!n.keepDirtyValues,s.watch=!!e.shouldUnregister,d.state.next({submitCount:n.keepSubmitCount?r.submitCount:0,isDirty:!h&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||Jh(t,a))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:h?{}:n.keepDirtyValues?n.keepDefaultValues&&o?ap(a,o):r.dirtyFields:n.keepDefaultValues&&t?ap(a,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},j=(e,t)=>U(Lh(e)?e(o):e,t);return{control:{register:F,unregister:D,getFieldState:I,handleSubmit:M,setError:N,_executeSchema:_,_getWatch:E,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=rh(i,e);t&&(t._f.refs?t._f.refs.every((e=>!tp(e))):!tp(t._f.ref))&&D(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,c=!0,f=!0)=>{if(l&&n){if(s.action=!0,f&&Array.isArray(rh(i,e))){const t=n(rh(i,e),l.argA,l.argB);c&&sh(i,e,t)}if(f&&Array.isArray(rh(r.errors,e))){const t=n(rh(r.errors,e),l.argA,l.argB);c&&sh(r.errors,e,t),mp(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(rh(r.touchedFields,e))){const t=n(rh(r.touchedFields,e),l.argA,l.argB);c&&sh(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=ap(a,o)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else sh(o,e,t)},_updateDisabledField:P,_getFieldArray:t=>th(rh(s.mount?o:a,t,e.shouldUnregister?rh(a,t,[]):[])),_reset:U,_resetDefaultValues:()=>Lh(n.defaultValues)&&n.defaultValues().then((e=>{j(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{ih(e)&&(d.state.next({disabled:e}),Dh(i,((t,n)=>{const r=rh(i,n);r&&(t.disabled=r._f.disabled||e,Array.isArray(r._f.refs)&&r._f.refs.forEach((t=>{t.disabled=r._f.disabled||e})))}),0,!1))},_subjects:d,_proxyFormState:u,_setErrors:e=>{r.errors=e,d.state.next({errors:r.errors,isValid:!1})},get _fields(){return i},get _formValues(){return o},get _state(){return s},set _state(e){s=e},get _defaultValues(){return a},get _names(){return l},set _names(e){l=e},get _formState(){return r},set _formState(e){r=e},get _options(){return n},set _options(e){n={...n,...e}}},trigger:T,register:F,handleSubmit:M,watch:(e,t)=>Lh(e)?d.values.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:O,getValues:R,reset:j,resetField:(e,t={})=>{rh(i,e)&&(nh(t.defaultValue)?O(e,eh(rh(a,e))):(O(e,t.defaultValue),sh(a,e,eh(t.defaultValue))),t.keepTouched||Yh(r.touchedFields,e),t.keepDirty||(Yh(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,eh(rh(a,e))):x()),t.keepError||(Yh(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&xh(e).forEach((e=>Yh(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:D,setError:N,setFocus:(e,t={})=>{const n=rh(i,e),r=n&&n._f;if(r){const e=r.refs?r.refs[0]:r.ref;e.focus&&(e.focus(),t.shouldSelect&&e.select())}},getFieldState:I}}function bp(e,t){return e===t}function vp(e,t){return t}function _p(e,t,n){var r=n&&n.equalityFn||bp,i=ot(vp,e),a=i[0],o=i[1],s=function(e,t,n){var r=this,i=ct(null),a=ct(0),o=ct(null),s=ct([]),l=ct(),c=ct(),u=ct(e),d=ct(!0);u.current=e;var f="undefined"!=typeof window,h=!t&&0!==t&&f;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,y="debounceOnServer"in n&&!!n.debounceOnServer,b=g?Math.max(+n.maxWait||0,t):null;st((function(){return d.current=!0,function(){d.current=!1}}),[]);var v=dt((function(){var e=function(e){var t=s.current,n=l.current;return s.current=l.current=null,a.current=e,c.current=u.current.apply(n,t)},n=function(e,t){h&&cancelAnimationFrame(o.current),o.current=h?requestAnimationFrame(e):setTimeout(e,t)},v=function(e){if(!d.current)return!1;var n=e-i.current;return!i.current||n>=t||n<0||g&&e-a.current>=b},_=function(t){return o.current=null,m&&s.current?e(t):(s.current=l.current=null,c.current)},w=function e(){var r=Date.now();if(v(r))return _(r);if(d.current){var o=t-(r-i.current),s=g?Math.min(o,b-(r-a.current)):o;n(e,s)}},x=function(){if(f||y){var u=Date.now(),h=v(u);if(s.current=[].slice.call(arguments),l.current=r,i.current=u,h){if(!o.current&&d.current)return a.current=i.current,n(w,t),p?e(i.current):c.current;if(g)return n(w,t),e(i.current)}return o.current||n(w,t),c.current}};return x.cancel=function(){o.current&&(h?cancelAnimationFrame(o.current):clearTimeout(o.current)),a.current=0,s.current=i.current=l.current=o.current=null},x.isPending=function(){return!!o.current},x.flush=function(){return o.current?_(Date.now()):c.current},x}),[p,g,t,b,m,h,f,y]);return v}(ft((function(e){return o(e)}),[o]),t,n),l=ct(e);return r(l.current,e)||(s(e),l.current=e),r(a,e)&&s.cancel(),[a,s]}const wp=({label:e,error:t,hint:n,class:r,...i})=>X("div",{class:r,children:X("div",{class:"flex flex-col gap-2",children:[X(ol,{label:!0,children:e}),X("div",{children:i.children}),t&&X(ol,{danger:!0,hint:!0,children:t}),n&&X(ol,{hint:!0,children:n})]})});var xp,Ep,Sp={exports:{}},kp={};Ep||(Ep=1,Sp.exports=function(){if(xp)return kp;xp=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen");function m(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case r:case a:case i:case u:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case c:case h:case f:case o:return e;default:return p}}case n:return p}}}return e=Symbol.for("react.module.reference"),kp.ContextConsumer=s,kp.ContextProvider=o,kp.Element=t,kp.ForwardRef=c,kp.Fragment=r,kp.Lazy=h,kp.Memo=f,kp.Portal=n,kp.Profiler=a,kp.StrictMode=i,kp.Suspense=u,kp.SuspenseList=d,kp.isAsyncMode=function(){return!1},kp.isConcurrentMode=function(){return!1},kp.isContextConsumer=function(e){return m(e)===s},kp.isContextProvider=function(e){return m(e)===o},kp.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},kp.isForwardRef=function(e){return m(e)===c},kp.isFragment=function(e){return m(e)===r},kp.isLazy=function(e){return m(e)===h},kp.isMemo=function(e){return m(e)===f},kp.isPortal=function(e){return m(e)===n},kp.isProfiler=function(e){return m(e)===a},kp.isStrictMode=function(e){return m(e)===i},kp.isSuspense=function(e){return m(e)===u},kp.isSuspenseList=function(e){return m(e)===d},kp.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===a||t===i||t===u||t===d||t===p||"object"==typeof t&&null!==t&&(t.$$typeof===h||t.$$typeof===f||t.$$typeof===o||t.$$typeof===s||t.$$typeof===c||t.$$typeof===e||void 0!==t.getModuleId)},kp.typeOf=m,kp}()),Sp.exports;const Op=e=>"object"==typeof e&&null!=e&&1===e.nodeType,Cp=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,Ap=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return Cp(n.overflowY,t)||Cp(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(t){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},Tp=(e,t,n,r,i,a,o,s)=>a<e&&o>t||a>e&&o<t?0:a<=e&&s<=n||o>=t&&s>=n?a-e-r:o>t&&s<n||a<e&&s>n?o-t+i:0,Rp=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var Ip=function(){return Ip=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ip.apply(this,arguments)};"function"==typeof SuppressedError&&SuppressedError;var Np=0;function Dp(){}function Pp(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function Fp(e,t){var n;function r(){n&&clearTimeout(n)}function i(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];r(),n=setTimeout((function(){n=null,e.apply(void 0,a)}),t)}return i.cancel=r,i}function Lp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.some((function(t){return t&&t.apply(void 0,[e].concat(r)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Mp(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function Up(e,t){return e&&t?Object.keys(e).reduce((function(n,r){return n[r]=function(e,t){return void 0!==e[t]}(t,r)?t[r]:e[r],n}),{}):e}function jp(e,t,n,r,i){void 0===i&&(i=!1);var a=n.length;if(0===a)return-1;var o=a-1;("number"!=typeof e||e<0||e>o)&&(e=t>0?-1:o+1);var s=e+t;s<0?s=i?o:0:s>o&&(s=i?0:o);var l=zp(s,t<0,n,r,i);return-1===l?e>=a?-1:e:l}function zp(e,t,n,r,i){void 0===i&&(i=!1);var a=n.length;if(t){for(var o=e;o>=0;o--)if(!r(n[o],o))return o}else for(var s=e;s<a;s++)if(!r(n[s],s))return s;return i?zp(t?a-1:0,t,n,r):-1}function Bp(e,t,n,r){return void 0===r&&(r=!0),n&&t.some((function(t){return t&&(Pp(t,e,n)||r&&Pp(t,n.document.activeElement,n))}))}var Vp=Fp((function(e){qp(e).textContent=""}),500);function qp(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var Hp={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function Wp(e,t,n){var r=e.props,i=e.type,a={};Object.keys(t).forEach((function(r){!function(e,t,n,r){var i=t.props,a=t.type,o="on"+Yp(e)+"Change";i[o]&&void 0!==r[e]&&r[e]!==n[e]&&i[o](ri({type:a},r))}(r,e,t,n),n[r]!==t[r]&&(a[r]=n[r])})),r.onStateChange&&Object.keys(a).length&&r.onStateChange(ri({type:i},a))}var $p=Fp((function(e,t){!function(e,t){e&&t&&(qp(t).textContent=e,Vp(t))}(e,t)}),200),Qp="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?lt:st,Kp="useId"in On?function(e){var t=e.id,n=e.labelId,r=e.menuId,i=e.getItemId,a=e.toggleButtonId,o=e.inputId,s="downshift-"+On.useId();return t||(t=s),ct({labelId:n||t+"-label",menuId:r||t+"-menu",getItemId:i||function(e){return t+"-item-"+e},toggleButtonId:a||t+"-toggle-button",inputId:o||t+"-input"}).current}:function(e){var t=e.id,n=void 0===t?"downshift-"+String(Np++):t,r=e.labelId,i=e.menuId,a=e.getItemId,o=e.toggleButtonId,s=e.inputId;return ct({labelId:r||n+"-label",menuId:i||n+"-menu",getItemId:a||function(e){return n+"-item-"+e},toggleButtonId:o||n+"-toggle-button",inputId:s||n+"-input"}).current};function Yp(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Gp(e){var t=ct(e);return t.current=e,t}function Xp(e,t,n,r){var i=function(e,t,n,r){var i=ct(),a=ct(),o=ot(ft((function(t,n){a.current=n,t=Up(t,n.props);var r=e(t,n);return n.props.stateReducer(t,ri({},n,{changes:r}))}),[e]),t,n),s=o[0],l=o[1],c=Gp(t),u=ft((function(e){return l(ri({props:c.current},e))}),[c]),d=a.current;return st((function(){var e=Up(i.current,null==d?void 0:d.props);d&&i.current&&!r(e,s)&&Wp(d,e,s),i.current=s}),[s,d,r]),[s,u]}(e,t,n,r),a=i[0],o=i[1];return[Up(a,t),o]}var Jp={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},scrollIntoView:function(e,t){e&&((e,t)=>{var n,r,i,a;if("undefined"==typeof document)return[];const{inline:o,boundary:s,skipOverflowHiddenElements:l}=t,c="function"==typeof s?s:e=>e!==s;if(!Op(e))throw new TypeError("Invalid target");const u=document.scrollingElement||document.documentElement,d=[];let f=e;for(;Op(f)&&c(f);){if(f=Rp(f),f===u){d.push(f);break}null!=f&&f===document.body&&Ap(f)&&!Ap(document.documentElement)||null!=f&&Ap(f,l)&&d.push(f)}const h=null!=(r=null==(n=window.visualViewport)?void 0:n.width)?r:innerWidth,p=null!=(a=null==(i=window.visualViewport)?void 0:i.height)?a:innerHeight,{scrollX:m,scrollY:g}=window,{height:y,width:b,top:v,right:_,bottom:w,left:x}=e.getBoundingClientRect(),{top:E,right:S,left:k}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O=v-E,C="center"===o?x+b/2-k+S:"end"===o?_+S:x-k;const A=[];for(let T=0;T<d.length;T++){const e=d[T],{height:t,width:n,top:r,right:i,bottom:a,left:s}=e.getBoundingClientRect();if(v>=0&&x>=0&&w<=p&&_<=h&&v>=r&&w<=a&&x>=s&&_<=i)return A;const l=getComputedStyle(e),c=parseInt(l.borderLeftWidth,10),f=parseInt(l.borderTopWidth,10),E=parseInt(l.borderRightWidth,10),S=parseInt(l.borderBottomWidth,10);let k=0,R=0;const I="offsetWidth"in e?e.offsetWidth-e.clientWidth-c-E:0,N="offsetHeight"in e?e.offsetHeight-e.clientHeight-f-S:0,D="offsetWidth"in e?0===e.offsetWidth?0:n/e.offsetWidth:0,P="offsetHeight"in e?0===e.offsetHeight?0:t/e.offsetHeight:0;if(u===e)k=Tp(g,g+p,p,f,S,g+O,g+O+y,y),R="start"===o?C:"center"===o?C-h/2:"end"===o?C-h:Tp(m,m+h,h,c,E,m+C,m+C+b,b),k=Math.max(0,k+g),R=Math.max(0,R+m);else{k=Tp(r,a,t,f,S+N,O,O+y,y),R="start"===o?C-s-c:"center"===o?C-(s+n/2)+I/2:"end"===o?C-i+E+I:Tp(s,i,n,c,E+I,C,C+b,b);const{scrollLeft:l,scrollTop:u}=e;k=0===P?0:Math.max(0,Math.min(u+k/P,e.scrollHeight-t/P+N)),R=0===D?0:Math.max(0,Math.min(l+R/D,e.scrollWidth-n/D+I)),O+=u-k,C+=l-R}A.push({el:e,top:k,left:R})}return A})(e,{boundary:t}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))},environment:"undefined"==typeof window?void 0:window};function Zp(e,t,n){void 0===n&&(n=Hp);var r=e["default"+Yp(t)];return void 0!==r?r:n[t]}function em(e,t,n){void 0===n&&(n=Hp);var r=e[t];if(void 0!==r)return r;var i=e["initial"+Yp(t)];return void 0!==i?i:Zp(e,t,n)}function tm(e){var t=em(e,"selectedItem"),n=em(e,"isOpen"),r=function(e){var t=em(e,"highlightedIndex");if(t>-1&&e.isItemDisabled(e.items[t],t))return-1;return t}(e),i=em(e,"inputValue");return{highlightedIndex:r<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):r,isOpen:n,selectedItem:t,inputValue:i}}function nm(e,t,n){var r=e.items,i=e.initialHighlightedIndex,a=e.defaultHighlightedIndex,o=e.isItemDisabled,s=e.itemToKey,l=t.selectedItem,c=t.highlightedIndex;return 0===r.length?-1:void 0===i||c!==i||o(r[i],i)?void 0===a||o(r[a],a)?l?r.findIndex((function(e){return s(l)===s(e)})):n<0&&!o(r[r.length-1],r.length-1)?r.length-1:n>0&&!o(r[0],0)?0:-1:a:i}function rm(e,t,n,r){void 0===r&&(r={});var i,a=r.document,o=(i=On.useRef(!0),On.useEffect((function(){return i.current=!1,function(){i.current=!0}}),[]),i.current);st((function(){if(e&&!o&&a){var n=e(t);$p(n,a)}}),n),st((function(){return function(){var e,t;$p.cancel(),(t=null==(e=a)?void 0:e.getElementById("a11y-status-message"))&&t.remove()}}),[a])}function im(e,t,n){var r;return ri({isOpen:!1,highlightedIndex:-1},(null==(r=e.items)?void 0:r.length)&&t>=0&&ri({selectedItem:e.items[t],isOpen:Zp(e,"isOpen"),highlightedIndex:Zp(e,"highlightedIndex")},n))}function am(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function om(e){var t=Zp(e,"highlightedIndex");return t>-1&&e.isItemDisabled(e.items[t],t)?-1:t}var sm={environment:yi.shape({addEventListener:yi.func.isRequired,removeEventListener:yi.func.isRequired,document:yi.shape({createElement:yi.func.isRequired,getElementById:yi.func.isRequired,activeElement:yi.any.isRequired,body:yi.any.isRequired}).isRequired,Node:yi.func.isRequired}),itemToString:yi.func,itemToKey:yi.func,stateReducer:yi.func},lm=ri({},sm,{getA11yStatusMessage:yi.func,highlightedIndex:yi.number,defaultHighlightedIndex:yi.number,initialHighlightedIndex:yi.number,isOpen:yi.bool,defaultIsOpen:yi.bool,initialIsOpen:yi.bool,selectedItem:yi.any,initialSelectedItem:yi.any,defaultSelectedItem:yi.any,id:yi.string,labelId:yi.string,menuId:yi.string,getItemId:yi.func,toggleButtonId:yi.string,onSelectedItemChange:yi.func,onHighlightedIndexChange:yi.func,onStateChange:yi.func,onIsOpenChange:yi.func,scrollIntoView:yi.func});Ip(Ip({},lm),{items:yi.array.isRequired,isItemDisabled:yi.func});var cm=Ip(Ip({},Jp),{isItemDisabled:function(){return!1}}),um=1,dm=2,fm=3,hm=4,pm=5,mm=6,gm=7,ym=8,bm=9,vm=10,_m=11,wm=14,xm=19,Em=Object.freeze({__proto__:null,FunctionCloseMenu:17,FunctionOpenMenu:16,FunctionReset:21,FunctionSelectItem:xm,FunctionSetHighlightedIndex:18,FunctionSetInputValue:20,FunctionToggleMenu:15,ItemClick:wm,ItemMouseMove:13,MenuMouseLeave:12,ToggleButtonBlur:_m,ToggleButtonClick:0,ToggleButtonKeyDownArrowDown:um,ToggleButtonKeyDownArrowUp:dm,ToggleButtonKeyDownCharacter:fm,ToggleButtonKeyDownEnd:mm,ToggleButtonKeyDownEnter:gm,ToggleButtonKeyDownEscape:hm,ToggleButtonKeyDownHome:pm,ToggleButtonKeyDownPageDown:vm,ToggleButtonKeyDownPageUp:bm,ToggleButtonKeyDownSpaceButton:ym});function Sm(e,t){var n,r,i=t.type,a=t.props,o=t.altKey;switch(i){case wm:r={isOpen:Zp(a,"isOpen"),highlightedIndex:om(a),selectedItem:a.items[t.index]};break;case fm:var s=t.key,l=""+e.inputValue+s;r={inputValue:l,highlightedIndex:function(e){for(var t=e.keysSoFar,n=e.highlightedIndex,r=e.items,i=e.itemToString,a=e.isItemDisabled,o=t.toLowerCase(),s=0;s<r.length;s++){var l=(s+n+(t.length<2?1:0))%r.length,c=r[l];if(void 0!==c&&i(c).toLowerCase().startsWith(o)&&!a(c,l))return l}return n}({keysSoFar:l,highlightedIndex:!e.isOpen&&e.selectedItem?a.items.findIndex((function(t){return a.itemToKey(t)===a.itemToKey(e.selectedItem)})):e.highlightedIndex,items:a.items,itemToString:a.itemToString,isItemDisabled:a.isItemDisabled}),isOpen:!0};break;case um:r={highlightedIndex:e.isOpen?jp(e.highlightedIndex,1,a.items,a.isItemDisabled):o&&null==e.selectedItem?-1:nm(a,e,1),isOpen:!0};break;case dm:if(e.isOpen&&o)r=im(a,e.highlightedIndex,!1);else r={highlightedIndex:e.isOpen?jp(e.highlightedIndex,-1,a.items,a.isItemDisabled):nm(a,e,-1),isOpen:!0};break;case gm:case ym:r=im(a,e.highlightedIndex,!1);break;case pm:r={highlightedIndex:zp(0,!1,a.items,a.isItemDisabled),isOpen:!0};break;case mm:r={highlightedIndex:zp(a.items.length-1,!0,a.items,a.isItemDisabled),isOpen:!0};break;case bm:r={highlightedIndex:jp(e.highlightedIndex,-10,a.items,a.isItemDisabled)};break;case vm:r={highlightedIndex:jp(e.highlightedIndex,10,a.items,a.isItemDisabled)};break;case hm:r={isOpen:!1,highlightedIndex:-1};break;case _m:r=ri({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=a.items)?void 0:n.length)&&{selectedItem:a.items[e.highlightedIndex]});break;case xm:r={selectedItem:t.selectedItem};break;default:return function(e,t,n){var r,i=t.type,a=t.props;switch(i){case n.ItemMouseMove:r={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:r={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:r={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:nm(a,e,0)};break;case n.FunctionOpenMenu:r={isOpen:!0,highlightedIndex:nm(a,e,0)};break;case n.FunctionCloseMenu:r={isOpen:!1};break;case n.FunctionSetHighlightedIndex:r={highlightedIndex:a.isItemDisabled(a.items[t.highlightedIndex],t.highlightedIndex)?-1:t.highlightedIndex};break;case n.FunctionSetInputValue:r={inputValue:t.inputValue};break;case n.FunctionReset:r={highlightedIndex:om(a),isOpen:Zp(a,"isOpen"),selectedItem:Zp(a,"selectedItem"),inputValue:Zp(a,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return ri({},e,r)}(e,t,Em)}return ri({},e,r)}var km=["onClick"],Om=["onMouseLeave","refKey","ref"],Cm=["onBlur","onClick","onPress","onKeyDown","refKey","ref"],Am=["item","index","onMouseMove","onClick","onMouseDown","onPress","refKey","disabled","ref"];function Tm(e){void 0===e&&(e={});var t=ri({},cm,e),n=t.scrollIntoView,r=t.environment,i=t.getA11yStatusMessage,a=Xp(Sm,t,tm,am),o=a[0],s=a[1],l=o.isOpen,c=o.highlightedIndex,u=o.selectedItem,d=o.inputValue,f=ct(null),h=ct(null),p=ct({}),m=ct(null),g=Kp(t),y=Gp({state:o,props:t}),b=ft((function(e){return p.current[g.getItemId(e)]}),[g]);rm(i,o,[l,c,u,d],r);var v=function(e){var t=e.highlightedIndex,n=e.isOpen,r=e.itemRefs,i=e.getItemNodeFromIndex,a=e.menuElement,o=e.scrollIntoView,s=ct(!0);return Qp((function(){t<0||!n||!Object.keys(r.current).length||(!1===s.current?s.current=!0:o(i(t),a))}),[t]),s}({menuElement:h.current,highlightedIndex:c,isOpen:l,itemRefs:p,scrollIntoView:n,getItemNodeFromIndex:b});st((function(){return m.current=Fp((function(e){e({type:20,inputValue:""})}),500),function(){m.current.cancel()}}),[]),st((function(){d&&m.current(s)}),[s,d]),st((function(){em(t,"isOpen")&&f.current&&f.current.focus()}),[]);var _=function(e,t,n){var r=ct({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return st((function(){if(!e)return Dp;var i=n.map((function(e){return e.current}));function a(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function o(n){r.current.isMouseDown=!1,Bp(n.target,i,e)||t()}function s(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function l(){r.current.isTouchMove=!0}function c(n){r.current.isTouchEnd=!0,r.current.isTouchMove||Bp(n.target,i,e,!1)||t()}return e.addEventListener("mousedown",a),e.addEventListener("mouseup",o),e.addEventListener("touchstart",s),e.addEventListener("touchmove",l),e.addEventListener("touchend",c),function(){e.removeEventListener("mousedown",a),e.removeEventListener("mouseup",o),e.removeEventListener("touchstart",s),e.removeEventListener("touchmove",l),e.removeEventListener("touchend",c)}}),[n,e,t]),r.current}(r,ft((function(){y.current.state.isOpen&&s({type:_m})}),[s,y]),dt((function(){return[h,f]}),[h.current,f.current])),w=Dp;st((function(){l||(p.current={})}),[l]);var x=dt((function(){return{ArrowDown:function(e){e.preventDefault(),s({type:um,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),s({type:dm,altKey:e.altKey})},Home:function(e){e.preventDefault(),s({type:pm})},End:function(e){e.preventDefault(),s({type:mm})},Escape:function(){y.current.state.isOpen&&s({type:hm})},Enter:function(e){e.preventDefault(),s({type:y.current.state.isOpen?gm:0})},PageUp:function(e){y.current.state.isOpen&&(e.preventDefault(),s({type:bm}))},PageDown:function(e){y.current.state.isOpen&&(e.preventDefault(),s({type:vm}))}," ":function(e){e.preventDefault();var t=y.current.state;t.isOpen?t.inputValue?s({type:fm,key:" "}):s({type:ym}):s({type:0})}}}),[s,y]),E=ft((function(){s({type:15})}),[s]),S=ft((function(){s({type:17})}),[s]),k=ft((function(){s({type:16})}),[s]),O=ft((function(e){s({type:18,highlightedIndex:e})}),[s]),C=ft((function(e){s({type:xm,selectedItem:e})}),[s]),A=ft((function(){s({type:21})}),[s]),T=ft((function(e){s({type:20,inputValue:e})}),[s]),R=ft((function(e){var t=void 0===e?{}:e,n=t.onClick,r=ii(t,km);return ri({id:g.labelId,htmlFor:g.toggleButtonId,onClick:Lp(n,(function(){var e;null==(e=f.current)||e.focus()}))},r)}),[g]),I=ft((function(e,t){var n,r=void 0===e?{}:e,i=r.onMouseLeave,a=r.refKey,o=void 0===a?"ref":a,l=r.ref,c=ii(r,Om);(void 0===t?{}:t).suppressRefError;return ri(((n={})[o]=Mp(l,(function(e){h.current=e})),n.id=g.menuId,n.role="listbox",n["aria-labelledby"]=c&&c["aria-label"]?void 0:""+g.labelId,n.onMouseLeave=Lp(i,(function(){s({type:12})})),n),c)}),[s,w,g]);return{getToggleButtonProps:ft((function(e,t){var n,r=void 0===e?{}:e,i=r.onBlur,a=r.onClick;r.onPress;var o=r.onKeyDown,l=r.refKey,c=void 0===l?"ref":l,u=r.ref,d=ii(r,Cm);(void 0===t?{}:t).suppressRefError;var h=y.current.state,p=ri(((n={})[c]=Mp(u,(function(e){f.current=e})),n["aria-activedescendant"]=h.isOpen&&h.highlightedIndex>-1?g.getItemId(h.highlightedIndex):"",n["aria-controls"]=g.menuId,n["aria-expanded"]=y.current.state.isOpen,n["aria-haspopup"]="listbox",n["aria-labelledby"]=d&&d["aria-label"]?void 0:""+g.labelId,n.id=g.toggleButtonId,n.role="combobox",n.tabIndex=0,n.onBlur=Lp(i,(function(){h.isOpen&&!_.isMouseDown&&s({type:_m})})),n),d);return d.disabled||(p.onClick=Lp(a,(function(){s({type:0})})),p.onKeyDown=Lp(o,(function(e){var t=function(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}(e);t&&x[t]?x[t](e):function(e){return/^\S{1}$/.test(e)}(t)&&s({type:fm,key:t})}))),p}),[s,g,y,_,w,x]),getLabelProps:R,getMenuProps:I,getItemProps:ft((function(e){var t,n=void 0===e?{}:e,r=n.item,i=n.index,a=n.onMouseMove,o=n.onClick,l=n.onMouseDown;n.onPress;var c=n.refKey,u=void 0===c?"ref":c,d=n.disabled,f=n.ref,h=ii(n,Am);void 0!==d&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useSelect.');var m=y.current,b=m.state,w=m.props,x=function(e,t,n,r){var i,a;if(void 0===e){if(void 0===t)throw new Error(r);i=n[t],a=t}else a=void 0===t?n.indexOf(e):t,i=e;return[i,a]}(r,i,w.items,"Pass either item or index to getItemProps!"),E=x[0],S=x[1],k=w.isItemDisabled(E,S),O=ri(((t={})[u]=Mp(f,(function(e){e&&(p.current[g.getItemId(S)]=e)})),t["aria-disabled"]=k,t["aria-selected"]=E===b.selectedItem,t.id=g.getItemId(S),t.role="option",t),h);return k||(O.onClick=Lp(o,(function(){s({type:wm,index:S})}))),O.onMouseMove=Lp(a,(function(){_.isTouchEnd||S===b.highlightedIndex||(v.current=!1,s({type:13,index:S,disabled:k}))})),O.onMouseDown=Lp(l,(function(e){return e.preventDefault()})),O}),[y,g,_,v,s]),toggleMenu:E,openMenu:k,closeMenu:S,setHighlightedIndex:O,selectItem:C,reset:A,setInputValue:T,highlightedIndex:c,isOpen:l,selectedItem:u,inputValue:d}}Tm.stateChangeTypes=Em,ri({},lm,{items:yi.array.isRequired,isItemDisabled:yi.func,inputValue:yi.string,defaultInputValue:yi.string,initialInputValue:yi.string,inputId:yi.string,onInputValueChange:yi.func}),ri({},Jp,{isItemDisabled:function(){return!1}}),yi.array,yi.array,yi.array,yi.func,yi.number,yi.number,yi.number,yi.func,yi.func,yi.string,yi.string;const Rm=B(null),Im=()=>{const e=ht(Rm);if(!e)throw new Error("Listbox components must be used within a Listbox");return e},Nm=({value:e,onChange:t,options:n,children:r})=>{const i=Tm({items:n,selectedItem:n.find((t=>t.label===e?.label))||null,onSelectedItemChange:({selectedItem:e})=>{t(e)},itemToString:e=>e?e.label:""});return X(Rm.Provider,{value:{state:i,options:n},children:r})},Dm=({children:e,class:t,suppressKeyDown:n,testId:r})=>{const{state:i}=Im(),{getToggleButtonProps:a}=i,{onKeyDown:o,...s}=a();return X("button",{"data-testid":r,type:"button",...s,class:t,onKeyDown:n?void 0:o,children:e})},Pm=({children:e,class:t,openOnOptionsChange:n})=>{const{state:r,options:i}=Im(),{getMenuProps:a,isOpen:o,openMenu:s}=r;return st((()=>{n&&s()}),[s,n,i.length]),X("ul",{...a({},{suppressRefError:!0}),class:Gn(t,(!o||!i.length)&&"hidden"),children:o&&e})},Fm=({value:e,children:t,class:n})=>{const{state:r,options:i}=Im(),{getItemProps:a,highlightedIndex:o}=r,s=i.findIndex((t=>t.label===e.label)),l=i[s],c=o===s,{onClick:u,...d}=a({item:l,index:s});return X("li",{...d,class:n,"data-highlighted":c?"true":void 0,onTouchEnd:e=>{e.stopPropagation(),e.preventDefault(),u(e)},children:t})},Lm=({label:e,error:t,hint:n,options:r,class:i,value:a,onChange:o,onChangeText:s,query:l,testId:c,...u})=>X(wp,{class:i,error:t,hint:n,label:e,children:X(Nm,{onChange:e=>{o(r.find((t=>t.label===e.label)))},options:r,value:a,children:X("div",{class:"relative",children:[X(Dm,{class:"w-full",suppressKeyDown:!0,children:[X("input",{class:Gn(Mm,ul,t&&jm,Um),"data-testid":c,onChange:e=>{o(null),s(e.currentTarget.value)},type:"text",value:a?.label||l}),u.loading?X(Fl,{class:"absolute top-2 right-2 w-5 h-5 text-primary-base"}):null]}),X(Pm,{class:Gn("absolute z-20 mt-1 w-full rounded-md border border-gray-300 bg-white shadow-lg max-h-70 overflow-auto focus:outline-none","transition duration-100 ease-in-out"),openOnOptionsChange:!0,children:r.map((e=>X(Fm,{class:"group flex cursor-default items-center gap-2 py-2 px-3 select-none data-[highlighted]:bg-primary-base data-[highlighted]:text-primary-text",value:e,children:X(ol,{class:"text-inherit",field:!0,children:e.label})},e.label)))})]})})}),Mm="relative block w-full py-2 pl-3 pr-8 rounded-md shadow-sm text-left border border-gray-300 bg-white",Um="focus:outline-none focus-visible:border-gray-700",jm="text-red-900 border-red-300 focus-visible:border-red-600",zm=({label:e,error:t,hint:n,options:r,class:i,onChange:a,value:o,testId:s})=>{const l=r.find((e=>e.value===o));return X(wp,{class:i,error:t,hint:n,label:e,children:X("div",{class:"relative w-fit min-w-60",children:X(Nm,{onChange:e=>{a(r.find((t=>t.label===e.label))?.value)},options:r,value:l,children:[X(Dm,{class:Gn(Bm,t&&qm,Vm,!l?.label&&"text-gray-500"),testId:s,children:[X(ol,{class:Gn(!l?.label&&"text-inherit"),field:!0,children:l?.label||"Select"}),X(Nl,{className:"pointer-events-none absolute top-3 right-2.5 text-gray-500",icon:nl,size:"xs"})]}),X(Pm,{class:Gn("absolute z-20 mt-1 w-full rounded-md border border-gray-300 bg-white shadow-lg max-h-70 overflow-auto focus:outline-none","transition duration-100 ease-in-out"),children:r.map((e=>X(Fm,{class:"group flex cursor-default items-center gap-2 py-2 px-3 select-none data-[highlighted]:bg-primary-base data-[highlighted]:text-primary-text",value:e,children:X(ol,{class:"text-inherit",field:!0,children:e.label})},e.label)))})]})})})},Bm="relative block w-full py-1.5 pl-3 pr-8 rounded-md shadow-sm text-left border border-gray-300 bg-white",Vm="focus:outline-none focus-visible:border-gray-700",qm="text-red-900 border-red-300 focus-visible:border-red-600",Hm=({prefix:e,label:t,error:n,hint:r,leadingSymbol:i,type:a,class:o,testId:s,...l})=>X(wp,{class:Gn(i,o),error:n,hint:r,label:t,children:X("div",{class:"relative",children:[X("input",{class:Gn(Wm,ul,n&&Qm,$m,i&&"pl-6"),"data-testid":s,type:a,...l}),i?X(ol,{class:"absolute text-neutral-500 w-6 leading-[38px] left-3",field:!0,children:i}):null]})}),Wm="self-start py-2 px-3 rounded-md border border-gray-300 bg-white shadow-sm",$m="focus:outline-none focus-visible:border-gray-700",Qm="text-red-900 border-red-300 focus-visible:border-red-600",Km=({label:e,error:t,hint:n,options:r,class:i,testId:a,...o})=>{const s=r.findIndex((e=>e.value===o.value)),l=ct([]);return X(wp,{class:i,error:t,hint:n,label:e,children:X("div",{className:"flex items-start",children:X("div",{className:"relative flex gap-2 bg-gray-100 rounded-lg",children:[X("span",{className:"absolute rounded-md border border-gray-200 bg-white shadow-sm transition-transform ease-out duration-200 h-full w-1/2 "+(0===s?"translate-x-0":"translate-x-full")}),r.map(((e,t)=>X("button",{className:Gn("relative z-10 focus:outline-none py-2 px-12",t===s?"text-gray-900":"text-gray-500"),"data-testid":`${a}_${e.label.toLowerCase()}`,onClick:()=>(e=>{o.onChange(r[e].value)})(t),ref:e=>l.current[t]=e,tabIndex:s===t?0:-1,type:"button",children:X(ol,{class:"text-inherit",field:!0,children:e.label})},e.label)))]})})})},Ym=e=>{const{data:t,isSuccess:n,isError:r,isLoading:i,refetch:a}=Qn({queryKey:["benefitsPlanGetSteps",e.assessmentId],queryFn:()=>Sd({activityId:e.assessmentId},Td(e)),staleTime:0,gcTime:0});return st((()=>{Od({event:Kl.AssessmentViewed,properties:{id:e.assessmentId,name:e.assessmentTitle}},Td(e))}),[e]),X(jl,{children:[i&&X(Ll,{}),r&&X(Ul,{retry:a}),n&&X("div",{className:Gn("md:grid",e.imageUrl&&"md:grid-cols-2"),children:[X("div",{children:[X(ol,{class:"mb-2",heading1:!0,children:e.assessmentTitle}),X(ol,{class:"mb-6",paragraph1:!0,children:e.assessmentInstructions||e.description}),X(Gm,{...{...t,...e}})]}),X("div",{class:Gn("flex",e.verticalAlignment),children:X("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})})]})]})},Gm=e=>{const t=ig(e),{control:n,formState:r,handleSubmit:i}=function(e={}){const t=On.useRef(),n=On.useRef(),[r,i]=On.useState({isDirty:!1,isValidating:!1,isLoading:Lh(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Lh(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...yp(e),formState:r});const a=t.current.control;return a._options=e,Sh({subject:a._subjects.state,next:e=>{wh(e,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),On.useEffect((()=>a._disableForm(e.disabled)),[a,e.disabled]),On.useEffect((()=>{if(a._proxyFormState.isDirty){const e=a._getDirty();e!==r.isDirty&&a._subjects.state.next({isDirty:e})}}),[a,r.isDirty]),On.useEffect((()=>{e.values&&!Jh(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i((e=>({...e})))):a._resetDefaultValues()}),[e.values,a]),On.useEffect((()=>{e.errors&&a._setErrors(e.errors)}),[e.errors,a]),On.useEffect((()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()})),On.useEffect((()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})}),[e.shouldUnregister,a]),t.current.formState=vh(r,a),t.current}({mode:"onSubmit",defaultValues:t,shouldFocusError:!1}),a=Ch({control:n}),o=ng(e,a),s=o.filter((e=>e.stepType===zl.Question)),l=zr(),{mutate:c,status:u}=Kn({mutationFn:t=>kd(t,Td(e)),onSuccess:()=>{if("true"===e.skipSummary)return void e.onComplete?.();const t=o[o.length-1];l(t.stepType===zl.Ineligible?`/ineligible/${t.id}`:"/completion")}}),[d,f]=at();st((()=>{const e=(e=>{for(const t of Object.values(Ql))if(new RegExp(`\\b${t}\\b`,"i").test(e))return t})(JSON.stringify(a));f(e)}),[a]);const h=ct(a);st((()=>{const t=Object.keys(a).find((e=>JSON.stringify(h.current[e])!==JSON.stringify(a[e]))),n=o.find((e=>e.id===t));if(n?.stepType===zl.Question){const t=n.customerAttribute;t&&Od({event:Kl.AssessmentFieldUpdated,properties:{id:e.assessmentId,name:e.assessmentTitle,attribute:t}},Td(e))}h.current=a}),[a]);const p=e.onSkip;return X(_,{children:[X("form",{class:"flex flex-col gap-4",children:s.map((t=>{const i=r.errors[t.id]?.message;switch(t.template){case Bl.Text:return X(Xm,{control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);case Bl.Currency:return X(Jm,{control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);case Bl.Date:return X(Zm,{australianState:d,control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);case Bl.SingleSelect:return X(eg,{control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);case Bl.Lookup:return X(tg,{control:n,error:i,marketplaceOfferName:e.marketplaceOfferName,step:t},t.id);default:return null}}))}),X("div",{class:"flex gap-1 flex-wrap mt-6",children:[X(Ml,{class:Gn(p?"flex-grow":"min-w-60"),onClick:i((t=>{const n=o.map((e=>e.id)),r=Object.fromEntries(Object.entries(t).filter((([e])=>n.includes(e)))),i=Object.entries(r).map((([e,t])=>s.find((t=>t.id===e))?.template===Bl.Lookup?{dataType:$l.Lookup,stepId:e,id:t.id,label:t.label}:{dataType:$l.Standard,stepId:e,value:t})),a={activityAction:Wl.ProgressStartToComplete,activityId:e.assessmentId,progressEvents:i};Od({event:Kl.AssessmentSubmitted,properties:{id:e.assessmentId,name:e.assessmentTitle,experiment:e.trackExperiment,treatment:e.trackTreatment,responses:i.reduce(((e,t)=>{const n=s.find((e=>e.id===t.stepId))?.customerAttribute,r=t.dataType===$l.Lookup?t.label:t.value;return{...e,...n&&r?{[n]:r}:null}}),{})}},Td(e)),c(a)})),status:u,testId:`offer_${e.marketplaceOfferName}_assessment_button_submit`,children:"Submit"}),p&&X(Ml,{class:"flex-grow",onClick:()=>{e.onSkip?.(),Od({event:Kl.AssessmentSkipped,properties:{id:e.assessmentId,name:e.assessmentTitle}},Td(e))},secondary:!0,testId:`offer_${e.marketplaceOfferName}_button_skip`,children:"Decline benefit"})]})]})},Xm=({control:e,step:t,error:n,marketplaceOfferName:r})=>X(Th,{control:e,name:t.id,render:({field:e})=>X(Hm,{error:n,hint:t.hint,label:t.title,testId:`offer_${r}_assessment_input_${t.customerAttribute}`,type:"text",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const n=t.invalidMessage||!1,r=t.matchExpression;return!r||(!!RegExp(r).test(e)||n)}}}),Jm=({control:e,step:t,error:n,marketplaceOfferName:r})=>X(Th,{control:e,name:t.id,render:({field:e})=>X(Hm,{error:n,hint:t.hint,label:t.title,leadingSymbol:"$",testId:`offer_${r}_assessment_input_${t.customerAttribute}`,type:"text",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const n=t.invalidMessage||!1;if(!(t.dataType===Vl.Integer?/^\d+$/.test(e):/^-?\d+(\.\d+)?$/.test(e)))return n;const r=parseFloat(e);return t.maximumValue&&r>parseInt(t.maximumValue,10)?n:!(t.minimumValue&&r<parseInt(t.minimumValue,10))||n}}}),Zm=({control:e,step:t,australianState:n,error:r,marketplaceOfferName:i})=>{const a=Qn({queryKey:["benefitsPlanGetPublicHolidays"],queryFn:Cd,staleTime:1/0});return X(Th,{control:e,name:t.id,render:({field:e})=>X(Hm,{error:r,hint:t.hint,label:t.title,testId:`offer_${i}_assessment_input_${t.customerAttribute}`,type:"date",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const r=new Date(e);r.setHours(0,0,0,0);const i=t.invalidDays?.includes(ql.Weekends),o=r.getDay();if(i&&(0===o||6===o))return t.invalidMessage;const s=t.invalidDays?.includes(ql.PublicHolidays);if(s){const e=a.data?.holidays.filter((e=>e.state.toUpperCase()===n?.toUpperCase())).map((e=>{const t=new Date(e.date);return t.setHours(0,0,0,0),t})),i=e?.some((e=>e.getTime()===r.getTime()));if(i)return t.invalidMessage}let l,c;return t.maximumValue&&(l=new Date(t.maximumValue),l.setHours(0,0,0,0),r>l)?t.invalidMessage:!(t.minimumValue&&("today"===t.minimumValue.toLowerCase()?(c=new Date,c.setDate(c.getDate()+(t.minimumValueAddDays||0)),c.setHours(0,0,0,0)):(c=new Date(t.minimumValue),c.setHours(0,0,0,0)),r<c))||t.invalidMessage}}})},eg=({control:e,step:t,error:n,marketplaceOfferName:r})=>X(Th,{control:e,name:t.id,render:({field:e})=>rg(t)?X(Km,{error:n,hint:t.hint,label:t.title,options:t.options,testId:`offer_${r}_assessment_input_${t.customerAttribute}`,...e}):X(zm,{error:n,hint:t.hint,label:t.title,options:t.options,testId:`offer_${r}_assessment_input_${t.customerAttribute}`,...e}),rules:{required:{value:!0,message:"This field is required"}}}),tg=({control:e,step:t,error:n,marketplaceOfferName:r})=>{const[i,a]=at(),[o]=_p(i,300,{trailing:!0}),[s,l]=at(!1),[c,u]=at([]);return st((()=>{o&&o.length>=t.minimumCharacters?(async()=>{let e;try{l(!0),e=await(n={url:(r=t.url,r.replace(/^[a-zA-Z]+:\/\/[^/]+\/?/,"")),query:o||""},_d(n.url,{query:n.query}))}catch(og){}var n,r;l(!1),u(e?.addresses?e.addresses:[])})():u([])}),[o,t.minimumCharacters,t.url]),X(Th,{control:e,name:t.id,render:({field:e})=>X(Lm,{error:n,hint:t.hint,label:t.title,loading:s,onChangeText:a,options:c,query:i,testId:`offer_${r}_assessment_input_${t.customerAttribute}`,...e}),rules:{validate:e=>!(!e?.id||!e?.label)||"This field is required"}})},ng=(e,t)=>{const{firstStepId:n,steps:r}=e,i=r.reduce(((e,t)=>({...e,[t.id]:t})),{}),a=(e,n)=>{if(!e)return n;const r=i[e],o=[...n,r];if(r.stepType===zl.Completion||r.stepType===zl.Ineligible)return o;if(r.stepType===zl.Consent)return a(r.nextStepId,o);const s=t?.[r.id];if(r.stepType===zl.Question&&r.template===Bl.SingleSelect&&!s)return o;const l=r.stepType===zl.Question&&r.template===Bl.SingleSelect?r.options?.find((e=>e.value===s))?.nextStepId:r.nextStepId;return a(l,o)};return a(n,[])},rg=e=>2===e.options.length&&e.options.some((e=>"yes"===e.label.toLowerCase()))&&e.options.some((e=>"no"===e.label.toLowerCase())),ig=e=>e.steps.reduce(((e,t)=>{let n;return n=t.stepType===zl.Question&&t.template===Bl.SingleSelect?rg(t)&&void 0===t.defaultValue?t.options.find((({label:e})=>"yes"===e.toLowerCase()))?.value:t.defaultValue:t.stepType===zl.Ineligible||t.stepType===zl.Completion||t.stepType===zl.Consent||t.template===Bl.TriviaSingleSelect?void 0:t.defaultValue,{...e,[t.id]:n}}),{}),ag=e=>{const t=Ur(),n="true"===e.skipToCompletion?"/completion":"true"===e.skipIntro?"/question":"/consent";return X(Fi,{class:Gn("relative flex flex-1 overflow-x-clip",!1),children:X(Ri,{classNames:{enter:n===t.pathname?"":"slide-enter",enterActive:n===t.pathname?"":"slide-enter-active",exit:"slide-exit",exitActive:"slide-exit-active"},timeout:300,children:X(ti,{location:t,children:[X(Zr,{element:X(zf,{...e}),path:"consent"}),X(Zr,{element:X(Ym,{...e}),path:"question"}),X(Zr,{element:X(Rd,{...e}),path:"completion"}),X(Zr,{element:X(Hf,{...e}),path:"ineligible/:id"}),X(Zr,{element:X(Jr,{to:n}),path:"*"})]})},t.pathname)})};!function(e,t,n,r){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=W,i.prototype.attributeChangedCallback=Q,i.prototype.disconnectedCallback=K,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach((function(e){Object.defineProperty(i.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,i)}((e=>(lt((()=>{var t;t=e,bd||(bd=td.create({baseURL:t.baseUrl,allowAbsoluteUrls:!1}),bd.interceptors.request.use((e=>(e.headers.Authorization=`Bearer ${t.accessToken}`,e.headers["X-PROFILE-ID"]=t.profileId,e.params={client:t.trackClient,source:t.trackSource,channel:t.trackChannel,...e.params},e))))}),[]),X(bn,{children:X(bl,{children:X(Rn,{client:xd(),children:X(Xr,{children:X(ag,{...e})})})})}))),"benefits-plan-assessment",["terms","details","on-accept","on-decline","on-complete","on-skip"],{shadow:!0});
|