@flarehr/benefits-plan-assessment 1.0.66 → 1.0.68
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,4 +1,4 @@
|
|
|
1
|
-
var e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,b,y,w,x,_,E,S,O,T,k,C,A,R,P,L,N,F,I,D,M,j,U,z,H,B,W,V,q,$,K,G,Q,Y,X,J,Z,ee,te,ne,re,oe,ie,ae,se,le,ce,ue,de,fe,pe,he,me,ge,ve,be,ye,we,xe,_e,Ee,Se,Oe,Te,ke,Ce,Ae=e=>{throw TypeError(e)},Re=(e,t,n)=>t.has(e)||Ae("Cannot "+n),Pe=(e,t,n)=>(Re(e,t,"read from private field"),n?n.call(e):t.get(e)),Le=(e,t,n)=>t.has(e)?Ae("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Ne=(e,t,n,r)=>(Re(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Fe=(e,t,n)=>(Re(e,t,"access private method"),n),Ie=(e,t,n,r)=>({set _(r){Ne(e,t,r,n)},get _(){return Pe(e,t,r)}}),De={},Me=[],je=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ue=Array.isArray;function ze(e,t){for(var n in t)e[n]=t[n];return e}function He(e){var t=e.parentNode;t&&t.removeChild(e)}function Be(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?be.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return We(e,a,r,o,null)}function We(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==o?++we:o,__i:-1,__u:0};return null==o&&null!=ye.vnode&&ye.vnode(i),i}function Ve(){return{current:null}}function qe(e){return e.children}function $e(e,t){this.props=e,this.context=t}function Ke(e,t){if(null==t)return e.__?Ke(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?Ke(e):null}function Ge(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 Ge(e)}}function Qe(e){(!e.__d&&(e.__d=!0)&&xe.push(e)&&!Ye.__r++||_e!==ye.debounceRendering)&&((_e=ye.debounceRendering)||Ee)(Ye)}function Ye(){var e,t,n,r,o,i,a,s;for(xe.sort(Se);e=xe.shift();)e.__d&&(t=xe.length,r=void 0,i=(o=(n=e).__v).__e,a=[],s=[],n.__P&&((r=ze({},o)).__v=o.__v+1,ye.vnode&&ye.vnode(r),ot(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,a,null==i?Ke(o):i,!!(32&o.__u),s),r.__v=o.__v,r.__.__k[r.__i]=r,it(a,r,s),r.__e!=i&&Ge(r)),xe.length>t&&xe.sort(Se));Ye.__r=0}function Xe(e,t,n,r,o,i,a,s,l,c,u){var d,f,p,h,m,g=r&&r.__k||Me,v=t.length;for(n.__d=l,function(e,t,n){var r,o,i,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)a=r+d,null!=(o=e.__k[r]=null==(o=t[r])||"boolean"==typeof o||"function"==typeof o?null:"string"==typeof o||"number"==typeof o||"bigint"==typeof o||o.constructor==String?We(null,o,null,null,null):Ue(o)?We(qe,{children:o},null,null,null):void 0===o.constructor&&o.__b>0?We(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)?(o.__=e,o.__b=e.__b+1,s=et(o,n,a,u),o.__i=s,i=null,-1!==s&&(u--,(i=n[s])&&(i.__u|=131072)),null==i||null===i.__v?(-1==s&&d--,"function"!=typeof o.type&&(o.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:s>a?u>l-a?d+=s-a:d--:s<a&&(s==a-d?d-=s-a:d++),s!==r+d&&(o.__u|=65536))):(i=n[a])&&null==i.key&&i.__e&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Ke(i)),st(i,i,!1),n[a]=null,u--);if(u)for(r=0;r<c;r++)null!=(i=n[r])&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Ke(i)),st(i,i))}(n,t,g),l=n.__d,d=0;d<v;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?De:g[p.__i]||De,p.__i=d,ot(e,p,f,o,i,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&at(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?l=Je(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function Je(e,t,n){var r,o;if("function"==typeof e.type){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=Je(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ke(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ze(e,t){return t=t||[],null==e||"boolean"==typeof e||(Ue(e)?e.some((function(e){Ze(e,t)})):t.push(e)),t}function et(e,t,n,r){var o=e.key,i=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&o==l.key&&i===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s++}}return-1}function tt(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||je.test(t)?n:n+"px"}function nt(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||tt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||tt(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=Oe,e.addEventListener(t,i?ke:Te,i)):e.removeEventListener(t,i?ke:Te,i);else{if("http://www.w3.org/2000/svg"==o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function rt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Oe++;else if(t.t<n.u)return;return n(ye.event?ye.event(t):t)}}}function ot(e,t,n,r,o,i,a,s,l,c){var u,d,f,p,h,m,g,v,b,y,w,x,_,E,S,O,T=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),i=[s=t.__e=n.__e]),(u=ye.__b)&&u(t);e:if("function"==typeof T)try{if(v=t.props,b="prototype"in T&&T.prototype.render,y=(u=T.contextType)&&r[u.__c],w=u?y?y.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(b?t.__c=d=new T(v,w):(t.__c=d=new $e(v,w),d.constructor=T,d.render=lt),y&&y.sub(d),d.props=v,d.state||(d.state={}),d.context=w,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),b&&null==d.__s&&(d.__s=d.state),b&&null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=ze({},d.__s)),ze(d.__s,T.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=t,f)b&&null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),b&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(b&&null==T.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),x=0;x<d._sb.length;x++)d.__h.push(d._sb[x]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,w),b&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,h,m)}))}if(d.context=w,d.props=v,d.__P=e,d.__e=!1,_=ye.__r,E=0,b){for(d.state=d.__s,d.__d=!1,_&&_(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,_&&_(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++E<25);d.state=d.__s,null!=d.getChildContext&&(r=ze(ze({},r),d.getChildContext())),b&&!f&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(p,h)),Xe(e,Ue(O=null!=u&&u.type===qe&&null==u.key?u.props.children:u)?O:[O],t,n,r,o,i,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(k){if(t.__v=null,l||null!=i){for(t.__u|=l?160:32;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;ye.__e(k,t,n)}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,o,i,a,s,l){var c,u,d,f,p,h,m,g=n.props,v=t.props,b=t.type;if("svg"===b?o="http://www.w3.org/2000/svg":"math"===b?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),null!=i)for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!b&&(b?p.localName===b:3===p.nodeType)){e=p,i[c]=null;break}if(null==e){if(null===b)return document.createTextNode(v);e=document.createElementNS(o,b,v.is&&v),i=null,s=!1}if(null===b)g===v||s&&e.data===v||(e.data=v);else{if(i=i&&be.call(e.childNodes),g=n.props||De,!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(p=e.attributes[c]).name]=p.value;for(c in g)if(p=g[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=p;else if("key"!==c&&!(c in v)){if("value"==c&&"defaultValue"in v||"checked"==c&&"defaultChecked"in v)continue;nt(e,c,null,p,o)}for(c in v)p=v[c],"children"==c?f=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?h=p:"checked"==c?m=p:"key"===c||s&&"function"!=typeof p||g[c]===p||nt(e,c,p,g[c],o);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Xe(e,Ue(f)?f:[f],t,n,r,"foreignObject"===b?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:n.__k&&Ke(n,0),s,l),null!=i)for(c=i.length;c--;)null!=i[c]&&He(i[c]);s||(c="value",void 0!==h&&(h!==e[c]||"progress"===b&&!h||"option"===b&&h!==g[c])&&nt(e,c,h,g[c],o),c="checked",void 0!==m&&m!==e[c]&&nt(e,c,m,g[c],o))}return e}(n.__e,t,n,r,o,i,a,l,c);(u=ye.diffed)&&u(t)}function it(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)at(n[r],n[++r],n[++r]);ye.__c&&ye.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){ye.__e(n,t.__v)}}))}function at(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(o){ye.__e(o,n)}}function st(e,t,n){var r,o;if(ye.unmount&&ye.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||at(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){ye.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&st(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||He(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function lt(e,t,n){return this.constructor(e,n)}function ct(e,t,n){var r,o,i,a;ye.__&&ye.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],a=[],ot(t,e=(!r&&n||t).__k=Be(qe,null,[e]),o||De,De,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?be.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,a),it(i,e,a)}function ut(e,t){ct(e,t,ut)}function dt(e,t,n){var r,o,i,a,s=ze({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=void 0===t[i]&&void 0!==a?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?be.call(arguments,2):n),We(e.type,s,r||e.key,o||e.ref,null)}function ft(e,t){var n={__c:t="__cC"+Ce++,__: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,Qe(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 pt(){return(pt=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)}be=Me.slice,ye={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},we=0,$e.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ze({},this.state),"function"==typeof e&&(e=e(ze({},n),this.props)),e&&ze(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Qe(this))},$e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qe(this))},$e.prototype.render=qe,xe=[],Ee="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Se=function(e,t){return e.__v.__b-t.__v.__b},Ye.__r=0,Oe=0,Te=rt(!1),ke=rt(!0),Ce=0;var ht=["context","children"];function mt(e){return this.getChildContext=function(){return e.context},dt(e.children,function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}(e,ht))}function gt(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Be(mt,pt({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],o={},i=0,a=t.attributes,s=t.childNodes;for(i=a.length;i--;)"slot"!==a[i].name&&(o[a[i].name]=a[i].value,o[vt(a[i].name)]=a[i].value);for(i=s.length;i--;){var l=e(s[i],null),c=s[i].slot;c?o[c]=Be(wt,{name:c},l):r[i]=l}var u=n?Be(wt,null,r):r;return Be(n||t.nodeName.toLowerCase(),o,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ut:ct)(this._vdom,this._root)}function vt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function bt(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[vt(e)]=n,this._vdom=dt(this._vdom,r),ct(this._vdom,this._root)}}function yt(){ct(this._vdom=null,this._root)}function wt(e,t){var n=this;return Be("slot",pt({},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 xt=0;function _t(e,t,n,r,o,i){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)"ref"==s?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--xt,__i:-1,__u:0,__source:o,__self:i};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return ye.vnode&&ye.vnode(c),c}var Et=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(){}},St="undefined"==typeof window||"Deno"in globalThis;function Ot(){}function Tt(e){return"number"==typeof e&&e>=0&&e!==1/0}function kt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ct(e,t){return"function"==typeof e?e(t):e}function At(e,t){return"function"==typeof e?e(t):e}function Rt(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==Lt(a,t.options))return!1}else if(!Ft(t.queryKey,a))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)&&((!o||o===t.state.fetchStatus)&&!(i&&!i(t)))}function Pt(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Nt(t.options.mutationKey)!==Nt(i))return!1}else if(!Ft(t.options.mutationKey,i))return!1}return(!r||t.state.status===r)&&!(o&&!o(t))}function Lt(e,t){return((null==t?void 0:t.queryKeyHashFn)||Nt)(e)}function Nt(e){return JSON.stringify(e,((e,t)=>jt(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Ft(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Ft(e[n],t[n]))))}function It(e,t){if(e===t)return e;const n=Mt(e)&&Mt(t);if(n||jt(e)&&jt(t)){const r=n?e:Object.keys(e),o=r.length,i=n?t:Object.keys(t),a=i.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const o=n?c:i[c];(!n&&r.includes(o)||n)&&void 0===e[o]&&void 0===t[o]?(s[o]=void 0,l++):(s[o]=It(e[o],t[o]),s[o]===e[o]&&void 0!==e[o]&&l++)}return o===a&&l===o?e:s}return t}function Dt(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 Mt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jt(e){if(!Ut(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ut(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Ut(e){return"[object Object]"===Object.prototype.toString.call(e)}function zt(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?It(e,t):t}function Ht(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Bt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Wt=Symbol();function Vt(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==Wt?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var qt=new(r=class extends Et{constructor(){super(),Le(this,e),Le(this,t),Le(this,n),Ne(this,n,(e=>{if(!St&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){Pe(this,t)||this.setEventListener(Pe(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Pe(this,t))||e.call(this),Ne(this,t,void 0))}setEventListener(e){var r;Ne(this,n,e),null==(r=Pe(this,t))||r.call(this),Ne(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){Pe(this,e)!==t&&(Ne(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof Pe(this,e)?Pe(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),$t=new(s=class extends Et{constructor(){super(),Le(this,o,!0),Le(this,i),Le(this,a),Ne(this,a,(e=>{if(!St&&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(){Pe(this,i)||this.setEventListener(Pe(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Pe(this,i))||e.call(this),Ne(this,i,void 0))}setEventListener(e){var t;Ne(this,a,e),null==(t=Pe(this,i))||t.call(this),Ne(this,i,e(this.setOnline.bind(this)))}setOnline(e){Pe(this,o)!==e&&(Ne(this,o,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return Pe(this,o)}},o=new WeakMap,i=new WeakMap,a=new WeakMap,s);function Kt(e){return Math.min(1e3*2**e,3e4)}function Gt(e){return"online"!==(e??"online")||$t.isOnline()}var Qt=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function Yt(e){return e instanceof Qt}function Xt(e){let t,n,r,o=!1,i=0,a=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>qt.isFocused()&&("always"===e.networkMode||$t.isOnline())&&e.canRun(),c=()=>Gt(e.networkMode)&&e.canRun(),u=r=>{var o;a||(a=!0,null==(o=e.onSuccess)||o.call(e,r),null==t||t(),n(r))},d=n=>{var o;a||(a=!0,null==(o=e.onError)||o.call(e,n),null==t||t(),r(n))},f=()=>new Promise((n=>{var r;t=e=>{(a||l())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,a||null==(n=e.onContinue)||n.call(e)})),p=()=>{if(a)return;let t;const n=0===i?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(u).catch((t=>{var n;if(a)return;const r=e.retry??(St?0:3),s=e.retryDelay??Kt,c="function"==typeof s?s(i,t):s,u=!0===r||"number"==typeof r&&i<r||"function"==typeof r&&r(i,t);var h;!o&&u?(i++,null==(n=e.onFail)||n.call(e,i,t),(h=c,new Promise((e=>{setTimeout(e,h)}))).then((()=>l()?void 0:f())).then((()=>{o?d(t):p()}))):d(t)}))};return{promise:s,cancel:t=>{var n;a||(d(new Qt(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),s),cancelRetry:()=>{o=!0},continueRetry:()=>{o=!1},canStart:c,start:()=>(c()?p():f().then(p),s)}}var Jt=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},o=e=>setTimeout(e,0);const i=r=>{t?e.push(r):o((()=>{n(r)}))},a=()=>{const t=e;e=[],t.length&&o((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||a()}return n},batchCalls:e=>(...t)=>{i((()=>{e(...t)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{o=e}}}(),Zt=(c=class{constructor(){Le(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tt(this.gcTime)&&Ne(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(St?1/0:3e5))}clearGcTimeout(){Pe(this,l)&&(clearTimeout(Pe(this,l)),Ne(this,l,void 0))}},l=new WeakMap,c),en=(b=class extends Zt{constructor(e){super(),Le(this,g),Le(this,u),Le(this,d),Le(this,f),Le(this,p),Le(this,h),Le(this,m),Ne(this,m,!1),Ne(this,h,e.defaultOptions),this.setOptions(e.options),this.observers=[],Ne(this,f,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Ne(this,u,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??Pe(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=Pe(this,p))?void 0:e.promise}setOptions(e){this.options={...Pe(this,h),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Pe(this,f).remove(this)}setData(e,t){const n=zt(this.state.data,e,this.options);return Fe(this,g,v).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){Fe(this,g,v).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=Pe(this,p))?void 0:t.promise;return null==(n=Pe(this,p))||n.cancel(e),r?r.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Pe(this,u))}isActive(){return this.observers.some((e=>!1!==At(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||!kt(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=Pe(this,p))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=Pe(this,p))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Pe(this,f).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(Pe(this,p)&&(Pe(this,m)?Pe(this,p).cancel({revert:!0}):Pe(this,p).cancelRetry()),this.scheduleGc()),Pe(this,f).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,g,v).call(this,{type:"invalidate"})}fetch(e,t){var n,r,o;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(Pe(this,p))return Pe(this,p).continueRetry(),Pe(this,p).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const i=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Ne(this,m,!0),i.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=Vt(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return a(n),Ne(this,m,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};a(s),null==(n=this.options.behavior)||n.onFetch(s,this),Ne(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=s.fetchOptions)?void 0:r.meta)||Fe(this,g,v).call(this,{type:"fetch",meta:null==(o=s.fetchOptions)?void 0:o.meta});const l=e=>{var t,n,r,o;Yt(e)&&e.silent||Fe(this,g,v).call(this,{type:"error",error:e}),Yt(e)||(null==(n=(t=Pe(this,f).config).onError)||n.call(t,e,this),null==(o=(r=Pe(this,f).config).onSettled)||o.call(r,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Ne(this,p,Xt({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:i.abort.bind(i),onSuccess:e=>{var t,n,r,o;void 0!==e?(this.setData(e),null==(n=(t=Pe(this,f).config).onSuccess)||n.call(t,e,this),null==(o=(r=Pe(this,f).config).onSettled)||o.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{Fe(this,g,v).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Fe(this,g,v).call(this,{type:"pause"})},onContinue:()=>{Fe(this,g,v).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Pe(this,p).start()}},u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap,g=new WeakSet,v=function(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,...tn(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 Yt(n)&&n.revert&&Pe(this,d)?{...Pe(this,d),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),Jt.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),Pe(this,f).notify({query:this,type:"updated",action:e})}))},b);function tn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var nn=(w=class extends Et{constructor(e={}){super(),Le(this,y),this.config=e,Ne(this,y,new Map)}build(e,t,n){const r=t.queryKey,o=t.queryHash??Lt(r,t);let i=this.get(o);return i||(i=new en({cache:this,queryKey:r,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(i)),i}add(e){Pe(this,y).has(e.queryHash)||(Pe(this,y).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Pe(this,y).get(e.queryHash);t&&(e.destroy(),t===e&&Pe(this,y).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Jt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return Pe(this,y).get(e)}getAll(){return[...Pe(this,y).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Rt(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Rt(e,t))):t}notify(e){Jt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Jt.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Jt.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},y=new WeakMap,w),rn=(T=class extends Zt{constructor(e){super(),Le(this,S),Le(this,x),Le(this,_),Le(this,E),this.mutationId=e.mutationId,Ne(this,_,e.mutationCache),Ne(this,x,[]),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){Pe(this,x).includes(e)||(Pe(this,x).push(e),this.clearGcTimeout(),Pe(this,_).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Ne(this,x,Pe(this,x).filter((t=>t!==e))),this.scheduleGc(),Pe(this,_).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Pe(this,x).length||("pending"===this.state.status?this.scheduleGc():Pe(this,_).remove(this))}continue(){var e;return(null==(e=Pe(this,E))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,b,y,w;Ne(this,E,Xt({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Fe(this,S,O).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Fe(this,S,O).call(this,{type:"pause"})},onContinue:()=>{Fe(this,S,O).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Pe(this,_).canRun(this)}));const x="pending"===this.state.status,T=!Pe(this,E).canStart();try{if(!x){Fe(this,S,O).call(this,{type:"pending",variables:e,isPaused:T}),await(null==(n=(t=Pe(this,_).config).onMutate)?void 0:n.call(t,e,this));const i=await(null==(o=(r=this.options).onMutate)?void 0:o.call(r,e));i!==this.state.context&&Fe(this,S,O).call(this,{type:"pending",context:i,variables:e,isPaused:T})}const p=await Pe(this,E).start();return await(null==(a=(i=Pe(this,_).config).onSuccess)?void 0:a.call(i,p,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,p,e,this.state.context)),await(null==(u=(c=Pe(this,_).config).onSettled)?void 0:u.call(c,p,null,this.state.variables,this.state.context,this)),await(null==(f=(d=this.options).onSettled)?void 0:f.call(d,p,null,e,this.state.context)),Fe(this,S,O).call(this,{type:"success",data:p}),p}catch(k){try{throw await(null==(h=(p=Pe(this,_).config).onError)?void 0:h.call(p,k,e,this.state.context,this)),await(null==(g=(m=this.options).onError)?void 0:g.call(m,k,e,this.state.context)),await(null==(b=(v=Pe(this,_).config).onSettled)?void 0:b.call(v,void 0,k,this.state.variables,this.state.context,this)),await(null==(w=(y=this.options).onSettled)?void 0:w.call(y,void 0,k,e,this.state.context)),k}finally{Fe(this,S,O).call(this,{type:"error",error:k})}}finally{Pe(this,_).runNext(this)}}},x=new WeakMap,_=new WeakMap,E=new WeakMap,S=new WeakSet,O=function(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),Jt.batch((()=>{Pe(this,x).forEach((t=>{t.onMutationUpdate(e)})),Pe(this,_).notify({mutation:this,type:"updated",action:e})}))},T);var on=(A=class extends Et{constructor(e={}){super(),Le(this,k),Le(this,C),this.config=e,Ne(this,k,new Map),Ne(this,C,Date.now())}build(e,t,n){const r=new rn({mutationCache:this,mutationId:++Ie(this,C)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=an(e),n=Pe(this,k).get(t)??[];n.push(e),Pe(this,k).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=an(e);if(Pe(this,k).has(n)){const r=null==(t=Pe(this,k).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?Pe(this,k).delete(n):Pe(this,k).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=Pe(this,k).get(an(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=Pe(this,k).get(an(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){Jt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...Pe(this,k).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Pt(t,e)))}findAll(e={}){return this.getAll().filter((t=>Pt(e,t)))}notify(e){Jt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Jt.batch((()=>Promise.all(e.map((e=>e.continue().catch(Ot))))))}},k=new WeakMap,C=new WeakMap,A);function an(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function sn(e){return{onFetch:(t,n)=>{const r=async()=>{var n,r,o,i,a;const s=t.options,l=null==(o=null==(r=null==(n=t.fetchOptions)?void 0:n.meta)?void 0:r.fetchMore)?void 0:o.direction,c=(null==(i=t.state.data)?void 0:i.pages)||[],u=(null==(a=t.state.data)?void 0:a.pageParams)||[],d={pages:[],pageParams:[]};let f=!1;const p=Vt(t.options,t.fetchOptions),h=async(e,n,r)=>{if(f)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);const o={queryKey:t.queryKey,pageParam:n,direction:r?"backward":"forward",meta:t.options.meta};var i;i=o,Object.defineProperty(i,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",(()=>{f=!0})),t.signal)});const a=await p(o),{maxPages:s}=t.options,l=r?Bt:Ht;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,n,s)}};let m;if(l&&c.length){const e="backward"===l,t={pages:c,pageParams:u},n=(e?cn:ln)(s,t);m=await h(t,n,e)}else{m=await h(d,u[0]??s.initialPageParam);const t=e??c.length;for(let e=1;e<t;e++){const e=ln(s,m);if(null==e)break;m=await h(m,e)}}return m};t.options.persister?t.fetchFn=()=>{var e,o;return null==(o=(e=t.options).persister)?void 0:o.call(e,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function ln(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 cn(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var un=(j=class{constructor(e={}){Le(this,R),Le(this,P),Le(this,L),Le(this,N),Le(this,F),Le(this,I),Le(this,D),Le(this,M),Ne(this,R,e.queryCache||new nn),Ne(this,P,e.mutationCache||new on),Ne(this,L,e.defaultOptions||{}),Ne(this,N,new Map),Ne(this,F,new Map),Ne(this,I,0)}mount(){Ie(this,I)._++,1===Pe(this,I)&&(Ne(this,D,qt.subscribe((async e=>{e&&(await this.resumePausedMutations(),Pe(this,R).onFocus())}))),Ne(this,M,$t.subscribe((async e=>{e&&(await this.resumePausedMutations(),Pe(this,R).onOnline())}))))}unmount(){var e,t;Ie(this,I)._--,0===Pe(this,I)&&(null==(e=Pe(this,D))||e.call(this),Ne(this,D,void 0),null==(t=Pe(this,M))||t.call(this),Ne(this,M,void 0))}isFetching(e){return Pe(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Pe(this,P).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Pe(this,R).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Pe(this,R).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ct(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Pe(this,R).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=Pe(this,R).get(r.queryHash),i=function(e,t){return"function"==typeof e?e(t):e}(t,null==o?void 0:o.state.data);if(void 0!==i)return Pe(this,R).build(this,r).setData(i,{...n,manual:!0})}setQueriesData(e,t,n){return Jt.batch((()=>Pe(this,R).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Pe(this,R).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=Pe(this,R);Jt.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=Pe(this,R),r={type:"active",...e};return Jt.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Jt.batch((()=>Pe(this,R).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(Ot).catch(Ot)}invalidateQueries(e={},t={}){return Jt.batch((()=>{if(Pe(this,R).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:(null==t?void 0:t.cancelRefetch)??!0},r=Jt.batch((()=>Pe(this,R).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ot)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(Ot)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=Pe(this,R).build(this,t);return n.isStaleByTime(Ct(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ot).catch(Ot)}fetchInfiniteQuery(e){return e.behavior=sn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ot).catch(Ot)}resumePausedMutations(){return $t.isOnline()?Pe(this,P).resumePausedMutations():Promise.resolve()}getQueryCache(){return Pe(this,R)}getMutationCache(){return Pe(this,P)}getDefaultOptions(){return Pe(this,L)}setDefaultOptions(e){Ne(this,L,e)}setQueryDefaults(e,t){Pe(this,N).set(Nt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Pe(this,N).values()];let n={};return t.forEach((t=>{Ft(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){Pe(this,F).set(Nt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Pe(this,F).values()];let n={};return t.forEach((t=>{Ft(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Pe(this,L).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lt(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===Wt&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...Pe(this,L).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Pe(this,R).clear(),Pe(this,P).clear()}},R=new WeakMap,P=new WeakMap,L=new WeakMap,N=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,M=new WeakMap,j),dn=(ce=class extends Et{constructor(e,t){super(),Le(this,Z),Le(this,U),Le(this,z),Le(this,H),Le(this,B),Le(this,W),Le(this,V),Le(this,q),Le(this,$),Le(this,K),Le(this,G),Le(this,Q),Le(this,Y),Le(this,X),Le(this,J,new Set),this.options=t,Ne(this,U,e),Ne(this,q,null),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(Pe(this,z).addObserver(this),fn(Pe(this,z),this.options)?Fe(this,Z,ee).call(this):this.updateResult(),Fe(this,Z,oe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pn(Pe(this,z),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pn(Pe(this,z),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,Z,ie).call(this),Fe(this,Z,ae).call(this),Pe(this,z).removeObserver(this)}setOptions(e,t){const n=this.options,r=Pe(this,z);if(this.options=Pe(this,U).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof At(this.options.enabled,Pe(this,z)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,Z,se).call(this),Pe(this,z).setOptions(this.options),n._defaulted&&!Dt(this.options,n)&&Pe(this,U).getQueryCache().notify({type:"observerOptionsUpdated",query:Pe(this,z),observer:this});const o=this.hasListeners();o&&hn(Pe(this,z),r,this.options,n)&&Fe(this,Z,ee).call(this),this.updateResult(t),!o||Pe(this,z)===r&&At(this.options.enabled,Pe(this,z))===At(n.enabled,Pe(this,z))&&Ct(this.options.staleTime,Pe(this,z))===Ct(n.staleTime,Pe(this,z))||Fe(this,Z,te).call(this);const i=Fe(this,Z,ne).call(this);!o||Pe(this,z)===r&&At(this.options.enabled,Pe(this,z))===At(n.enabled,Pe(this,z))&&i===Pe(this,X)||Fe(this,Z,re).call(this,i)}getOptimisticResult(e){const t=Pe(this,U).getQueryCache().build(Pe(this,U),e),n=this.createResult(t,e);return function(e,t){if(!Dt(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(Ne(this,B,n),Ne(this,V,this.options),Ne(this,W,Pe(this,z).state)),n}getCurrentResult(){return Pe(this,B)}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==t||t(r),e[r])})})),n}trackProp(e){Pe(this,J).add(e)}getCurrentQuery(){return Pe(this,z)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=Pe(this,U).defaultQueryOptions(e),n=Pe(this,U).getQueryCache().build(Pe(this,U),t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return Fe(this,Z,ee).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),Pe(this,B))))}createResult(e,t){var n;const r=Pe(this,z),o=this.options,i=Pe(this,B),a=Pe(this,W),s=Pe(this,V),l=e!==r?e.state:Pe(this,H),{state:c}=e;let u,d={...c},f=!1;if(t._optimisticResults){const n=this.hasListeners(),i=!n&&fn(e,t),a=n&&hn(e,r,t,o);(i||a)&&(d={...d,...tn(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:h,status:m}=d;if(t.select&&void 0!==d.data)if(i&&d.data===(null==a?void 0:a.data)&&t.select===Pe(this,$))u=Pe(this,K);else try{Ne(this,$,t.select),u=t.select(d.data),u=zt(null==i?void 0:i.data,u,t),Ne(this,K,u),Ne(this,q,null)}catch(x){Ne(this,q,x)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===m){let e;if((null==i?void 0:i.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=i.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(n=Pe(this,G))?void 0:n.state.data,Pe(this,G)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),Ne(this,q,null)}catch(x){Ne(this,q,x)}void 0!==e&&(m="success",u=zt(null==i?void 0:i.data,e,t),f=!0)}Pe(this,q)&&(p=Pe(this,q),u=Pe(this,K),h=Date.now(),m="error");const g="fetching"===d.fetchStatus,v="pending"===m,b="error"===m,y=v&&g,w=void 0!==u;return{status:m,fetchStatus:d.fetchStatus,isPending:v,isSuccess:"success"===m,isError:b,isInitialLoading:y,isLoading:y,data:u,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:b&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:f,isRefetchError:b&&w,isStale:mn(e,t),refetch:this.refetch}}updateResult(e){const t=Pe(this,B),n=this.createResult(Pe(this,z),this.options);if(Ne(this,W,Pe(this,z).state),Ne(this,V,this.options),void 0!==Pe(this,W).data&&Ne(this,G,Pe(this,z)),Dt(n,t))return;Ne(this,B,n);const r={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!Pe(this,J).size)return!0;const r=new Set(n??Pe(this,J));return this.options.throwOnError&&r.add("error"),Object.keys(Pe(this,B)).some((e=>{const n=e;return Pe(this,B)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),Fe(this,Z,le).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,Z,oe).call(this)}},U=new WeakMap,z=new WeakMap,H=new WeakMap,B=new WeakMap,W=new WeakMap,V=new WeakMap,q=new WeakMap,$=new WeakMap,K=new WeakMap,G=new WeakMap,Q=new WeakMap,Y=new WeakMap,X=new WeakMap,J=new WeakMap,Z=new WeakSet,ee=function(e){Fe(this,Z,se).call(this);let t=Pe(this,z).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Ot)),t},te=function(){Fe(this,Z,ie).call(this);const e=Ct(this.options.staleTime,Pe(this,z));if(St||Pe(this,B).isStale||!Tt(e))return;const t=kt(Pe(this,B).dataUpdatedAt,e);Ne(this,Q,setTimeout((()=>{Pe(this,B).isStale||this.updateResult()}),t+1))},ne=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(Pe(this,z)):this.options.refetchInterval)??!1},re=function(e){Fe(this,Z,ae).call(this),Ne(this,X,e),!St&&!1!==At(this.options.enabled,Pe(this,z))&&Tt(Pe(this,X))&&0!==Pe(this,X)&&Ne(this,Y,setInterval((()=>{(this.options.refetchIntervalInBackground||qt.isFocused())&&Fe(this,Z,ee).call(this)}),Pe(this,X)))},oe=function(){Fe(this,Z,te).call(this),Fe(this,Z,re).call(this,Fe(this,Z,ne).call(this))},ie=function(){Pe(this,Q)&&(clearTimeout(Pe(this,Q)),Ne(this,Q,void 0))},ae=function(){Pe(this,Y)&&(clearInterval(Pe(this,Y)),Ne(this,Y,void 0))},se=function(){const e=Pe(this,U).getQueryCache().build(Pe(this,U),this.options);if(e===Pe(this,z))return;const t=Pe(this,z);Ne(this,z,e),Ne(this,H,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},le=function(e){Jt.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(Pe(this,B))})),Pe(this,U).getQueryCache().notify({query:Pe(this,z),type:"observerResultsUpdated"})}))},ce);function fn(e,t){return function(e,t){return!1!==At(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&pn(e,t,t.refetchOnMount)}function pn(e,t,n){if(!1!==At(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&mn(e,t)}return!1}function hn(e,t,n,r){return(e!==t||!1===At(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&mn(e,n)}function mn(e,t){return!1!==At(t.enabled,e)&&e.isStaleByTime(Ct(t.staleTime,e))}var gn,vn,bn,yn,wn=(ve=class extends Et{constructor(e,t){super(),Le(this,he),Le(this,ue),Le(this,de),Le(this,fe),Le(this,pe),Ne(this,ue,e),this.setOptions(t),this.bindMethods(),Fe(this,he,me).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=Pe(this,ue).defaultMutationOptions(e),Dt(this.options,n)||Pe(this,ue).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Pe(this,fe),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&Nt(n.mutationKey)!==Nt(this.options.mutationKey)?this.reset():"pending"===(null==(t=Pe(this,fe))?void 0:t.state.status)&&Pe(this,fe).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=Pe(this,fe))||e.removeObserver(this)}onMutationUpdate(e){Fe(this,he,me).call(this),Fe(this,he,ge).call(this,e)}getCurrentResult(){return Pe(this,de)}reset(){var e;null==(e=Pe(this,fe))||e.removeObserver(this),Ne(this,fe,void 0),Fe(this,he,me).call(this),Fe(this,he,ge).call(this)}mutate(e,t){var n;return Ne(this,pe,t),null==(n=Pe(this,fe))||n.removeObserver(this),Ne(this,fe,Pe(this,ue).getMutationCache().build(Pe(this,ue),this.options)),Pe(this,fe).addObserver(this),Pe(this,fe).execute(e)}},ue=new WeakMap,de=new WeakMap,fe=new WeakMap,pe=new WeakMap,he=new WeakSet,me=function(){var e;const t=(null==(e=Pe(this,fe))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};Ne(this,de,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},ge=function(e){Jt.batch((()=>{var t,n,r,o,i,a,s,l;if(Pe(this,pe)&&this.hasListeners()){const c=Pe(this,de).variables,u=Pe(this,de).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=Pe(this,pe)).onSuccess)||n.call(t,e.data,c,u),null==(o=(r=Pe(this,pe)).onSettled)||o.call(r,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(a=(i=Pe(this,pe)).onError)||a.call(i,e.error,c,u),null==(l=(s=Pe(this,pe)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach((e=>{e(Pe(this,de))}))}))},ve),xn=0,_n=[],En=ye,Sn=En.__b,On=En.__r,Tn=En.diffed,kn=En.__c,Cn=En.unmount,An=En.__;function Rn(e,t){En.__h&&En.__h(vn,e,xn||t),xn=0;var n=vn.__H||(vn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Pn(e){return xn=1,Ln(Gn,e)}function Ln(e,t,n){var r=Rn(gn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Gn(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=vn,!vn.u)){var o=function(e,t,n){if(!r.__c.__H)return!0;var o=r.__c.__H.__.filter((function(e){return!!e.__c}));if(o.every((function(e){return!e.__N})))return!i||i.call(this,e,t,n);var a=!1;return o.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!i||i.call(this,e,t,n))};vn.u=!0;var i=vn.shouldComponentUpdate,a=vn.componentWillUpdate;vn.componentWillUpdate=function(e,t,n){if(this.__e){var r=i;i=void 0,o(e,t,n),i=r}a&&a.call(this,e,t,n)},vn.shouldComponentUpdate=o}return r.__N||r.__}function Nn(e,t){var n=Rn(gn++,3);!En.__s&&Kn(n.__H,t)&&(n.__=e,n.i=t,vn.__H.__h.push(n))}function Fn(e,t){var n=Rn(gn++,4);!En.__s&&Kn(n.__H,t)&&(n.__=e,n.i=t,vn.__h.push(n))}function In(e){return xn=5,Mn((function(){return{current:e}}),[])}function Dn(e,t,n){xn=6,Fn((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 Mn(e,t){var n=Rn(gn++,7);return Kn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function jn(e,t){return xn=8,Mn((function(){return e}),t)}function Un(e){var t=vn.context[e.__c],n=Rn(gn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(vn)),t.props.value):e.__}function zn(e,t){En.useDebugValue&&En.useDebugValue(t?t(e):e)}function Hn(){var e=Rn(gn++,11);if(!e.__){for(var t=vn.__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 Bn(){for(var e;e=_n.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qn),e.__H.__h.forEach($n),e.__H.__h=[]}catch(pv){e.__H.__h=[],En.__e(pv,e.__v)}}En.__b=function(e){vn=null,Sn&&Sn(e)},En.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),An&&An(e,t)},En.__r=function(e){On&&On(e),gn=0;var t=(vn=e.__c).__H;t&&(bn===vn?(t.__h=[],vn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(qn),t.__h.forEach($n),t.__h=[],gn=0)),bn=vn},En.diffed=function(e){Tn&&Tn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==_n.push(t)&&yn===En.requestAnimationFrame||((yn=En.requestAnimationFrame)||Vn)(Bn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),bn=vn=null},En.__c=function(e,t){t.some((function(e){try{e.__h.forEach(qn),e.__h=e.__h.filter((function(e){return!e.__||$n(e)}))}catch(Cg){t.some((function(e){e.__h&&(e.__h=[])})),t=[],En.__e(Cg,e.__v)}})),kn&&kn(e,t)},En.unmount=function(e){Cn&&Cn(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{qn(e)}catch(n){t=n}})),n.__H=void 0,t&&En.__e(t,n.__v))};var Wn="function"==typeof requestAnimationFrame;function Vn(e){var t,n=function(){clearTimeout(r),Wn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Wn&&(t=requestAnimationFrame(n))}function qn(e){var t=vn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),vn=t}function $n(e){var t=vn;e.__c=e.__(),vn=t}function Kn(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Gn(e,t){return"function"==typeof t?t(e):t}function Qn(e,t){for(var n in t)e[n]=t[n];return e}function Yn(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 Xn(e,t){this.props=e,this.context=t}function Jn(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:Yn(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Be(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Xn.prototype=new $e).isPureReactComponent=!0,Xn.prototype.shouldComponentUpdate=function(e,t){return Yn(this.props,e)||Yn(this.state,t)};var Zn=ye.__b;ye.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zn&&Zn(e)};var er="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function tr(e){function t(t){var n=Qn({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=er,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var nr=function(e,t){return null==e?null:Ze(Ze(e).map(t))},rr={map:nr,forEach:nr,count:function(e){return e?Ze(e).length:0},only:function(e){var t=Ze(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ze},or=ye.__e;ye.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);or(e,t,n,r)};var ir=ye.unmount;function ar(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=Qn({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ar(e,t,n)}))),e}function sr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return sr(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 lr(){this.__u=0,this.t=null,this.__b=null}function cr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ur(e){var t,n,r;function o(o){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return Be(n,o)}return o.displayName="Lazy",o.__f=!0,o}function dr(){this.u=null,this.o=null}ye.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ir&&ir(e)},(lr.prototype=new $e).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=cr(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=sr(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},lr.prototype.componentWillUnmount=function(){this.t=[]},lr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ar(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&Be(qe,null,e.fallback);return o&&(o.__u&=-33),[Be(qe,null,t.__a?null:e.children),o]};var fr=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 pr(e){return this.getChildContext=function(){return e.context},e.children}function hr(e){var t=this,n=e.i;t.componentWillUnmount=function(){ct(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)}}),ct(Be(pr,{context:t.context},e.__v),t.l)}function mr(e,t){var n=Be(hr,{__v:e,i:t});return n.containerInfo=t,n}(dr.prototype=new $e).__a=function(e){var t=this,n=cr(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),fr(t,e,r)):o()};n?n(i):i()}},dr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ze(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},dr.prototype.componentDidUpdate=dr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){fr(e,n,t)}))};var gr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,vr=/^(?: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]/,br=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,yr=/[A-Z0-9]/g,wr="undefined"!=typeof document,xr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function _r(e,t,n){return null==t.__k&&(t.textContent=""),ct(e,t),"function"==typeof n&&n(),e?e.__c:null}function Er(e,t,n){return ut(e,t),"function"==typeof n&&n(),e?e.__c:null}$e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty($e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Sr=ye.event;function Or(){}function Tr(){return this.cancelBubble}function kr(){return this.defaultPrevented}ye.event=function(e){return Sr&&(e=Sr(e)),e.persist=Or,e.isPropagationStopped=Tr,e.isDefaultPrevented=kr,e.nativeEvent=e};var Cr,Ar={enumerable:!1,configurable:!0,get:function(){return this.class}},Rr=ye.vnode;ye.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},o=-1===n.indexOf("-");for(var i in t){var a=t[i];if(!("value"===i&&"defaultValue"in t&&null==a||wr&&"children"===i&&"noscript"===n||"class"===i||"className"===i)){var s=i.toLowerCase();"defaultValue"===i&&"value"in t&&null==t.value?i="value":"download"===i&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?i="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||xr(t.type)?"onfocus"===s?i="onfocusin":"onblur"===s?i="onfocusout":br.test(i)&&(i=s):s=i="oninput":o&&vr.test(i)?i=i.replace(yr,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[i=s]&&(i="oninputCapture"),r[i]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Ze(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Ze(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",Ar)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=gr,Rr&&Rr(e)};var Pr=ye.__r;ye.__r=function(e){Pr&&Pr(e),Cr=e.__c};var Lr=ye.diffed;ye.diffed=function(e){Lr&&Lr(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),Cr=null};var Nr={ReactCurrentDispatcher:{current:{readContext:function(e){return Cr.__n[e.__c].props.value},useCallback:jn,useContext:Un,useDebugValue:zn,useDeferredValue:qr,useEffect:Nn,useId:Hn,useImperativeHandle:Dn,useInsertionEffect:Kr,useLayoutEffect:Fn,useMemo:Mn,useReducer:Ln,useRef:In,useState:Pn,useSyncExternalStore:Qr,useTransition:$r}}};function Fr(e){return Be.bind(null,e)}function Ir(e){return!!e&&e.$$typeof===gr}function Dr(e){return Ir(e)&&e.type===qe}function Mr(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function jr(e){return Ir(e)?dt.apply(null,arguments):e}function Ur(e){return!!e.__k&&(ct(null,e),!0)}function zr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Hr=function(e,t){return e(t)},Br=function(e,t){return e(t)},Wr=qe;function Vr(e){e()}function qr(e){return e}function $r(){return[!1,Vr]}var Kr=Fn,Gr=Ir;function Qr(e,t){var n=t(),r=Pn({h:{__:n,v:t}}),o=r[0].h,i=r[1];return Fn((function(){o.__=n,o.v=t,Yr(o)&&i({h:o})}),[e,n,t]),Nn((function(){return Yr(o)&&i({h:o}),e((function(){Yr(o)&&i({h:o})}))}),[e]),n}function Yr(e){var t,n,r=e.v,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Xr={useState:Pn,useId:Hn,useReducer:Ln,useEffect:Nn,useLayoutEffect:Fn,useInsertionEffect:Kr,useTransition:$r,useDeferredValue:qr,useSyncExternalStore:Qr,startTransition:Vr,useRef:In,useImperativeHandle:Dn,useMemo:Mn,useCallback:jn,useContext:Un,useDebugValue:zn,version:"17.0.2",Children:rr,render:_r,hydrate:Er,unmountComponentAtNode:Ur,createPortal:mr,createElement:Be,createContext:ft,createFactory:Fr,cloneElement:jr,createRef:Ve,Fragment:qe,isValidElement:Ir,isElement:Gr,isFragment:Dr,isMemo:Mr,findDOMNode:zr,Component:$e,PureComponent:Xn,memo:Jn,forwardRef:tr,flushSync:Br,unstable_batchedUpdates:Hr,StrictMode:Wr,Suspense:lr,SuspenseList:dr,lazy:ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Nr};const Jr=Object.freeze(Object.defineProperty({__proto__:null,Children:rr,Component:$e,Fragment:qe,PureComponent:Xn,StrictMode:Wr,Suspense:lr,SuspenseList:dr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Nr,cloneElement:jr,createContext:ft,createElement:Be,createFactory:Fr,createPortal:mr,createRef:Ve,default:Xr,findDOMNode:zr,flushSync:Br,forwardRef:tr,hydrate:Er,isElement:Gr,isFragment:Dr,isMemo:Mr,isValidElement:Ir,lazy:ur,memo:Jn,render:_r,startTransition:Vr,unmountComponentAtNode:Ur,unstable_batchedUpdates:Hr,useCallback:jn,useContext:Un,useDebugValue:zn,useDeferredValue:qr,useEffect:Nn,useErrorBoundary:function(e){var t=Rn(gn++,10),n=Pn();return t.__=e,vn.componentDidCatch||(vn.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Hn,useImperativeHandle:Dn,useInsertionEffect:Kr,useLayoutEffect:Fn,useMemo:Mn,useReducer:Ln,useRef:In,useState:Pn,useSyncExternalStore:Qr,useTransition:$r,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var Zr=ft(void 0),eo=e=>{const t=Un(Zr);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},to=({client:e,children:t})=>(Nn((()=>(e.mount(),()=>{e.unmount()})),[e]),_t(Zr.Provider,{value:e,children:t})),no=ft(!1),ro=()=>Un(no);no.Provider;var oo=ft(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),io=()=>Un(oo);function ao(e,t){return"function"==typeof e?e(...t):!!e}function so(){}var lo,co,uo,fo,po=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},ho=e=>{Nn((()=>{e.clearReset()}),[e])},mo=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ao(n,[e.error,r]),go=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},vo=(e,t)=>(null==e?void 0:e.suspense)&&t.isPending,bo=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function yo(e,t){return function(e,t){var n,r,o,i;const a=eo(),s=ro(),l=io(),c=a.defaultQueryOptions(e);null==(r=null==(n=a.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||r.call(n,c),c._optimisticResults=s?"isRestoring":"optimistic",go(c),po(c,l),ho(l);const[u]=Pn((()=>new t(a,c))),d=u.getOptimisticResult(c);if(Qr(jn((e=>{const t=s?()=>{}:u.subscribe(Jt.batchCalls(e));return u.updateResult(),t}),[u,s]),(()=>u.getCurrentResult())),Nn((()=>{u.setOptions(c,{listeners:!1})}),[c,u]),vo(c,d))throw bo(c,u,l);if(mo({result:d,errorResetBoundary:l,throwOnError:c.throwOnError,query:a.getQueryCache().get(c.queryHash)}))throw d.error;return null==(i=null==(o=a.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||i.call(o,c,d),c.notifyOnChangeProps?d:u.trackResult(d)}(e,dn)}
|
|
1
|
+
var e,t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w,_,x,E,S,O,k,T,A,C,R,P,N,L,F,D,M,I,j,U,H,B,z,V,W,q,$,K,G,Q,Y,X,J,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,fe,pe,he,me,ge,ve,ye,be,we,_e,xe,Ee,Se,Oe,ke,Te,Ae,Ce=e=>{throw TypeError(e)},Re=(e,t,n)=>t.has(e)||Ce("Cannot "+n),Pe=(e,t,n)=>(Re(e,t,"read from private field"),n?n.call(e):t.get(e)),Ne=(e,t,n)=>t.has(e)?Ce("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Le=(e,t,n,r)=>(Re(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Fe=(e,t,n)=>(Re(e,t,"access private method"),n),De=(e,t,n,r)=>({set _(r){Le(e,t,r,n)},get _(){return Pe(e,t,r)}}),Me={},Ie=[],je=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ue=Array.isArray;function He(e,t){for(var n in t)e[n]=t[n];return e}function Be(e){var t=e.parentNode;t&&t.removeChild(e)}function ze(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ye.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return Ve(e,a,r,i,null)}function Ve(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++we:i,__i:-1,__u:0};return null==i&&null!=be.vnode&&be.vnode(o),o}function We(){return{current:null}}function qe(e){return e.children}function $e(e,t){this.props=e,this.context=t}function Ke(e,t){if(null==t)return e.__?Ke(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?Ke(e):null}function Ge(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 Ge(e)}}function Qe(e){(!e.__d&&(e.__d=!0)&&_e.push(e)&&!Ye.__r++||xe!==be.debounceRendering)&&((xe=be.debounceRendering)||Ee)(Ye)}function Ye(){var e,t,n,r,i,o,a,s;for(_e.sort(Se);e=_e.shift();)e.__d&&(t=_e.length,r=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=He({},i)).__v=i.__v+1,be.vnode&&be.vnode(r),it(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?Ke(i):o,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,ot(a,r,s),r.__e!=o&&Ge(r)),_e.length>t&&_e.sort(Se));Ye.__r=0}function Xe(e,t,n,r,i,o,a,s,l,c,u){var d,f,p,h,m,g=r&&r.__k||Ie,v=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)a=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?Ve(null,i,null,null,null):Ue(i)?Ve(qe,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Ve(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)?(i.__=e,i.__b=e.__b+1,s=et(i,n,a,u),i.__i=s,o=null,-1!==s&&(u--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:s>a?u>l-a?d+=s-a:d--:s<a&&(s==a-d?d-=s-a:d++),s!==r+d&&(i.__u|=65536))):(o=n[a])&&null==o.key&&o.__e&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Ke(o)),st(o,o,!1),n[a]=null,u--);if(u)for(r=0;r<c;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Ke(o)),st(o,o))}(n,t,g),l=n.__d,d=0;d<v;d++)null!=(p=n.__k[d])&&"boolean"!=typeof p&&"function"!=typeof p&&(f=-1===p.__i?Me:g[p.__i]||Me,p.__i=d,it(e,p,f,i,o,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&at(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==m&&null!=h&&(m=h),65536&p.__u||f.__k===p.__k?l=Je(p,l,e):"function"==typeof p.type&&void 0!==p.__d?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function Je(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=Je(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Ke(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ze(e,t){return t=t||[],null==e||"boolean"==typeof e||(Ue(e)?e.some((function(e){Ze(e,t)})):t.push(e)),t}function et(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function tt(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||je.test(t)?n:n+"px"}function nt(e,t,n,r,i){var o;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||tt(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||tt(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=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+o]=n,n?r?n.u=r.u:(n.u=Oe,e.addEventListener(t,o?Te:ke,o)):e.removeEventListener(t,o?Te:ke,o);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(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function rt(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Oe++;else if(t.t<n.u)return;return n(be.event?be.event(t):t)}}}function it(e,t,n,r,i,o,a,s,l,c){var u,d,f,p,h,m,g,v,y,b,w,_,x,E,S,O,k=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=be.__b)&&u(t);e:if("function"==typeof k)try{if(v=t.props,y="prototype"in k&&k.prototype.render,b=(u=k.contextType)&&r[u.__c],w=u?b?b.props.value:u.__:r,n.__c?g=(d=t.__c=n.__c).__=d.__E:(y?t.__c=d=new k(v,w):(t.__c=d=new $e(v,w),d.constructor=k,d.render=lt),b&&b.sub(d),d.props=v,d.state||(d.state={}),d.context=w,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=k.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=He({},d.__s)),He(d.__s,k.getDerivedStateFromProps(v,d.__s))),p=d.props,h=d.state,d.__v=t,f)y&&null==k.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==k.getDerivedStateFromProps&&v!==p&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),_=0;_<d._sb.length;_++)d.__h.push(d._sb[_]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,w),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(p,h,m)}))}if(d.context=w,d.props=v,d.__P=e,d.__e=!1,x=be.__r,E=0,y){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++E<25);d.state=d.__s,null!=d.getChildContext&&(r=He(He({},r),d.getChildContext())),y&&!f&&null!=d.getSnapshotBeforeUpdate&&(m=d.getSnapshotBeforeUpdate(p,h)),Xe(e,Ue(O=null!=u&&u.type===qe&&null==u.key?u.props.children:u)?O:[O],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||null!=o){for(t.__u|=l?160:32;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;be.__e(T,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,a,s,l){var c,u,d,f,p,h,m,g=n.props,v=t.props,y=t.type;if("svg"===y?i="http://www.w3.org/2000/svg":"math"===y?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(c=0;c<o.length;c++)if((p=o[c])&&"setAttribute"in p==!!y&&(y?p.localName===y:3===p.nodeType)){e=p,o[c]=null;break}if(null==e){if(null===y)return document.createTextNode(v);e=document.createElementNS(i,y,v.is&&v),o=null,s=!1}if(null===y)g===v||s&&e.data===v||(e.data=v);else{if(o=o&&ye.call(e.childNodes),g=n.props||Me,!s&&null!=o)for(g={},c=0;c<e.attributes.length;c++)g[(p=e.attributes[c]).name]=p.value;for(c in g)if(p=g[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=p;else if("key"!==c&&!(c in v)){if("value"==c&&"defaultValue"in v||"checked"==c&&"defaultChecked"in v)continue;nt(e,c,null,p,i)}for(c in v)p=v[c],"children"==c?f=p:"dangerouslySetInnerHTML"==c?u=p:"value"==c?h=p:"checked"==c?m=p:"key"===c||s&&"function"!=typeof p||g[c]===p||nt(e,c,p,g[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Xe(e,Ue(f)?f:[f],t,n,r,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&Ke(n,0),s,l),null!=o)for(c=o.length;c--;)null!=o[c]&&Be(o[c]);s||(c="value",void 0!==h&&(h!==e[c]||"progress"===y&&!h||"option"===y&&h!==g[c])&&nt(e,c,h,g[c],i),c="checked",void 0!==m&&m!==e[c]&&nt(e,c,m,g[c],i))}return e}(n.__e,t,n,r,i,o,a,l,c);(u=be.diffed)&&u(t)}function ot(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)at(n[r],n[++r],n[++r]);be.__c&&be.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){be.__e(n,t.__v)}}))}function at(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(i){be.__e(i,n)}}function st(e,t,n){var r,i;if(be.unmount&&be.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||at(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){be.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&st(r[i],t,n||"function"!=typeof e.type);n||null==e.__e||Be(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function lt(e,t,n){return this.constructor(e,n)}function ct(e,t,n){var r,i,o,a;be.__&&be.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],a=[],it(t,e=(!r&&n||t).__k=ze(qe,null,[e]),i||Me,Me,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?ye.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),ot(o,e,a)}function ut(e,t){ct(e,t,ut)}function dt(e,t,n){var r,i,o,a,s=He({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=void 0===t[o]&&void 0!==a?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?ye.call(arguments,2):n),Ve(e.type,s,r||e.key,i||e.ref,null)}function ft(e,t){var n={__c:t="__cC"+Ae++,__: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,Qe(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 pt(){return(pt=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)}ye=Ie.slice,be={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},we=0,$e.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=He({},this.state),"function"==typeof e&&(e=e(He({},n),this.props)),e&&He(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Qe(this))},$e.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Qe(this))},$e.prototype.render=qe,_e=[],Ee="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Se=function(e,t){return e.__v.__b-t.__v.__b},Ye.__r=0,Oe=0,ke=rt(!1),Te=rt(!0),Ae=0;var ht=["context","children"];function mt(e){return this.getChildContext=function(){return e.context},dt(e.children,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,ht))}function gt(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=ze(mt,pt({},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={},o=0,a=t.attributes,s=t.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[vt(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=ze(wt,{name:c},l):r[o]=l}var u=n?ze(wt,null,r):r;return ze(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ut:ct)(this._vdom,this._root)}function vt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function yt(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[vt(e)]=n,this._vdom=dt(this._vdom,r),ct(this._vdom,this._root)}}function bt(){ct(this._vdom=null,this._root)}function wt(e,t){var n=this;return ze("slot",pt({},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 _t=0;function xt(e,t,n,r,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)"ref"==s?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--_t,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return be.vnode&&be.vnode(c),c}var Et=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(){}},St="undefined"==typeof window||"Deno"in globalThis;function Ot(){}function kt(e){return"number"==typeof e&&e>=0&&e!==1/0}function Tt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function At(e,t){return"function"==typeof e?e(t):e}function Ct(e,t){return"function"==typeof e?e(t):e}function Rt(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==Nt(a,t.options))return!1}else if(!Ft(t.queryKey,a))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)&&!(o&&!o(t)))}function Pt(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Lt(t.options.mutationKey)!==Lt(o))return!1}else if(!Ft(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function Nt(e,t){return((null==t?void 0:t.queryKeyHashFn)||Lt)(e)}function Lt(e){return JSON.stringify(e,((e,t)=>jt(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Ft(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Ft(e[n],t[n]))))}function Dt(e,t){if(e===t)return e;const n=It(e)&&It(t);if(n||jt(e)&&jt(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const i=n?c:o[c];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=Dt(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function Mt(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 It(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function jt(e){if(!Ut(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Ut(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Ut(e){return"[object Object]"===Object.prototype.toString.call(e)}function Ht(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Dt(e,t):t}function Bt(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function zt(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vt=Symbol();function Wt(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==Vt?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var qt=new(r=class extends Et{constructor(){super(),Ne(this,e),Ne(this,t),Ne(this,n),Le(this,n,(e=>{if(!St&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){Pe(this,t)||this.setEventListener(Pe(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Pe(this,t))||e.call(this),Le(this,t,void 0))}setEventListener(e){var r;Le(this,n,e),null==(r=Pe(this,t))||r.call(this),Le(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){Pe(this,e)!==t&&(Le(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof Pe(this,e)?Pe(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),$t=new(s=class extends Et{constructor(){super(),Ne(this,i,!0),Ne(this,o),Ne(this,a),Le(this,a,(e=>{if(!St&&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(){Pe(this,o)||this.setEventListener(Pe(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=Pe(this,o))||e.call(this),Le(this,o,void 0))}setEventListener(e){var t;Le(this,a,e),null==(t=Pe(this,o))||t.call(this),Le(this,o,e(this.setOnline.bind(this)))}setOnline(e){Pe(this,i)!==e&&(Le(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return Pe(this,i)}},i=new WeakMap,o=new WeakMap,a=new WeakMap,s);function Kt(e){return Math.min(1e3*2**e,3e4)}function Gt(e){return"online"!==(e??"online")||$t.isOnline()}var Qt=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function Yt(e){return e instanceof Qt}function Xt(e){let t,n,r,i=!1,o=0,a=!1;const s=new Promise(((e,t)=>{n=e,r=t})),l=()=>qt.isFocused()&&("always"===e.networkMode||$t.isOnline())&&e.canRun(),c=()=>Gt(e.networkMode)&&e.canRun(),u=r=>{var i;a||(a=!0,null==(i=e.onSuccess)||i.call(e,r),null==t||t(),n(r))},d=n=>{var i;a||(a=!0,null==(i=e.onError)||i.call(e,n),null==t||t(),r(n))},f=()=>new Promise((n=>{var r;t=e=>{(a||l())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,a||null==(n=e.onContinue)||n.call(e)})),p=()=>{if(a)return;let t;const n=0===o?e.initialPromise:void 0;try{t=n??e.fn()}catch(r){t=Promise.reject(r)}Promise.resolve(t).then(u).catch((t=>{var n;if(a)return;const r=e.retry??(St?0:3),s=e.retryDelay??Kt,c="function"==typeof s?s(o,t):s,u=!0===r||"number"==typeof r&&o<r||"function"==typeof r&&r(o,t);var h;!i&&u?(o++,null==(n=e.onFail)||n.call(e,o,t),(h=c,new Promise((e=>{setTimeout(e,h)}))).then((()=>l()?void 0:f())).then((()=>{i?d(t):p()}))):d(t)}))};return{promise:s,cancel:t=>{var n;a||(d(new Qt(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),s),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:c,start:()=>(c()?p():f().then(p),s)}}var Jt=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))},a=()=>{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||a()}return n},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),Zt=(c=class{constructor(){Ne(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),kt(this.gcTime)&&Le(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(St?1/0:3e5))}clearGcTimeout(){Pe(this,l)&&(clearTimeout(Pe(this,l)),Le(this,l,void 0))}},l=new WeakMap,c),en=(y=class extends Zt{constructor(e){super(),Ne(this,g),Ne(this,u),Ne(this,d),Ne(this,f),Ne(this,p),Ne(this,h),Ne(this,m),Le(this,m,!1),Le(this,h,e.defaultOptions),this.setOptions(e.options),this.observers=[],Le(this,f,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Le(this,u,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??Pe(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=Pe(this,p))?void 0:e.promise}setOptions(e){this.options={...Pe(this,h),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||Pe(this,f).remove(this)}setData(e,t){const n=Ht(this.state.data,e,this.options);return Fe(this,g,v).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){Fe(this,g,v).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=Pe(this,p))?void 0:t.promise;return null==(n=Pe(this,p))||n.cancel(e),r?r.then(Ot).catch(Ot):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Pe(this,u))}isActive(){return this.observers.some((e=>!1!==Ct(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||!Tt(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=Pe(this,p))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=Pe(this,p))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),Pe(this,f).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(Pe(this,p)&&(Pe(this,m)?Pe(this,p).cancel({revert:!0}):Pe(this,p).cancelRetry()),this.scheduleGc()),Pe(this,f).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,g,v).call(this,{type:"invalidate"})}fetch(e,t){var n,r,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(Pe(this,p))return Pe(this,p).continueRetry(),Pe(this,p).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(Le(this,m,!0),o.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=Wt(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return a(n),Le(this,m,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};a(s),null==(n=this.options.behavior)||n.onFetch(s,this),Le(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=s.fetchOptions)?void 0:r.meta)||Fe(this,g,v).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,n,r,i;Yt(e)&&e.silent||Fe(this,g,v).call(this,{type:"error",error:e}),Yt(e)||(null==(n=(t=Pe(this,f).config).onError)||n.call(t,e,this),null==(i=(r=Pe(this,f).config).onSettled)||i.call(r,this.state.data,e,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Le(this,p,Xt({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;void 0!==e?(this.setData(e),null==(n=(t=Pe(this,f).config).onSuccess)||n.call(t,e,this),null==(i=(r=Pe(this,f).config).onSettled)||i.call(r,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{Fe(this,g,v).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Fe(this,g,v).call(this,{type:"pause"})},onContinue:()=>{Fe(this,g,v).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),Pe(this,p).start()}},u=new WeakMap,d=new WeakMap,f=new WeakMap,p=new WeakMap,h=new WeakMap,m=new WeakMap,g=new WeakSet,v=function(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,...tn(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 Yt(n)&&n.revert&&Pe(this,d)?{...Pe(this,d),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),Jt.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),Pe(this,f).notify({query:this,type:"updated",action:e})}))},y);function tn(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Gt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var nn=(w=class extends Et{constructor(e={}){super(),Ne(this,b),this.config=e,Le(this,b,new Map)}build(e,t,n){const r=t.queryKey,i=t.queryHash??Nt(r,t);let o=this.get(i);return o||(o=new en({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){Pe(this,b).has(e.queryHash)||(Pe(this,b).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Pe(this,b).get(e.queryHash);t&&(e.destroy(),t===e&&Pe(this,b).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Jt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return Pe(this,b).get(e)}getAll(){return[...Pe(this,b).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Rt(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Rt(e,t))):t}notify(e){Jt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Jt.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Jt.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},b=new WeakMap,w),rn=(k=class extends Zt{constructor(e){super(),Ne(this,S),Ne(this,_),Ne(this,x),Ne(this,E),this.mutationId=e.mutationId,Le(this,x,e.mutationCache),Le(this,_,[]),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){Pe(this,_).includes(e)||(Pe(this,_).push(e),this.clearGcTimeout(),Pe(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Le(this,_,Pe(this,_).filter((t=>t!==e))),this.scheduleGc(),Pe(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Pe(this,_).length||("pending"===this.state.status?this.scheduleGc():Pe(this,x).remove(this))}continue(){var e;return(null==(e=Pe(this,E))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,w;Le(this,E,Xt({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{Fe(this,S,O).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{Fe(this,S,O).call(this,{type:"pause"})},onContinue:()=>{Fe(this,S,O).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>Pe(this,x).canRun(this)}));const _="pending"===this.state.status,k=!Pe(this,E).canStart();try{if(!_){Fe(this,S,O).call(this,{type:"pending",variables:e,isPaused:k}),await(null==(n=(t=Pe(this,x).config).onMutate)?void 0:n.call(t,e,this));const o=await(null==(i=(r=this.options).onMutate)?void 0:i.call(r,e));o!==this.state.context&&Fe(this,S,O).call(this,{type:"pending",context:o,variables:e,isPaused:k})}const p=await Pe(this,E).start();return await(null==(a=(o=Pe(this,x).config).onSuccess)?void 0:a.call(o,p,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,p,e,this.state.context)),await(null==(u=(c=Pe(this,x).config).onSettled)?void 0:u.call(c,p,null,this.state.variables,this.state.context,this)),await(null==(f=(d=this.options).onSettled)?void 0:f.call(d,p,null,e,this.state.context)),Fe(this,S,O).call(this,{type:"success",data:p}),p}catch(T){try{throw await(null==(h=(p=Pe(this,x).config).onError)?void 0:h.call(p,T,e,this.state.context,this)),await(null==(g=(m=this.options).onError)?void 0:g.call(m,T,e,this.state.context)),await(null==(y=(v=Pe(this,x).config).onSettled)?void 0:y.call(v,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(b=this.options).onSettled)?void 0:w.call(b,void 0,T,e,this.state.context)),T}finally{Fe(this,S,O).call(this,{type:"error",error:T})}}finally{Pe(this,x).runNext(this)}}},_=new WeakMap,x=new WeakMap,E=new WeakMap,S=new WeakSet,O=function(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),Jt.batch((()=>{Pe(this,_).forEach((t=>{t.onMutationUpdate(e)})),Pe(this,x).notify({mutation:this,type:"updated",action:e})}))},k);var on=(C=class extends Et{constructor(e={}){super(),Ne(this,T),Ne(this,A),this.config=e,Le(this,T,new Map),Le(this,A,Date.now())}build(e,t,n){const r=new rn({mutationCache:this,mutationId:++De(this,A)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=an(e),n=Pe(this,T).get(t)??[];n.push(e),Pe(this,T).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=an(e);if(Pe(this,T).has(n)){const r=null==(t=Pe(this,T).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?Pe(this,T).delete(n):Pe(this,T).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=Pe(this,T).get(an(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=Pe(this,T).get(an(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){Jt.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...Pe(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Pt(t,e)))}findAll(e={}){return this.getAll().filter((t=>Pt(e,t)))}notify(e){Jt.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Jt.batch((()=>Promise.all(e.map((e=>e.continue().catch(Ot))))))}},T=new WeakMap,A=new WeakMap,C);function an(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function sn(e){return{onFetch:(t,n)=>{const r=async()=>{var n,r,i,o,a;const s=t.options,l=null==(i=null==(r=null==(n=t.fetchOptions)?void 0:n.meta)?void 0:r.fetchMore)?void 0:i.direction,c=(null==(o=t.state.data)?void 0:o.pages)||[],u=(null==(a=t.state.data)?void 0:a.pageParams)||[],d={pages:[],pageParams:[]};let f=!1;const p=Wt(t.options,t.fetchOptions),h=async(e,n,r)=>{if(f)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 o;o=i,Object.defineProperty(o,"signal",{enumerable:!0,get:()=>(t.signal.aborted?f=!0:t.signal.addEventListener("abort",(()=>{f=!0})),t.signal)});const a=await p(i),{maxPages:s}=t.options,l=r?zt:Bt;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,n,s)}};let m;if(l&&c.length){const e="backward"===l,t={pages:c,pageParams:u},n=(e?cn:ln)(s,t);m=await h(t,n,e)}else{m=await h(d,u[0]??s.initialPageParam);const t=e??c.length;for(let e=1;e<t;e++){const e=ln(s,m);if(null==e)break;m=await h(m,e)}}return m};t.options.persister?t.fetchFn=()=>{var e,i;return null==(i=(e=t.options).persister)?void 0:i.call(e,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function ln(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 cn(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var un=(j=class{constructor(e={}){Ne(this,R),Ne(this,P),Ne(this,N),Ne(this,L),Ne(this,F),Ne(this,D),Ne(this,M),Ne(this,I),Le(this,R,e.queryCache||new nn),Le(this,P,e.mutationCache||new on),Le(this,N,e.defaultOptions||{}),Le(this,L,new Map),Le(this,F,new Map),Le(this,D,0)}mount(){De(this,D)._++,1===Pe(this,D)&&(Le(this,M,qt.subscribe((async e=>{e&&(await this.resumePausedMutations(),Pe(this,R).onFocus())}))),Le(this,I,$t.subscribe((async e=>{e&&(await this.resumePausedMutations(),Pe(this,R).onOnline())}))))}unmount(){var e,t;De(this,D)._--,0===Pe(this,D)&&(null==(e=Pe(this,M))||e.call(this),Le(this,M,void 0),null==(t=Pe(this,I))||t.call(this),Le(this,I,void 0))}isFetching(e){return Pe(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Pe(this,P).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Pe(this,R).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=Pe(this,R).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(At(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return Pe(this,R).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=Pe(this,R).get(r.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==o)return Pe(this,R).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Jt.batch((()=>Pe(this,R).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=Pe(this,R).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=Pe(this,R);Jt.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=Pe(this,R),r={type:"active",...e};return Jt.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Jt.batch((()=>Pe(this,R).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(Ot).catch(Ot)}invalidateQueries(e={},t={}){return Jt.batch((()=>{if(Pe(this,R).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:(null==t?void 0:t.cancelRefetch)??!0},r=Jt.batch((()=>Pe(this,R).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Ot)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(Ot)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=Pe(this,R).build(this,t);return n.isStaleByTime(At(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ot).catch(Ot)}fetchInfiniteQuery(e){return e.behavior=sn(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ot).catch(Ot)}resumePausedMutations(){return $t.isOnline()?Pe(this,P).resumePausedMutations():Promise.resolve()}getQueryCache(){return Pe(this,R)}getMutationCache(){return Pe(this,P)}getDefaultOptions(){return Pe(this,N)}setDefaultOptions(e){Le(this,N,e)}setQueryDefaults(e,t){Pe(this,L).set(Lt(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Pe(this,L).values()];let n={};return t.forEach((t=>{Ft(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){Pe(this,F).set(Lt(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Pe(this,F).values()];let n={};return t.forEach((t=>{Ft(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...Pe(this,N).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Nt(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===Vt&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...Pe(this,N).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Pe(this,R).clear(),Pe(this,P).clear()}},R=new WeakMap,P=new WeakMap,N=new WeakMap,L=new WeakMap,F=new WeakMap,D=new WeakMap,M=new WeakMap,I=new WeakMap,j),dn=(ce=class extends Et{constructor(e,t){super(),Ne(this,Z),Ne(this,U),Ne(this,H),Ne(this,B),Ne(this,z),Ne(this,V),Ne(this,W),Ne(this,q),Ne(this,$),Ne(this,K),Ne(this,G),Ne(this,Q),Ne(this,Y),Ne(this,X),Ne(this,J,new Set),this.options=t,Le(this,U,e),Le(this,q,null),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(Pe(this,H).addObserver(this),fn(Pe(this,H),this.options)?Fe(this,Z,ee).call(this):this.updateResult(),Fe(this,Z,ie).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return pn(Pe(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return pn(Pe(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,Z,oe).call(this),Fe(this,Z,ae).call(this),Pe(this,H).removeObserver(this)}setOptions(e,t){const n=this.options,r=Pe(this,H);if(this.options=Pe(this,U).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Ct(this.options.enabled,Pe(this,H)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,Z,se).call(this),Pe(this,H).setOptions(this.options),n._defaulted&&!Mt(this.options,n)&&Pe(this,U).getQueryCache().notify({type:"observerOptionsUpdated",query:Pe(this,H),observer:this});const i=this.hasListeners();i&&hn(Pe(this,H),r,this.options,n)&&Fe(this,Z,ee).call(this),this.updateResult(t),!i||Pe(this,H)===r&&Ct(this.options.enabled,Pe(this,H))===Ct(n.enabled,Pe(this,H))&&At(this.options.staleTime,Pe(this,H))===At(n.staleTime,Pe(this,H))||Fe(this,Z,te).call(this);const o=Fe(this,Z,ne).call(this);!i||Pe(this,H)===r&&Ct(this.options.enabled,Pe(this,H))===Ct(n.enabled,Pe(this,H))&&o===Pe(this,X)||Fe(this,Z,re).call(this,o)}getOptimisticResult(e){const t=Pe(this,U).getQueryCache().build(Pe(this,U),e),n=this.createResult(t,e);return function(e,t){if(!Mt(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(Le(this,z,n),Le(this,W,this.options),Le(this,V,Pe(this,H).state)),n}getCurrentResult(){return Pe(this,z)}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==t||t(r),e[r])})})),n}trackProp(e){Pe(this,J).add(e)}getCurrentQuery(){return Pe(this,H)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=Pe(this,U).defaultQueryOptions(e),n=Pe(this,U).getQueryCache().build(Pe(this,U),t);return n.isFetchingOptimistic=!0,n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return Fe(this,Z,ee).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),Pe(this,z))))}createResult(e,t){var n;const r=Pe(this,H),i=this.options,o=Pe(this,z),a=Pe(this,V),s=Pe(this,W),l=e!==r?e.state:Pe(this,B),{state:c}=e;let u,d={...c},f=!1;if(t._optimisticResults){const n=this.hasListeners(),o=!n&&fn(e,t),a=n&&hn(e,r,t,i);(o||a)&&(d={...d,...tn(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:p,errorUpdatedAt:h,status:m}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==a?void 0:a.data)&&t.select===Pe(this,$))u=Pe(this,K);else try{Le(this,$,t.select),u=t.select(d.data),u=Ht(null==o?void 0:o.data,u,t),Le(this,K,u),Le(this,q,null)}catch(_){Le(this,q,_)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===m){let e;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(n=Pe(this,G))?void 0:n.state.data,Pe(this,G)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),Le(this,q,null)}catch(_){Le(this,q,_)}void 0!==e&&(m="success",u=Ht(null==o?void 0:o.data,e,t),f=!0)}Pe(this,q)&&(p=Pe(this,q),u=Pe(this,K),h=Date.now(),m="error");const g="fetching"===d.fetchStatus,v="pending"===m,y="error"===m,b=v&&g,w=void 0!==u;return{status:m,fetchStatus:d.fetchStatus,isPending:v,isSuccess:"success"===m,isError:y,isInitialLoading:b,isLoading:b,data:u,dataUpdatedAt:d.dataUpdatedAt,error:p,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:y&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:f,isRefetchError:y&&w,isStale:mn(e,t),refetch:this.refetch}}updateResult(e){const t=Pe(this,z),n=this.createResult(Pe(this,H),this.options);if(Le(this,V,Pe(this,H).state),Le(this,W,this.options),void 0!==Pe(this,V).data&&Le(this,G,Pe(this,H)),Mt(n,t))return;Le(this,z,n);const r={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!Pe(this,J).size)return!0;const r=new Set(n??Pe(this,J));return this.options.throwOnError&&r.add("error"),Object.keys(Pe(this,z)).some((e=>{const n=e;return Pe(this,z)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),Fe(this,Z,le).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,Z,ie).call(this)}},U=new WeakMap,H=new WeakMap,B=new WeakMap,z=new WeakMap,V=new WeakMap,W=new WeakMap,q=new WeakMap,$=new WeakMap,K=new WeakMap,G=new WeakMap,Q=new WeakMap,Y=new WeakMap,X=new WeakMap,J=new WeakMap,Z=new WeakSet,ee=function(e){Fe(this,Z,se).call(this);let t=Pe(this,H).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Ot)),t},te=function(){Fe(this,Z,oe).call(this);const e=At(this.options.staleTime,Pe(this,H));if(St||Pe(this,z).isStale||!kt(e))return;const t=Tt(Pe(this,z).dataUpdatedAt,e);Le(this,Q,setTimeout((()=>{Pe(this,z).isStale||this.updateResult()}),t+1))},ne=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(Pe(this,H)):this.options.refetchInterval)??!1},re=function(e){Fe(this,Z,ae).call(this),Le(this,X,e),!St&&!1!==Ct(this.options.enabled,Pe(this,H))&&kt(Pe(this,X))&&0!==Pe(this,X)&&Le(this,Y,setInterval((()=>{(this.options.refetchIntervalInBackground||qt.isFocused())&&Fe(this,Z,ee).call(this)}),Pe(this,X)))},ie=function(){Fe(this,Z,te).call(this),Fe(this,Z,re).call(this,Fe(this,Z,ne).call(this))},oe=function(){Pe(this,Q)&&(clearTimeout(Pe(this,Q)),Le(this,Q,void 0))},ae=function(){Pe(this,Y)&&(clearInterval(Pe(this,Y)),Le(this,Y,void 0))},se=function(){const e=Pe(this,U).getQueryCache().build(Pe(this,U),this.options);if(e===Pe(this,H))return;const t=Pe(this,H);Le(this,H,e),Le(this,B,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},le=function(e){Jt.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(Pe(this,z))})),Pe(this,U).getQueryCache().notify({query:Pe(this,H),type:"observerResultsUpdated"})}))},ce);function fn(e,t){return function(e,t){return!1!==Ct(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&pn(e,t,t.refetchOnMount)}function pn(e,t,n){if(!1!==Ct(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&mn(e,t)}return!1}function hn(e,t,n,r){return(e!==t||!1===Ct(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&mn(e,n)}function mn(e,t){return!1!==Ct(t.enabled,e)&&e.isStaleByTime(At(t.staleTime,e))}var gn,vn,yn,bn,wn=(ve=class extends Et{constructor(e,t){super(),Ne(this,he),Ne(this,ue),Ne(this,de),Ne(this,fe),Ne(this,pe),Le(this,ue,e),this.setOptions(t),this.bindMethods(),Fe(this,he,me).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){var t;const n=this.options;this.options=Pe(this,ue).defaultMutationOptions(e),Mt(this.options,n)||Pe(this,ue).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Pe(this,fe),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&Lt(n.mutationKey)!==Lt(this.options.mutationKey)?this.reset():"pending"===(null==(t=Pe(this,fe))?void 0:t.state.status)&&Pe(this,fe).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=Pe(this,fe))||e.removeObserver(this)}onMutationUpdate(e){Fe(this,he,me).call(this),Fe(this,he,ge).call(this,e)}getCurrentResult(){return Pe(this,de)}reset(){var e;null==(e=Pe(this,fe))||e.removeObserver(this),Le(this,fe,void 0),Fe(this,he,me).call(this),Fe(this,he,ge).call(this)}mutate(e,t){var n;return Le(this,pe,t),null==(n=Pe(this,fe))||n.removeObserver(this),Le(this,fe,Pe(this,ue).getMutationCache().build(Pe(this,ue),this.options)),Pe(this,fe).addObserver(this),Pe(this,fe).execute(e)}},ue=new WeakMap,de=new WeakMap,fe=new WeakMap,pe=new WeakMap,he=new WeakSet,me=function(){var e;const t=(null==(e=Pe(this,fe))?void 0:e.state)??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};Le(this,de,{...t,isPending:"pending"===t.status,isSuccess:"success"===t.status,isError:"error"===t.status,isIdle:"idle"===t.status,mutate:this.mutate,reset:this.reset})},ge=function(e){Jt.batch((()=>{var t,n,r,i,o,a,s,l;if(Pe(this,pe)&&this.hasListeners()){const c=Pe(this,de).variables,u=Pe(this,de).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=Pe(this,pe)).onSuccess)||n.call(t,e.data,c,u),null==(i=(r=Pe(this,pe)).onSettled)||i.call(r,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(a=(o=Pe(this,pe)).onError)||a.call(o,e.error,c,u),null==(l=(s=Pe(this,pe)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach((e=>{e(Pe(this,de))}))}))},ve),_n=0,xn=[],En=be,Sn=En.__b,On=En.__r,kn=En.diffed,Tn=En.__c,An=En.unmount,Cn=En.__;function Rn(e,t){En.__h&&En.__h(vn,e,_n||t),_n=0;var n=vn.__H||(vn.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Pn(e){return _n=1,Nn(Gn,e)}function Nn(e,t,n){var r=Rn(gn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Gn(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=vn,!vn.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!o||o.call(this,e,t,n);var a=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};vn.u=!0;var o=vn.shouldComponentUpdate,a=vn.componentWillUpdate;vn.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},vn.shouldComponentUpdate=i}return r.__N||r.__}function Ln(e,t){var n=Rn(gn++,3);!En.__s&&Kn(n.__H,t)&&(n.__=e,n.i=t,vn.__H.__h.push(n))}function Fn(e,t){var n=Rn(gn++,4);!En.__s&&Kn(n.__H,t)&&(n.__=e,n.i=t,vn.__h.push(n))}function Dn(e){return _n=5,In((function(){return{current:e}}),[])}function Mn(e,t,n){_n=6,Fn((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 In(e,t){var n=Rn(gn++,7);return Kn(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function jn(e,t){return _n=8,In((function(){return e}),t)}function Un(e){var t=vn.context[e.__c],n=Rn(gn++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(vn)),t.props.value):e.__}function Hn(e,t){En.useDebugValue&&En.useDebugValue(t?t(e):e)}function Bn(){var e=Rn(gn++,11);if(!e.__){for(var t=vn.__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 zn(){for(var e;e=xn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(qn),e.__H.__h.forEach($n),e.__H.__h=[]}catch(jg){e.__H.__h=[],En.__e(jg,e.__v)}}En.__b=function(e){vn=null,Sn&&Sn(e)},En.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cn&&Cn(e,t)},En.__r=function(e){On&&On(e),gn=0;var t=(vn=e.__c).__H;t&&(yn===vn?(t.__h=[],vn.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(qn),t.__h.forEach($n),t.__h=[],gn=0)),yn=vn},En.diffed=function(e){kn&&kn(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==xn.push(t)&&bn===En.requestAnimationFrame||((bn=En.requestAnimationFrame)||Wn)(zn)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),yn=vn=null},En.__c=function(e,t){t.some((function(e){try{e.__h.forEach(qn),e.__h=e.__h.filter((function(e){return!e.__||$n(e)}))}catch(yg){t.some((function(e){e.__h&&(e.__h=[])})),t=[],En.__e(yg,e.__v)}})),Tn&&Tn(e,t)},En.unmount=function(e){An&&An(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{qn(e)}catch(n){t=n}})),n.__H=void 0,t&&En.__e(t,n.__v))};var Vn="function"==typeof requestAnimationFrame;function Wn(e){var t,n=function(){clearTimeout(r),Vn&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Vn&&(t=requestAnimationFrame(n))}function qn(e){var t=vn,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),vn=t}function $n(e){var t=vn;e.__c=e.__(),vn=t}function Kn(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Gn(e,t){return"function"==typeof t?t(e):t}function Qn(e,t){for(var n in t)e[n]=t[n];return e}function Yn(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 Xn(e,t){this.props=e,this.context=t}function Jn(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:Yn(this.props,e)}function r(t){return this.shouldComponentUpdate=n,ze(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Xn.prototype=new $e).isPureReactComponent=!0,Xn.prototype.shouldComponentUpdate=function(e,t){return Yn(this.props,e)||Yn(this.state,t)};var Zn=be.__b;be.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Zn&&Zn(e)};var er="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function tr(e){function t(t){var n=Qn({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=er,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var nr=function(e,t){return null==e?null:Ze(Ze(e).map(t))},rr={map:nr,forEach:nr,count:function(e){return e?Ze(e).length:0},only:function(e){var t=Ze(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ze},ir=be.__e;be.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);ir(e,t,n,r)};var or=be.unmount;function ar(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=Qn({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return ar(e,t,n)}))),e}function sr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return sr(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 lr(){this.__u=0,this.t=null,this.__b=null}function cr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ur(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 ze(n,i)}return i.displayName="Lazy",i.__f=!0,i}function dr(){this.u=null,this.o=null}be.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),or&&or(e)},(lr.prototype=new $e).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=cr(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=sr(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},lr.prototype.componentWillUnmount=function(){this.t=[]},lr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ar(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&ze(qe,null,e.fallback);return i&&(i.__u&=-33),[ze(qe,null,t.__a?null:e.children),i]};var fr=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 pr(e){return this.getChildContext=function(){return e.context},e.children}function hr(e){var t=this,n=e.i;t.componentWillUnmount=function(){ct(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)}}),ct(ze(pr,{context:t.context},e.__v),t.l)}function mr(e,t){var n=ze(hr,{__v:e,i:t});return n.containerInfo=t,n}(dr.prototype=new $e).__a=function(e){var t=this,n=cr(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),fr(t,e,r)):i()};n?n(o):o()}},dr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ze(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},dr.prototype.componentDidUpdate=dr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){fr(e,n,t)}))};var gr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,vr=/^(?: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]/,yr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,br=/[A-Z0-9]/g,wr="undefined"!=typeof document,_r=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function xr(e,t,n){return null==t.__k&&(t.textContent=""),ct(e,t),"function"==typeof n&&n(),e?e.__c:null}function Er(e,t,n){return ut(e,t),"function"==typeof n&&n(),e?e.__c:null}$e.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty($e.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Sr=be.event;function Or(){}function kr(){return this.cancelBubble}function Tr(){return this.defaultPrevented}be.event=function(e){return Sr&&(e=Sr(e)),e.persist=Or,e.isPropagationStopped=kr,e.isDefaultPrevented=Tr,e.nativeEvent=e};var Ar,Cr={enumerable:!1,configurable:!0,get:function(){return this.class}},Rr=be.vnode;be.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||wr&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||_r(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":yr.test(o)&&(o=s):s=o="oninput":i&&vr.test(o)?o=o.replace(br,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=Ze(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Ze(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",Cr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=gr,Rr&&Rr(e)};var Pr=be.__r;be.__r=function(e){Pr&&Pr(e),Ar=e.__c};var Nr=be.diffed;be.diffed=function(e){Nr&&Nr(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),Ar=null};var Lr={ReactCurrentDispatcher:{current:{readContext:function(e){return Ar.__n[e.__c].props.value},useCallback:jn,useContext:Un,useDebugValue:Hn,useDeferredValue:qr,useEffect:Ln,useId:Bn,useImperativeHandle:Mn,useInsertionEffect:Kr,useLayoutEffect:Fn,useMemo:In,useReducer:Nn,useRef:Dn,useState:Pn,useSyncExternalStore:Qr,useTransition:$r}}};function Fr(e){return ze.bind(null,e)}function Dr(e){return!!e&&e.$$typeof===gr}function Mr(e){return Dr(e)&&e.type===qe}function Ir(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function jr(e){return Dr(e)?dt.apply(null,arguments):e}function Ur(e){return!!e.__k&&(ct(null,e),!0)}function Hr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Br=function(e,t){return e(t)},zr=function(e,t){return e(t)},Vr=qe;function Wr(e){e()}function qr(e){return e}function $r(){return[!1,Wr]}var Kr=Fn,Gr=Dr;function Qr(e,t){var n=t(),r=Pn({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Fn((function(){i.__=n,i.v=t,Yr(i)&&o({h:i})}),[e,n,t]),Ln((function(){return Yr(i)&&o({h:i}),e((function(){Yr(i)&&o({h:i})}))}),[e]),n}function Yr(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Xr={useState:Pn,useId:Bn,useReducer:Nn,useEffect:Ln,useLayoutEffect:Fn,useInsertionEffect:Kr,useTransition:$r,useDeferredValue:qr,useSyncExternalStore:Qr,startTransition:Wr,useRef:Dn,useImperativeHandle:Mn,useMemo:In,useCallback:jn,useContext:Un,useDebugValue:Hn,version:"17.0.2",Children:rr,render:xr,hydrate:Er,unmountComponentAtNode:Ur,createPortal:mr,createElement:ze,createContext:ft,createFactory:Fr,cloneElement:jr,createRef:We,Fragment:qe,isValidElement:Dr,isElement:Gr,isFragment:Mr,isMemo:Ir,findDOMNode:Hr,Component:$e,PureComponent:Xn,memo:Jn,forwardRef:tr,flushSync:zr,unstable_batchedUpdates:Br,StrictMode:Vr,Suspense:lr,SuspenseList:dr,lazy:ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Lr};const Jr=Object.freeze(Object.defineProperty({__proto__:null,Children:rr,Component:$e,Fragment:qe,PureComponent:Xn,StrictMode:Vr,Suspense:lr,SuspenseList:dr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Lr,cloneElement:jr,createContext:ft,createElement:ze,createFactory:Fr,createPortal:mr,createRef:We,default:Xr,findDOMNode:Hr,flushSync:zr,forwardRef:tr,hydrate:Er,isElement:Gr,isFragment:Mr,isMemo:Ir,isValidElement:Dr,lazy:ur,memo:Jn,render:xr,startTransition:Wr,unmountComponentAtNode:Ur,unstable_batchedUpdates:Br,useCallback:jn,useContext:Un,useDebugValue:Hn,useDeferredValue:qr,useEffect:Ln,useErrorBoundary:function(e){var t=Rn(gn++,10),n=Pn();return t.__=e,vn.componentDidCatch||(vn.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Bn,useImperativeHandle:Mn,useInsertionEffect:Kr,useLayoutEffect:Fn,useMemo:In,useReducer:Nn,useRef:Dn,useState:Pn,useSyncExternalStore:Qr,useTransition:$r,version:"17.0.2"},Symbol.toStringTag,{value:"Module"}));var Zr=ft(void 0),ei=e=>{const t=Un(Zr);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},ti=({client:e,children:t})=>(Ln((()=>(e.mount(),()=>{e.unmount()})),[e]),xt(Zr.Provider,{value:e,children:t})),ni=ft(!1),ri=()=>Un(ni);ni.Provider;var ii=ft(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),oi=()=>Un(ii);function ai(e,t){return"function"==typeof e?e(...t):!!e}function si(){}var li,ci,ui,di,fi=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},pi=e=>{Ln((()=>{e.clearReset()}),[e])},hi=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ai(n,[e.error,r]),mi=e=>{e.suspense&&("number"!=typeof e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},gi=(e,t)=>(null==e?void 0:e.suspense)&&t.isPending,vi=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function yi(e,t){return function(e,t){var n,r,i,o;const a=ei(),s=ri(),l=oi(),c=a.defaultQueryOptions(e);null==(r=null==(n=a.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||r.call(n,c),c._optimisticResults=s?"isRestoring":"optimistic",mi(c),fi(c,l),pi(l);const[u]=Pn((()=>new t(a,c))),d=u.getOptimisticResult(c);if(Qr(jn((e=>{const t=s?()=>{}:u.subscribe(Jt.batchCalls(e));return u.updateResult(),t}),[u,s]),(()=>u.getCurrentResult())),Ln((()=>{u.setOptions(c,{listeners:!1})}),[c,u]),gi(c,d))throw vi(c,u,l);if(hi({result:d,errorResetBoundary:l,throwOnError:c.throwOnError,query:a.getQueryCache().get(c.queryHash)}))throw d.error;return null==(o=null==(i=a.getDefaultOptions().queries)?void 0:i._experimental_afterQuery)||o.call(i,c,d),c.notifyOnChangeProps?d:u.trackResult(d)}(e,dn)}
|
|
2
2
|
/**
|
|
3
3
|
* @remix-run/router v1.19.1
|
|
4
4
|
*
|
|
@@ -9,7 +9,7 @@ var e,t,n,r,o,i,a,s,l,c,u,d,f,p,h,m,g,v,b,y,w,x,_,E,S,O,T,k,C,A,R,P,L,N,F,I,D,M,
|
|
|
9
9
|
*
|
|
10
10
|
* @license MIT
|
|
11
11
|
*/
|
|
12
|
-
function
|
|
12
|
+
function bi(){return bi=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},bi.apply(this,arguments)}function wi(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 o=l(null==r?t.length-1:r),a=li.Pop,s=null;function l(e){return Math.min(Math.max(e,0),t.length-1)}function c(){return t[o]}function u(e,n,r){void 0===n&&(n=null);let i=function(e,t,n,r){void 0===n&&(n=null);let i=bi({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?Si(t):t,{state:n,key:t&&t.key||r||Ei()});return i}(t?c().pathname:"/",e,n,r);return xi("/"===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 o},get action(){return a},get location(){return c()},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?Si(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,n){a=li.Push;let r=u(e,n);o+=1,t.splice(o,t.length,r),i&&s&&s({action:a,location:r,delta:1})},replace(e,n){a=li.Replace;let r=u(e,n);t[o]=r,i&&s&&s({action:a,location:r,delta:0})},go(e){a=li.Pop;let n=l(o+e),r=t[n];o=n,s&&s({action:a,location:r,delta:e})},listen:e=>(s=e,()=>{s=null})}}function _i(e,t){if(!1===e||null==e)throw new Error(t)}function xi(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(Vm){}}}function Ei(){return Math.random().toString(36).substr(2,8)}function Si(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 Oi(e,t,n){return void 0===n&&(n="/"),function(e,t,n,r){let i="string"==typeof t?Si(t):t,o=Ui(i.pathname||"/",n);if(null==o)return null;let a=ki(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 s=null;for(let l=0;null==s&&l<a.length;++l){let e=ji(o);s=Mi(a[l],e,r)}return s}(e,t,n,!1)}function ki(e,t,n,r){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r="");let i=(e,i,o)=>{let a={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};a.relativePath.startsWith("/")&&(_i(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),a.relativePath=a.relativePath.slice(r.length));let s=Vi([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(_i(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+s+'".'),ki(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:Di(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 Ti(e.path))i(e,t,r);else i(e,t)})),t}function Ti(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let a=Ti(r.join("/")),s=[];return s.push(...a.map((e=>""===e?o:[o,e].join("/")))),i&&s.push(...a),s.map((t=>e.startsWith("/")&&""===t?"/":t))}(ci=li||(li={})).Pop="POP",ci.Push="PUSH",ci.Replace="REPLACE",(di=ui||(ui={})).data="data",di.deferred="deferred",di.redirect="redirect",di.error="error";const Ai=/^:[\w-]+$/,Ci=3,Ri=2,Pi=1,Ni=10,Li=-2,Fi=e=>"*"===e;function Di(e,t){let n=e.split("/"),r=n.length;return n.some(Fi)&&(r+=Li),t&&(r+=Ri),n.filter((e=>!Fi(e))).reduce(((e,t)=>e+(Ai.test(t)?Ci:""===t?Pi:Ni)),r)}function Mi(e,t,n){let{routesMeta:r}=e,i={},o="/",a=[];for(let s=0;s<r.length;++s){let e=r[s],l=s===r.length-1,c="/"===o?t:t.slice(o.length)||"/",u=Ii({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=Ii({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:Vi([o,u.pathname]),pathnameBase:Wi(Vi([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=Vi([o,u.pathnameBase]))}return a}function Ii(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);xi("*"===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 o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],a=o.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]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=s[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function ji(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return xi(!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 Ui(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)||"/"}function Hi(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 Bi(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 zi(e,t,n,r){let i;void 0===r&&(r=!1),"string"==typeof e?i=Si(e):(i=bi({},e),_i(!i.pathname||!i.pathname.includes("?"),Hi("?","pathname","search",i)),_i(!i.pathname||!i.pathname.includes("#"),Hi("#","pathname","hash",i)),_i(!i.search||!i.search.includes("#"),Hi("#","search","hash",i)));let o,a=""===e||""===i.pathname,s=a?"/":i.pathname;if(null==s)o=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("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"==typeof e?Si(e):e,o=n?n.startsWith("/")?n:function(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("/"):"/"}(n,t):t;return{pathname:o,search:qi(r),hash:$i(i)}}(i,o),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Vi=e=>e.join("/").replace(/\/\/+/g,"/"),Wi=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),qi=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$i=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";const Ki=["post","put","patch","delete"];new Set(Ki);const Gi=["get",...Ki];
|
|
13
13
|
/**
|
|
14
14
|
* React Router v6.26.1
|
|
15
15
|
*
|
|
@@ -20,4 +20,4 @@ function wo(){return wo=Object.assign?Object.assign.bind():function(e){for(var t
|
|
|
20
20
|
*
|
|
21
21
|
* @license MIT
|
|
22
22
|
*/
|
|
23
|
-
function Yo(){return Yo=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},Yo.apply(this,arguments)}new Set(Qo);const Xo=ft(null),Jo=ft(null),Zo=ft(null),ei=ft(null),ti=ft({outlet:null,matches:[],isDataRoute:!1}),ni=ft(null);function ri(){return null!=Un(ei)}function oi(){return ri()||_o(!1),Un(ei).location}function ii(e){Un(Zo).static||Fn(e)}function ai(){let{isDataRoute:e}=Un(ti);return e?function(){let{router:e}=function(){let e=Un(Xo);return e||_o(!1),e}(fi.UseNavigateStable),t=hi(pi.UseNavigateStable),n=In(!1);return ii((()=>{n.current=!0})),jn((function(r,o){void 0===o&&(o={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Yo({fromRouteId:t},o)))}),[e,t])}():function(){ri()||_o(!1);let e=Un(Xo),{basename:t,future:n,navigator:r}=Un(Zo),{matches:o}=Un(ti),{pathname:i}=oi(),a=JSON.stringify(Bo(o,n.v7_relativeSplatPath)),s=In(!1);return ii((()=>{s.current=!0})),jn((function(n,o){if(void 0===o&&(o={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=Wo(n,JSON.parse(a),i,"path"===o.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Vo([t,l.pathname])),(o.replace?r.replace:r.push)(l,o.state,o)}),[t,r,a,i,e])}()}function si(e,t){return function(e,t,n,r){ri()||_o(!1);let{navigator:o}=Un(Zo),{matches:i}=Un(ti),a=i[i.length-1],s=a?a.params:{};!a||a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c,u=oi();if(t){var d;let e="string"==typeof t?Oo(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||_o(!1),c=e}else c=u;let f=c.pathname||"/",p=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=To(e,{pathname:p}),m=function(e,t,n,r){var o;void 0===t&&(t=[]);void 0===n&&(n=null);void 0===r&&(r=null);if(null==e){var i;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(i=r)&&i.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let a=e,s=null==(o=n)?void 0:o.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||_o(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let e=a[u];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(c=u),e.route.id){let{loaderData:t,errors:r}=n,o=e.route.loader&&void 0===t[e.route.id]&&(!r||void 0===r[e.route.id]);if(e.route.lazy||o){l=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,r,o)=>{let i,u=!1,d=null,f=null;n&&(i=s&&r.route.id?s[r.route.id]:void 0,d=r.route.errorElement||ci,l&&(c<0&&0===o?(u=!0,f=null):c===o&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,o+1)),h=()=>{let t;return t=i?d:u?f:r.route.Component?Be(r.route.Component,null):r.route.element?r.route.element:e,Be(di,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===o)?Be(ui,{location:n.location,revalidation:n.revalidation,component:d,error:i,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()}),null)}(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Vo([l,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Vo([l,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),i,n,r);if(t&&m)return Be(ei.Provider,{value:{location:Yo({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:lo.Pop}},m);return m}(e,t)}function li(){let e=function(){var e;let t=Un(ni),n=function(){let e=Un(Jo);return e||_o(!1),e}(pi.UseRouteError),r=hi(pi.UseRouteError);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 Be(qe,null,Be("h2",null,"Unexpected Application Error!"),Be("h3",{style:{fontStyle:"italic"}},t),n?Be("pre",{style:r},n):null,null)}const ci=Be(li,null);class ui extends $e{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?Be(ti.Provider,{value:this.props.routeContext},Be(ni.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function di(e){let{routeContext:t,match:n,children:r}=e,o=Un(Xo);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),Be(ti.Provider,{value:t},r)}var fi=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fi||{}),pi=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}(pi||{});function hi(e){let t=function(){let e=Un(ti);return e||_o(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||_o(!1),n.route.id}const mi=Jr.startTransition;function gi(e){let{basename:t,children:n,initialEntries:r,initialIndex:o,future:i}=e,a=In();null==a.current&&(a.current=xo({initialEntries:r,initialIndex:o,v5Compat:!0}));let s=a.current,[l,c]=Pn({action:s.action,location:s.location}),{v7_startTransition:u}=i||{},d=jn((e=>{u&&mi?mi((()=>c(e))):c(e)}),[c,u]);return Fn((()=>s.listen(d)),[s,d]),Be(yi,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:i})}function vi(e){let{to:t,replace:n,state:r,relative:o}=e;ri()||_o(!1);let{future:i,static:a}=Un(Zo),{matches:s}=Un(ti),{pathname:l}=oi(),c=ai(),u=Wo(t,Bo(s,i.v7_relativeSplatPath),l,"path"===o),d=JSON.stringify(u);return Nn((()=>c(JSON.parse(d),{replace:n,state:r,relative:o})),[c,d,o,n,r]),null}function bi(e){_o(!1)}function yi(e){let{basename:t="/",children:n=null,location:r,navigationType:o=lo.Pop,navigator:i,static:a=!1,future:s}=e;ri()&&_o(!1);let l=t.replace(/^\/*/,"/"),c=Mn((()=>({basename:l,navigator:i,static:a,future:Yo({v7_relativeSplatPath:!1},s)})),[l,s,i,a]);"string"==typeof r&&(r=Oo(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=Mn((()=>{let e=zo(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:p,key:h},navigationType:o}}),[l,u,d,f,p,h,o]);return null==m?null:Be(Zo.Provider,{value:c},Be(ei.Provider,{children:n,value:m}))}function wi(e){let{children:t,location:n}=e;return si(xi(t),n)}function xi(e,t){void 0===t&&(t=[]);let n=[];return rr.forEach(e,((e,r)=>{if(!Ir(e))return;let o=[...t,r];if(e.type===qe)return void n.push.apply(n,xi(e.props.children,o));e.type!==bi&&_o(!1),e.props.index&&e.props.children&&_o(!1);let i={id:e.props.id||o.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&&(i.children=xi(e.props.children,o)),n.push(i)})),n}function _i(){return _i=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},_i.apply(null,arguments)}function Ei(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function Si(e,t){return(Si=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,Si(e,t)}function Ti(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}new Promise((()=>{}));var ki={exports:{}};function Ci(){}function Ai(){}Ai.resetWarningCache=Ci;ki.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ai,resetWarningCache:Ci};return n.PropTypes=n,n}();const Ri=Ti(ki.exports);function Pi(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const Li=!1,Ni=Xr.createContext(null);var Fi=function(e){return e.scrollTop},Ii="unmounted",Di="exited",Mi="entering",ji="entered",Ui="exiting",zi=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,i=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?i?(o=Di,r.appearStatus=Mi):o=ji:o=t.unmountOnExit||t.mountOnEnter?Ii:Di,r.state={status:o},r.nextCallback=null,r}Oi(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Ii?{status:Di}: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!==Mi&&n!==ji&&(t=Mi):n!==Mi&&n!==ji||(t=Ui)}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===Mi){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Xr.findDOMNode(this);n&&Fi(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Di&&this.setState({status:Ii})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[Xr.findDOMNode(this),r],i=o[0],a=o[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||Li?this.safeSetState({status:ji},(function(){t.props.onEntered(i)})):(this.props.onEnter(i,a),this.safeSetState({status:Mi},(function(){t.props.onEntering(i,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:ji},(function(){t.props.onEntered(i,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Xr.findDOMNode(this);t&&!Li?(this.props.onExit(r),this.safeSetState({status:Ui},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Di},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Di},(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:Xr.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],i=o[0],a=o[1];this.props.addEndListener(i,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Ii)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=Ei(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Xr.createElement(Ni.Provider,{value:null},"function"==typeof n?n(e,r):Xr.cloneElement(Xr.Children.only(n),r))},t}(Xr.Component);function Hi(){}zi.contextType=Ni,zi.propTypes={},zi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Hi,onEntering:Hi,onEntered:Hi,onExit:Hi,onExiting:Hi,onExited:Hi},zi.UNMOUNTED=Ii,zi.EXITED=Di,zi.ENTERING=Mi,zi.ENTERED=ji,zi.EXITING=Ui;var Bi=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=Pi(n.className,r):n.setAttribute("class",Pi(n.className&&n.className.baseVal||"",r)));var n,r}))},Wi=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.addClass(o,i,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"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,o=r?""+(r&&n?n+"-":"")+e:n[e];return{baseClassName:o,activeClassName:r?o+"-active":n[e+"Active"],doneClassName:r?o+"-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"],o=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&o&&(r+=" "+o),"active"===n&&e&&Fi(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,o=n.active,i=n.done;this.appliedClasses[t]={},r&&Bi(e,r),o&&Bi(e,o),i&&Bi(e,i)},n.render=function(){var e=this.props;e.classNames;var t=Ei(e,["classNames"]);return Xr.createElement(zi,_i({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Xr.Component);function Vi(e,t){var n=Object.create(null);return e&&rr.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Ir(e)?t(e):e}(e)})),n}function qi(e,t,n){return null!=n[t]?n[t]:e.props[t]}function $i(e,t,n){var r=Vi(e.children),o=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,o=Object.create(null),i=[];for(var a in e)a in t?i.length&&(o[a]=i,i=[]):i.push(a);var s={};for(var l in t){if(o[l])for(r=0;r<o[l].length;r++){var c=o[l][r];s[o[l][r]]=n(c)}s[l]=n(l)}for(r=0;r<i.length;r++)s[i[r]]=n(i[r]);return s}(t,r);return Object.keys(o).forEach((function(i){var a=o[i];if(Ir(a)){var s=i in t,l=i in r,c=t[i],u=Ir(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&Ir(c)&&(o[i]=jr(a,{onExited:n.bind(null,a),in:c.props.in,exit:qi(a,"exit",e),enter:qi(a,"enter",e)})):o[i]=jr(a,{in:!1}):o[i]=jr(a,{onExited:n.bind(null,a),in:!0,exit:qi(a,"exit",e),enter:qi(a,"enter",e)})}})),o}Wi.defaultProps={classNames:""},Wi.propTypes={};var Ki=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Gi=function(e){function t(t,n){var r,o=(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:o,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,o=t.children,i=t.handleExited;return{children:t.firstRender?(n=e,r=i,Vi(n.children,(function(e){return jr(e,{onExited:r.bind(null,e),in:!0,appear:qi(e,"appear",n),enter:qi(e,"enter",n),exit:qi(e,"exit",n)})}))):$i(e,o,i),firstRender:!1}},n.handleExited=function(e,t){var n=Vi(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=_i({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Ei(e,["component","childFactory"]),o=this.state.contextValue,i=Ki(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Xr.createElement(Ni.Provider,{value:o},i):Xr.createElement(Ni.Provider,{value:o},Xr.createElement(t,r,i))},t}(Xr.Component);Gi.propTypes={},Gi.defaultProps={component:"div",childFactory:function(e){return e}};const Qi=()=>{};let Yi={},Xi={},Ji=null,Zi={mark:Qi,measure:Qi};try{"undefined"!=typeof window&&(Yi=window),"undefined"!=typeof document&&(Xi=document),"undefined"!=typeof MutationObserver&&(Ji=MutationObserver),"undefined"!=typeof performance&&(Zi=performance)}catch(Ym){}const{userAgent:ea=""}=Yi.navigator||{},ta=Yi,na=Xi,ra=Ji,oa=Zi;ta.document;const ia=!!na.documentElement&&!!na.head&&"function"==typeof na.addEventListener&&"function"==typeof na.createElement,aa=~ea.indexOf("MSIE")||~ea.indexOf("Trident/");var sa="classic",la="duotone",ca="sharp",ua="sharp-duotone",da=[sa,la,ca,ua],fa={fak:"kit","fa-kit":"kit"},pa={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},ha={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},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"}},ma=[1,2,3,4,5,6,7,8,9,10],ga=ma.concat([11,12,13,14,15,16,17,18,19,20]),va={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ba=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"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",va.GROUP,va.SWAP_OPACITY,va.PRIMARY,va.SECONDARY].concat(ma.map((e=>"".concat(e,"x")))).concat(ga.map((e=>"w-".concat(e)))),ya={kit:"fak"},wa={"kit-duotone":"fakd"};const xa="___FONT_AWESOME___",_a=16,Ea="fa",Sa="svg-inline--fa",Oa="data-fa-i2svg",Ta="data-fa-pseudo-element",ka="data-fa-pseudo-element-pending",Ca="data-prefix",Aa="data-icon",Ra="fontawesome-i2svg",Pa="async",La=["HTML","HEAD","STYLE","SCRIPT"],Na=(()=>{try{return!0}catch(e){return!1}})(),Fa=[sa,ca,ua];function Ia(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[sa]})}const Da={...ha};Da[sa]={...ha[sa],...fa,...pa};const Ma=Ia(Da),ja={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};ja[sa]={...ja[sa],...ya,...wa};const Ua=Ia(ja),za={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};za[sa]={...za[sa],fak:"fa-kit"};const Ha=Ia(za),Ba={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};Ba[sa]={...Ba[sa],"fa-kit":"fak"};const Wa=Ia(Ba),Va=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,qa="fa-layers-text",$a=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;Ia({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}});const Ka=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ga=va,Qa=new Set;Object.keys(Ua[sa]).map(Qa.add.bind(Qa)),Object.keys(Ua[ca]).map(Qa.add.bind(Qa)),Object.keys(Ua[ua]).map(Qa.add.bind(Qa));const Ya=["kit",...ba],Xa=ta.FontAwesomeConfig||{};if(na&&"function"==typeof na.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=na.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Xa[n]=r)}))}const Ja={styleDefault:"solid",familyDefault:"classic",cssPrefix:Ea,replacementClass:Sa,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Xa.familyPrefix&&(Xa.cssPrefix=Xa.familyPrefix);const Za={...Ja,...Xa};Za.autoReplaceSvg||(Za.observeMutations=!1);const es={};Object.keys(Ja).forEach((e=>{Object.defineProperty(es,e,{enumerable:!0,set:function(t){Za[e]=t,ts.forEach((e=>e(es)))},get:function(){return Za[e]}})})),Object.defineProperty(es,"familyPrefix",{enumerable:!0,set:function(e){Za.cssPrefix=e,ts.forEach((e=>e(es)))},get:function(){return Za.cssPrefix}}),ta.FontAwesomeConfig=es;const ts=[];const ns=_a,rs={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};const os="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function is(){let e=12,t="";for(;e-- >0;)t+=os[62*Math.random()|0];return t}function as(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ss(e){return e.classList?as(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function ls(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function cs(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function us(e){return e.size!==rs.size||e.x!==rs.x||e.y!==rs.y||e.rotate!==rs.rotate||e.flipX||e.flipY}var ds=':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-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}\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}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function fs(){const e=Ea,t=Sa,n=es.cssPrefix,r=es.replacementClass;let o=ds;if(n!==e||r!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return o}let ps=!1;function hs(){es.autoAddCss&&!ps&&(!function(e){if(!e||!ia)return;const t=na.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=na.head.childNodes;let r=null;for(let o=n.length-1;o>-1;o--){const e=n[o],t=(e.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(t)>-1&&(r=e)}na.head.insertBefore(t,r)}(fs()),ps=!0)}var ms={mixout:()=>({dom:{css:fs,insertCss:hs}}),hooks:()=>({beforeDOMElementCreation(){hs()},beforeI2svg(){hs()}})};const gs=ta||{};gs[xa]||(gs[xa]={}),gs[xa].styles||(gs[xa].styles={}),gs[xa].hooks||(gs[xa].hooks={}),gs[xa].shims||(gs[xa].shims=[]);var vs=gs[xa];const bs=[],ys=function(){na.removeEventListener("DOMContentLoaded",ys),ws=1,bs.map((e=>e()))};let ws=!1;function xs(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?ls(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(ls(e[n]),'" ')),"").trim()}(n),">").concat(r.map(xs).join(""),"</").concat(t,">")}function _s(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}ia&&(ws=(na.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(na.readyState),ws||na.addEventListener("DOMContentLoaded",ys));var Es=function(e,t,n,r){var o,i,a,s=Object.keys(e),l=s.length,c=t;for(void 0===n?(o=1,a=e[s[0]]):(o=0,a=n);o<l;o++)a=c(a,e[i=s[o]],i,e);return a};function Ss(e){const t=function(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}(e);return 1===t.length?t[0].toString(16):null}function Os(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 Ts(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,o=Os(t);"function"!=typeof vs.hooks.addPack||r?vs.styles[e]={...vs.styles[e]||{},...o}:vs.hooks.addPack(e,Os(t)),"fas"===e&&Ts("fa",t)}const{styles:ks,shims:Cs}=vs,As={[sa]:Object.values(Ha[sa]),[ca]:Object.values(Ha[ca]),[ua]:Object.values(Ha[ua])};let Rs=null,Ps={},Ls={},Ns={},Fs={},Is={};const Ds={[sa]:Object.keys(Ma[sa]),[ca]:Object.keys(Ma[ca]),[ua]:Object.keys(Ma[ua])};function Ms(e,t){const n=t.split("-"),r=n[0],o=n.slice(1).join("-");return r!==e||""===o||(i=o,~Ya.indexOf(i))?null:o;var i}const js=()=>{const e=e=>Es(ks,((t,n,r)=>(t[r]=Es(n,e,{}),t)),{});Ps=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})),Ls=e(((e,t,n)=>{if(e[n]=n,t[2]){t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n}))}return e})),Is=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in ks||es.autoFetchSvg,n=Es(Cs,((e,n)=>{const r=n[0];let o=n[1];const i=n[2];return"far"!==o||t||(o="fas"),"string"==typeof r&&(e.names[r]={prefix:o,iconName:i}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:o,iconName:i}),e}),{names:{},unicodes:{}});Ns=n.names,Fs=n.unicodes,Rs=qs(es.styleDefault,{family:es.familyDefault})};var Us;function zs(e,t){return(Ps[e]||{})[t]}function Hs(e,t){return(Is[e]||{})[t]}function Bs(e){return Ns[e]||{prefix:null,iconName:null}}function Ws(){return Rs}Us=e=>{Rs=qs(e.styleDefault,{family:es.familyDefault})},ts.push(Us),js();const Vs=()=>({prefix:null,iconName:null,rest:[]});function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=sa}=t,r=Ma[n][e],o=Ua[n][e]||Ua[n][r],i=e in vs.styles?e:null;return o||i||null}const $s={[sa]:Object.keys(Ha[sa]),[ca]:Object.keys(Ha[ca]),[ua]:Object.keys(Ha[ua])};function Ks(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,r={[sa]:"".concat(es.cssPrefix,"-").concat(sa),[ca]:"".concat(es.cssPrefix,"-").concat(ca),[ua]:"".concat(es.cssPrefix,"-").concat(ua)};let o=null,i=sa;const a=da.filter((e=>e!==la));a.forEach((t=>{(e.includes(r[t])||e.some((e=>$s[t].includes(e))))&&(i=t)}));const s=e.reduce(((e,t)=>{const s=Ms(es.cssPrefix,t);if(ks[t]?(t=As[i].includes(t)?Wa[i][t]:t,o=t,e.prefix=t):Ds[i].indexOf(t)>-1?(o=t,e.prefix=qs(t,{family:i})):s?e.iconName=s:t===es.replacementClass||a.some((e=>t===r[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===o?Bs(e.iconName):{},n=Hs(e.prefix,e.iconName);t.prefix&&(o=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||ks.far||!ks.fas||es.autoFetchSvg||(e.prefix="fas")}return e}),Vs());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||i!==ca||!ks.fass&&!es.autoFetchSvg||(s.prefix="fass",s.iconName=Hs(s.prefix,s.iconName)||s.iconName),s.prefix||i!==ua||!ks.fasds&&!es.autoFetchSvg||(s.prefix="fasds",s.iconName=Hs(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==o||(s.prefix=Ws()||"fas"),s}let Gs=[],Qs={};const Ys={},Xs=Object.keys(Ys);function Js(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return(Qs[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Zs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Qs[e]||[]).forEach((e=>{e.apply(null,n)}))}function el(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ys[e]?Ys[e].apply(null,t):void 0}function tl(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ws();if(t)return t=Hs(n,t)||t,_s(nl.definitions,n,t)||_s(vs.styles,n,t)}const nl=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]={...this.definitions[e]||{},...r[e]},Ts(e,r[e]);const t=Ha[sa][e];t&&Ts(t,r[e]),js()}))}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:o,icon:i}=n[t],a=i[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[r][t]=i)})),e[r][o]=i})),e}},rl={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return ia?(Zs("beforeI2svg",e),el("pseudoElements2svg",e),el("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===es.autoReplaceSvg&&(es.autoReplaceSvg=!0),es.observeMutations=!0,n=()=>{il({autoReplaceSvgRoot:t}),Zs("watch",e)},ia&&(ws?setTimeout(n,0):bs.push(n))}},ol={noAuto:()=>{es.autoReplaceSvg=!1,es.observeMutations=!1,Zs("noAuto")},config:es,dom:rl,parse:{icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Hs(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=qs(e[0]);return{prefix:n,iconName:Hs(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(es.cssPrefix,"-"))>-1||e.match(Va))){const t=Ks(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ws(),iconName:Hs(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Ws();return{prefix:t,iconName:Hs(t,e)||e}}}},library:nl,findIconDefinition:tl,toHtml:xs},il=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=na}=e;(Object.keys(vs.styles).length>0||es.autoFetchSvg)&&ia&&es.autoReplaceSvg&&ol.dom.i2svg({node:t})};function al(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>xs(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!ia)return;const t=na.createElement("div");return t.innerHTML=e.html,t.children}}),e}function sl(e){const{icons:{main:t,mask:n},prefix:r,iconName:o,transform:i,symbol:a,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,h="fak"===r,m=[es.replacementClass,o?"".concat(es.cssPrefix,"-").concat(o):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:{...u.attributes,"data-prefix":r,"data-icon":o,class:m,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(p)}};const v=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(g.attributes[Oa]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||is())},children:[s]}),delete g.attributes.title);const b={...g,prefix:r,iconName:o,main:t,mask:n,maskId:l,transform:i,symbol:a,styles:{...v,...u.styles}},{children:y,attributes:w}=n.found&&t.found?el("generateAbstractMask",b)||{children:[],attributes:{}}:el("generateAbstractIcon",b)||{children:[],attributes:{}};return b.children=y,b.attributes=w,a?function(e){let{prefix:t,iconName:n,children:r,attributes:o,symbol:i}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...o,id:!0===i?"".concat(t,"-").concat(es.cssPrefix,"-").concat(n):i},children:r}]}]}(b):function(e){let{children:t,main:n,mask:r,attributes:o,styles:i,transform:a}=e;if(us(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};o.style=cs({...i,"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")})}return[{tag:"svg",attributes:o,children:t}]}(b)}function ll(e){const{content:t,width:n,height:r,transform:o,title:i,extra:a,watchable:s=!1}=e,l={...a.attributes,...i?{title:i}:{},class:a.classes.join(" ")};s&&(l[Oa]="");const c={...a.styles};us(o)&&(c.transform=function(e){let{transform:t,width:n=_a,height:r=_a,startCentered:o=!1}=e,i="";return i+=o&&aa?"translate(".concat(t.x/ns-n/2,"em, ").concat(t.y/ns-r/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/ns,"em), calc(-50% + ").concat(t.y/ns,"em)) "):"translate(".concat(t.x/ns,"em, ").concat(t.y/ns,"em) "),i+="scale(".concat(t.size/ns*(t.flipX?-1:1),", ").concat(t.size/ns*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}({transform:o,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=cs(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}const{styles:cl}=vs;function ul(e){const t=e[0],n=e[1],[r]=e.slice(4);let o=null;return o=Array.isArray(r)?{tag:"g",attributes:{class:"".concat(es.cssPrefix,"-").concat(Ga.GROUP)},children:[{tag:"path",attributes:{class:"".concat(es.cssPrefix,"-").concat(Ga.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(es.cssPrefix,"-").concat(Ga.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:o}}const dl={found:!1,width:512,height:512};function fl(e,t){let n=t;return"fa"===t&&null!==es.styleDefault&&(t=Ws()),new Promise(((r,o)=>{if("fa"===n){const n=Bs(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&cl[t]&&cl[t][e]){return r(ul(cl[t][e]))}!function(e,t){Na||es.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r({...dl,icon:es.showMissingIcons&&e&&el("missingIconAbstract")||{}})}))}const pl=()=>{},hl=es.measurePerformance&&oa&&oa.mark&&oa.measure?oa:{mark:pl,measure:pl},ml='FA "6.6.0"',gl=e=>{hl.mark("".concat(ml," ").concat(e," ends")),hl.measure("".concat(ml," ").concat(e),"".concat(ml," ").concat(e," begins"),"".concat(ml," ").concat(e," ends"))};var vl={begin:e=>(hl.mark("".concat(ml," ").concat(e," begins")),()=>gl(e)),end:gl};const bl=()=>{};function yl(e){return"string"==typeof(e.getAttribute?e.getAttribute(Oa):null)}function wl(e){return na.createElementNS("http://www.w3.org/2000/svg",e)}function xl(e){return na.createElement(e)}function _l(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?wl:xl)}=t;if("string"==typeof e)return na.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(_l(e,{ceFn:n}))})),r}const El={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(_l(e),t)})),null===t.getAttribute(Oa)&&es.keepOriginalSource){let e=na.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(~ss(t).indexOf(es.replacementClass))return El.replace(e);const r=new RegExp("".concat(es.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===es.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 o=n.map((e=>xs(e))).join("\n");t.setAttribute(Oa,""),t.innerHTML=o}};function Sl(e){e()}function Ol(e,t){const n="function"==typeof t?t:bl;if(0===e.length)n();else{let t=Sl;es.mutateApproach===Pa&&(t=ta.requestAnimationFrame||Sl),t((()=>{const t=!0===es.autoReplaceSvg?El.replace:El[es.autoReplaceSvg]||El.replace,r=vl.begin("mutate");e.map(t),r(),n()}))}}let Tl=!1;function kl(){Tl=!0}function Cl(){Tl=!1}let Al=null;function Rl(e){if(!ra)return;if(!es.observeMutations)return;const{treeCallback:t=bl,nodeCallback:n=bl,pseudoElementsCallback:r=bl,observeMutationsRoot:o=na}=e;Al=new ra((e=>{if(Tl)return;const o=Ws();as(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!yl(e.addedNodes[0])&&(es.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&es.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&yl(e.target)&&~Ka.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(Ca):null,n=e.getAttribute?e.getAttribute(Aa):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Ks(ss(e.target));e.target.setAttribute(Ca,t||o),n&&e.target.setAttribute(Aa,n)}else(i=e.target)&&i.classList&&i.classList.contains&&i.classList.contains(es.replacementClass)&&n(e.target);var i}))})),ia&&Al.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Pl(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let o=Ks(ss(e));return o.prefix||(o.prefix=Ws()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&r.length>0&&(o.iconName=(i=o.prefix,a=e.innerText,(Ls[i]||{})[a]||zs(o.prefix,Ss(e.innerText)))),!o.iconName&&es.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o;var i,a}function Ll(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:o}=Pl(e),i=function(e){const t=as(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 es.autoA11y&&(n?t["aria-labelledby"]="".concat(es.replacementClass,"-title-").concat(r||is()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=Js("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],o=n.slice(1);return r&&o.length>0&&(e[r]=o.join(":").trim()),e}),{})),n}(e):[];return{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:rs,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i},...a}}const{styles:Nl}=vs;function Fl(e){const t="nest"===es.autoReplaceSvg?Ll(e,{styleParser:!1}):Ll(e);return~t.extra.classes.indexOf(qa)?el("generateLayersText",e,t):el("generateSvgReplacementMutation",e,t)}let Il=new Set;function Dl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!ia)return Promise.resolve();const n=na.documentElement.classList,r=e=>n.add("".concat(Ra,"-").concat(e)),o=e=>n.remove("".concat(Ra,"-").concat(e)),i=es.autoFetchSvg?Il:Fa.map((e=>"fa-".concat(e))).concat(Object.keys(Nl));i.includes("fa")||i.push("fa");const a=[".".concat(qa,":not([").concat(Oa,"])")].concat(i.map((e=>".".concat(e,":not([").concat(Oa,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=as(e.querySelectorAll(a))}catch(u){}if(!(s.length>0))return Promise.resolve();r("pending"),o("complete");const l=vl.begin("onTree"),c=s.reduce(((e,t)=>{try{const n=Fl(t);n&&e.push(n)}catch(u){Na||"MissingIcon"===u.name&&console.error(u)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{Ol(n,(()=>{r("active"),r("complete"),o("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Ml(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Fl(e).then((e=>{e&&Ol([e],t)}))}Fa.map((e=>{Il.add("fa-".concat(e))})),Object.keys(Ma[sa]).map(Il.add.bind(Il)),Object.keys(Ma[ca]).map(Il.add.bind(Il)),Object.keys(Ma[ua]).map(Il.add.bind(Il)),Il=[...Il];const jl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=rs,symbol:r=!1,mask:o=null,maskId:i=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:p}=e;return al({type:"icon",...e},(()=>(Zs("beforeDOMElementCreation",{iconDefinition:e,params:t}),es.autoA11y&&(a?c["aria-labelledby"]="".concat(es.replacementClass,"-title-").concat(s||is()):(c["aria-hidden"]="true",c.focusable="false")),sl({icons:{main:ul(p),mask:o?ul(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:{...rs,...n},symbol:r,title:a,maskId:i,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var Ul={mixout(){return{icon:(e=jl,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:tl(t||{});let{mask:o}=n;return o&&(o=(o||{}).icon?o:tl(o||{})),e(r,{...n,mask:o})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Dl,e.nodeCallback=Ml,e)}),provides(e){e.i2svg=function(e){const{node:t=na,callback:n=()=>{}}=e;return Dl(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:o,prefix:i,transform:a,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([fl(n,i),l.iconName?fl(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,sl({icons:{main:d,mask:f},prefix:i,iconName:n,transform:a,symbol:s,maskId:c,title:r,titleId:o,extra:u,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:n,main:r,transform:o,styles:i}=e;const a=cs(i);let s;return a.length>0&&(n.style=a),us(o)&&(s=el("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},zl={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return al({type:"layer"},(()=>{Zs("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(es.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},Hl={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:o={},styles:i={}}=t;return al({type:"counter",content:e},(()=>(Zs("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,o={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},i=cs(r.styles);i.length>0&&(o.style=i);const a=[];return a.push({tag:"span",attributes:o,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:o,styles:i,classes:["".concat(es.cssPrefix,"-layers-counter"),...r]}}))))}})},Bl={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=rs,title:r=null,classes:o=[],attributes:i={},styles:a={}}=t;return al({type:"text",content:e},(()=>(Zs("beforeDOMElementCreation",{content:e,params:t}),ll({content:e,transform:{...rs,...n},title:r,extra:{attributes:i,styles:a,classes:["".concat(es.cssPrefix,"-layers-text"),...o]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:o}=t;let i=null,a=null;if(aa){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();i=n.width/t,a=n.height/t}return es.autoA11y&&!n&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,ll({content:e.innerHTML,width:i,height:a,transform:r,title:n,extra:o,watchable:!0})])}}};const Wl=new RegExp('"',"ug"),Vl=[1105920,1112319],ql={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"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"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"}},$l=Object.keys(ql).reduce(((e,t)=>(e[t.toLowerCase()]=ql[t],e)),{}),Kl=Object.keys($l).reduce(((e,t)=>{const n=$l[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Gl(e,t){const n="".concat(ka).concat(t.replace(":","-"));return new Promise(((r,o)=>{if(null!==e.getAttribute(n))return r();const i=as(e.children).filter((e=>e.getAttribute(Ta)===t))[0],a=ta.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match($a),c=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(i&&!l)return e.removeChild(i),r();if(l&&"none"!==u&&""!==u){const u=a.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),o=isNaN(r)?"normal":r;return($l[n]||{})[o]||Kl[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(Wl,""),n=function(e,t){const n=e.length;let r,o=e.charCodeAt(t);return o>=55296&&o<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(o-55296)+r-56320+65536:o}(t,0),r=n>=Vl[0]&&n<=Vl[1],o=2===t.length&&t[0]===t[1];return{value:Ss(o?t[0]:t),isSecondary:r||o}}(u),h=l[0].startsWith("FontAwesome");let m=zs(d,f),g=m;if(h){const e=function(e){const t=Fs[e],n=zs("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||p||i&&i.getAttribute(Ca)===d&&i.getAttribute(Aa)===g)r();else{e.setAttribute(n,g),i&&e.removeChild(i);const a={iconName:null,title:null,titleId:null,prefix:null,transform:rs,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[Ta]=t,fl(m,d).then((o=>{const i=sl({...a,icons:{main:o,mask:Vs()},prefix:d,iconName:g,extra:s,watchable:!0}),l=na.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>xs(e))).join("\n"),e.removeAttribute(n),r()})).catch(o)}}else r()}))}function Ql(e){return Promise.all([Gl(e,"::before"),Gl(e,"::after")])}function Yl(e){return!(e.parentNode===document.head||~La.indexOf(e.tagName.toUpperCase())||e.getAttribute(Ta)||e.parentNode&&"svg"===e.parentNode.tagName)}function Xl(e){if(ia)return new Promise(((t,n)=>{const r=as(e.querySelectorAll("*")).filter(Yl).map(Ql),o=vl.begin("searchPseudoElements");kl(),Promise.all(r).then((()=>{o(),Cl(),t()})).catch((()=>{o(),Cl(),n()}))}))}var Jl={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Xl,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=na}=e;es.searchPseudoElements&&Xl(t)}}};let Zl=!1;var ec={mixout:()=>({dom:{unwatch(){kl(),Zl=!0}}}),hooks:()=>({bootstrap(){Rl(Js("mutationObserverCallbacks",{}))},noAuto(){Al&&Al.disconnect()},watch(e){const{observeMutationsRoot:t}=e;Zl?Cl():Rl(Js("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const tc=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const n=t.toLowerCase().split("-"),r=n[0];let o=n.slice(1).join("-");if(r&&"h"===o)return e.flipX=!0,e;if(r&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(r){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var nc={mixout:()=>({parse:{transform:e=>tc(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=tc(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:o}=e;const i={transform:"translate(".concat(r/2," 256)")},a="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={transform:"".concat(a," ").concat(s," ").concat(l)},u={transform:"translate(".concat(o/2*-1," -256)")};return{tag:"g",attributes:{...i},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}};const rc={x:0,y:0,width:"100%",height:"100%"};function oc(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var ic={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Ks(n.split(" ").map((e=>e.trim()))):Vs();return r.prefix||(r.prefix=Ws()),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:o,maskId:i,transform:a}=e;const{width:s,icon:l}=r,{width:c,icon:u}=o,d=function(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="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:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:{...rc,fill:"white"}},p=l.children?{children:l.children.map(oc)}:{},h={tag:"g",attributes:{...d.inner},children:[oc({tag:l.tag,attributes:{...l.attributes,...d.path},...p})]},m={tag:"g",attributes:{...d.outer},children:[h]},g="mask-".concat(i||is()),v="clip-".concat(i||is()),b={tag:"mask",attributes:{...rc,id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,m]},y={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(w=u,"g"===w.tag?w.children:[w])},b]};var w;return t.push(y,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")"),...rc}}),{children:t,attributes:n}}}};!function(e,t){let{mixoutsTo:n}=t;Gs=e,Qs={},Object.keys(Ys).forEach((e=>{-1===Xs.indexOf(e)&&delete Ys[e]})),Gs.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=>{Qs[e]||(Qs[e]=[]),Qs[e].push(t[e])}))}e.provides&&e.provides(Ys)}))}([ms,Ul,zl,Hl,Bl,Jl,ec,nc,ic,{provides(e){let t=!1;ta.matchMedia&&(t=ta.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:{...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 o={...r,attributeName:"opacity"},i={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||i.children.push({tag:"animate",attributes:{...r,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...o,values:"1;0;1;1;0;1;"}}),e.push(i),e.push({tag:"path",attributes:{...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:{...o,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...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:{...o,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:ol});const ac=ol.config,sc=ol.library,lc=ol.dom,cc=ol.parse,uc=ol.icon,dc={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"]},fc={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"]},pc={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"]};function hc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=hc(e))&&(r&&(r+=" "),r+=t);return r}const gc=({class:e,children:t,...n})=>{const r=Object.keys(n).find((e=>n[e])),o={class:mc(r?vc[r]:void 0,e),children:t};return n.heading1?_t(_c,{...o}):n.paragraph1?_t(Ec,{...o}):n.label?_t(Sc,{...o}):n.field?_t(Oc,{...o}):n.hint?_t(Tc,{...o}):n.terms?_t(kc,{...o}):n.link?_t(Cc,{...o}):n.h1?_t("h1",{...o}):n.h2?_t("h2",{...o}):n.h3?_t("h3",{...o}):n.p?_t("p",{...o}):n.span?_t("span",{...o}):_t("p",{...o})},vc={brand:"text-primary-base",danger:"text-red-500",dark:"text-gray-700",darker:"text-gray-900",light:"text-gray-400",default:"text-gray-600"},bc=`text-3xl font-bold leading-9 ${vc.darker}`,yc=`text-base font-medium leading-6 ${vc.dark}`,wc=`text-sm font-medium leading-5 ${vc.dark}`,xc=`underline ${vc.brand}`,_c=e=>_t("h1",{...e,class:mc(bc,e.class)}),Ec=e=>_t("p",{...e,class:mc("text-lg leading-7",e.class)}),Sc=e=>_t("span",{...e,class:mc(yc,e.class)}),Oc=e=>_t("span",{...e,class:mc(wc,e.class)}),Tc=e=>_t("p",{...e,class:mc("text-sm",e.class)}),kc=e=>_t("p",{...e,class:mc("text-xs",e.class)}),Cc=e=>_t("a",{...e,class:mc(xc,e.class)});sc.add(pc,fc),ac.autoAddCss=!1;const Ac=({children:e})=>_t(qe,{children:[_t("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}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-2{right:.5rem}.right-2\\.5{right:.625rem}.top-2{top:.5rem}.top-3{top:.75rem}.z-10{z-index:10}.m-0\\.5{margin:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.mr-2\\.5{margin-right:.625rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-5{height:1.25rem}.h-full{height:100%}.min-h-\\[50rem\\]{min-height:50rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-\\[var\\(--button-width\\)\\]{width:var(--button-width)}.w-\\[var\\(--input-width\\)\\]{width:var(--input-width)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-60{min-width:15rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.flex-1{flex:1 1 0%}.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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.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-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.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-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / 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-primary-base{background-color:var(--fl-color-primary)}.bg-secondary-base{background-color:var(--fl-color-secondary)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0\\.5{padding:.125rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-12{padding-left:3rem;padding-right:3rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-3{padding-left:.75rem}.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}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-9{line-height:2.25rem}.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-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-secondary-text{color:var(--fl-color-secondary-text)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.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-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)}.blur{--tw-blur: blur(8px);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)}.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-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}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.\\[--anchor-max-height\\:20rem\\]{--anchor-max-height: 20rem}:host{--fl-color-primary_from_host: var(--fl-color-primary);--fl-color-primary-hover_from_host: var(--fl-color-primary-hover);--fl-color-primary-focus_from_host: var(--fl-color-primary-focus);--fl-color-primary-text_from_host: var(--fl-color-primary-text);--fl-color-secondary_from_host: var(--fl-color-secondary);--fl-color-secondary-hover_from_host: var(--fl-color-secondary-hover);--fl-color-secondary-focus_from_host: var(--fl-color-secondary-focus);--fl-color-secondary-text_from_host: var(--fl-color-secondary-text);--fl-color-secondary-disabled_from_host: var(--fl-color-secondary-disabled)}*{--fl-color-primary: var(--fl-color-primary_from_host, #2E66F7);--fl-color-primary-hover: var(--fl-color-primary-hover_from_host, #0048fe);--fl-color-primary-focus: var(--fl-color-primary-focus_from_host, #40a9ff);--fl-color-primary-text: var(--fl-color-primary-text_from_host, #ffffff);--fl-color-secondary: var(--fl-color-secondary_from_host, #d3d3d3);--fl-color-secondary-hover: var(--fl-color-secondary-hover_from_host, #ebebeb);--fl-color-secondary-focus: var(--fl-color-secondary-focus_from_host, #ebebeb);--fl-color-secondary-text: var(--fl-color-secondary-text_from_host, #262626);--fl-color-secondary-disabled: var(--fl-color-secondary-disabled_from_host, #f5f5f5)}.slide-enter,.slide-enter-active,.slide-exit,.slide-exit-active{position:absolute;top:0;left:0;bottom:0;right: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}.empty\\:invisible:empty{visibility:hidden}.hover\\:bg-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-secondary-hover:hover{background-color:var(--fl-color-secondary-hover)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1: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(1px + 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-secondary-base:focus{--tw-ring-color: var(--fl-color-secondary)}.focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.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-\\[focus\\]\\:bg-primary-base[data-focus]{background-color:var(--fl-color-primary)}.data-\\[focus\\]\\:text-primary-text[data-focus]{color:var(--fl-color-primary-text)}.data-\\[leave\\]\\:data-\\[closed\\]\\:opacity-0[data-closed][data-leave]{opacity:0}@media (min-width: 768px){.md\\:block{display:block}.md\\:grid{display:grid}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}'+lc.css()}),_t("div",{class:mc("font-sans",vc.default),children:e})]}),Rc=e=>_t("svg",{class:mc("animate-spin",e.class),fill:"none",viewBox:"0 0 24 24",children:[_t("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),_t("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"})]}),Pc=()=>_t("div",{class:"flex flex-col gap-8 items-center justify-center h-full",children:_t(Rc,{class:mc("w-10 h-10",vc.brand)})}),Lc=({status:e="idle",...t})=>_t("button",{class:mc(["relative items-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-base focus:outline-none focus:ring-1 focus:ring-offset-1 m-0.5",t.secondary?"bg-secondary-base text-secondary-text hover:bg-secondary-hover focus:ring-secondary-base":"bg-primary-base text-primary-text hover:bg-primary-hover focus:ring-primary-base",t.disabled?"bg-secondary-base text-secondary-text opacity-30":"","pending"===e||t.disabled?"pointer-events-none":"",t.class]),disabled:"pending"===e||t.disabled,onClick:t.onClick,tabindex:"pending"===e||t.disabled?-1:void 0,type:"button",children:[_t("span",{class:mc(["pending"===e?"opacity-0":""]),children:t.children}),"pending"===e?_t("div",{class:"absolute inset-0 flex justify-center items-center",children:_t(Rc,{class:"h-5 w-5"})}):null]});function Nc(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 Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nc(Object(n),!0).forEach((function(t){Dc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ic(e){return(Ic="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 Dc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mc(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jc(e){return function(e){if(Array.isArray(e))return Uc(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 Uc(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 Uc(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 Uc(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 zc(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 Hc=["style"];var Bc=!1;try{Bc=!0}catch(Ym){}function Wc(e){return e&&"object"===Ic(e)&&e.prefix&&e.iconName&&e.icon?e:cc.icon?cc.icon(e):null===e?null:e&&"object"===Ic(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 Vc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Dc({},e,t):{}}var qc={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},$c=Xr.forwardRef((function(e,t){var n=Fc(Fc({},qc),e),r=n.icon,o=n.mask,i=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Wc(r),d=Vc("classes",[].concat(jc(function(e){var t,n=e.beat,r=e.fade,o=e.beatFade,i=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,g=e.flip,v=e.size,b=e.rotation,y=e.pull,w=(Dc(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(v),null!=v),Dc(t,"fa-rotate-".concat(b),null!=b&&0!==b),Dc(t,"fa-pull-".concat(y),null!=y),Dc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(n)),jc((a||"").split(" ")))),f=Vc("transform","string"==typeof n.transform?cc.transform(n.transform):n.transform),p=Vc("mask",Wc(o)),h=uc(u,Fc(Fc(Fc(Fc({},d),f),p),{},{symbol:i,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!Bc&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var m=h.abstract,g={ref:t};return Object.keys(n).forEach((function(e){qc.hasOwnProperty(e)||(g[e]=n[e])})),Kc(m[0],g)}));$c.displayName="FontAwesomeIcon",$c.propTypes={beat:Ri.bool,border:Ri.bool,beatFade:Ri.bool,bounce:Ri.bool,className:Ri.string,fade:Ri.bool,flash:Ri.bool,mask:Ri.oneOfType([Ri.object,Ri.array,Ri.string]),maskId:Ri.string,fixedWidth:Ri.bool,inverse:Ri.bool,flip:Ri.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ri.oneOfType([Ri.object,Ri.array,Ri.string]),listItem:Ri.bool,pull:Ri.oneOf(["right","left"]),pulse:Ri.bool,rotation:Ri.oneOf([0,90,180,270]),shake:Ri.bool,size:Ri.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ri.bool,spinPulse:Ri.bool,spinReverse:Ri.bool,symbol:Ri.oneOfType([Ri.bool,Ri.string]),title:Ri.string,titleId:Ri.string,transform:Ri.oneOfType([Ri.string,Ri.object]),swapOpacity:Ri.bool};var Kc=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof n)return n;var o=(n.children||[]).map((function(n){return e(t,n)})),i=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(":"),o=zc(t.slice(0,r)),i=t.slice(r+1).trim();return o.startsWith("webkit")?e[(n=o,n.charAt(0).toUpperCase()+n.slice(1))]=i:e[o]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[zc(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=Mc(r,Hc);return i.attrs.style=Fc(Fc({},i.attrs.style),s),t.apply(void 0,[n.tag,Fc(Fc({},i.attrs),l)].concat(jc(o)))}.bind(null,Xr.createElement);const Gc=e=>_t("div",{class:"flex flex-col gap-8 items-center justify-center h-full",children:[_t($c,{className:vc.danger,icon:dc,size:"4x"}),_t("div",{class:" max-w-[30rem]",children:[_t(gc,{class:"text-center",heading1:!0,children:"Sorry about that!"}),_t(gc,{class:"text-center",paragraph1:!0,children:"Something unexpected has occurred and we are working hard to fix it. Please try again later."})]}),_t(Lc,{onClick:e.retry,children:"Retry"})]}),Qc=({class:e,...t})=>_t("div",{class:mc("flex-1",e),...t});var Yc=(e=>(e.Ineligible="Ineligible",e.Completion="Completion",e.Consent="Consent",e.Question="Question",e))(Yc||{}),Xc=(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))(Xc||{}),Jc=(e=>(e.Weekends="Weekends",e.PublicHolidays="PublicHolidays",e))(Jc||{}),Zc=(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.None="None",e))(Zc||{}),eu=(e=>(e.ProgressStep="ProgressStep",e.UpdateAnswersOfCompletedActivity="UpdateAnswersOfCompletedActivity",e.ProgressStartToComplete="ProgressStartToComplete",e))(eu||{}),tu=(e=>(e.Standard="standard",e.Lookup="lookup",e))(tu||{}),nu=(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))(nu||{}),ru=(e=>(e.AssessmentViewed="Assessment Viewed",e.AssessmentSkipped="Assessment Skipped",e.AssessmentFieldUpdated="AssessmentField Updated",e.AssessmentSubmitted="Assessment Submitted",e.AssessmentSummaryViewed="AssessmentSummary Viewed",e))(ru||{});function ou(e,t){return function(){return e.apply(t,arguments)}}const{toString:iu}=Object.prototype,{getPrototypeOf:au}=Object,su=(e=>t=>{const n=iu.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),lu=e=>(e=e.toLowerCase(),t=>su(t)===e),cu=e=>t=>typeof t===e,{isArray:uu}=Array,du=cu("undefined");const fu=lu("ArrayBuffer");const pu=cu("string"),hu=cu("function"),mu=cu("number"),gu=e=>null!==e&&"object"==typeof e,vu=e=>{if("object"!==su(e))return!1;const t=au(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},bu=lu("Date"),yu=lu("File"),wu=lu("Blob"),xu=lu("FileList"),_u=lu("URLSearchParams"),[Eu,Su,Ou,Tu]=["ReadableStream","Request","Response","Headers"].map(lu);function ku(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),uu(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const o=n?Object.getOwnPropertyNames(e):Object.keys(e),i=o.length;let a;for(r=0;r<i;r++)a=o[r],t.call(null,e[a],a,e)}}function Cu(e,t){t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const Au="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Ru=e=>!du(e)&&e!==Au;const Pu=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&au(Uint8Array)),Lu=lu("HTMLFormElement"),Nu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Fu=lu("RegExp"),Iu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};ku(n,((n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)},Du="abcdefghijklmnopqrstuvwxyz",Mu="0123456789",ju={DIGIT:Mu,ALPHA:Du,ALPHA_DIGIT:Du+Du.toUpperCase()+Mu};const Uu=lu("AsyncFunction"),zu=(Hu="function"==typeof setImmediate,Bu=hu(Au.postMessage),Hu?setImmediate:Bu?(Wu=`axios@${Math.random()}`,Vu=[],Au.addEventListener("message",(({source:e,data:t})=>{e===Au&&t===Wu&&Vu.length&&Vu.shift()()}),!1),e=>{Vu.push(e),Au.postMessage(Wu,"*")}):e=>setTimeout(e));var Hu,Bu,Wu,Vu;const qu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Au):"undefined"!=typeof process&&process.nextTick||zu,$u={isArray:uu,isArrayBuffer:fu,isBuffer:function(e){return null!==e&&!du(e)&&null!==e.constructor&&!du(e.constructor)&&hu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||hu(e.append)&&("formdata"===(t=su(e))||"object"===t&&hu(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&fu(e.buffer),t},isString:pu,isNumber:mu,isBoolean:e=>!0===e||!1===e,isObject:gu,isPlainObject:vu,isReadableStream:Eu,isRequest:Su,isResponse:Ou,isHeaders:Tu,isUndefined:du,isDate:bu,isFile:yu,isBlob:wu,isRegExp:Fu,isFunction:hu,isStream:e=>gu(e)&&hu(e.pipe),isURLSearchParams:_u,isTypedArray:Pu,isFileList:xu,forEach:ku,merge:function e(){const{caseless:t}=Ru(this)&&this||{},n={},r=(r,o)=>{const i=t&&Cu(n,o)||o;vu(n[i])&&vu(r)?n[i]=e(n[i],r):vu(r)?n[i]=e({},r):uu(r)?n[i]=r.slice():n[i]=r};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&ku(arguments[o],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(ku(t,((t,r)=>{n&&hu(t)?e[r]=ou(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&au(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:su,kindOfTest:lu,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(uu(e))return e;let t=e.length;if(!mu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Lu,hasOwnProperty:Nu,hasOwnProp:Nu,reduceDescriptors:Iu,freezeMethods:e=>{Iu(e,((t,n)=>{if(hu(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];hu(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 uu(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:Cu,global:Au,isContextDefined:Ru,ALPHABET:ju,generateString:(e=16,t=ju.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&hu(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(gu(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const o=uu(e)?[]:{};return ku(e,((e,t)=>{const i=n(e,r+1);!du(i)&&(o[t]=i)})),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Uu,isThenable:e=>e&&(gu(e)||hu(e))&&hu(e.then)&&hu(e.catch),setImmediate:zu,asap:qu};function Ku(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}$u.inherits(Ku,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:$u.toJSONObject(this.config),code:this.code,status:this.status}}});const Gu=Ku.prototype,Qu={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Qu[e]={value:e}})),Object.defineProperties(Ku,Qu),Object.defineProperty(Gu,"isAxiosError",{value:!0}),Ku.from=(e,t,n,r,o,i)=>{const a=Object.create(Gu);return $u.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),Ku.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};function Yu(e){return $u.isPlainObject(e)||$u.isArray(e)}function Xu(e){return $u.endsWith(e,"[]")?e.slice(0,-2):e}function Ju(e,t,n){return e?e.concat(t).map((function(e,t){return e=Xu(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Zu=$u.toFlatObject($u,{},null,(function(e){return/^is[A-Z]/.test(e)}));function ed(e,t,n){if(!$u.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=$u.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!$u.isUndefined(t[e])}))).metaTokens,o=n.visitor||c,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&$u.isSpecCompliantForm(t);if(!$u.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if($u.isDate(e))return e.toISOString();if(!s&&$u.isBlob(e))throw new Ku("Blob is not supported. Use a Buffer instead.");return $u.isArrayBuffer(e)||$u.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if($u.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if($u.isArray(e)&&function(e){return $u.isArray(e)&&!e.some(Yu)}(e)||($u.isFileList(e)||$u.endsWith(n,"[]"))&&(s=$u.toArray(e)))return n=Xu(n),s.forEach((function(e,r){!$u.isUndefined(e)&&null!==e&&t.append(!0===a?Ju([n],r,i):null===a?n:n+"[]",l(e))})),!1;return!!Yu(e)||(t.append(Ju(o,n,i),l(e)),!1)}const u=[],d=Object.assign(Zu,{defaultVisitor:c,convertValue:l,isVisitable:Yu});if(!$u.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!$u.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),$u.forEach(n,(function(n,i){!0===(!($u.isUndefined(n)||null===n)&&o.call(t,n,$u.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),u.pop()}}(e),t}function td(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function nd(e,t){this._pairs=[],e&&ed(e,this,t)}const rd=nd.prototype;function od(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function id(e,t,n){if(!t)return e;const r=n&&n.encode||od,o=n&&n.serialize;let i;if(i=o?o(t,n):$u.isURLSearchParams(t)?t.toString():new nd(t,n).toString(r),i){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+i}return e}rd.append=function(e,t){this._pairs.push([e,t])},rd.toString=function(e){const t=e?function(t){return e.call(this,t,td)}:td;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class ad{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){$u.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const sd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ld={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:nd,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},cd="undefined"!=typeof window&&"undefined"!=typeof document,ud="object"==typeof navigator&&navigator||void 0,dd=cd&&(!ud||["ReactNative","NativeScript","NS"].indexOf(ud.product)<0),fd="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,pd=cd&&window.location.href||"http://localhost",hd={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cd,hasStandardBrowserEnv:dd,hasStandardBrowserWebWorkerEnv:fd,navigator:ud,origin:pd},Symbol.toStringTag,{value:"Module"})),...ld};function md(e){function t(e,n,r,o){let i=e[o++];if("__proto__"===i)return!0;const a=Number.isFinite(+i),s=o>=e.length;if(i=!i&&$u.isArray(r)?r.length:i,s)return $u.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a;r[i]&&$u.isObject(r[i])||(r[i]=[]);return t(e,n,r[i],o)&&$u.isArray(r[i])&&(r[i]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}(r[i])),!a}if($u.isFormData(e)&&$u.isFunction(e.entries)){const n={};return $u.forEachEntry(e,((e,r)=>{t(function(e){return $u.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const gd={transitional:sd,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=$u.isObject(e);o&&$u.isHTMLForm(e)&&(e=new FormData(e));if($u.isFormData(e))return r?JSON.stringify(md(e)):e;if($u.isArrayBuffer(e)||$u.isBuffer(e)||$u.isStream(e)||$u.isFile(e)||$u.isBlob(e)||$u.isReadableStream(e))return e;if($u.isArrayBufferView(e))return e.buffer;if($u.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ed(e,new hd.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return hd.isNode&&$u.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((i=$u.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ed(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if($u.isString(e))try{return(t||JSON.parse)(e),$u.trim(e)}catch(Ym){if("SyntaxError"!==Ym.name)throw Ym}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||gd.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if($u.isResponse(e)||$u.isReadableStream(e))return e;if(e&&$u.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Ym){if(n){if("SyntaxError"===Ym.name)throw Ku.from(Ym,Ku.ERR_BAD_RESPONSE,this,null,this.response);throw Ym}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:hd.classes.FormData,Blob:hd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};$u.forEach(["delete","get","head","post","put","patch"],(e=>{gd.headers[e]={}}));const vd=$u.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"]),bd=Symbol("internals");function yd(e){return e&&String(e).trim().toLowerCase()}function wd(e){return!1===e||null==e?e:$u.isArray(e)?e.map(wd):String(e)}function xd(e,t,n,r,o){return $u.isFunction(r)?r.call(this,t,n):(o&&(t=n),$u.isString(t)?$u.isString(r)?-1!==t.indexOf(r):$u.isRegExp(r)?r.test(t):void 0:void 0)}class _d{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=yd(t);if(!o)throw new Error("header name must be a non-empty string");const i=$u.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=wd(e))}const i=(e,t)=>$u.forEach(e,((e,n)=>o(e,n,t)));if($u.isPlainObject(e)||e instanceof this.constructor)i(e,t);else if($u.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))i((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach((function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&vd[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($u.isHeaders(e))for(const[a,s]of e.entries())o(s,a,n);else null!=e&&o(t,e,n);return this}get(e,t){if(e=yd(e)){const n=$u.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($u.isFunction(t))return t.call(this,e,n);if($u.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=yd(e)){const n=$u.findKey(this,e);return!(!n||void 0===this[n]||t&&!xd(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=yd(e)){const o=$u.findKey(n,e);!o||t&&!xd(0,n[o],o,t)||(delete n[o],r=!0)}}return $u.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!xd(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return $u.forEach(this,((r,o)=>{const i=$u.findKey(n,o);if(i)return t[i]=wd(r),void delete t[o];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(o):String(o).trim();a!==o&&delete t[o],t[a]=wd(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return $u.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&$u.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[bd]=this[bd]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=yd(e);t[r]||(!function(e,t){const n=$u.toCamelCase(" "+t);["get","set","has"].forEach((r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return $u.isArray(e)?e.forEach(r):r(e),this}}function Ed(e,t){const n=this||gd,r=t||n,o=_d.from(r.headers);let i=r.data;return $u.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Sd(e){return!(!e||!e.__CANCEL__)}function Od(e,t,n){Ku.call(this,null==e?"canceled":e,Ku.ERR_CANCELED,t,n),this.name="CanceledError"}function Td(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Ku("Request failed with status code "+n.status,[Ku.ERR_BAD_REQUEST,Ku.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}_d.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),$u.reduceDescriptors(_d.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),$u.freezeMethods(_d),$u.inherits(Od,Ku,{__CANCEL__:!0});const kd=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,i=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u%=e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,i=1e3/t;const a=(t,i=Date.now())=>{o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=i?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),i-s)))},()=>n&&a(n)]}((n=>{const i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,l=o(s);r=i;e({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&i<=a?(a-i)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},Cd=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ad=e=>(...t)=>$u.asap((()=>e(...t))),Rd=hd.hasStandardBrowserEnv?function(){const e=hd.navigator&&/(msie|trident)/i.test(hd.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=$u.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Pd=hd.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];$u.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),$u.isString(r)&&a.push("path="+r),$u.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Ld(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Nd=e=>e instanceof _d?{...e}:e;function Fd(e,t){t=t||{};const n={};function r(e,t,n){return $u.isPlainObject(e)&&$u.isPlainObject(t)?$u.merge.call({caseless:n},e,t):$u.isPlainObject(t)?$u.merge({},t):$u.isArray(t)?t.slice():t}function o(e,t,n){return $u.isUndefined(t)?$u.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function i(e,t){if(!$u.isUndefined(t))return r(void 0,t)}function a(e,t){return $u.isUndefined(t)?$u.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>o(Nd(e),Nd(t),!0)};return $u.forEach(Object.keys(Object.assign({},e,t)),(function(r){const i=l[r]||o,a=i(e[r],t[r],r);$u.isUndefined(a)&&i!==s||(n[r]=a)})),n}const Id=e=>{const t=Fd({},e);let n,{data:r,withXSRFToken:o,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=_d.from(s),t.url=id(Ld(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),$u.isFormData(r))if(hd.hasStandardBrowserEnv||hd.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(hd.hasStandardBrowserEnv&&(o&&$u.isFunction(o)&&(o=o(t)),o||!1!==o&&Rd(t.url))){const e=i&&a&&Pd.read(a);e&&s.set(i,e)}return t},Dd="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Id(e);let o=r.data;const i=_d.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=_d.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Td((function(e){t(e),h()}),(function(e){n(e),h()}),{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 Ku("Request aborted",Ku.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new Ku("Network Error",Ku.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||sd;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new Ku(t,o.clarifyTimeoutError?Ku.ETIMEDOUT:Ku.ECONNABORTED,e,m)),m=null},void 0===o&&i.setContentType(null),"setRequestHeader"in m&&$u.forEach(i.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),$u.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=kd(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=kd(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Od(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===hd.protocols.indexOf(v)?n(new Ku("Unsupported protocol "+v+":",Ku.ERR_BAD_REQUEST,e)):m.send(o||null)}))},Md=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof Ku?t:new Od(t instanceof Error?t.message:t))}};let i=t&&setTimeout((()=>{i=null,o(new Ku(`timeout ${t} of ms exceeded`,Ku.ETIMEDOUT))}),t);const a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach((e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)})),e=null)};e.forEach((e=>e.addEventListener("abort",o)));const{signal:s}=r;return s.unsubscribe=()=>$u.asap(a),s}},jd=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Ud=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()}},zd=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Ud(e))yield*jd(n,t)}(e,t);let i,a=0,s=e=>{i||(i=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let i=r.byteLength;if(n){let e=a+=i;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},Hd="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Bd=Hd&&"function"==typeof ReadableStream,Wd=Hd&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Vd=(e,...t)=>{try{return!!e(...t)}catch(Ym){return!1}},qd=Bd&&Vd((()=>{let e=!1;const t=new Request(hd.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),$d=Bd&&Vd((()=>$u.isReadableStream(new Response("").body))),Kd={stream:$d&&(e=>e.body)};var Gd;Hd&&(Gd=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!Kd[e]&&(Kd[e]=$u.isFunction(Gd[e])?t=>t[e]():(t,n)=>{throw new Ku(`Response type '${e}' is not supported`,Ku.ERR_NOT_SUPPORT,n)})})));const Qd=async(e,t)=>{const n=$u.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if($u.isBlob(e))return e.size;if($u.isSpecCompliantForm(e)){const t=new Request(hd.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return $u.isArrayBufferView(e)||$u.isArrayBuffer(e)?e.byteLength:($u.isURLSearchParams(e)&&(e+=""),$u.isString(e)?(await Wd(e)).byteLength:void 0)})(t):n},Yd={http:null,xhr:Dd,fetch:Hd&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Id(e);c=c?(c+"").toLowerCase():"text";let p,h=Md([o,i&&i.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&qd&&"get"!==n&&"head"!==n&&0!==(g=await Qd(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if($u.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=Cd(g,kd(Ad(l)));r=zd(n.body,65536,e,t)}}$u.isString(d)||(d=d?"include":"omit");const o="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:o?d:void 0});let i=await fetch(p);const a=$d&&("stream"===c||"response"===c);if($d&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=i[t]}));const t=$u.toFiniteNumber(i.headers.get("content-length")),[n,r]=s&&Cd(t,kd(Ad(s),!0))||[];i=new Response(zd(i.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await Kd[$u.findKey(Kd,c)||"text"](i,e);return!a&&m&&m(),await new Promise(((t,n)=>{Td(t,n,{data:v,headers:_d.from(i.headers),status:i.status,statusText:i.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new Ku("Network Error",Ku.ERR_NETWORK,e,p),{cause:v.cause||v});throw Ku.from(v,v&&v.code,e,p)}})};$u.forEach(Yd,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Ym){}Object.defineProperty(e,"adapterName",{value:t})}}));const Xd=e=>`- ${e}`,Jd=e=>$u.isFunction(e)||null===e||!1===e,Zd=e=>{e=$u.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){let t;if(n=e[i],r=n,!Jd(n)&&(r=Yd[(t=String(n)).toLowerCase()],void 0===r))throw new Ku(`Unknown adapter '${t}'`);if(r)break;o[t||"#"+i]=r}if(!r){const e=Object.entries(o).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new Ku("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Xd).join("\n"):" "+Xd(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function ef(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Od(null,e)}function tf(e){ef(e),e.headers=_d.from(e.headers),e.data=Ed.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Zd(e.adapter||gd.adapter)(e).then((function(t){return ef(e),t.data=Ed.call(e,e.transformResponse,t),t.headers=_d.from(t.headers),t}),(function(t){return Sd(t)||(ef(e),t&&t.response&&(t.response.data=Ed.call(e,e.transformResponse,t.response),t.response.headers=_d.from(t.response.headers))),Promise.reject(t)}))}const nf="1.7.7",rf={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{rf[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const of={};rf.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new Ku(r(o," has been removed"+(t?" in "+t:"")),Ku.ERR_DEPRECATED);return t&&!of[o]&&(of[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}};const af={assertOptions:function(e,t,n){if("object"!=typeof e)throw new Ku("options must be an object",Ku.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new Ku("option "+i+" must be "+n,Ku.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Ku("Unknown option "+i,Ku.ERR_BAD_OPTION)}},validators:rf},sf=af.validators;class lf{constructor(e){this.defaults=e,this.interceptors={request:new ad,response:new ad}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Ym){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Fd(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&af.assertOptions(n,{silentJSONParsing:sf.transitional(sf.boolean),forcedJSONParsing:sf.transitional(sf.boolean),clarifyTimeoutError:sf.transitional(sf.boolean)},!1),null!=r&&($u.isFunction(r)?t.paramsSerializer={serialize:r}:af.assertOptions(r,{encode:sf.function,serialize:sf.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let i=o&&$u.merge(o.common,o[t.method]);o&&$u.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete o[e]})),t.headers=_d.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[tf.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=tf.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return id(Ld((e=Fd(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}$u.forEach(["delete","get","head","options"],(function(e){lf.prototype[e]=function(t,n){return this.request(Fd(n||{},{method:e,url:t,data:(n||{}).data}))}})),$u.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Fd(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}lf.prototype[e]=t(),lf.prototype[e+"Form"]=t(!0)}));class cf{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise((function(e){t=e}));const n=this;this.promise.then((e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null})),this.promise.then=e=>{let t;const r=new Promise((e=>{n.subscribe(e),t=e})).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e((function(e,r,o){n.reason||(n.reason=new Od(e,r,o),t(n.reason))}))}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new cf((function(t){e=t})),cancel:e}}}const uf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(uf).forEach((([e,t])=>{uf[t]=e}));const df=function e(t){const n=new lf(t),r=ou(lf.prototype.request,n);return $u.extend(r,lf.prototype,n,{allOwnKeys:!0}),$u.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Fd(t,n))},r}(gd);let ff;df.Axios=lf,df.CanceledError=Od,df.CancelToken=cf,df.isCancel=Sd,df.VERSION=nf,df.toFormData=ed,df.AxiosError=Ku,df.Cancel=df.CanceledError,df.all=function(e){return Promise.all(e)},df.spread=function(e){return function(t){return e.apply(null,t)}},df.isAxiosError=function(e){return $u.isObject(e)&&!0===e.isAxiosError},df.mergeConfig=Fd,df.AxiosHeaders=_d,df.formToJSON=e=>md($u.isHTMLForm(e)?new FormData(e):e),df.getAdapter=Zd,df.HttpStatusCode=uf,df.default=df;const pf=async(e,t)=>{var n;return null==(n=await(null==ff?void 0:ff.get(e,t)))?void 0:n.data},hf=async(e,t,n)=>{var r;return null==(r=await(null==ff?void 0:ff.post(e,t,n)))?void 0:r.data};let mf;const gf=()=>{if(mf)return mf;return mf=new un({defaultOptions:{queries:{retry:(e,t)=>{var n;return 0===e&&![401,403].includes((null==(n=t.response)?void 0:n.status)||0)}}}}),mf},vf="/benefits-plan/workplace-backend",bf=e=>pf(`${vf}/v2.0/activities/${e.activityId}/steps`),yf=e=>{var t;const n=null==(t=e.progressEvents)?void 0:t.map((({dataType:e,...t})=>e===tu.Standard?t:{dataType:e,...t}));return(async(e,t,n)=>{var r;return null==(r=await(null==ff?void 0:ff.put(e,t,n)))?void 0:r.data})(`${vf}/v1.0/customer/activities/${e.activityId}`,{activityAction:e.activityAction,progressEvents:n})},wf=e=>hf(`${vf}/v2.0/analytics/track`,e),xf=()=>pf("/benefits-plan/customer-backend/v1.0/public-holidays"),_f=e=>{const{data:t,isError:n,isLoading:r,refetch:o}=yo({queryKey:["benefitsPlanGetCalculate",e.assessmentId],queryFn:()=>(async e=>pf(`${vf}/v1.0/activities/${e.activityId}/calculate`))({activityId:e.assessmentId}),staleTime:1/0});Nn((()=>{wf({event:ru.AssessmentSummaryViewed,properties:{id:e.assessmentId,name:e.title}})}),[e.assessmentId,e.title]);let i=null;return(null==t?void 0:t.calculationType)!==Zc.Health&&(null==t?void 0:t.calculationType)!==Zc.Everyday&&(null==t?void 0:t.calculationType)!==Zc.Devices&&(null==t?void 0:t.calculationType)!==Zc.HomeLoan&&(null==t?void 0:t.calculationType)!==Zc.Energy&&(null==t?void 0:t.calculationType)!==Zc.Broadband||(i=t.estimates),_t(Qc,{children:[r&&_t(Pc,{}),n&&_t(Gc,{retry:o}),!i||r||n?null:_t("div",{class:mc("md:grid md:grid-cols-2",e.verticalAlignment),children:[_t("div",{children:[_t(gc,{class:"mb-2",heading1:!0,children:i.primary.title}),_t(gc,{class:"mb-2",paragraph1:!0,children:i.blurb.text}),_t("img",{class:"mb-6",loading:"lazy",src:i.blurb.imageUrl}),_t("div",{class:"flex gap-1 items-start flex-wrap",children:[_t(Lc,{onClick:()=>window.open(null==i?void 0:i.moreDetailsUrl,"_blank"),children:"See your plans"}),e.onComplete?_t(Lc,{onClick:e.onComplete,secondary:!0,children:"Next"}):null]})]}),_t("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})]})]})},{entries:Ef,setPrototypeOf:Sf,isFrozen:Of,getPrototypeOf:Tf,getOwnPropertyDescriptor:kf}=Object;let{freeze:Cf,seal:Af,create:Rf}=Object,{apply:Pf,construct:Lf}="undefined"!=typeof Reflect&&Reflect;Cf||(Cf=function(e){return e}),Af||(Af=function(e){return e}),Pf||(Pf=function(e,t,n){return e.apply(t,n)}),Lf||(Lf=function(e,t){return new e(...t)});const Nf=$f(Array.prototype.forEach),Ff=$f(Array.prototype.pop),If=$f(Array.prototype.push),Df=$f(String.prototype.toLowerCase),Mf=$f(String.prototype.toString),jf=$f(String.prototype.match),Uf=$f(String.prototype.replace),zf=$f(String.prototype.indexOf),Hf=$f(String.prototype.trim),Bf=$f(Object.prototype.hasOwnProperty),Wf=$f(RegExp.prototype.test),Vf=(qf=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Lf(qf,t)});var qf;function $f(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return Pf(e,t,r)}}function Kf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Df;Sf&&Sf(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Of(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Gf(e){for(let t=0;t<e.length;t++){Bf(e,t)||(e[t]=null)}return e}function Qf(e){const t=Rf(null);for(const[n,r]of Ef(e)){Bf(e,n)&&(Array.isArray(r)?t[n]=Gf(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Qf(r):t[n]=r)}return t}function Yf(e,t){for(;null!==e;){const n=kf(e,t);if(n){if(n.get)return $f(n.get);if("function"==typeof n.value)return $f(n.value)}e=Tf(e)}return function(){return null}}const Xf=Cf(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Jf=Cf(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Zf=Cf(["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"]),ep=Cf(["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"]),tp=Cf(["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"]),np=Cf(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),rp=Cf(["#text"]),op=Cf(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),ip=Cf(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ap=Cf(["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"]),sp=Cf(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),lp=Af(/\{\{[\w\W]*|[\w\W]*\}\}/gm),cp=Af(/<%[\w\W]*|[\w\W]*%>/gm),up=Af(/\${[\w\W]*}/gm),dp=Af(/^data-[\-\w.\u00B7-\uFFFF]/),fp=Af(/^aria-[\-\w]+$/),pp=Af(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),hp=Af(/^(?:\w+script|data):/i),mp=Af(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gp=Af(/^html$/i),vp=Af(/^[a-z][.\w]*(-[.\w]+)+$/i);var bp=Object.freeze({__proto__:null,MUSTACHE_EXPR:lp,ERB_EXPR:cp,TMPLIT_EXPR:up,DATA_ATTR:dp,ARIA_ATTR:fp,IS_ALLOWED_URI:pp,IS_SCRIPT_OR_DATA:hp,ATTR_WHITESPACE:mp,DOCTYPE_NAME:gp,CUSTOM_ELEMENT:vp});const yp=1,wp=3,xp=7,_p=8,Ep=9;var Sp=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==Ep)return n.isSupported=!1,n;let{document:r}=t;const o=r,i=o.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=t,m=c.prototype,g=Yf(m,"cloneNode"),v=Yf(m,"remove"),b=Yf(m,"nextSibling"),y=Yf(m,"childNodes"),w=Yf(m,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let x,_="";const{implementation:E,createNodeIterator:S,createDocumentFragment:O,getElementsByTagName:T}=r,{importNode:k}=o;let C={};n.isSupported="function"==typeof Ef&&"function"==typeof w&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:R,TMPLIT_EXPR:P,DATA_ATTR:L,ARIA_ATTR:N,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:I,CUSTOM_ELEMENT:D}=bp;let{IS_ALLOWED_URI:M}=bp,j=null;const U=Kf({},[...Xf,...Jf,...Zf,...tp,...rp]);let z=null;const H=Kf({},[...op,...ip,...ap,...sp]);let B=Object.seal(Rf(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),W=null,V=null,q=!0,$=!0,K=!1,G=!0,Q=!1,Y=!0,X=!1,J=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!0,oe=!1,ie=!0,ae=!1,se={},le=null;const ce=Kf({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=Kf({},["audio","video","img","source","image","track"]);let fe=null;const pe=Kf({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ve=ge,be=!1,ye=null;const we=Kf({},[he,me,ge],Mf);let xe=null;const _e=["application/xhtml+xml","text/html"];let Ee=null,Se=null;const Oe=r.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},ke=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Se||Se!==e){if(e&&"object"==typeof e||(e={}),e=Qf(e),xe=-1===_e.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===xe?Mf:Df,j=Bf(e,"ALLOWED_TAGS")?Kf({},e.ALLOWED_TAGS,Ee):U,z=Bf(e,"ALLOWED_ATTR")?Kf({},e.ALLOWED_ATTR,Ee):H,ye=Bf(e,"ALLOWED_NAMESPACES")?Kf({},e.ALLOWED_NAMESPACES,Mf):we,fe=Bf(e,"ADD_URI_SAFE_ATTR")?Kf(Qf(pe),e.ADD_URI_SAFE_ATTR,Ee):pe,ue=Bf(e,"ADD_DATA_URI_TAGS")?Kf(Qf(de),e.ADD_DATA_URI_TAGS,Ee):de,le=Bf(e,"FORBID_CONTENTS")?Kf({},e.FORBID_CONTENTS,Ee):ce,W=Bf(e,"FORBID_TAGS")?Kf({},e.FORBID_TAGS,Ee):{},V=Bf(e,"FORBID_ATTR")?Kf({},e.FORBID_ATTR,Ee):{},se=!!Bf(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Q=e.SAFE_FOR_TEMPLATES||!1,Y=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,M=e.ALLOWED_URI_REGEXP||pp,ve=e.NAMESPACE||ge,B=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&($=!1),te&&(ee=!0),se&&(j=Kf({},rp),z=[],!0===se.html&&(Kf(j,Xf),Kf(z,op)),!0===se.svg&&(Kf(j,Jf),Kf(z,ip),Kf(z,sp)),!0===se.svgFilters&&(Kf(j,Zf),Kf(z,ip),Kf(z,sp)),!0===se.mathMl&&(Kf(j,tp),Kf(z,ap),Kf(z,sp))),e.ADD_TAGS&&(j===U&&(j=Qf(j)),Kf(j,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(z===H&&(z=Qf(z)),Kf(z,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&Kf(fe,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ce&&(le=Qf(le)),Kf(le,e.FORBID_CONTENTS,Ee)),ie&&(j["#text"]=!0),X&&Kf(j,["html","head","body"]),j.table&&(Kf(j,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Vf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Vf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,_=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(i){return console.warn("TrustedTypes policy "+o+" could not be created."),null}}(h,i)),null!==x&&"string"==typeof _&&(_=x.createHTML(""));Cf&&Cf(e),Se=e}},Ce=Kf({},["mi","mo","mn","ms","mtext"]),Ae=Kf({},["foreignobject","annotation-xml"]),Re=Kf({},["title","style","font","a","script"]),Pe=Kf({},[...Jf,...Zf,...ep]),Le=Kf({},[...tp,...np]),Ne=function(e){If(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){v(e)}},Fe=function(e,t){try{If(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){If(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!z[e])if(ee||te)try{Ne(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},Ie=function(e){let t=null,n=null;if(Z)e="<remove></remove>"+e;else{const t=jf(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===xe&&ve===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=x?x.createHTML(e):e;if(ve===ge)try{t=(new p).parseFromString(o,xe)}catch(a){}if(!t||!t.documentElement){t=E.createDocument(ve,"template",null);try{t.documentElement.innerHTML=be?_:o}catch(a){}}const i=t.body||t.documentElement;return e&&n&&i.insertBefore(r.createTextNode(n),i.childNodes[0]||null),ve===ge?T.call(t,X?"html":"body")[0]:X?t.documentElement:i},De=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)},Me=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},Ue=function(e,t,r){C[e]&&Nf(C[e],(e=>{e.call(n,t,r,Se)}))},ze=function(e){let t=null;if(Ue("beforeSanitizeElements",e,null),Me(e))return Ne(e),!0;const r=Ee(e.nodeName);if(Ue("uponSanitizeElement",e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&Wf(/<[/\w]/g,e.innerHTML)&&Wf(/<[/\w]/g,e.textContent))return Ne(e),!0;if(e.nodeType===xp)return Ne(e),!0;if(Y&&e.nodeType===_p&&Wf(/<[/\w]/g,e.data))return Ne(e),!0;if(!j[r]||W[r]){if(!W[r]&&Be(r)){if(B.tagNameCheck instanceof RegExp&&Wf(B.tagNameCheck,r))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(r))return!1}if(ie&&!le[r]){const t=w(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,b(e))}}}return Ne(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=Df(e.tagName),r=Df(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ge?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||Ce[r]):Boolean(Pe[n]):e.namespaceURI===he?t.namespaceURI===ge?"math"===n:t.namespaceURI===me?"math"===n&&Ae[r]:Boolean(Le[n]):e.namespaceURI===ge?!(t.namespaceURI===me&&!Ae[r])&&!(t.namespaceURI===he&&!Ce[r])&&!Le[n]&&(Re[n]||!Pe[n]):!("application/xhtml+xml"!==xe||!ye[e.namespaceURI]))}(e)?(Ne(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Wf(/<\/no(script|embed|frames)/i,e.innerHTML)?(Q&&e.nodeType===wp&&(t=e.textContent,Nf([A,R,P],(e=>{t=Uf(t,e," ")})),e.textContent!==t&&(If(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1):(Ne(e),!0)},He=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Oe))return!1;if($&&!V[t]&&Wf(L,t));else if(q&&Wf(N,t));else if(!z[t]||V[t]){if(!(Be(e)&&(B.tagNameCheck instanceof RegExp&&Wf(B.tagNameCheck,e)||B.tagNameCheck instanceof Function&&B.tagNameCheck(e))&&(B.attributeNameCheck instanceof RegExp&&Wf(B.attributeNameCheck,t)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(t))||"is"===t&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&Wf(B.tagNameCheck,n)||B.tagNameCheck instanceof Function&&B.tagNameCheck(n))))return!1}else if(fe[t]);else if(Wf(M,Uf(n,I,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==zf(n,"data:")||!ue[e]){if(K&&!Wf(F,Uf(n,I,"")));else if(n)return!1}else;return!0},Be=function(e){return"annotation-xml"!==e&&jf(e,D)},We=function(e){Ue("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:z};let o=t.length;for(;o--;){const a=t[o],{name:s,namespaceURI:l,value:c}=a,u=Ee(s);let d="value"===s?c:Hf(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Ue("uponSanitizeAttribute",e,r),d=r.attrValue,Y&&Wf(/((--!?|])>)|<\/(style|title)/i,d)){Fe(s,e);continue}if(r.forceKeepAttr)continue;if(Fe(s,e),!r.keepAttr)continue;if(!G&&Wf(/\/>/i,d)){Fe(s,e);continue}Q&&Nf([A,R,P],(e=>{d=Uf(d,e," ")}));const f=Ee(e.nodeName);if(He(f,u,d)){if(!oe||"id"!==u&&"name"!==u||(Fe(s,e),d="user-content-"+d),x&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(l);else switch(h.getAttributeType(f,u)){case"TrustedHTML":d=x.createHTML(d);break;case"TrustedScriptURL":d=x.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),Me(e)?Ne(e):Ff(n.removed)}catch(i){}}}Ue("afterSanitizeAttributes",e,null)},Ve=function e(t){let n=null;const r=De(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),ze(n)||(n.content instanceof a&&e(n.content),We(n));Ue("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,i=null,s=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw Vf("toString is not a function");if("string"!=typeof(e=e.toString()))throw Vf("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||ke(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ee(e.nodeName);if(!j[t]||W[t])throw Vf("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Ie("\x3c!----\x3e"),i=r.ownerDocument.importNode(e,!0),i.nodeType===yp&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!ee&&!Q&&!X&&-1===e.indexOf("<"))return x&&ne?x.createHTML(e):e;if(r=Ie(e),!r)return ee?null:ne?_:""}r&&Z&&Ne(r.firstChild);const u=De(ae?e:r);for(;s=u.nextNode();)ze(s)||(s.content instanceof a&&Ve(s.content),We(s));if(ae)return e;if(ee){if(te)for(c=O.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(z.shadowroot||z.shadowrootmode)&&(c=k.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Wf(gp,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Q&&Nf([A,R,P],(e=>{d=Uf(d,e," ")})),x&&ne?x.createHTML(d):d},n.setConfig=function(){ke(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Se=null,J=!1},n.isValidAttribute=function(e,t,n){Se||ke({});const r=Ee(e),o=Ee(t);return He(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&(C[e]=C[e]||[],If(C[e],t))},n.removeHook=function(e){if(C[e])return Ff(C[e])},n.removeHooks=function(e){C[e]&&(C[e]=[])},n.removeAllHooks=function(){C={}},n}();const Op=e=>{var t,n;const r=ai();return _t(Qc,{class:mc("md:grid md:grid-cols-2",e.verticalAlignment),children:[_t("div",{class:"flex flex-col gap-6 items-start",children:[_t("div",{children:[_t(gc,{class:"mb-2",heading1:!0,children:e.title}),_t(gc,{paragraph1:!0,children:e.description})]}),(null==(t=e.details)?void 0:t.length)?_t("div",{class:"flex flex-col p-6 rounded-lg border border-gray-200 shadow-sm gap-2",children:e.details.map(((e,t)=>_t("div",{class:"flex",children:[_t($c,{className:"text-primary-base mt-1 mr-2.5 text-sm",icon:pc}),e]},t)))}):null,_t("div",{class:"flex gap-1 items-start flex-wrap",children:[_t(Lc,{onClick:()=>{var t;r("/question"),null==(t=e.onAccept)||t.call(e)},children:e.acceptButtonLabel}),e.declineButtonLabel&&e.onDecline&&_t(Lc,{onClick:()=>{var t;null==(t=e.onDecline)||t.call(e),wf({event:ru.AssessmentSkipped,properties:{id:e.assessmentId,name:e.title}})},secondary:!0,children:e.declineButtonLabel})]}),(null==(n=e.terms)?void 0:n.length)?_t(gc,{terms:!0,children:e.terms.map(((e,t)=>_t("span",{dangerouslySetInnerHTML:{__html:Sp.sanitize(e,{ADD_ATTR:["target"]})}},t)))}):null]}),_t("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})]})},Tp=e=>{const{data:t,isError:n,isLoading:r,refetch:o}=yo({queryKey:["benefitsPlanGetSteps",e.assessmentId],queryFn:()=>bf({activityId:e.assessmentId})}),{id:i}=function(){let{matches:e}=Un(ti),t=e[e.length-1];return t?t.params:{}}(),a=null==t?void 0:t.steps.find((e=>e.id===i));return _t(Qc,{children:[r&&_t(Pc,{}),n&&_t(Gc,{retry:o}),!a||r||n?null:_t(qe,{children:[_t(gc,{class:"mb-2",heading1:!0,children:a.title}),_t(gc,{class:"mb-6",paragraph1:!0,children:a.description}),e.onComplete?_t(Lc,{onClick:e.onComplete,children:"Next"}):null]})]})};var kp=e=>"checkbox"===e.type,Cp=e=>e instanceof Date,Ap=e=>null==e;const Rp=e=>"object"==typeof e;var Pp=e=>!Ap(e)&&!Array.isArray(e)&&Rp(e)&&!Cp(e),Lp=e=>Pp(e)&&e.target?kp(e.target)?e.target.checked:e.target.value:e,Np=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Fp=e=>{const t=e.constructor&&e.constructor.prototype;return Pp(t)&&t.hasOwnProperty("isPrototypeOf")},Ip="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Dp(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(Ip&&(e instanceof Blob||e instanceof FileList)||!n&&!Pp(e))return e;if(t=n?[]:{},n||Fp(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Dp(e[n]));else t=e}return t}var Mp=e=>Array.isArray(e)?e.filter(Boolean):[],jp=e=>void 0===e,Up=(e,t,n)=>{if(!t||!Pp(e))return n;const r=Mp(t.split(/[,[\].]+?/)).reduce(((e,t)=>Ap(e)?e:e[t]),e);return jp(r)||r===e?jp(e[t])?n:e[t]:r},zp=e=>"boolean"==typeof e,Hp=e=>/^\w*$/.test(e),Bp=e=>Mp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Wp=(e,t,n)=>{let r=-1;const o=Hp(t)?[t]:Bp(t),i=o.length,a=i-1;for(;++r<i;){const t=o[r];let i=n;if(r!==a){const n=e[t];i=Pp(n)||Array.isArray(n)?n:isNaN(+o[r+1])?{}:[]}if("__proto__"===t)return;e[t]=i,e=e[t]}return e};const Vp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},qp={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},$p="max",Kp="min",Gp="maxLength",Qp="minLength",Yp="pattern",Xp="required",Jp="validate",Zp=Xr.createContext(null),eh=()=>Xr.useContext(Zp);var th=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const o=i;return t._proxyFormState[o]!==qp.all&&(t._proxyFormState[o]=!r||qp.all),n&&(n[o]=!0),e[o]}});return o},nh=e=>Pp(e)&&!Object.keys(e).length,rh=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return nh(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find((e=>t[e]===(!r||qp.all)))},oh=e=>Array.isArray(e)?e:[e],ih=(e,t,n)=>!e||!t||e===t||oh(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function ah(e){const t=Xr.useRef(e);t.current=e,Xr.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var sh=e=>"string"==typeof e,lh=(e,t,n,r,o)=>sh(e)?(r&&t.watch.add(e),Up(n,e,o)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),Up(n,e)))):(r&&(t.watchAll=!0),n);function ch(e){const t=eh(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a}=e||{},s=Xr.useRef(r);s.current=r,ah({disabled:i,subject:n._subjects.values,next:e=>{ih(s.current,e.name,a)&&c(Dp(lh(s.current,n._names,e.values||n._formValues,!1,o)))}});const[l,c]=Xr.useState(n._getWatch(r,o));return Xr.useEffect((()=>n._removeUnmounted())),l}function uh(e){const t=eh(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i}=e,a=Np(o._names.array,n),s=ch({control:o,name:n,defaultValue:Up(o._formValues,n,Up(o._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=eh(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,s]=Xr.useState(n._formState),l=Xr.useRef(!0),c=Xr.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=Xr.useRef(o);return u.current=o,ah({disabled:r,next:e=>l.current&&ih(u.current,e.name,i)&&rh(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),Xr.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),th(a,n,c.current,!1)}({control:o,name:n,exact:!0}),c=Xr.useRef(o.register(n,{...e.rules,value:s,...zp(e.disabled)?{disabled:e.disabled}:{}}));return Xr.useEffect((()=>{const e=o._options.shouldUnregister||i,t=(e,t)=>{const n=Up(o._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=Dp(Up(o._options.defaultValues,n));Wp(o._defaultValues,n,e),jp(Up(o._formValues,n))&&Wp(o._formValues,n,e)}return()=>{(a?e&&!o._state.action:e)?o.unregister(n):t(n,!1)}}),[n,o,a,i]),Xr.useEffect((()=>{Up(o._fields,n)&&o._updateDisabledField({disabled:r,fields:o._fields,name:n,value:Up(o._fields,n)._f.value})}),[r,n,o]),{field:{name:n,value:s,...zp(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:Xr.useCallback((e=>c.current.onChange({target:{value:Lp(e),name:n},type:Vp.CHANGE})),[n]),onBlur:Xr.useCallback((()=>c.current.onBlur({target:{value:Up(o._formValues,n),name:n},type:Vp.BLUR})),[n,o]),ref:Xr.useCallback((e=>{const t=Up(o._fields,n);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}),[o._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Up(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Up(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Up(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Up(l.validatingFields,n)},error:{enumerable:!0,get:()=>Up(l.errors,n)}})}}const dh=e=>e.render(uh(e));var fh=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},ph=e=>({isOnSubmit:!e||e===qp.onSubmit,isOnBlur:e===qp.onBlur,isOnChange:e===qp.onChange,isOnAll:e===qp.all,isOnTouch:e===qp.onTouched}),hh=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some((t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length)))));const mh=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const n=Up(e,o);if(n){const{_f:e,...i}=n;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],o)&&!r)return!0;if(e.ref&&t(e.ref,e.name)&&!r)return!0;if(mh(i,t))break}else if(Pp(i)&&mh(i,t))break}}};var gh=(e,t,n)=>{const r=oh(Up(e,n));return Wp(r,"root",t[n]),Wp(e,n,r),e},vh=e=>"file"===e.type,bh=e=>"function"==typeof e,yh=e=>{if(!Ip)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},wh=e=>sh(e),xh=e=>"radio"===e.type,_h=e=>e instanceof RegExp;const Eh={value:!1,isValid:!1},Sh={value:!0,isValid:!0};var Oh=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&&!jp(e[0].attributes.value)?jp(e[0].value)||""===e[0].value?Sh:{value:e[0].value,isValid:!0}:Sh:Eh}return Eh};const Th={isValid:!1,value:null};var kh=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),Th):Th;function Ch(e,t,n="validate"){if(wh(e)||Array.isArray(e)&&e.every(wh)||zp(e)&&!e)return{type:n,message:wh(e)?e:"",ref:t}}var Ah=e=>Pp(e)&&!_h(e)?e:{value:e,message:""},Rh=async(e,t,n,r,o)=>{const{ref:i,refs:a,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:p,name:h,valueAsNumber:m,mount:g,disabled:v}=e._f,b=Up(t,h);if(!g||v)return{};const y=a?a[0]:i,w=e=>{r&&y.reportValidity&&(y.setCustomValidity(zp(e)?"":e||""),y.reportValidity())},x={},_=xh(i),E=kp(i),S=_||E,O=(m||vh(i))&&jp(i.value)&&jp(b)||yh(i)&&""===i.value||""===b||Array.isArray(b)&&!b.length,T=fh.bind(null,h,n,x),k=(e,t,n,r=Gp,o=Qp)=>{const a=e?t:n;x[h]={type:e?r:o,message:a,ref:i,...T(e?r:o,a)}};if(o?!Array.isArray(b)||!b.length:s&&(!S&&(O||Ap(b))||zp(b)&&!b||E&&!Oh(a).isValid||_&&!kh(a).isValid)){const{value:e,message:t}=wh(s)?{value:!!s,message:s}:Ah(s);if(e&&(x[h]={type:Xp,message:t,ref:y,...T(Xp,t)},!n))return w(t),x}if(!(O||Ap(u)&&Ap(d))){let e,t;const r=Ah(d),o=Ah(u);if(Ap(b)||isNaN(b)){const n=i.valueAsDate||new Date(b),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==i.type,l="week"==i.type;sh(r.value)&&b&&(e=s?a(b)>a(r.value):l?b>r.value:n>new Date(r.value)),sh(o.value)&&b&&(t=s?a(b)<a(o.value):l?b<o.value:n<new Date(o.value))}else{const n=i.valueAsNumber||(b?+b:b);Ap(r.value)||(e=n>r.value),Ap(o.value)||(t=n<o.value)}if((e||t)&&(k(!!e,r.message,o.message,$p,Kp),!n))return w(x[h].message),x}if((l||c)&&!O&&(sh(b)||o&&Array.isArray(b))){const e=Ah(l),t=Ah(c),r=!Ap(e.value)&&b.length>+e.value,o=!Ap(t.value)&&b.length<+t.value;if((r||o)&&(k(r,e.message,t.message),!n))return w(x[h].message),x}if(f&&!O&&sh(b)){const{value:e,message:t}=Ah(f);if(_h(e)&&!b.match(e)&&(x[h]={type:Yp,message:t,ref:i,...T(Yp,t)},!n))return w(t),x}if(p)if(bh(p)){const e=Ch(await p(b,t),y);if(e&&(x[h]={...e,...T(Jp,e.message)},!n))return w(e.message),x}else if(Pp(p)){let e={};for(const r in p){if(!nh(e)&&!n)break;const o=Ch(await p[r](b,t),y,r);o&&(e={...o,...T(r,o.message)},w(o.message),n&&(x[h]=e))}if(!nh(e)&&(x[h]={ref:y,...e},!n))return x}return w(!0),x};function Ph(e,t){const n=Array.isArray(t)?t:Hp(t)?[t]:Bp(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=jp(e)?r++:e[t[r++]];return e}(e,n),o=n.length-1,i=n[o];return r&&delete r[i],0!==o&&(Pp(r)&&nh(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!jp(e[t]))return!1;return!0}(r))&&Ph(e,n.slice(0,-1)),e}var Lh=()=>{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=[]}}},Nh=e=>Ap(e)||!Rp(e);function Fh(e,t){if(Nh(e)||Nh(t))return e===t;if(Cp(e)&&Cp(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const o of n){const n=e[o];if(!r.includes(o))return!1;if("ref"!==o){const e=t[o];if(Cp(n)&&Cp(e)||Pp(n)&&Pp(e)||Array.isArray(n)&&Array.isArray(e)?!Fh(n,e):n!==e)return!1}}return!0}var Ih=e=>"select-multiple"===e.type,Dh=e=>xh(e)||kp(e),Mh=e=>yh(e)&&e.isConnected,jh=e=>{for(const t in e)if(bh(e[t]))return!0;return!1};function Uh(e,t={}){const n=Array.isArray(e);if(Pp(e)||n)for(const r in e)Array.isArray(e[r])||Pp(e[r])&&!jh(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Uh(e[r],t[r])):Ap(e[r])||(t[r]=!0);return t}function zh(e,t,n){const r=Array.isArray(e);if(Pp(e)||r)for(const o in e)Array.isArray(e[o])||Pp(e[o])&&!jh(e[o])?jp(t)||Nh(n[o])?n[o]=Array.isArray(e[o])?Uh(e[o],[]):{...Uh(e[o])}:zh(e[o],Ap(t)?{}:t[o],n[o]):n[o]=!Fh(e[o],t[o]);return n}var Hh=(e,t)=>zh(e,t,Uh(t)),Bh=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>jp(e)?e:t?""===e?NaN:e?+e:e:n&&sh(e)?new Date(e):r?r(e):e;function Wh(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return vh(t)?t.files:xh(t)?kh(e.refs).value:Ih(t)?[...t.selectedOptions].map((({value:e})=>e)):kp(t)?Oh(e.refs).value:Bh(jp(t.value)?e.ref.value:t.value,e)}var Vh=(e,t,n,r)=>{const o={};for(const i of e){const e=Up(t,i);e&&Wp(o,i,e._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},qh=e=>jp(e)?e:_h(e)?e.source:Pp(e)?_h(e.value)?e.value.source:e.value:e;const $h="AsyncFunction";var Kh=e=>!(e&&e.validate||!(bh(e.validate)&&e.validate.constructor.name===$h||Pp(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===$h)))),Gh=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function Qh(e,t,n){const r=Up(e,n);if(r||Hp(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const r=o.join("."),i=Up(t,r),a=Up(e,r);if(i&&!Array.isArray(i)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};o.pop()}return{name:n}}var Yh=(e,t,n,r,o)=>!o.isOnAll&&(!n&&o.isOnTouch?!(t||e):(n?r.isOnBlur:o.isOnBlur)?!e:!(n?r.isOnChange:o.isOnChange)||e),Xh=(e,t)=>!Mp(Up(e,t)).length&&Ph(e,t);const Jh={mode:qp.onSubmit,reValidateMode:qp.onChange,shouldFocusError:!0};function Zh(e={}){let t,n={...Jh,...e},r={submitCount:0,isDirty:!1,isLoading:bh(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},o={},i=(Pp(n.defaultValues)||Pp(n.values))&&Dp(n.defaultValues||n.values)||{},a=n.shouldUnregister?{}:Dp(i),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:Lh(),array:Lh(),state:Lh()},f=ph(n.mode),p=ph(n.reValidateMode),h=n.criteriaMode===qp.all,m=async e=>{if(u.isValid||e){const e=n.resolver?nh((await w()).errors):await x(o,!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?Wp(r.validatingFields,e,t):Ph(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!nh(r.validatingFields)}))},v=(e,t,n,r)=>{const l=Up(o,e);if(l){const o=Up(a,e,jp(n)?Up(i,e):n);jp(o)||r&&r.defaultChecked||t?Wp(a,e,t?o:Wh(l._f)):S(e,o),s.mount&&m()}},b=(e,t,n,a,s)=>{let l=!1,c=!1;const f={name:e},p=!!(Up(o,e)&&Up(o,e)._f&&Up(o,e)._f.disabled);if(!n||a){u.isDirty&&(c=r.isDirty,r.isDirty=f.isDirty=_(),l=c!==f.isDirty);const n=p||Fh(Up(i,e),t);c=!(p||!Up(r.dirtyFields,e)),n||p?Ph(r.dirtyFields,e):Wp(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,l=l||u.dirtyFields&&c!==!n}if(n){const t=Up(r.touchedFields,e);t||(Wp(r.touchedFields,e,n),f.touchedFields=r.touchedFields,l=l||u.touchedFields&&t!==n)}return l&&s&&d.state.next(f),l?f:{}},y=(n,o,i,a)=>{const s=Up(r.errors,n),l=u.isValid&&zp(o)&&r.isValid!==o;var f;if(e.delayError&&i?(f=()=>((e,t)=>{Wp(r.errors,e,t),d.state.next({errors:r.errors})})(n,i),t=e=>{clearTimeout(c),c=setTimeout(f,e)},t(e.delayError)):(clearTimeout(c),t=null,i?Wp(r.errors,n,i):Ph(r.errors,n)),(i?!Fh(s,i):s)||!nh(a)||l){const e={...a,...l&&zp(o)?{isValid:o}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}},w=async e=>{g(e,!0);const t=await n.resolver(a,n.context,Vh(e||l.mount,o,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},x=async(e,t,o={valid:!0})=>{for(const i in e){const s=e[i];if(s){const{_f:e,...c}=s;if(e){const c=l.array.has(e.name),d=s._f&&Kh(s._f);d&&u.validatingFields&&g([i],!0);const f=await Rh(s,a,h,n.shouldUseNativeValidation&&!t,c);if(d&&u.validatingFields&&g([i]),f[e.name]&&(o.valid=!1,t))break;!t&&(Up(f,e.name)?c?gh(r.errors,f,e.name):Wp(r.errors,e.name,f[e.name]):Ph(r.errors,e.name))}!nh(c)&&await x(c,t,o)}}return o.valid},_=(e,t)=>(e&&t&&Wp(a,e,t),!Fh(R(),i)),E=(e,t,n)=>lh(e,l,{...s.mount?a:jp(t)?i:sh(e)?{[e]:t}:t},n,t),S=(e,t,n={})=>{const r=Up(o,e);let i=t;if(r){const n=r._f;n&&(!n.disabled&&Wp(a,e,Bh(t,n)),i=yh(n.ref)&&Ap(t)?"":t,Ih(n.ref)?[...n.ref.options].forEach((e=>e.selected=i.includes(e.value))):n.refs?kp(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(i)?!!i.find((t=>t===e.value)):i===e.value))):n.refs[0]&&(n.refs[0].checked=!!i):n.refs.forEach((e=>e.checked=e.value===i)):vh(n.ref)?n.ref.value="":(n.ref.value=i,n.ref.type||d.values.next({name:e,values:{...a}})))}(n.shouldDirty||n.shouldTouch)&&b(e,i,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&A(e)},O=(e,t,n)=>{for(const r in t){const i=t[r],a=`${e}.${r}`,s=Up(o,a);!l.array.has(e)&&Nh(i)&&(!s||s._f)||Cp(i)?S(a,i,n):O(a,i,n)}},T=(e,t,n={})=>{const c=Up(o,e),f=l.array.has(e),p=Dp(t);Wp(a,e,p),f?(d.array.next({name:e,values:{...a}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:Hh(i,a),isDirty:_(e,p)})):!c||c._f||Ap(p)?S(e,p,n):O(e,p,n),hh(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...a}})},k=async i=>{s.mount=!0;const c=i.target;let v=c.name,_=!0;const E=Up(o,v),S=e=>{_=Number.isNaN(e)||Fh(e,Up(a,v,e))};if(E){let s,O;const T=c.type?Wh(E._f):Lp(i),k=i.type===Vp.BLUR||i.type===Vp.FOCUS_OUT,C=!Gh(E._f)&&!n.resolver&&!Up(r.errors,v)&&!E._f.deps||Yh(k,Up(r.touchedFields,v),r.isSubmitted,p,f),R=hh(v,l,k);Wp(a,v,T),k?(E._f.onBlur&&E._f.onBlur(i),t&&t(0)):E._f.onChange&&E._f.onChange(i);const P=b(v,T,k,!1),L=!nh(P)||R;if(!k&&d.values.next({name:v,type:i.type,values:{...a}}),C)return u.isValid&&("onBlur"===e.mode?k&&m():m()),L&&d.state.next({name:v,...R?{}:P});if(!k&&R&&d.state.next({...r}),n.resolver){const{errors:e}=await w([v]);if(S(T),_){const t=Qh(r.errors,o,v),n=Qh(e,o,t.name||v);s=n.error,v=n.name,O=nh(e)}}else g([v],!0),s=(await Rh(E,a,h,n.shouldUseNativeValidation))[v],g([v]),S(T),_&&(s?O=!1:u.isValid&&(O=await x(o,!0)));_&&(E._f.deps&&A(E._f.deps),y(v,O,s,P))}},C=(e,t)=>{if(Up(r.errors,t)&&e.focus)return e.focus(),1},A=async(e,t={})=>{let i,a;const s=oh(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await w(e);if(e)for(const n of e){const e=Up(t,n);e?Wp(r.errors,n,e):Ph(r.errors,n)}else r.errors=t;return t})(jp(e)?e:s);i=nh(t),a=e?!s.some((e=>Up(t,e))):i}else e?(a=(await Promise.all(s.map((async e=>{const t=Up(o,e);return await x(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&m()):a=i=await x(o);return d.state.next({...!sh(e)||u.isValid&&i!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:i}:{},errors:r.errors}),t.shouldFocus&&!a&&mh(o,C,e?s:l.mount),a},R=e=>{const t={...s.mount?a:i};return jp(e)?t:sh(e)?Up(t,e):e.map((e=>Up(t,e)))},P=(e,t)=>({invalid:!!Up((t||r).errors,e),isDirty:!!Up((t||r).dirtyFields,e),error:Up((t||r).errors,e),isValidating:!!Up(r.validatingFields,e),isTouched:!!Up((t||r).touchedFields,e)}),L=(e,t,n)=>{const i=(Up(o,e,{_f:{}})._f||{}).ref,a=Up(r.errors,e)||{},{ref:s,message:l,type:c,...u}=a;Wp(r.errors,e,{...u,...t,ref:i}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&i&&i.focus&&i.focus()},N=(e,t={})=>{for(const s of e?oh(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Ph(o,s),Ph(a,s)),!t.keepError&&Ph(r.errors,s),!t.keepDirty&&Ph(r.dirtyFields,s),!t.keepTouched&&Ph(r.touchedFields,s),!t.keepIsValidating&&Ph(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Ph(i,s);d.values.next({values:{...a}}),d.state.next({...r,...t.keepDirty?{isDirty:_()}:{}}),!t.keepIsValid&&m()},F=({disabled:e,name:t,field:n,fields:r,value:o})=>{if(zp(e)&&s.mount||e){const i=e?void 0:jp(o)?Wh(n?n._f:Up(r,t)._f):o;Wp(a,t,i),b(t,i,!1,!1,!0)}},I=(t,r={})=>{let a=Up(o,t);const c=zp(r.disabled)||zp(e.disabled);return Wp(o,t,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:t}},name:t,mount:!0,...r}}),l.mount.add(t),a?F({field:a,disabled:zp(r.disabled)?r.disabled:e.disabled,name:t,value:r.value}):v(t,!0,r.value),{...c?{disabled:r.disabled||e.disabled}:{},...n.progressive?{required:!!r.required,min:qh(r.min),max:qh(r.max),minLength:qh(r.minLength),maxLength:qh(r.maxLength),pattern:qh(r.pattern)}:{},name:t,onChange:k,onBlur:k,ref:e=>{if(e){I(t,r),a=Up(o,t);const n=jp(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,s=Dh(n),l=a._f.refs||[];if(s?l.find((e=>e===n)):n===a._f.ref)return;Wp(o,t,{_f:{...a._f,...s?{refs:[...l.filter(Mh),n,...Array.isArray(Up(i,t))?[{}]:[]],ref:{type:n.type,name:t}}:{ref:n}}}),v(t,!1,void 0,n)}else a=Up(o,t,{}),a._f&&(a._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!Np(l.array,t)||!s.action)&&l.unMount.add(t)}}},D=()=>n.shouldFocusError&&mh(o,C,l.mount),M=(e,t)=>async i=>{let s;i&&(i.preventDefault&&i.preventDefault(),i.persist&&i.persist());let l=Dp(a);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await w();r.errors=e,l=t}else await x(o);if(Ph(r.errors,"root"),nh(r.errors)){d.state.next({errors:{}});try{await e(l,i)}catch(c){s=c}}else t&&await t({...r.errors},i),D(),setTimeout(D);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:nh(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},j=(t,n={})=>{const c=t?Dp(t):i,f=Dp(c),p=nh(t),h=p?i:f;if(n.keepDefaultValues||(i=c),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)Up(r.dirtyFields,e)?Wp(h,e,Up(a,e)):T(e,Up(h,e));else{if(Ip&&jp(t))for(const e of l.mount){const t=Up(o,e);if(t&&t._f){const e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(yh(e)){const t=e.closest("form");if(t){t.reset();break}}}}o={}}a=e.shouldUnregister?n.keepDefaultValues?Dp(i):{}:Dp(h),d.array.next({values:{...h}}),d.values.next({values:{...h}})}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:!p&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||Fh(t,i))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:p?{}:n.keepDirtyValues?n.keepDefaultValues&&a?Hh(i,a):r.dirtyFields:n.keepDefaultValues&&t?Hh(i,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},U=(e,t)=>j(bh(e)?e(a):e,t);return{control:{register:I,unregister:N,getFieldState:P,handleSubmit:M,setError:L,_executeSchema:w,_getWatch:E,_getDirty:_,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=Up(o,e);t&&(t._f.refs?t._f.refs.every((e=>!Mh(e))):!Mh(t._f.ref))&&N(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,c=!0,f=!0)=>{if(l&&n){if(s.action=!0,f&&Array.isArray(Up(o,e))){const t=n(Up(o,e),l.argA,l.argB);c&&Wp(o,e,t)}if(f&&Array.isArray(Up(r.errors,e))){const t=n(Up(r.errors,e),l.argA,l.argB);c&&Wp(r.errors,e,t),Xh(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(Up(r.touchedFields,e))){const t=n(Up(r.touchedFields,e),l.argA,l.argB);c&&Wp(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=Hh(i,a)),d.state.next({name:e,isDirty:_(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Wp(a,e,t)},_updateDisabledField:F,_getFieldArray:t=>Mp(Up(s.mount?a:i,t,e.shouldUnregister?Up(i,t,[]):[])),_reset:j,_resetDefaultValues:()=>bh(n.defaultValues)&&n.defaultValues().then((e=>{U(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{zp(e)&&(d.state.next({disabled:e}),mh(o,((t,n)=>{const r=Up(o,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 o},get _formValues(){return a},get _state(){return s},set _state(e){s=e},get _defaultValues(){return i},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:A,register:I,handleSubmit:M,watch:(e,t)=>bh(e)?d.values.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:T,getValues:R,reset:U,resetField:(e,t={})=>{Up(o,e)&&(jp(t.defaultValue)?T(e,Dp(Up(i,e))):(T(e,t.defaultValue),Wp(i,e,Dp(t.defaultValue))),t.keepTouched||Ph(r.touchedFields,e),t.keepDirty||(Ph(r.dirtyFields,e),r.isDirty=t.defaultValue?_(e,Dp(Up(i,e))):_()),t.keepError||(Ph(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&oh(e).forEach((e=>Ph(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:N,setError:L,setFocus:(e,t={})=>{const n=Up(o,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:P}}function em(e,t){return e===t}function tm(e,t){return t}function nm(e,t,n){var r=n&&n.equalityFn||em,o=Ln(tm,e),i=o[0],a=o[1],s=function(e,t,n){var r=this,o=In(null),i=In(0),a=In(null),s=In([]),l=In(),c=In(),u=In(e),d=In(!0);u.current=e;var f="undefined"!=typeof window,p=!t&&0!==t&&f;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var h=!!(n=n||{}).leading,m=!("trailing"in n)||!!n.trailing,g="maxWait"in n,v="debounceOnServer"in n&&!!n.debounceOnServer,b=g?Math.max(+n.maxWait||0,t):null;Nn((function(){return d.current=!0,function(){d.current=!1}}),[]);var y=Mn((function(){var e=function(e){var t=s.current,n=l.current;return s.current=l.current=null,i.current=e,c.current=u.current.apply(n,t)},n=function(e,t){p&&cancelAnimationFrame(a.current),a.current=p?requestAnimationFrame(e):setTimeout(e,t)},y=function(e){if(!d.current)return!1;var n=e-o.current;return!o.current||n>=t||n<0||g&&e-i.current>=b},w=function(t){return a.current=null,m&&s.current?e(t):(s.current=l.current=null,c.current)},x=function e(){var r=Date.now();if(y(r))return w(r);if(d.current){var a=t-(r-o.current),s=g?Math.min(a,b-(r-i.current)):a;n(e,s)}},_=function(){if(f||v){var u=Date.now(),p=y(u);if(s.current=[].slice.call(arguments),l.current=r,o.current=u,p){if(!a.current&&d.current)return i.current=o.current,n(x,t),h?e(o.current):c.current;if(g)return n(x,t),e(o.current)}return a.current||n(x,t),c.current}};return _.cancel=function(){a.current&&(p?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,s.current=o.current=l.current=a.current=null},_.isPending=function(){return!!a.current},_.flush=function(){return a.current?w(Date.now()):c.current},_}),[h,g,t,b,m,p,f,v]);return y}(jn((function(e){return a(e)}),[a]),t,n),l=In(e);return r(l.current,e)||(s(e),l.current=e),r(i,e)&&s.cancel(),[i,s]}const rm="undefined"!=typeof document?Xr.useLayoutEffect:()=>{};const om=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},im=e=>{if(e&&"window"in e&&e.window===e)return e;return om(e).defaultView||window};function am(e){let t=null;return()=>(null==t&&(t=e()),t)}const sm=am((function(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t})),lm=am((function(){return e=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent));var e,t}));class cm{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function um(e){let t=In({isFocused:!1,observer:null});rm((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=In(null);return rm((()=>{t.current=e}),[e]),jn(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return jn((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,o=e=>{t.current.isFocused=!1,r.disabled&&n(new cm("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let dm=null,fm=new Set,pm=new Map,hm=!1,mm=!1;const gm={Tab:!0,Escape:!0};function vm(e,t){for(let n of fm)n(e,t)}function bm(e){hm=!0,function(e){return!(e.metaKey||!sm()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(dm="keyboard",vm("keyboard",e))}function ym(e){dm="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(hm=!0,vm("pointer",e))}function wm(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(lm()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(hm=!0,dm="virtual")}function xm(e){e.target!==window&&e.target!==document&&(hm||mm||(dm="virtual",vm("virtual",e)),hm=!1,mm=!1)}function _m(){hm=!1,mm=!0}function Em(e){if("undefined"==typeof window||pm.get(im(e)))return;const t=im(e),n=om(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){hm=!0,r.apply(this,arguments)},n.addEventListener("keydown",bm,!0),n.addEventListener("keyup",bm,!0),n.addEventListener("click",wm,!0),t.addEventListener("focus",xm,!0),t.addEventListener("blur",_m,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",ym,!0),n.addEventListener("pointermove",ym,!0),n.addEventListener("pointerup",ym,!0)):(n.addEventListener("mousedown",ym,!0),n.addEventListener("mousemove",ym,!0),n.addEventListener("mouseup",ym,!0)),t.addEventListener("beforeunload",(()=>{Sm(e)}),{once:!0}),pm.set(t,{focus:r})}const Sm=(e,t)=>{const n=im(e),r=om(e);t&&r.removeEventListener("DOMContentLoaded",t),pm.has(n)&&(n.HTMLElement.prototype.focus=pm.get(n).focus,r.removeEventListener("keydown",bm,!0),r.removeEventListener("keyup",bm,!0),r.removeEventListener("click",wm,!0),n.removeEventListener("focus",xm,!0),n.removeEventListener("blur",_m,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",ym,!0),r.removeEventListener("pointermove",ym,!0),r.removeEventListener("pointerup",ym,!0)):(r.removeEventListener("mousedown",ym,!0),r.removeEventListener("mousemove",ym,!0),r.removeEventListener("mouseup",ym,!0)),pm.delete(n))};function Om(){return"pointer"!==dm}"undefined"!=typeof document&&function(e){const t=om(e);let n;"loading"!==t.readyState?Em(e):(n=()=>{Em(e)},t.addEventListener("DOMContentLoaded",n))}();const Tm=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function km(e,t,n){Em(),Nn((()=>{let t=(t,r)=>{(function(e,t,n){var r;const o="undefined"!=typeof window?im(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,i="undefined"!=typeof window?im(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?im(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?im(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof o&&!Tm.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof i||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!gm[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(Om())};return fm.add(t),()=>{fm.delete(t)}}),t)}let Cm=!1,Am=0;function Rm(){Cm=!0,setTimeout((()=>{Cm=!1}),50)}function Pm(e){"touch"===e.pointerType&&Rm()}function Lm(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Pm):document.addEventListener("touchend",Rm),Am++,()=>{Am--,Am>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Pm):document.removeEventListener("touchend",Rm))}}function Nm(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,a]=Pn(!1),s=In({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Nn(Lm,[]);let{hoverProps:l,triggerHoverEnd:c}=Mn((()=>{let e=(e,r)=>{if(s.pointerType=r,o||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let i=e.currentTarget;s.target=i,t&&t({type:"hoverstart",target:i,pointerType:r}),n&&n(!0),a(!0)},i=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let o=e.currentTarget;r&&r({type:"hoverend",target:o,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{Cm&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||Cm||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!o&&e.currentTarget.contains(e.target)&&i(e,"mouse")}),{hoverProps:l,triggerHoverEnd:i}}),[t,n,r,o,s]);return Nn((()=>{o&&c({currentTarget:s.target},s.pointerType)}),[o]),{hoverProps:l,isHovered:i}}function Fm(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=In({isFocused:!1,isFocusVisible:t||Om()}),[i,a]=Pn(!1),[s,l]=Pn((()=>o.current.isFocused&&o.current.isFocusVisible)),c=jn((()=>l(o.current.isFocused&&o.current.isFocusVisible)),[]),u=jn((e=>{o.current.isFocused=e,a(e),c()}),[c]);km((e=>{o.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=jn((e=>{if(e.target===e.currentTarget)return r&&r(e),o&&o(!1),!0}),[r,o]),a=um(i),s=jn((e=>{const t=om(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),o&&o(!0),a(e))}),[o,n,a]);return{focusProps:{onFocus:!t&&(n||o||r)?s:void 0,onBlur:t||!r&&!o?void 0:i}}}({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=In({isFocusWithin:!1}),a=jn((e=>{i.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(e),o&&o(!1))}),[n,o,i]),s=um(a),l=jn((e=>{i.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),o&&o(!0),i.current.isFocusWithin=!0,s(e))}),[r,o,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:u});return{isFocused:i,isFocusVisible:s,focusProps:r?f:d}}var Im=Object.defineProperty,Dm=(e,t,n)=>(((e,t,n)=>{t in e?Im(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Mm=new class{constructor(){Dm(this,"current",this.detect()),Dm(this,"handoffState","pending"),Dm(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function jm(e){return Mm.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Um(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function zm(){let e=[],t={addEventListener:(e,n,r,o)=>(e.addEventListener(n,r,o),t.add((()=>e.removeEventListener(n,r,o)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return Um((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=zm();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Hm(){let[e]=Pn(zm);return Nn((()=>()=>e.dispose()),[e]),e}let Bm=(e,t)=>{Mm.isServer?Nn(e,t):Fn(e,t)};function Wm(e){let t=In(e);return Bm((()=>{t.current=e}),[e]),t}let Vm=function(e){let t=Wm(e);return Xr.useCallback(((...e)=>t.current(...e)),[t])};function qm({disabled:e=!1}={}){let t=In(null),[n,r]=Pn(!1),o=Hm(),i=Vm((()=>{t.current=null,r(!1),o.dispose()})),a=Vm((e=>{if(o.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=jm(e.currentTarget);o.addEventListener(n,"pointerup",i,!1),o.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),o.addEventListener(n,"pointercancel",i,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:i,onClick:i}}}let $m=ft(void 0);function Km(){return Un($m)}function Gm(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function Qm(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Qm),r}var Ym,Xm,Jm=((Xm=Jm||{})[Xm.None=0]="None",Xm[Xm.RenderStrategy=1]="RenderStrategy",Xm[Xm.Static=2]="Static",Xm),Zm=((Ym=Zm||{})[Ym.Unmount=0]="Unmount",Ym[Ym.Hidden=1]="Hidden",Ym);function eg({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:a,mergeRefs:s}){s=null!=s?s:ng;let l=rg(t,e);if(i)return tg(l,n,r,a,s);let c=null!=o?o:0;if(2&c){let{static:e=!1,...t}=l;if(e)return tg(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Qm(e?0:1,{0:()=>null,1:()=>tg({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return tg(l,n,r,a,s)}function tg(e,t={},n,r,o){let{as:i=n,children:a,refName:s="ref",...l}=sg(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,o]of Object.entries(t))"boolean"==typeof o&&(e=!0),!0===o&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(i===qe&&(Object.keys(ag(l)).length>0||Object.keys(ag(d)).length>0)){if(Ir(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Gm(t(...e),l.className):Gm(t,l.className),r=n?{className:n}:{},i=rg(u.props,ag(sg(l,["ref"])));for(let o in d)o in i&&delete d[o];return jr(u,Object.assign({},i,d,c,{ref:o(u.ref,c.ref)},r))}if(Object.keys(ag(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ag(l)).concat(Object.keys(ag(d))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return Be(i,Object.assign({},sg(l,["ref"]),i!==qe&&c,i!==qe&&d),u)}function ng(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function rg(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let o=n[r];for(let n of o){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function og(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)null==n||n(...e)}});return t}function ig(e){var t;return Object.assign(tr(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ag(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function sg(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function lg(e,t,n){let[r,o]=Pn(n),i=void 0!==e,a=In(i),s=In(!1),l=In(!1);return!i||a.current||s.current?!i&&a.current&&!l.current&&(l.current=!0,a.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[i?e:r,Vm((e=>(i||o(e),null==t?void 0:t(e))))]}function cg(e){let[t]=Pn(e);return t}function ug(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))fg(n,dg(t,r),o);return n}function dg(e,t){return e?e+"["+t+"]":t}function fg(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())fg(e,dg(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):ug(n,t,e)}var pg=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(pg||{});let hg=ig((function(e,t){var n;let{features:r=1,...o}=e;return eg({ourProps:{ref:t,"aria-hidden":!(2&~r)||(null!=(n=o["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}},theirProps:o,slot:{},defaultTag:"span",name:"Hidden"})})),mg=ft(null);function gg({children:e}){let t=Un(mg);if(!t)return Xr.createElement(Xr.Fragment,null,e);let{target:n}=t;return n?mr(Xr.createElement(Xr.Fragment,null,e),n):null}function vg({data:e,form:t,disabled:n,onReset:r,overrides:o}){let[i,a]=Pn(null),s=Hm();return Nn((()=>{if(r&&i)return s.addEventListener(i,"reset",r)}),[i,t,r]),Xr.createElement(gg,null,Xr.createElement(bg,{setForm:a,formId:t}),ug(e).map((([e,r])=>Xr.createElement(hg,{features:pg.Hidden,...ag({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...o})}))))}function bg({setForm:e,formId:t}){return Nn((()=>{if(t){let n=document.getElementById(t);n&&e(n)}}),[e,t]),t?null:Xr.createElement(hg,{features:pg.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}let yg=ft(void 0);function wg(){return Un(yg)}function xg(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}let _g=Symbol();function Eg(...e){let t=In(e);Nn((()=>{t.current=e}),[e]);let n=Vm((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[_g])))?void 0:n}let Sg=ft(null);function Og(){let e=Un(Sg);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Og),e}return e}function Tg(){var e,t;return null!=(t=null==(e=Un(Sg))?void 0:e.value)?t:void 0}Sg.displayName="DescriptionContext";let kg=ig((function(e,t){let n=Hn(),r=Km(),{id:o=`headlessui-description-${n}`,...i}=e,a=Og(),s=Eg(t);Bm((()=>a.register(o)),[o,a.register]);let l=r||!1,c=Mn((()=>({...a.slot,disabled:l})),[a.slot,l]);return eg({ourProps:{ref:s,...a.props,id:o},theirProps:i,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(kg,{});var Cg,Ag=((Cg=Ag||{}).Space=" ",Cg.Enter="Enter",Cg.Escape="Escape",Cg.Backspace="Backspace",Cg.Delete="Delete",Cg.ArrowLeft="ArrowLeft",Cg.ArrowUp="ArrowUp",Cg.ArrowRight="ArrowRight",Cg.ArrowDown="ArrowDown",Cg.Home="Home",Cg.End="End",Cg.PageUp="PageUp",Cg.PageDown="PageDown",Cg.Tab="Tab",Cg);let Rg=ft(null);function Pg(){let e=Un(Rg);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,Pg),e}return e}function Lg(e){var t,n,r;let o=null!=(n=null==(t=Un(Rg))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function Ng({inherit:e=!1}={}){let t=Lg(),[n,r]=Pn([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,Mn((()=>function(e){let t=Vm((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=Mn((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return Xr.createElement(Rg.Provider,{value:n},e.children)}),[r])]}Rg.displayName="LabelContext";let Fg=ig((function(e,t){var n;let r=Hn(),o=Pg(),i=wg(),a=Km(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=i?i:null==(n=o.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Eg(t);Bm((()=>o.register(s)),[s,o.register]);let f=Vm((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),o.props&&"onClick"in o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),p=a||!1,h=Mn((()=>({...o.slot,disabled:p})),[o.slot,p]),m={ref:d,...o.props,id:s,htmlFor:l,onClick:f};return c&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in u&&delete u.onClick),eg({ourProps:m,theirProps:u,slot:h,defaultTag:l?"label":"div",name:o.name||"Label"})})),Ig=Object.assign(Fg,{});function Dg(e,t,n){let r,o=n.initialDeps??[];return()=>{var i,a,s,l;let c;n.key&&(null==(i=n.debug)?void 0:i.call(n))&&(c=Date.now());const u=e();if(!(u.length!==o.length||u.some(((e,t)=>o[t]!==e))))return r;let d;if(o=u,n.key&&(null==(a=n.debug)?void 0:a.call(n))&&(d=Date.now()),r=t(...u),n.key&&(null==(s=n.debug)?void 0:s.call(n))){const e=Math.round(100*(Date.now()-c))/100,t=Math.round(100*(Date.now()-d))/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`\n font-size: .6rem;\n font-weight: bold;\n color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return null==(l=null==n?void 0:n.onChange)||l.call(n,r),r}}function Mg(e,t){if(void 0===e)throw new Error("Unexpected undefined");return e}const jg=(e,t,n)=>{let r;return function(...o){e.clearTimeout(r),r=e.setTimeout((()=>t.apply(this,o)),n)}},Ug=e=>e,zg=e=>{const t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1),r=[];for(let o=t;o<=n;o++)r.push(o);return r},Hg=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;const o=e=>{const{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(o(n.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const i=new r.ResizeObserver((e=>{const t=e[0];if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e)return void o({width:e.inlineSize,height:e.blockSize})}o(n.getBoundingClientRect())}));return i.observe(n,{box:"border-box"}),()=>{i.unobserve(n)}},Bg={passive:!0},Wg="undefined"==typeof window||"onscrollend"in window,Vg=(e,t)=>{const n=e.scrollElement;if(!n)return;const r=e.targetWindow;if(!r)return;let o=0;const i=Wg?()=>{}:jg(r,(()=>{t(o,!1)}),e.options.isScrollingResetDelay),a=r=>()=>{const{horizontal:a,isRtl:s}=e.options;o=a?n.scrollLeft*(s?-1:1):n.scrollTop,i(),t(o,r)},s=a(!0),l=a(!1);return l(),n.addEventListener("scroll",s,Bg),n.addEventListener("scrollend",l,Bg),()=>{n.removeEventListener("scroll",s),n.removeEventListener("scrollend",l)}},qg=(e,t,n)=>{if(null==t?void 0:t.borderBoxSize){const e=t.borderBoxSize[0];if(e){return Math.round(e[n.options.horizontal?"inlineSize":"blockSize"])}}return Math.round(e.getBoundingClientRect()[n.options.horizontal?"width":"height"])},$g=(e,{adjustments:t=0,behavior:n},r)=>{var o,i;const a=e+t;null==(i=null==(o=r.scrollElement)?void 0:o.scrollTo)||i.call(o,{[r.options.horizontal?"left":"top"]:a,behavior:n})};class Kg{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let e=null;const t=()=>e||(this.targetWindow&&this.targetWindow.ResizeObserver?e=new this.targetWindow.ResizeObserver((e=>{e.forEach((e=>{this._measureElement(e.target,e)}))})):null);return{disconnect:()=>{var e;return null==(e=t())?void 0:e.disconnect()},observe:e=>{var n;return null==(n=t())?void 0:n.observe(e,{box:"border-box"})},unobserve:e=>{var n;return null==(n=t())?void 0:n.unobserve(e)}}})(),this.range=null,this.setOptions=e=>{Object.entries(e).forEach((([t,n])=>{void 0===n&&delete e[t]})),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Ug,rangeExtractor:zg,onChange:()=>{},measureElement:qg,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,...e}},this.notify=e=>{var t,n;null==(n=(t=this.options).onChange)||n.call(t,this,e)},this.maybeNotify=Dg((()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null])),(e=>{this.notify(e)}),{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach((e=>e())),this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.observer.disconnect(),this.elementsCache.clear()},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var e;const t=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==t){if(this.cleanup(),!t)return void this.maybeNotify();this.scrollElement=t,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=(null==(e=this.scrollElement)?void 0:e.window)??null,this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,(e=>{this.scrollRect=e,this.maybeNotify()}))),this.unsubs.push(this.options.observeElementOffset(this,((e,t)=>{this.scrollAdjustments=0,this.scrollDirection=t?this.getScrollOffset()<e?"forward":"backward":null,this.scrollOffset=e,this.isScrolling=t,this.maybeNotify()})))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??("function"==typeof this.options.initialOffset?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(e,t)=>{const n=new Map,r=new Map;for(let o=t-1;o>=0;o--){const t=e[o];if(n.has(t.lane))continue;const i=r.get(t.lane);if(null==i||t.end>i.end?r.set(t.lane,t):t.end<i.end&&n.set(t.lane,!0),n.size===this.options.lanes)break}return r.size===this.options.lanes?Array.from(r.values()).sort(((e,t)=>e.end===t.end?e.index-t.index:e.end-t.end))[0]:void 0},this.getMeasurementOptions=Dg((()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled]),((e,t,n,r,o)=>(this.pendingMeasuredCacheIndexes=[],{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o})),{key:!1}),this.getMeasurements=Dg((()=>[this.getMeasurementOptions(),this.itemSizeCache]),(({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:o},i)=>{if(!o)return this.measurementsCache=[],this.itemSizeCache.clear(),[];0===this.measurementsCache.length&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach((e=>{this.itemSizeCache.set(e.key,e.size)})));const a=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const s=this.measurementsCache.slice(0,a);for(let l=a;l<e;l++){const e=r(l),o=1===this.options.lanes?s[l-1]:this.getFurthestMeasurement(s,l),a=o?o.end+this.options.gap:t+n,c=i.get(e),u="number"==typeof c?c:this.options.estimateSize(l),d=a+u,f=o?o.lane:l%this.options.lanes;s[l]={index:l,start:a,size:u,end:d,key:e,lane:f}}return this.measurementsCache=s,s}),{key:!1,debug:()=>this.options.debug}),this.calculateRange=Dg((()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()]),((e,t,n)=>this.range=e.length>0&&t>0?function({measurements:e,outerSize:t,scrollOffset:n}){const r=e.length-1,o=t=>e[t].start,i=Gg(0,r,o,n);let a=i;for(;a<r&&e[a].end<n+t;)a++;return{startIndex:i,endIndex:a}}({measurements:e,outerSize:t,scrollOffset:n}):null),{key:!1,debug:()=>this.options.debug}),this.getIndexes=Dg((()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count]),((e,t,n,r)=>null===t?[]:e({startIndex:t.startIndex,endIndex:t.endIndex,overscan:n,count:r})),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{const t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this._measureElement=(e,t)=>{const n=this.indexFromElement(e),r=this.measurementsCache[n];if(!r)return;const o=r.key,i=this.elementsCache.get(o);i!==e&&(i&&this.observer.unobserve(i),this.observer.observe(e),this.elementsCache.set(o,e)),e.isConnected&&this.resizeItem(n,this.options.measureElement(e,t,this))},this.resizeItem=(e,t)=>{const n=this.measurementsCache[e];if(!n)return;const r=t-(this.itemSizeCache.get(n.key)??n.size);0!==r&&((void 0!==this.shouldAdjustScrollPositionOnItemSizeChange?this.shouldAdjustScrollPositionOnItemSizeChange(n,r,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=r,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,t)),this.notify(!1))},this.measureElement=e=>{e?this._measureElement(e,void 0):this.elementsCache.forEach(((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))}))},this.getVirtualItems=Dg((()=>[this.getIndexes(),this.getMeasurements()]),((e,t)=>{const n=[];for(let r=0,o=e.length;r<o;r++){const o=t[e[r]];n.push(o)}return n}),{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{const t=this.getMeasurements();if(0!==t.length)return Mg(t[Gg(0,t.length-1,(e=>Mg(t[e]).start),e)])},this.getOffsetForAlignment=(e,t)=>{const n=this.getSize(),r=this.getScrollOffset();"auto"===t&&(t=e<=r?"start":e>=r+n?"end":"start"),"start"===t||("end"===t?e-=n:"center"===t&&(e-=n/2));const o=this.options.horizontal?"scrollWidth":"scrollHeight",i=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[o]:this.scrollElement[o]:0)-n;return Math.max(Math.min(i,e),0)},this.getOffsetForIndex=(e,t="auto")=>{e=Math.max(0,Math.min(e,this.options.count-1));const n=this.measurementsCache[e];if(!n)return;const r=this.getSize(),o=this.getScrollOffset();if("auto"===t)if(n.end>=o+r-this.options.scrollPaddingEnd)t="end";else{if(!(n.start<=o+this.options.scrollPaddingStart))return[o,t];t="start"}const i="end"===t?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(i,t),t]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{null!==this.scrollToIndexTimeoutId&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(e,{align:t="start",behavior:n}={})=>{this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(e,t),{adjustments:void 0,behavior:n})},this.scrollToIndex=(e,{align:t="auto",behavior:n}={})=>{e=Math.max(0,Math.min(e,this.options.count-1)),this.cancelScrollToIndex(),"smooth"===n&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const r=this.getOffsetForIndex(e,t);if(!r)return;const[o,i]=r;this._scrollToOffset(o,{adjustments:void 0,behavior:n}),"smooth"!==n&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout((()=>{this.scrollToIndexTimeoutId=null;if(this.elementsCache.has(this.options.getItemKey(e))){const[t]=Mg(this.getOffsetForIndex(e,i));((e,t)=>Math.abs(e-t)<1)(t,this.getScrollOffset())||this.scrollToIndex(e,{align:i,behavior:n})}else this.scrollToIndex(e,{align:i,behavior:n})})))},this.scrollBy=(e,{behavior:t}={})=>{this.cancelScrollToIndex(),"smooth"===t&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+e,{adjustments:void 0,behavior:t})},this.getTotalSize=()=>{var e;const t=this.getMeasurements();let n;return n=0===t.length?this.options.paddingStart:1===this.options.lanes?(null==(e=t[t.length-1])?void 0:e.end)??0:Math.max(...t.slice(-this.options.lanes).map((e=>e.end))),n-this.options.scrollMargin+this.options.paddingEnd},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const Gg=(e,t,n,r)=>{for(;e<=t;){const o=(e+t)/2|0,i=n(o);if(i<r)e=o+1;else{if(!(i>r))return o;t=o-1}}return e>0?e-1:0};const Qg="undefined"!=typeof document?Fn:Nn;function Yg(e){return function(e){const t=Ln((()=>({})),{})[1],n={...e,onChange:(n,r)=>{var o;r?Br(t):t(),null==(o=e.onChange)||o.call(e,n,r)}},[r]=Pn((()=>new Kg(n)));return r.setOptions(n),Nn((()=>r._didMount()),[]),Qg((()=>r._willUpdate())),r}({observeElementRect:Hg,observeElementOffset:Vg,scrollToFn:$g,...e})}function Xg(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function Jg(e=Xg){return jn(((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)}),[e])}function Zg(e,t=!1){let[n,r]=Ln((()=>({})),{}),o=Mn((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return Bm((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${o.width}px`,height:`${o.height}px`}:o}let ev=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function tv(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...o){let i=t[e].call(n,...o);i&&(n=i,r.forEach((e=>e())))}}}function nv(e){return Qr(e.subscribe,e.getSnapshot,e.getSnapshot)}let rv=new ev((()=>tv((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}})));function ov(e,t){let n=rv.get(t),r=Hn(),o=nv(n);if(Bm((()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)}),[n,e]),!e)return!1;let i=o.indexOf(r),a=o.length;return-1===i&&(i=a,a+=1),i===a-1}let iv=new Map,av=new Map;function sv(e){var t;let n=null!=(t=av.get(e))?t:0;return av.set(e,n+1),0!==n||(iv.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>lv(e)}function lv(e){var t;let n=null!=(t=av.get(e))?t:1;if(1===n?av.delete(e):av.set(e,n-1),1!==n)return;let r=iv.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,iv.delete(e))}function cv(e,{allowed:t,disallowed:n}={}){let r=ov(e,"inert-others");Bm((()=>{var e,o;if(!r)return;let i=zm();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&i.add(sv(t));let a=null!=(o=null==t?void 0:t())?o:[];for(let t of a){if(!t)continue;let e=jm(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some((t=>e.contains(t)))||i.add(sv(e));n=n.parentElement}}return i.dispose}),[r,t,n])}function uv(e,t,n){let r=Wm((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));Nn((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let o=zm();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),o.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),o.add((()=>e.disconnect()))}return()=>o.dispose()}),[t,r,e])}let dv=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),fv=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var pv,hv,mv,gv=((mv=gv||{})[mv.First=1]="First",mv[mv.Previous=2]="Previous",mv[mv.Next=4]="Next",mv[mv.Last=8]="Last",mv[mv.WrapAround=16]="WrapAround",mv[mv.NoScroll=32]="NoScroll",mv[mv.AutoFocus=64]="AutoFocus",mv),vv=((hv=vv||{})[hv.Error=0]="Error",hv[hv.Overflow=1]="Overflow",hv[hv.Success=2]="Success",hv[hv.Underflow=3]="Underflow",hv),bv=((pv=bv||{})[pv.Previous=-1]="Previous",pv[pv.Next=1]="Next",pv);function yv(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(dv)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var wv=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(wv||{});function xv(e,t=0){var n;return e!==(null==(n=jm(e))?void 0:n.body)&&Qm(t,{0:()=>e.matches(dv),1(){let t=e;for(;null!==t;){if(t.matches(dv))return!0;t=t.parentElement}return!1}})}var _v=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_v||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Ev=["textarea","input"].join(",");function Sv(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),o=t(n);if(null===r||null===o)return 0;let i=r.compareDocumentPosition(o);return i&Node.DOCUMENT_POSITION_FOLLOWING?-1:i&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Ov(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Sv(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(fv)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):yv(e);o.length>0&&a.length>1&&(a=a.filter((e=>!o.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:i.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==i.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Ev))&&n}(s)&&s.select(),2}function Tv(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function kv(){return Tv()||/Android/gi.test(window.navigator.userAgent)}function Cv(e,t,n,r){let o=Wm(n);Nn((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){o.current(e)}}),[e,t,r])}const Av=30;function Rv(e,t,n){let r=ov(e,"outside-click"),o=Wm(n),i=jn((function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let i=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of i)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!xv(r,wv.Loose)&&-1!==r.tabIndex&&e.preventDefault(),o.current(e,r)}),[o,t]),a=In(null);Cv(r,"pointerdown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),Cv(r,"mousedown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),Cv(r,"click",(e=>{kv()||a.current&&(i(e,(()=>a.current)),a.current=null)}),!0);let s=In({x:0,y:0});Cv(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),Cv(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=Av||Math.abs(n-s.current.y)>=Av))return i(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let o=Wm(n);Nn((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){o.current(e)}}),[e,t,r])}(r,"blur",(e=>i(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function Pv(...e){return Mn((()=>jm(...e)),[...e])}function Lv(e){let t=In({value:"",selectionStart:null,selectionEnd:null});return function(e,t,n,r){let o=Wm(n);Nn((()=>{function n(e){o.current(e)}return(e=null!=e?e:window).addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}),[e,t,r])}(e,"blur",(e=>{let n=e.target;n instanceof HTMLInputElement&&(t.current={value:n.value,selectionStart:n.selectionStart,selectionEnd:n.selectionEnd})})),Vm((()=>{if(document.activeElement!==e&&e instanceof HTMLInputElement&&e.isConnected){if(e.focus({preventScroll:!0}),e.value!==t.current.value)e.setSelectionRange(e.value.length,e.value.length);else{let{selectionStart:n,selectionEnd:r}=t.current;null!==n&&null!==r&&e.setSelectionRange(n,r)}t.current={value:"",selectionStart:null,selectionEnd:null}}}))}function Nv(e,t){return Mn((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function Fv(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=null!=(n=t.defaultView)?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function Iv(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Dv=tv((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:zm(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:Iv(n)},o=[Tv()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=zm();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let o=null!=(n=window.scrollY)?n:window.pageYOffset,i=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:o}=new URL(n.href),a=e.querySelector(o);a&&!r(a)&&(i=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;o!==t&&window.scrollTo(0,o),i&&i.isConnected&&(i.scrollIntoView({block:"nearest"}),i=null)}))}))}}:{},Fv(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];o.forEach((({before:e})=>null==e?void 0:e(r))),o.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Mv(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=nv(Dv),o=t?r.get(t):void 0,i=!!o&&o.count>0;Bm((()=>{if(t&&e)return Dv.dispatch("PUSH",t,n),()=>Dv.dispatch("POP",t,n)}),[e,t])}(ov(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function jv(e){return[e.screenX,e.screenY]}function Uv(){let e=In([-1,-1]);return{wasMoved(t){let n=jv(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=jv(t)}}}Dv.subscribe((()=>{let e=Dv.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Dv.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Dv.dispatch("TEARDOWN",n)}}));var zv=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(zv||{});function Hv(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Bv(e,t,n,r){let[o,i]=Pn(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=Pn(e),r=jn((e=>n(e)),[t]),o=jn((e=>n((t=>t|e))),[t]),i=jn((e=>(t&e)===e),[t]),a=jn((e=>n((t=>t&~e))),[n]),s=jn((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:a,toggleFlag:s}}(e&&o?3:0),c=In(!1),u=In(!1),d=Hm();return Bm((()=>{if(e)return n&&i(!0),t?(null==void 0||undefined.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:o}){let i=zm();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:o}),i.nextFrame((()=>{i.add(function(e,t){let n=function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(t),r=zm();if(!e)return r.dispose;let{transitionDuration:o,transitionDelay:i}=getComputedStyle(e),[a,s]=[o,i].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),l=a+s;if(0!==l){let t=r.group((r=>{let o=r.setTimeout((()=>{n(),r.dispose()}),l);r.addEventListener(e,"transitionrun",(i=>{i.target===i.currentTarget&&(o(),r.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(n(),t())})))}))}));r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(n(),r.dispose())}))}else n();return r.dispose}(e,r)),n()})),i.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){u.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||i(!1),null==void 0||undefined.call(r,n))}})):void(n&&s(3))}),[e,n,t,d]),e?[o,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Wv(e,t){let n=In([]),r=Vm(e);Nn((()=>{let e=[...n.current];for(let[o,i]of t.entries())if(n.current[o]!==i){let o=r(t,e);return n.current=t,o}}),[r,...t])}function Vv(e){return Kv(e)?(e.nodeName||"").toLowerCase():"#document"}function qv(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function $v(e){var t;return null==(t=(Kv(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Kv(e){return e instanceof Node||e instanceof qv(e).Node}function Gv(e){return e instanceof Element||e instanceof qv(e).Element}function Qv(e){return e instanceof HTMLElement||e instanceof qv(e).HTMLElement}function Yv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof qv(e).ShadowRoot)}function Xv(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=rb(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function Jv(e){return["table","td","th"].includes(Vv(e))}function Zv(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Ym){return!1}}))}function eb(e){const t=tb(),n=Gv(e)?rb(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function tb(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function nb(e){return["html","body","#document"].includes(Vv(e))}function rb(e){return qv(e).getComputedStyle(e)}function ob(e){return Gv(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ib(e){if("html"===Vv(e))return e;const t=e.assignedSlot||e.parentNode||Yv(e)&&e.host||$v(e);return Yv(t)?t.host:t}function ab(e){const t=ib(e);return nb(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qv(t)&&Xv(t)?t:ab(t)}function sb(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ab(e),i=o===(null==(r=e.ownerDocument)?void 0:r.body),a=qv(o);if(i){const e=lb(a);return t.concat(a,a.visualViewport||[],Xv(o)?o:[],e&&n?sb(e):[])}return t.concat(o,sb(o,[],n))}function lb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const cb=Math.min,ub=Math.max,db=Math.round,fb=Math.floor,pb=e=>({x:e,y:e}),hb={left:"right",right:"left",bottom:"top",top:"bottom"},mb={start:"end",end:"start"};function gb(e,t,n){return ub(e,cb(t,n))}function vb(e,t){return"function"==typeof e?e(t):e}function bb(e){return e.split("-")[0]}function yb(e){return e.split("-")[1]}function wb(e){return"x"===e?"y":"x"}function xb(e){return"y"===e?"height":"width"}function _b(e){return["top","bottom"].includes(bb(e))?"y":"x"}function Eb(e){return wb(_b(e))}function Sb(e){return e.replace(/start|end/g,(e=>mb[e]))}function Ob(e){return e.replace(/left|right|bottom|top/g,(e=>hb[e]))}function Tb(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function kb(e,t,n){let{reference:r,floating:o}=e;const i=_b(t),a=Eb(t),s=xb(a),l=bb(t),c="y"===i,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(yb(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Cb(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=vb(t,e),h=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[f?"floating"===d?"reference":"floating":d],g=Tb(await i.getClippingRect({element:null==(n=await(null==i.isElement?void 0:i.isElement(m)))||n?m:m.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:o,width:a.floating.width,height:a.floating.height}:a.reference,b=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),y=await(null==i.isElement?void 0:i.isElement(b))&&await(null==i.getScale?void 0:i.getScale(b))||{x:1,y:1},w=Tb(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:b,strategy:l}):v);return{top:(g.top-w.top+h.top)/y.y,bottom:(w.bottom-g.bottom+h.bottom)/y.y,left:(g.left-w.left+h.left)/y.x,right:(w.right-g.right+h.right)/y.x}}function Ab(e){const t=rb(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qv(e),i=o?e.offsetWidth:n,a=o?e.offsetHeight:r,s=db(n)!==i||db(r)!==a;return s&&(n=i,r=a),{width:n,height:r,$:s}}function Rb(e){return Gv(e)?e:e.contextElement}function Pb(e){const t=Rb(e);if(!Qv(t))return pb(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Ab(t);let a=(i?db(n.width):n.width)/r,s=(i?db(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Lb=pb(0);function Nb(e){const t=qv(e);return tb()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Lb}function Fb(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),i=Rb(e);let a=pb(1);t&&(r?Gv(r)&&(a=Pb(r)):a=Pb(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==qv(e))&&t}(i,n,r)?Nb(i):pb(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,d=o.height/a.y;if(i){const e=qv(i),t=r&&Gv(r)?qv(r):r;let n=e,o=lb(n);for(;o&&r&&t!==n;){const e=Pb(o),t=o.getBoundingClientRect(),r=rb(o),i=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=i,c+=a,n=qv(o),o=lb(n)}}return Tb({width:u,height:d,x:l,y:c})}function Ib(e){return Fb($v(e)).left+ob(e).scrollLeft}function Db(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=qv(e),r=$v(e),o=n.visualViewport;let i=r.clientWidth,a=r.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=tb();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=$v(e),n=ob(e),r=e.ownerDocument.body,o=ub(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ub(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Ib(e);const s=-n.scrollTop;return"rtl"===rb(r).direction&&(a+=ub(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:a,y:s}}($v(e));else if(Gv(t))r=function(e,t){const n=Fb(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Qv(e)?Pb(e):pb(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:r*i.y}}(t,n);else{const n=Nb(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Tb(r)}function Mb(e,t){const n=ib(e);return!(n===t||!Gv(n)||nb(n))&&("fixed"===rb(n).position||Mb(n,t))}function jb(e,t,n){const r=Qv(t),o=$v(t),i="fixed"===n,a=Fb(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=pb(0);if(r||!r&&!i)if(("body"!==Vv(t)||Xv(o))&&(s=ob(t)),r){const e=Fb(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&(l.x=Ib(o));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function Ub(e){return"static"===rb(e).position}function zb(e,t){return Qv(e)&&"fixed"!==rb(e).position?t?t(e):e.offsetParent:null}function Hb(e,t){const n=qv(e);if(Zv(e))return n;if(!Qv(e)){let t=ib(e);for(;t&&!nb(t);){if(Gv(t)&&!Ub(t))return t;t=ib(t)}return n}let r=zb(e,t);for(;r&&Jv(r)&&Ub(r);)r=zb(r,t);return r&&nb(r)&&Ub(r)&&!eb(r)?n:r||function(e){let t=ib(e);for(;Qv(t)&&!nb(t);){if(eb(t))return t;if(Zv(t))return null;t=ib(t)}return null}(e)||n}const Bb={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i="fixed"===o,a=$v(r),s=!!t&&Zv(t.floating);if(r===a||s&&i)return n;let l={scrollLeft:0,scrollTop:0},c=pb(1);const u=pb(0),d=Qv(r);if((d||!d&&!i)&&(("body"!==Vv(r)||Xv(a))&&(l=ob(r)),Qv(r))){const e=Fb(r);c=Pb(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:$v,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[..."clippingAncestors"===n?Zv(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=sb(e,[],!1).filter((e=>Gv(e)&&"body"!==Vv(e))),o=null;const i="fixed"===rb(e).position;let a=i?ib(e):e;for(;Gv(a)&&!nb(a);){const t=rb(a),n=eb(a);n||"fixed"!==t.position||(o=null),(i?!n&&!o:!n&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||Xv(a)&&!n&&Mb(e,a))?r=r.filter((e=>e!==a)):o=t,a=ib(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=i[0],s=i.reduce(((e,n)=>{const r=Db(t,n,o);return e.top=ub(r.top,e.top),e.right=cb(r.right,e.right),e.bottom=cb(r.bottom,e.bottom),e.left=ub(r.left,e.left),e}),Db(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Hb,getElementRects:async function(e){const t=this.getOffsetParent||Hb,n=this.getDimensions,r=await n(e.floating);return{reference:jb(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Ab(e);return{width:t,height:n}},getScale:Pb,isElement:Gv,isRTL:function(e){return"rtl"===rb(e).direction}};function Wb(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Rb(e),u=o||i?[...c?sb(c):[],...sb(t)]:[];u.forEach((e=>{o&&e.addEventListener("scroll",n,{passive:!0}),i&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const o=$v(e);function i(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-fb(u)+"px "+-fb(o.clientWidth-(c+d))+"px "+-fb(o.clientHeight-(u+f))+"px "+-fb(c)+"px",threshold:ub(0,cb(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:o.ownerDocument})}catch(Ym){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),i}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?Fb(e):null;return l&&function t(){const r=Fb(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{o&&e.removeEventListener("scroll",n),i&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Vb=Cb,qb=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,i=await(null==r.isRTL?void 0:r.isRTL(o.floating)),a=bb(n),s=yb(n),l="y"===_b(n),c=["left","top"].includes(a)?-1:1,u=i&&l?-1:1,d=vb(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},$b=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=vb(e,t),c={x:n,y:r},u=await Cb(t,l),d=_b(bb(o)),f=wb(d);let p=c[f],h=c[d];if(i){const e="y"===f?"bottom":"right";p=gb(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=gb(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},Kb=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=vb(e,t);if(null!=(n=i.arrow)&&n.alignmentOffset)return{};const v=bb(o),b=_b(s),y=bb(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(y||!m?[Ob(s)]:function(e){const t=Ob(e);return[Sb(e),t,Sb(t)]}(s)),_="none"!==h;!f&&_&&x.push(...function(e,t,n,r){const o=yb(e);let i=function(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:a;default:return[]}}(bb(e),"start"===n,r);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Sb)))),i}(s,m,h,w));const E=[s,...x],S=await Cb(t,g),O=[];let T=(null==(r=i.flip)?void 0:r.overflows)||[];if(u&&O.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=yb(e),o=Eb(e),i=xb(o);let a="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=Ob(a)),[a,Ob(a)]}(o,a,w);O.push(S[e[0]],S[e[1]])}if(T=[...T,{placement:o,overflows:O}],!O.every((e=>e<=0))){var k,C;const e=((null==(k=i.flip)?void 0:k.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:T},reset:{placement:t}};let n=null==(C=T.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:C.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=T.filter((e=>{if(_){const t=_b(e.placement);return t===b||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},Gb=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:o,elements:i}=t,{apply:a=()=>{},...s}=vb(e,t),l=await Cb(t,s),c=bb(n),u=yb(n),d="y"===_b(n),{width:f,height:p}=r.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==o.isRTL?void 0:o.isRTL(i.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=p-l.top-l.bottom,v=f-l.left-l.right,b=cb(p-l[h],g),y=cb(f-l[m],v),w=!t.middlewareData.shift;let x=b,_=y;if(d?_=u||w?cb(y,v):v:x=u||w?cb(b,g):g,w&&!u){const e=ub(l.left,0),t=ub(l.right,0),n=ub(l.top,0),r=ub(l.bottom,0);d?_=f-2*(0!==e||0!==t?e+t:ub(l.left,l.right)):x=p-2*(0!==n||0!==r?n+r:ub(l.top,l.bottom))}await a({...t,availableWidth:_,availableHeight:x});const E=await o.getDimensions(i.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}},Qb=(e,t,n)=>{const r=new Map,o={platform:Bb,...n},i={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:a}=n,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=kb(c,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:i}=s[m],{x:g,y:v,data:b,reset:y}=await i({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...b}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(f=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):y.rects),({x:u,y:d}=kb(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:p}})(e,t,{...o,platform:i})};var Yb="undefined"!=typeof document?Fn:Nn;function Xb(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!Xb(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!=r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Xb(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Jb(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Zb(e,t){const n=Jb(e);return Math.round(t*n)/n}function ey(e){const t=In(e);return Yb((()=>{t.current=e})),t}const ty=(e,t)=>({...qb(e),options:[e,t]}),ny=(e,t)=>({...$b(e),options:[e,t]}),ry=(e,t)=>({...Kb(e),options:[e,t]}),oy=(e,t)=>({...Gb(e),options:[e,t]}),iy={...Jr},ay=iy.useInsertionEffect||(e=>e());function sy(e){const t=In((()=>{}));return ay((()=>{t.current=e})),jn((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var ly="undefined"!=typeof document?Fn:Nn;let cy=!1,uy=0;const dy=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+uy++;const fy=iy.useId||function(){const[e,t]=Pn((()=>cy?dy():void 0));return ly((()=>{null==e&&t(dy())}),[]),Nn((()=>{cy=!0}),[]),e};const py=ft(null),hy=ft(null),my=()=>{var e;return(null==(e=Un(py))?void 0:e.id)||null},gy=()=>Un(hy),vy="data-floating-ui-focusable";function by(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=fy(),i=In({}),[a]=Pn((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=my(),[l,c]=Pn(r.reference),u=sy(((e,t,r)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=Mn((()=>({setPositionReference:c})),[]),f=Mn((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return Mn((()=>({dataRef:i,open:t,onOpenChange:u,elements:f,events:a,floatingId:o,refs:d})),[t,u,f,a,o,d])}function yy(e){void 0===e&&(e={});const{nodeId:t}=e,n=by({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,a]=Pn(null),[s,l]=Pn(null),c=(null==o?void 0:o.reference)||i,u=In(null),d=gy();ly((()=>{c&&(u.current=c)}),[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Pn({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Pn(r);Xb(f,r)||p(r);const[h,m]=Pn(null),[g,v]=Pn(null),b=jn((e=>{e!==_.current&&(_.current=e,m(e))}),[]),y=jn((e=>{e!==E.current&&(E.current=e,v(e))}),[]),w=i||h,x=a||g,_=In(null),E=In(null),S=In(u),O=null!=l,T=ey(l),k=ey(o),C=jn((()=>{if(!_.current||!E.current)return;const e={placement:t,strategy:n,middleware:f};k.current&&(e.platform=k.current),Qb(_.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};A.current&&!Xb(S.current,t)&&(S.current=t,Br((()=>{d(t)})))}))}),[f,t,n,k]);Yb((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const A=In(!1);Yb((()=>(A.current=!0,()=>{A.current=!1})),[]),Yb((()=>{if(w&&(_.current=w),x&&(E.current=x),w&&x){if(T.current)return T.current(w,x,C);C()}}),[w,x,C,T,O]);const R=Mn((()=>({reference:_,floating:E,setReference:b,setFloating:y})),[b,y]),P=Mn((()=>({reference:w,floating:x})),[w,x]),L=Mn((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=Zb(P.floating,u.x),r=Zb(P.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Jb(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,P.floating,u.x,u.y]);return Mn((()=>({...u,update:C,refs:R,elements:P,floatingStyles:L})),[u,C,R,P,L])}({...e,elements:{...o,...s&&{reference:s}}}),p=jn((e=>{const t=Gv(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)}),[f.refs]),h=jn((e=>{(Gv(e)||null===e)&&(u.current=e,a(e)),(Gv(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Gv(e))&&f.refs.setReference(e)}),[f.refs]),m=Mn((()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u})),[f.refs,h,p]),g=Mn((()=>({...f.elements,domReference:c})),[f.elements,c]),v=Mn((()=>({...f,...r,refs:m,elements:g,nodeId:t})),[f,m,g,t,r]);return ly((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),Mn((()=>({...f,context:v,refs:m,elements:g})),[f,m,g,v])}const wy="active",xy="selected";function _y(e,t,n){const r=new Map,o="item"===n;let i=e;if(o&&e){const{[wy]:t,[xy]:n,...r}=e;i=r}return{..."floating"===n&&{tabIndex:-1,[vy]:""},...i,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,i]=t;var a;o&&[wy,xy].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof i&&(null==(a=r.get(n))||a.push(i),e[n]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=r.get(n))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[n]=i)})),e):e),{})}}function Ey(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Sy=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:a=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=vb(e,t),{rects:d,elements:{floating:f}}=t,p=n.current[a],h=(null==c?void 0:c.current)||f,m=f.clientTop||h.clientTop,g=0!==f.clientTop,v=0!==h.clientTop,b=f===h;if(!p)return{};const y={...t,...await ty(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-i).fn(t)},w=await Vb(Ey(y,h.scrollHeight+m+f.clientTop),u),x=await Vb(y,{...u,elementContext:"reference"}),_=Math.max(0,w.top),E=y.y+_,S=Math.max(0,h.scrollHeight+(g&&b||v?2*m:0)-_-Math.max(0,w.bottom));return h.style.maxHeight=S+"px",h.scrollTop=_,o&&(h.offsetHeight<p.offsetHeight*Math.min(s,n.current.length-1)-1||x.top>=-l||x.bottom>=-l?Br((()=>o(!0))):Br((()=>o(!1)))),r&&(r.current=await Vb(Ey({...y,y:E},h.offsetHeight+m+f.clientTop),u)),{y:E}}});function Oy(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:a,onChange:s}=t,l=sy(s),c=In(!1),u=In(null),d=In(null);Nn((()=>{if(!o)return;function e(e){if(e.ctrlKey||!t||null==i.current)return;const n=e.deltaY,r=i.current.top>=-.5,o=i.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!o&&n<0?(e.preventDefault(),Br((()=>{l((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=i.current&&(d.current={...i.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[o,n,r.floating,i,a,l]);const f=Mn((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(i.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(i.current.bottom<-.5&&t<-1||i.current.top<-.5&&t>1)&&Br((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,i,a]);return Mn((()=>o?{floating:f}:{}),[o,f])}let Ty=ft({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ty.displayName="FloatingContext";let ky=ft(null);function Cy(e){return Mn((()=>e?"string"==typeof e?{to:e}:e:null),[e])}function Ay(){return Un(Ty).setReference}function Ry(){let{getFloatingProps:e,slot:t}=Un(Ty);return jn(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}function Py(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Un(ky),n=Mn((()=>e),[JSON.stringify(e,"undefined"!=typeof HTMLElement?(e,t)=>t instanceof HTMLElement?t.outerHTML:t:void 0)]);Bm((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=Un(Ty);return Mn((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}ky.displayName="PlacementContext";let Ly=4;function Ny({children:e,enabled:t=!0}){let[n,r]=Pn(null),[o,i]=Pn(0),a=In(null),[s,l]=Pn(null);!function(e){Bm((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==n&&null!==s,{to:u="bottom",gap:d=0,offset:f=0,padding:p=0,inner:h}=function(e,t){var n,r,o;let i=Fy(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=Fy(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=Fy(null!=(o=null==e?void 0:e.padding)?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:a,padding:s}}(n,s),[m,g="center"]=u.split(" ");Bm((()=>{c&&i(0)}),[c]);let{refs:v,floatingStyles:b,context:y}=yy({open:c,placement:"selection"===m?"center"===g?"bottom":`bottom-${g}`:"center"===g?`${m}`:`${m}-${g}`,strategy:"absolute",transform:!1,middleware:[ty({mainAxis:"selection"===m?0:d,crossAxis:f}),ny({padding:p}),"selection"!==m&&ry({padding:p}),"selection"===m&&h?Sy({...h,padding:p,overflowRef:a,offset:o,minItemsVisible:Ly,referenceOverflowThreshold:p,onFallbackChange(e){var t,n;if(!e)return;let r=y.elements.floating;if(!r)return;let o=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(Ly,r.childElementCount),s=0,l=0;for(let i of null!=(n=null==(t=y.elements.floating)?void 0:t.childNodes)?n:[])if(i instanceof HTMLElement){let e=i.offsetTop,t=e+i.clientHeight+o,n=r.scrollTop,c=n+r.clientHeight;if(!(e>=n&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,n)),s=i.clientHeight;break}a--}a>=1&&i((e=>{let t=s*a-l+o;return e>=t?e:t}))}}):null,oy({padding:p,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Wb}),[w=m,x=g]=y.placement.split("-");"selection"===m&&(w="selection");let _=Mn((()=>({anchor:[w,x].filter(Boolean).join(" ")})),[w,x]),E=Oy(y,{overflowRef:a,onChange:i}),{getReferenceProps:S,getFloatingProps:O}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),o=jn((t=>_y(t,e,"reference")),t),i=jn((t=>_y(t,e,"floating")),n),a=jn((t=>_y(t,e,"item")),r);return Mn((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}([E]),T=Vm((e=>{l(e),v.setFloating(e)}));return Be(ky.Provider,{value:r},Be(Ty.Provider,{value:{setFloating:T,setReference:v.setReference,styles:b,getReferenceProps:S,getFloatingProps:O,slot:_}},e))}function Fy(e,t,n=void 0){let r=Hm(),o=Vm(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let o=Dy(e,t);return[o,n=>{let i=Iy(e);{let a=i.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of i.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=Dy(e,t);o!==c&&(n(c),o=c)}))}return r.dispose}]}return[n,null]})),i=Mn((()=>o(e,t)[0]),[e,t]),[a=i,s]=Pn();return Bm((()=>{let[n,r]=o(e,t);if(s(n),r)return r(s)}),[e,t]),a}function Iy(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...Iy(r)]:[n]}return[]}function Dy(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function My({children:e,freeze:t}){let n=jy(t,e);return Xr.createElement(Xr.Fragment,null,n)}function jy(e,t){let[n,r]=Pn(t);return!e&&n!==t&&r(t),e?n:t}let Uy=ft(null);Uy.displayName="OpenClosedContext";var zy=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(zy||{});function Hy(){return Un(Uy)}function By({value:e,children:t}){return Xr.createElement(Uy.Provider,{value:e},t)}let Wy=[];!function(e){function t(){"loading"!==document.readyState&&(e(),document.removeEventListener("DOMContentLoaded",t))}"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("DOMContentLoaded",t),t())}((()=>{function e(e){if(!(e.target instanceof HTMLElement)||e.target===document.body||Wy[0]===e.target)return;let t=e.target;t=t.closest(dv),Wy.unshift(null!=t?t:e.target),Wy=Wy.filter((e=>null!=e&&e.isConnected)),Wy.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})}));var Vy,qy=((Vy=qy||{})[Vy.First=0]="First",Vy[Vy.Previous=1]="Previous",Vy[Vy.Next=2]="Next",Vy[Vy.Last=3]="Last",Vy[Vy.Specific=4]="Specific",Vy[Vy.Nothing=5]="Nothing",Vy);function $y(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===o&&(o=n.length);for(let e=o-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=o+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}var Ky,Gy=((Ky=Gy||{})[Ky.Left=0]="Left",Ky[Ky.Right=2]="Right",Ky);function Qy(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Jr&&Jr.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=Pn(Mm.isHandoffComplete);return t&&!1===Mm.isHandoffComplete&&n(!1),Nn((()=>{!0!==t&&n(!0)}),[t]),Nn((()=>Mm.handoff()),[]),!e&&t}let Yy=ft(!1);function Xy(e){let t=Un(Yy),n=Un(tw),r=Pv(e),[o,i]=Pn((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(Mm.isServer)return null;let o=null==r?void 0:r.getElementById("headlessui-portal-root");if(o)return o;if(null===r)return null;let i=r.createElement("div");return i.setAttribute("id","headlessui-portal-root"),r.body.appendChild(i)}));return Nn((()=>{null!==o&&(null!=r&&r.body.contains(o)||null==r||r.body.appendChild(o))}),[o,r]),Nn((()=>{t||null!==n&&i(n.current)}),[n,i,t]),o}let Jy=qe,Zy=ig((function(e,t){let n=e,r=In(null),o=Eg(function(e,t=!0){return Object.assign(e,{[_g]:t})}((e=>{r.current=e})),t),i=Pv(r),a=Xy(r),[s]=Pn((()=>{var e;return Mm.isServer?null:null!=(e=null==i?void 0:i.createElement("div"))?e:null})),l=Un(nw),c=Qy();return Bm((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),Bm((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=Vm(e),n=In(!1);Nn((()=>(n.current=!1,()=>{n.current=!0,Um((()=>{n.current&&t()}))})),[t])}((()=>{var e;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))})),c&&a&&s?mr(eg({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:Jy,name:"Portal"}),s):null}));let ew=qe,tw=ft(null);let nw=ft(null),rw=ig((function(e,t){let n=Eg(t),{enabled:r=!0,...o}=e;return r?Xr.createElement(Zy,{...o,ref:n}):eg({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:Jy,name:"Portal"})})),ow=ig((function(e,t){let{target:n,...r}=e,o={ref:Eg(t)};return Xr.createElement(tw.Provider,{value:n},eg({ourProps:o,theirProps:r,defaultTag:ew,name:"Popover.Group"}))})),iw=Object.assign(rw,{Group:ow});var aw,sw={},lw=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(lw||{}),cw=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(cw||{}),uw=(e=>(e[e.Pointer=0]="Pointer",e[e.Focus=1]="Focus",e[e.Other=2]="Other",e))(uw||{}),dw=((aw=dw||{})[aw.OpenCombobox=0]="OpenCombobox",aw[aw.CloseCombobox=1]="CloseCombobox",aw[aw.GoToOption=2]="GoToOption",aw[aw.SetTyping=3]="SetTyping",aw[aw.RegisterOption=4]="RegisterOption",aw[aw.UnregisterOption=5]="UnregisterOption",aw[aw.SetActivationTrigger=6]="SetActivationTrigger",aw[aw.UpdateVirtualConfiguration=7]="UpdateVirtualConfiguration",aw[aw.SetInputElement=8]="SetInputElement",aw[aw.SetButtonElement=9]="SetButtonElement",aw[aw.SetOptionsElement=10]="SetOptionsElement",aw);function fw(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=t(e.options.slice()),o=r.length>0&&null!==r[0].dataRef.current.order?r.sort(((e,t)=>e.dataRef.current.order-t.dataRef.current.order)):Sv(r,(e=>e.dataRef.current.domRef.current)),i=n?o.indexOf(n):null;return-1===i&&(i=null),{options:o,activeOptionIndex:i}}let pw={1(e){var t;return null!=(t=e.dataRef.current)&&t.disabled||1===e.comboboxState?e:{...e,activeOptionIndex:null,comboboxState:1,isTyping:!1,activationTrigger:2,__demoMode:!1}},0(e){var t,n;if(null!=(t=e.dataRef.current)&&t.disabled||0===e.comboboxState)return e;if(null!=(n=e.dataRef.current)&&n.value){let t=e.dataRef.current.calculateIndex(e.dataRef.current.value);if(-1!==t)return{...e,activeOptionIndex:t,comboboxState:0,__demoMode:!1}}return{...e,comboboxState:0,__demoMode:!1}},3:(e,t)=>e.isTyping===t.isTyping?e:{...e,isTyping:t.isTyping},2(e,t){var n,r,o,i;if(null!=(n=e.dataRef.current)&&n.disabled||e.optionsElement&&(null==(r=e.dataRef.current)||!r.optionsPropsRef.current.static)&&1===e.comboboxState)return e;if(e.virtual){let{options:n,disabled:r}=e.virtual,i=t.focus===qy.Specific?t.idx:$y(t,{resolveItems:()=>n,resolveActiveIndex:()=>{var t,o;return null!=(o=null!=(t=e.activeOptionIndex)?t:n.findIndex((e=>!r(e))))?o:null},resolveDisabled:r,resolveId(){throw new Error("Function not implemented.")}}),a=null!=(o=t.trigger)?o:2;return e.activeOptionIndex===i&&e.activationTrigger===a?e:{...e,activeOptionIndex:i,activationTrigger:a,isTyping:!1,__demoMode:!1}}let a=fw(e);if(null===a.activeOptionIndex){let e=a.options.findIndex((e=>!e.dataRef.current.disabled));-1!==e&&(a.activeOptionIndex=e)}let s=t.focus===qy.Specific?t.idx:$y(t,{resolveItems:()=>a.options,resolveActiveIndex:()=>a.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled}),l=null!=(i=t.trigger)?i:2;return e.activeOptionIndex===s&&e.activationTrigger===l?e:{...e,...a,isTyping:!1,activeOptionIndex:s,activationTrigger:l,__demoMode:!1}},4:(e,t)=>{var n,r,o;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:[...e.options,t.payload]};let i=t.payload,a=fw(e,(e=>(e.push(i),e)));null===e.activeOptionIndex&&null!=(r=e.dataRef.current)&&r.isSelected(t.payload.dataRef.current.value)&&(a.activeOptionIndex=a.options.indexOf(i));let s={...e,...a,activationTrigger:2};return null!=(o=e.dataRef.current)&&o.__demoMode&&void 0===e.dataRef.current.value&&(s.activeOptionIndex=0),s},5:(e,t)=>{var n;if(null!=(n=e.dataRef.current)&&n.virtual)return{...e,options:e.options.filter((e=>e.id!==t.id))};let r=fw(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...r,activationTrigger:2}},6:(e,t)=>e.activationTrigger===t.trigger?e:{...e,activationTrigger:t.trigger},7:(e,t)=>{var n,r;if(null===e.virtual)return{...e,virtual:{options:t.options,disabled:null!=(n=t.disabled)?n:()=>!1}};if(e.virtual.options===t.options&&e.virtual.disabled===t.disabled)return e;let o=e.activeOptionIndex;if(null!==e.activeOptionIndex){let n=t.options.indexOf(e.virtual.options[e.activeOptionIndex]);o=-1!==n?n:null}return{...e,activeOptionIndex:o,virtual:{options:t.options,disabled:null!=(r=t.disabled)?r:()=>!1}}},8:(e,t)=>e.inputElement===t.element?e:{...e,inputElement:t.element},9:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},10:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},hw=ft(null);function mw(e){let t=Un(hw);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,mw),t}return t}hw.displayName="ComboboxActionsContext";let gw=ft(null);function vw(e){let t=yw("VirtualProvider"),{options:n}=t.virtual,[r,o]=Mn((()=>{let e=t.optionsElement;if(!e)return[0,0];let n=window.getComputedStyle(e);return[parseFloat(n.paddingBlockStart||n.paddingTop),parseFloat(n.paddingBlockEnd||n.paddingBottom)]}),[t.optionsElement]),i=Yg({enabled:0!==n.length,scrollPaddingStart:r,scrollPaddingEnd:o,count:n.length,estimateSize:()=>40,getScrollElement:()=>t.optionsElement,overscan:12}),[a,s]=Pn(0);Bm((()=>{s((e=>e+1))}),[n]);let l=i.getVirtualItems();return 0===l.length?null:Xr.createElement(gw.Provider,{value:i},Xr.createElement("div",{style:{position:"relative",width:"100%",height:`${i.getTotalSize()}px`},ref:e=>{if(e){if("undefined"!=typeof process&&void 0!==sw.JEST_WORKER_ID||0===t.activationTrigger)return;null!==t.activeOptionIndex&&n.length>t.activeOptionIndex&&i.scrollToIndex(t.activeOptionIndex)}}},l.map((t=>{var r;return Xr.createElement(qe,{key:t.key},Xr.cloneElement(null==(r=e.children)?void 0:r.call(e,{...e.slot,option:n[t.index]}),{key:`${a}-${t.key}`,"data-index":t.index,"aria-setsize":n.length,"aria-posinset":t.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${t.start}px)`,overflowAnchor:"none"}}))}))))}let bw=ft(null);function yw(e){let t=Un(bw);if(null===t){let t=new Error(`<${e} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,yw),t}return t}function ww(e,t){return Qm(t.type,pw,e,t)}bw.displayName="ComboboxDataContext";let xw=qe;let _w=Jm.RenderStrategy|Jm.Static;let Ew=ig((function(e,t){var n,r;let o=Km(),{value:i,defaultValue:a,onChange:s,form:l,name:c,by:u,disabled:d=o||!1,onClose:f,__demoMode:p=!1,multiple:h=!1,immediate:m=!1,virtual:g=null,nullable:v,...b}=e,y=cg(a),[w=(h?[]:void 0),x]=lg(i,s,y),[_,E]=Ln(ww,{dataRef:{current:null},comboboxState:p?0:1,isTyping:!1,options:[],virtual:g?{options:g.options,disabled:null!=(n=g.disabled)?n:()=>!1}:null,activeOptionIndex:null,activationTrigger:2,inputElement:null,buttonElement:null,optionsElement:null,__demoMode:p}),S=In(!1),O=In({static:!1,hold:!1}),T=Jg(u),k=Vm((e=>g?null===u?g.options.indexOf(e):g.options.findIndex((t=>T(t,e))):_.options.findIndex((t=>T(t.dataRef.current.value,e))))),C=jn((e=>Qm(R.mode,{1:()=>w.some((t=>T(t,e))),0:()=>T(w,e)})),[w]),A=Vm((e=>_.activeOptionIndex===k(e))),R=Mn((()=>({..._,immediate:m,optionsPropsRef:O,value:w,defaultValue:y,disabled:d,mode:h?1:0,virtual:g?_.virtual:null,get activeOptionIndex(){if(S.current&&null===_.activeOptionIndex&&(g?g.options.length>0:_.options.length>0)){if(g){let e=g.options.findIndex((e=>{var t,n;return!(null!=(n=null==(t=g.disabled)?void 0:t.call(g,e))&&n)}));if(-1!==e)return e}let e=_.options.findIndex((e=>!e.dataRef.current.disabled));if(-1!==e)return e}return _.activeOptionIndex},calculateIndex:k,compare:T,isSelected:C,isActive:A})),[w,y,d,h,p,_,g]);Bm((()=>{var e;g&&E({type:7,options:g.options,disabled:null!=(e=g.disabled)?e:null})}),[g,null==g?void 0:g.options,null==g?void 0:g.disabled]),Bm((()=>{_.dataRef.current=R}),[R]),Rv(0===R.comboboxState,[R.buttonElement,R.inputElement,R.optionsElement],(()=>W.closeCombobox()));let P=Mn((()=>{var e,t,n;return{open:0===R.comboboxState,disabled:d,activeIndex:R.activeOptionIndex,activeOption:null===R.activeOptionIndex?null:R.virtual?R.virtual.options[null!=(e=R.activeOptionIndex)?e:0]:null!=(n=null==(t=R.options[R.activeOptionIndex])?void 0:t.dataRef.current.value)?n:null,value:w}}),[R,d,w]),L=Vm((()=>{if(null!==R.activeOptionIndex){if(W.setIsTyping(!1),R.virtual)j(R.virtual.options[R.activeOptionIndex]);else{let{dataRef:e}=R.options[R.activeOptionIndex];j(e.current.value)}W.goToOption(qy.Specific,R.activeOptionIndex)}})),N=Vm((()=>{E({type:0}),S.current=!0})),F=Vm((()=>{E({type:1}),S.current=!1,null==f||f()})),I=Vm((e=>{E({type:3,isTyping:e})})),D=Vm(((e,t,n)=>(S.current=!1,e===qy.Specific?E({type:2,focus:qy.Specific,idx:t,trigger:n}):E({type:2,focus:e,trigger:n})))),M=Vm(((e,t)=>(E({type:4,payload:{id:e,dataRef:t}}),()=>{R.isActive(t.current.value)&&(S.current=!0),E({type:5,id:e})}))),j=Vm((e=>Qm(R.mode,{0:()=>null==x?void 0:x(e),1(){let t=R.value.slice(),n=t.findIndex((t=>T(t,e)));return-1===n?t.push(e):t.splice(n,1),null==x?void 0:x(t)}}))),U=Vm((e=>{E({type:6,trigger:e})})),z=Vm((e=>{E({type:8,element:e})})),H=Vm((e=>{E({type:9,element:e})})),B=Vm((e=>{E({type:10,element:e})})),W=Mn((()=>({onChange:j,registerOption:M,goToOption:D,setIsTyping:I,closeCombobox:F,openCombobox:N,setActivationTrigger:U,selectActiveOption:L,setInputElement:z,setButtonElement:H,setOptionsElement:B})),[]),[V,q]=Ng(),$=null===t?{}:{ref:t},K=jn((()=>{if(void 0!==y)return null==x?void 0:x(y)}),[x,y]);return Xr.createElement(q,{value:V,props:{htmlFor:null==(r=R.inputElement)?void 0:r.id},slot:{open:0===R.comboboxState,disabled:d}},Xr.createElement(Ny,null,Xr.createElement(hw.Provider,{value:W},Xr.createElement(bw.Provider,{value:R},Xr.createElement(By,{value:Qm(R.comboboxState,{0:zy.Open,1:zy.Closed})},null!=c&&Xr.createElement(vg,{disabled:d,data:null!=w?{[c]:w}:{},form:l,onReset:K}),eg({ourProps:$,theirProps:b,slot:P,defaultTag:xw,name:"Combobox"}))))))})),Sw=ig((function(e,t){var n;let r=yw("Combobox.Button"),o=mw("Combobox.Button"),i=Eg(t,o.setButtonElement),a=Hn(),{id:s=`headlessui-combobox-button-${a}`,disabled:l=r.disabled||!1,autoFocus:c=!1,...u}=e,d=Lv(r.inputElement),f=Vm((e=>{switch(e.key){case Ag.Space:case Ag.Enter:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&Br((()=>o.openCombobox())),void d();case Ag.ArrowDown:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(Br((()=>o.openCombobox())),r.value||o.goToOption(qy.First)),void d();case Ag.ArrowUp:return e.preventDefault(),e.stopPropagation(),1===r.comboboxState&&(Br((()=>o.openCombobox())),r.value||o.goToOption(qy.Last)),void d();case Ag.Escape:if(0!==r.comboboxState)return;return e.preventDefault(),r.optionsElement&&!r.optionsPropsRef.current.static&&e.stopPropagation(),Br((()=>o.closeCombobox())),void d();default:return}})),p=Vm((e=>{e.preventDefault(),!xg(e.currentTarget)&&(e.button===Gy.Left&&(0===r.comboboxState?o.closeCombobox():o.openCombobox()),d())})),h=Lg([s]),{isFocusVisible:m,focusProps:g}=Fm({autoFocus:c}),{isHovered:v,hoverProps:b}=Nm({isDisabled:l}),{pressed:y,pressProps:w}=qm({disabled:l}),x=Mn((()=>({open:0===r.comboboxState,active:y||0===r.comboboxState,disabled:l,value:r.value,hover:v,focus:m})),[r,v,m,y,l]);return eg({ourProps:og({ref:i,id:s,type:Nv(e,r.buttonElement),tabIndex:-1,"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsElement)?void 0:n.id,"aria-expanded":0===r.comboboxState,"aria-labelledby":h,disabled:l||void 0,autoFocus:c,onMouseDown:p,onKeyDown:f},g,b,w),theirProps:u,slot:x,defaultTag:"button",name:"Combobox.Button"})})),Ow=ig((function(e,t){var n,r,o,i,a;let s=yw("Combobox.Input"),l=mw("Combobox.Input"),c=Hn(),u=wg(),{id:d=u||`headlessui-combobox-input-${c}`,onChange:f,displayValue:p,disabled:h=s.disabled||!1,autoFocus:m=!1,type:g="text",...v}=e,b=In(null),y=Eg(b,t,Ay(),l.setInputElement),w=Pv(s.inputElement),x=Hm(),_=Vm((()=>{l.onChange(null),s.optionsElement&&(s.optionsElement.scrollTop=0),l.goToOption(qy.Nothing)})),E=Mn((()=>{var e;return"function"==typeof p&&void 0!==s.value?null!=(e=p(s.value))?e:"":"string"==typeof s.value?s.value:""}),[s.value,p]);Wv((([e,t],[n,r])=>{if(s.isTyping)return;let o=b.current;o&&((0===r&&1===t||e!==n)&&(o.value=e),requestAnimationFrame((()=>{if(s.isTyping||!o||(null==w?void 0:w.activeElement)!==o)return;let{selectionStart:e,selectionEnd:t}=o;0===Math.abs((null!=t?t:0)-(null!=e?e:0))&&0===e&&o.setSelectionRange(o.value.length,o.value.length)})))}),[E,s.comboboxState,w,s.isTyping]),Wv((([e],[t])=>{if(0===e&&1===t){if(s.isTyping)return;let e=b.current;if(!e)return;let t=e.value,{selectionStart:n,selectionEnd:r,selectionDirection:o}=e;e.value="",e.value=t,null!==o?e.setSelectionRange(n,r,o):e.setSelectionRange(n,r)}}),[s.comboboxState]);let S=In(!1),O=Vm((()=>{S.current=!0})),T=Vm((()=>{x.nextFrame((()=>{S.current=!1}))})),k=Vm((e=>{switch(l.setIsTyping(!0),e.key){case Ag.Enter:if(0!==s.comboboxState||S.current)return;if(e.preventDefault(),e.stopPropagation(),null===s.activeOptionIndex)return void l.closeCombobox();l.selectActiveOption(),0===s.mode&&l.closeCombobox();break;case Ag.ArrowDown:return e.preventDefault(),e.stopPropagation(),Qm(s.comboboxState,{0:()=>l.goToOption(qy.Next),1:()=>l.openCombobox()});case Ag.ArrowUp:return e.preventDefault(),e.stopPropagation(),Qm(s.comboboxState,{0:()=>l.goToOption(qy.Previous),1:()=>{Br((()=>l.openCombobox())),s.value||l.goToOption(qy.Last)}});case Ag.Home:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),l.goToOption(qy.First);case Ag.PageUp:return e.preventDefault(),e.stopPropagation(),l.goToOption(qy.First);case Ag.End:if(e.shiftKey)break;return e.preventDefault(),e.stopPropagation(),l.goToOption(qy.Last);case Ag.PageDown:return e.preventDefault(),e.stopPropagation(),l.goToOption(qy.Last);case Ag.Escape:return 0!==s.comboboxState?void 0:(e.preventDefault(),s.optionsElement&&!s.optionsPropsRef.current.static&&e.stopPropagation(),0===s.mode&&null===s.value&&_(),l.closeCombobox());case Ag.Tab:if(0!==s.comboboxState)return;0===s.mode&&1!==s.activationTrigger&&l.selectActiveOption(),l.closeCombobox()}})),C=Vm((e=>{null==f||f(e),0===s.mode&&""===e.target.value&&_(),l.openCombobox()})),A=Vm((e=>{var t,n,r;let o=null!=(t=e.relatedTarget)?t:Wy.find((t=>t!==e.currentTarget));if(!(null!=(n=s.optionsElement)&&n.contains(o)||null!=(r=s.buttonElement)&&r.contains(o)||0!==s.comboboxState))return e.preventDefault(),0===s.mode&&null===s.value&&_(),l.closeCombobox()})),R=Vm((e=>{var t,n,r;let o=null!=(t=e.relatedTarget)?t:Wy.find((t=>t!==e.currentTarget));null!=(n=s.buttonElement)&&n.contains(o)||null!=(r=s.optionsElement)&&r.contains(o)||s.disabled||s.immediate&&0!==s.comboboxState&&x.microTask((()=>{Br((()=>l.openCombobox())),l.setActivationTrigger(1)}))})),P=Lg(),L=Tg(),{isFocused:N,focusProps:F}=Fm({autoFocus:m}),{isHovered:I,hoverProps:D}=Nm({isDisabled:h}),M=Mn((()=>({open:0===s.comboboxState,disabled:h,hover:I,focus:N,autofocus:m})),[s,I,N,m,h]),j=og({ref:y,id:d,role:"combobox",type:g,"aria-controls":null==(n=s.optionsElement)?void 0:n.id,"aria-expanded":0===s.comboboxState,"aria-activedescendant":null===s.activeOptionIndex?void 0:s.virtual?null==(r=s.options.find((e=>!e.dataRef.current.disabled&&s.compare(e.dataRef.current.value,s.virtual.options[s.activeOptionIndex]))))?void 0:r.id:null==(o=s.options[s.activeOptionIndex])?void 0:o.id,"aria-labelledby":P,"aria-describedby":L,"aria-autocomplete":"list",defaultValue:null!=(a=null!=(i=e.defaultValue)?i:void 0!==s.defaultValue?null==p?void 0:p(s.defaultValue):null)?a:s.defaultValue,disabled:h||void 0,autoFocus:m,onCompositionStart:O,onCompositionEnd:T,onKeyDown:k,onChange:C,onFocus:R,onBlur:A},F,D);return eg({ourProps:j,theirProps:v,slot:M,defaultTag:"input",name:"Combobox.Input"})})),Tw=Ig,kw=ig((function(e,t){var n,r,o;let i=Hn(),{id:a=`headlessui-combobox-options-${i}`,hold:s=!1,anchor:l,portal:c=!1,modal:u=!0,transition:d=!1,...f}=e,p=yw("Combobox.Options"),h=mw("Combobox.Options"),m=Cy(l);m&&(c=!0);let[g,v]=Py(m),[b,y]=Pn(null),w=Ry(),x=Eg(t,m?g:null,h.setOptionsElement,y),_=Pv(p.optionsElement),E=Hy(),[S,O]=Bv(d,b,null!==E?(E&zy.Open)===zy.Open:0===p.comboboxState);uv(S,p.inputElement,h.closeCombobox),Mv(!p.__demoMode&&(u&&0===p.comboboxState),_),cv(!p.__demoMode&&(u&&0===p.comboboxState),{allowed:jn((()=>[p.inputElement,p.buttonElement,p.optionsElement]),[p.inputElement,p.buttonElement,p.optionsElement])}),Bm((()=>{var t;p.optionsPropsRef.current.static=null!=(t=e.static)&&t}),[p.optionsPropsRef,e.static]),Bm((()=>{p.optionsPropsRef.current.hold=s}),[p.optionsPropsRef,s]),function(e,{container:t,accept:n,walk:r}){let o=In(n),i=In(r);Nn((()=>{o.current=n,i.current=r}),[n,r]),Bm((()=>{if(!t||!e)return;let n=jm(t);if(!n)return;let r=o.current,a=i.current,s=Object.assign((e=>r(e)),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[t,e,o,i])}(0===p.comboboxState,{container:p.optionsElement,accept:e=>"option"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let T=Lg([null==(n=p.buttonElement)?void 0:n.id]),k=Mn((()=>({open:0===p.comboboxState,option:void 0})),[p.comboboxState]),C=Vm((()=>{h.setActivationTrigger(0)})),A=Vm((e=>{e.preventDefault(),h.setActivationTrigger(0)})),R=og(m?w():{},{"aria-labelledby":T,role:"listbox","aria-multiselectable":1===p.mode||void 0,id:a,ref:x,style:{...f.style,...v,"--input-width":Zg(p.inputElement,!0).width,"--button-width":Zg(p.buttonElement,!0).width},onWheel:0===p.activationTrigger?void 0:C,onMouseDown:A,...Hv(O)}),P=S&&1===p.comboboxState,L=jy(P,null==(r=p.virtual)?void 0:r.options),N=jy(P,p.value),F=Vm((e=>p.compare(N,e)));if(p.virtual){if(void 0===L)throw new Error("Missing `options` in virtual mode");Object.assign(f,{children:Xr.createElement(bw.Provider,{value:L!==p.virtual.options?{...p,virtual:{...p.virtual,options:L}}:p},Xr.createElement(vw,{slot:k},f.children))})}return Xr.createElement(iw,{enabled:!!c&&(e.static||S)},Xr.createElement(bw.Provider,{value:1===p.mode?p:{...p,isSelected:F}},eg({ourProps:R,theirProps:{...f,children:Xr.createElement(My,{freeze:P},"function"==typeof f.children?null==(o=f.children)?void 0:o.call(f,k):f.children)},slot:k,defaultTag:"div",features:_w,visible:S,name:"Combobox.Options"})))})),Cw=ig((function(e,t){var n,r,o,i;let a=yw("Combobox.Option"),s=mw("Combobox.Option"),l=Hn(),{id:c=`headlessui-combobox-option-${l}`,value:u,disabled:d=null!=(o=null==(r=null==(n=a.virtual)?void 0:n.disabled)?void 0:r.call(n,u))&&o,order:f=null,...p}=e,h=Lv(a.inputElement),m=a.virtual?a.activeOptionIndex===a.calculateIndex(u):null!==a.activeOptionIndex&&(null==(i=a.options[a.activeOptionIndex])?void 0:i.id)===c,g=a.isSelected(u),v=In(null),b=Wm({disabled:d,value:u,domRef:v,order:f}),y=Un(gw),w=Eg(t,v,y?y.measureElement:null),x=Vm((()=>{s.setIsTyping(!1),s.onChange(u)}));Bm((()=>s.registerOption(c,b)),[b,c]);let _=In(!(a.virtual||a.__demoMode));Bm((()=>{if(!a.virtual&&!a.__demoMode)return zm().requestAnimationFrame((()=>{_.current=!0}))}),[a.virtual,a.__demoMode]),Bm((()=>{if(_.current&&0===a.comboboxState&&m&&0!==a.activationTrigger)return zm().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=v.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[v,m,a.comboboxState,a.activationTrigger,a.activeOptionIndex]);let E=Vm((e=>{e.preventDefault(),e.button===Gy.Left&&(d||(x(),kv()||requestAnimationFrame((()=>h())),0===a.mode&&s.closeCombobox()))})),S=Vm((()=>{if(d)return s.goToOption(qy.Nothing);let e=a.calculateIndex(u);s.goToOption(qy.Specific,e)})),O=Uv(),T=Vm((e=>O.update(e))),k=Vm((e=>{if(!O.wasMoved(e)||d||m)return;let t=a.calculateIndex(u);s.goToOption(qy.Specific,t,0)})),C=Vm((e=>{O.wasMoved(e)&&(d||m&&(a.optionsPropsRef.current.hold||s.goToOption(qy.Nothing)))})),A=Mn((()=>({active:m,focus:m,selected:g,disabled:d})),[m,g,d]);return eg({ourProps:{id:c,ref:w,role:"option",tabIndex:!0===d?void 0:-1,"aria-disabled":!0===d||void 0,"aria-selected":g,disabled:void 0,onMouseDown:E,onFocus:S,onPointerEnter:T,onMouseEnter:T,onPointerMove:k,onMouseMove:k,onPointerLeave:C,onMouseLeave:C},theirProps:p,slot:A,defaultTag:"div",name:"Combobox.Option"})})),Aw=Object.assign(Ew,{Input:Ow,Button:Sw,Label:Tw,Options:kw,Option:Cw});let Rw=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Pw(e){var t,n;let r=null!=(t=e.innerText)?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let s of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),i=!0;let a=i?null!=(n=o.innerText)?n:"":r;return Rw.test(a)&&(a=a.replace(Rw,"")),a}function Lw(e){let t=In(""),n=In("");return Vm((()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Pw(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Pw(e).trim()}(r).trim().toLowerCase();return t.current=o,n.current=i,i}))}var Nw=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nw||{}),Fw=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(Fw||{}),Iw=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Iw||{}),Dw=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(Dw||{});function Mw(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Sv(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),o=n?r.indexOf(n):null;return-1===o&&(o=null),{options:r,activeOptionIndex:o}}let jw={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,o,i,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===qy.Nothing)return{...s,activeOptionIndex:null};if(t.focus===qy.Specific)return{...s,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===qy.Previous){let n=e.activeOptionIndex;if(null!==n){let i=e.options[n].dataRef.current.domRef,a=$y(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(r=i.current)?void 0:r.previousElementSibling)===t.current||null===(null==(o=t.current)?void 0:o.previousElementSibling))return{...s,activeOptionIndex:a}}}}else if(t.focus===qy.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,o=$y(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==o){let t=e.options[o].dataRef.current.domRef;if((null==(i=r.current)?void 0:i.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeOptionIndex:o}}}}let l=Mw(e),c=$y(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),i=o?e.options.indexOf(o):-1;return-1===i||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Mw(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Mw(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},Uw=ft(null);function zw(e){let t=Un(Uw);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,zw),t}return t}Uw.displayName="ListboxActionsContext";let Hw=ft(null);function Bw(e){let t=Un(Hw);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Bw),t}return t}function Ww(e,t){return Qm(t.type,jw,e,t)}Hw.displayName="ListboxDataContext";let Vw=qe;let qw=ft(!1),$w=Jm.RenderStrategy|Jm.Static;let Kw=qe;let Gw=ig((function(e,t){var n;let r=Km(),{value:o,defaultValue:i,form:a,name:s,onChange:l,by:c,invalid:u=!1,disabled:d=r||!1,horizontal:f=!1,multiple:p=!1,__demoMode:h=!1,...m}=e;const g=f?"horizontal":"vertical";let v=Eg(t),b=cg(i),[y=(p?[]:void 0),w]=lg(o,l,b),[x,_]=Ln(Ww,{dataRef:{current:null},listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),E=In({static:!1,hold:!1}),S=In(new Map),O=Jg(c),T=jn((e=>Qm(k.mode,{1:()=>y.some((t=>O(t,e))),0:()=>O(y,e)})),[y]),k=Mn((()=>({...x,value:y,disabled:d,invalid:u,mode:p?1:0,orientation:g,compare:O,isSelected:T,optionsPropsRef:E,listRef:S})),[y,d,u,p,x,S]);Bm((()=>{x.dataRef.current=k}),[k]),Rv(0===k.listboxState,[k.buttonElement,k.optionsElement],((e,t)=>{var n;_({type:1}),xv(t,wv.Loose)||(e.preventDefault(),null==(n=k.buttonElement)||n.focus())}));let C=Mn((()=>({open:0===k.listboxState,disabled:d,invalid:u,value:y})),[k,d,y,u]),A=Vm((e=>{let t=k.options.find((t=>t.id===e));t&&D(t.dataRef.current.value)})),R=Vm((()=>{if(null!==k.activeOptionIndex){let{dataRef:e,id:t}=k.options[k.activeOptionIndex];D(e.current.value),_({type:2,focus:qy.Specific,id:t})}})),P=Vm((()=>_({type:0}))),L=Vm((()=>_({type:1}))),N=Hm(),F=Vm(((e,t,n)=>{N.dispose(),N.microTask((()=>e===qy.Specific?_({type:2,focus:qy.Specific,id:t,trigger:n}):_({type:2,focus:e,trigger:n})))})),I=Vm(((e,t)=>(_({type:5,id:e,dataRef:t}),()=>_({type:6,id:e})))),D=Vm((e=>Qm(k.mode,{0:()=>null==w?void 0:w(e),1(){let t=k.value.slice(),n=t.findIndex((t=>O(t,e)));return-1===n?t.push(e):t.splice(n,1),null==w?void 0:w(t)}}))),M=Vm((e=>_({type:3,value:e}))),j=Vm((()=>_({type:4}))),U=Vm((e=>{_({type:7,element:e})})),z=Vm((e=>{_({type:8,element:e})})),H=Mn((()=>({onChange:D,registerOption:I,goToOption:F,closeListbox:L,openListbox:P,selectActiveOption:R,selectOption:A,search:M,clearSearch:j,setButtonElement:U,setOptionsElement:z})),[]),[B,W]=Ng({inherit:!0}),V={ref:v},q=jn((()=>{if(void 0!==b)return null==w?void 0:w(b)}),[w,b]);return Xr.createElement(W,{value:B,props:{htmlFor:null==(n=k.buttonElement)?void 0:n.id},slot:{open:0===k.listboxState,disabled:d}},Xr.createElement(Ny,null,Xr.createElement(Uw.Provider,{value:H},Xr.createElement(Hw.Provider,{value:k},Xr.createElement(By,{value:Qm(k.listboxState,{0:zy.Open,1:zy.Closed})},null!=s&&null!=y&&Xr.createElement(vg,{disabled:d,data:{[s]:y},form:a,onReset:q}),eg({ourProps:V,theirProps:m,slot:C,defaultTag:Vw,name:"Listbox"}))))))})),Qw=ig((function(e,t){var n;let r=Bw("Listbox.Button"),o=zw("Listbox.Button"),i=Hn(),a=wg(),{id:s=a||`headlessui-listbox-button-${i}`,disabled:l=r.disabled||!1,autoFocus:c=!1,...u}=e,d=Eg(t,Ay(),o.setButtonElement),f=Un(Ty).getReferenceProps,p=Vm((e=>{switch(e.key){case Ag.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case Ag.Space:case Ag.ArrowDown:e.preventDefault(),Br((()=>o.openListbox())),r.value||o.goToOption(qy.First);break;case Ag.ArrowUp:e.preventDefault(),Br((()=>o.openListbox())),r.value||o.goToOption(qy.Last)}})),h=Vm((e=>{if(e.key===Ag.Space)e.preventDefault()})),m=Vm((e=>{var t;if(xg(e.currentTarget))return e.preventDefault();0===r.listboxState?(Br((()=>o.closeListbox())),null==(t=r.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),o.openListbox())})),g=Vm((e=>e.preventDefault())),v=Lg([s]),b=Tg(),{isFocusVisible:y,focusProps:w}=Fm({autoFocus:c}),{isHovered:x,hoverProps:_}=Nm({isDisabled:l}),{pressed:E,pressProps:S}=qm({disabled:l}),O=Mn((()=>({open:0===r.listboxState,active:E||0===r.listboxState,disabled:l,invalid:r.invalid,value:r.value,hover:x,focus:y,autofocus:c})),[r.listboxState,r.value,l,x,y,E,r.invalid,c]);return eg({ourProps:og(f(),{ref:d,id:s,type:Nv(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsElement)?void 0:n.id,"aria-expanded":0===r.listboxState,"aria-labelledby":v,"aria-describedby":b,disabled:l||void 0,autoFocus:c,onKeyDown:p,onKeyUp:h,onKeyPress:g,onClick:m},w,_,S),theirProps:u,slot:O,defaultTag:"button",name:"Listbox.Button"})})),Yw=Ig,Xw=ig((function(e,t){var n,r;let o=Hn(),{id:i=`headlessui-listbox-options-${o}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=Cy(a),[f,p]=Pn(null);d&&(s=!0);let h=Bw("Listbox.Options"),m=zw("Listbox.Options"),g=Pv(h.optionsElement),v=Hy(),[b,y]=Bv(c,f,null!==v?(v&zy.Open)===zy.Open:0===h.listboxState);uv(b,h.buttonElement,m.closeListbox),Mv(!h.__demoMode&&(l&&0===h.listboxState),g),cv(!h.__demoMode&&(l&&0===h.listboxState),{allowed:Vm((()=>[h.buttonElement,h.optionsElement]))});let w=!function(e,t){let n=In({left:0,top:0});if(Bm((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==h.listboxState,h.buttonElement)&&b,x=jy(b&&1===h.listboxState,h.value),_=Vm((e=>h.compare(x,e))),E=Mn((()=>{var e;if(null==d||null==(e=null==d?void 0:d.to)||!e.includes("selection"))return null;let t=h.options.findIndex((e=>_(e.dataRef.current.value)));return-1===t&&(t=0),t}),[d,h.options]),S=(()=>{if(null==d)return;if(null===E)return{...d,inner:void 0};let e=Array.from(h.listRef.current.values());return{...d,inner:{listRef:{current:e},index:E}}})(),[O,T]=Py(S),k=Ry(),C=Eg(t,d?O:null,m.setOptionsElement,p),A=Hm();Nn((()=>{var e;let t=h.optionsElement;t&&0===h.listboxState&&t!==(null==(e=jm(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[h.listboxState,h.optionsElement]);let R=Vm((e=>{var t,n;switch(A.dispose(),e.key){case Ag.Space:if(""!==h.searchQuery)return e.preventDefault(),e.stopPropagation(),m.search(e.key);case Ag.Enter:if(e.preventDefault(),e.stopPropagation(),null!==h.activeOptionIndex){let{dataRef:e}=h.options[h.activeOptionIndex];m.onChange(e.current.value)}0===h.mode&&(Br((()=>m.closeListbox())),null==(t=h.buttonElement)||t.focus({preventScroll:!0}));break;case Qm(h.orientation,{vertical:Ag.ArrowDown,horizontal:Ag.ArrowRight}):return e.preventDefault(),e.stopPropagation(),m.goToOption(qy.Next);case Qm(h.orientation,{vertical:Ag.ArrowUp,horizontal:Ag.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),m.goToOption(qy.Previous);case Ag.Home:case Ag.PageUp:return e.preventDefault(),e.stopPropagation(),m.goToOption(qy.First);case Ag.End:case Ag.PageDown:return e.preventDefault(),e.stopPropagation(),m.goToOption(qy.Last);case Ag.Escape:return e.preventDefault(),e.stopPropagation(),Br((()=>m.closeListbox())),void(null==(n=h.buttonElement)||n.focus({preventScroll:!0}));case Ag.Tab:e.preventDefault(),e.stopPropagation(),Br((()=>m.closeListbox())),function(e,t){Ov(yv(),t,{relativeTo:e})}(h.buttonElement,e.shiftKey?gv.Previous:gv.Next);break;default:1===e.key.length&&(m.search(e.key),A.setTimeout((()=>m.clearSearch()),350))}})),P=null==(n=h.buttonElement)?void 0:n.id,L=Mn((()=>({open:0===h.listboxState})),[h.listboxState]),N=og(d?k():{},{id:i,ref:C,"aria-activedescendant":null===h.activeOptionIndex||null==(r=h.options[h.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===h.mode||void 0,"aria-labelledby":P,"aria-orientation":h.orientation,onKeyDown:R,role:"listbox",tabIndex:0===h.listboxState?0:void 0,style:{...u.style,...T,"--button-width":Zg(h.buttonElement,!0).width},...Hv(y)});return Xr.createElement(iw,{enabled:!!s&&(e.static||b)},Xr.createElement(Hw.Provider,{value:1===h.mode?h:{...h,isSelected:_}},eg({ourProps:N,theirProps:u,slot:L,defaultTag:"div",features:$w,visible:w,name:"Listbox.Options"})))})),Jw=ig((function(e,t){let n=Hn(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...a}=e,s=!0===Un(qw),l=Bw("Listbox.Option"),c=zw("Listbox.Option"),u=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===r,d=l.isSelected(i),f=In(null),p=Lw(f),h=Wm({disabled:o,value:i,domRef:f,get textValue(){return p()}}),m=Eg(t,f,(e=>{e?l.listRef.current.set(r,e):l.listRef.current.delete(r)}));Bm((()=>{if(!l.__demoMode&&0===l.listboxState&&u&&0!==l.activationTrigger)return zm().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[f,u,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Bm((()=>{if(!s)return c.registerOption(r,h)}),[h,r,s]);let g=Vm((e=>{var t;if(o)return e.preventDefault();c.onChange(i),0===l.mode&&(Br((()=>c.closeListbox())),null==(t=l.buttonElement)||t.focus({preventScroll:!0}))})),v=Vm((()=>{if(o)return c.goToOption(qy.Nothing);c.goToOption(qy.Specific,r)})),b=Uv(),y=Vm((e=>{b.update(e),!o&&(u||c.goToOption(qy.Specific,r,0))})),w=Vm((e=>{b.wasMoved(e)&&(o||u||c.goToOption(qy.Specific,r,0))})),x=Vm((e=>{b.wasMoved(e)&&(o||u&&c.goToOption(qy.Nothing))})),_=Mn((()=>({active:u,focus:u,selected:d,disabled:o,selectedOption:d&&s})),[u,d,o,s]);return!d&&s?null:eg({ourProps:s?{}:{id:r,ref:m,role:"option",tabIndex:!0===o?void 0:-1,"aria-disabled":!0===o||void 0,"aria-selected":d,disabled:void 0,onClick:g,onFocus:v,onPointerEnter:y,onMouseEnter:y,onPointerMove:w,onMouseMove:w,onPointerLeave:x,onMouseLeave:x},theirProps:a,slot:_,defaultTag:"div",name:"Listbox.Option"})})),Zw=ig((function(e,t){let{options:n,placeholder:r,...o}=e,i={ref:Eg(t)},a=Bw("ListboxSelectedOption"),s=Mn((()=>({})),[]),l=void 0===a.value||null===a.value||1===a.mode&&Array.isArray(a.value)&&0===a.value.length;return Xr.createElement(qw.Provider,{value:!0},eg({ourProps:i,theirProps:{...o,children:Xr.createElement(Xr.Fragment,null,r&&l?r:n)},slot:s,defaultTag:Kw,name:"ListboxSelectedOption"}))})),ex=Object.assign(Gw,{Button:Qw,Label:Yw,Options:Xw,Option:Jw,SelectedOption:Zw});function tx({onFocus:e}){let[t,n]=Pn(!0),r=function(){let e=In(!1);return Bm((()=>(e.current=!0,()=>{e.current=!1})),[]),e}();return t?Xr.createElement(hg,{as:"button",type:"button",features:pg.Focusable,onFocus:t=>{t.preventDefault();let o,i=50;o=requestAnimationFrame((function t(){if(i--<=0)o&&cancelAnimationFrame(o);else if(e()){if(cancelAnimationFrame(o),!r.current)return;n(!1)}else o=requestAnimationFrame(t)}))}}):null}const nx=ft(null);function rx({children:e}){let t=In({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let o=null!=(n=r.get(t))?n:0;return r.set(t,o+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return Be(nx.Provider,{value:t},e)}function ox(e){let t=Un(nx);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=Hn(),[r,o]=t.current.get(e,n);return Nn((()=>o),[]),r}var ix=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ix||{}),ax=(e=>(e[e.Less=-1]="Less",e[e.Equal=0]="Equal",e[e.Greater=1]="Greater",e))(ax||{}),sx=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(sx||{});let lx={0(e,t){var n;let r=Sv(e.tabs,(e=>e.current)),o=Sv(e.panels,(e=>e.current)),i=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a={...e,tabs:r,panels:o};if(t.index<0||t.index>r.length-1){let n=Qm(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>Qm(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===i.length)return a;let o=Qm(n,{0:()=>r.indexOf(i[0]),1:()=>r.indexOf(i[i.length-1])});return{...a,selectedIndex:-1===o?e.selectedIndex:o}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>i.includes(e)));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=Sv([...e.tabs,t.tab],(e=>e.current)),o=e.selectedIndex;return e.info.current.isControlled||(o=r.indexOf(n),-1===o&&(o=e.selectedIndex)),{...e,tabs:r,selectedIndex:o}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:Sv([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},cx=ft(null);function ux(e){let t=Un(cx);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,ux),t}return t}cx.displayName="TabsDataContext";let dx=ft(null);function fx(e){let t=Un(dx);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,fx),t}return t}function px(e,t){return Qm(t.type,lx,e,t)}dx.displayName="TabsActionsContext";let hx=Jm.RenderStrategy|Jm.Static;let mx=ig((function(e,t){var n,r;let o=Hn(),{id:i=`headlessui-tabs-tab-${o}`,disabled:a=!1,autoFocus:s=!1,...l}=e,{orientation:c,activation:u,selectedIndex:d,tabs:f,panels:p}=ux("Tab"),h=fx("Tab"),m=ux("Tab"),[g,v]=Pn(null),b=In(null),y=Eg(b,t,v);Bm((()=>h.registerTab(b)),[h,b]);let w=ox("tabs"),x=f.indexOf(b);-1===x&&(x=w);let _=x===d,E=Vm((e=>{var t;let n=e();if(n===vv.Success&&"auto"===u){let e=null==(t=jm(b))?void 0:t.activeElement,n=m.tabs.findIndex((t=>t.current===e));-1!==n&&h.change(n)}return n})),S=Vm((e=>{let t=f.map((e=>e.current)).filter(Boolean);if(e.key===Ag.Space||e.key===Ag.Enter)return e.preventDefault(),e.stopPropagation(),void h.change(x);switch(e.key){case Ag.Home:case Ag.PageUp:return e.preventDefault(),e.stopPropagation(),E((()=>Ov(t,gv.First)));case Ag.End:case Ag.PageDown:return e.preventDefault(),e.stopPropagation(),E((()=>Ov(t,gv.Last)))}return E((()=>Qm(c,{vertical:()=>e.key===Ag.ArrowUp?Ov(t,gv.Previous|gv.WrapAround):e.key===Ag.ArrowDown?Ov(t,gv.Next|gv.WrapAround):vv.Error,horizontal:()=>e.key===Ag.ArrowLeft?Ov(t,gv.Previous|gv.WrapAround):e.key===Ag.ArrowRight?Ov(t,gv.Next|gv.WrapAround):vv.Error})))===vv.Success?e.preventDefault():void 0})),O=In(!1),T=Vm((()=>{var e;O.current||(O.current=!0,null==(e=b.current)||e.focus({preventScroll:!0}),h.change(x),Um((()=>{O.current=!1})))})),k=Vm((e=>{e.preventDefault()})),{isFocusVisible:C,focusProps:A}=Fm({autoFocus:s}),{isHovered:R,hoverProps:P}=Nm({isDisabled:a}),{pressed:L,pressProps:N}=qm({disabled:a}),F=Mn((()=>({selected:_,hover:R,active:L,focus:C,autofocus:s,disabled:a})),[_,R,C,L,s,a]);return eg({ourProps:og({ref:y,onKeyDown:S,onMouseDown:k,onClick:T,id:i,role:"tab",type:Nv(e,g),"aria-controls":null==(r=null==(n=p[x])?void 0:n.current)?void 0:r.id,"aria-selected":_,tabIndex:_?0:-1,disabled:a||void 0,autoFocus:s},A,P,N),theirProps:l,slot:F,defaultTag:"button",name:"Tabs.Tab"})})),gx=ig((function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:o=!1,onChange:i,selectedIndex:a=null,...s}=e;const l=r?"vertical":"horizontal",c=o?"manual":"auto";let u=null!==a,d=Wm({isControlled:u}),f=Eg(t),[p,h]=Ln(px,{info:d,selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=Mn((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),g=Wm(i||(()=>{})),v=Wm(p.tabs),b=Mn((()=>({orientation:l,activation:c,...p})),[l,c,p]),y=Vm((e=>(h({type:1,tab:e}),()=>h({type:2,tab:e})))),w=Vm((e=>(h({type:3,panel:e}),()=>h({type:4,panel:e})))),x=Vm((e=>{_.current!==e&&g.current(e),u||h({type:0,index:e})})),_=Wm(u?e.selectedIndex:p.selectedIndex),E=Mn((()=>({registerTab:y,registerPanel:w,change:x})),[]);Bm((()=>{h({type:0,index:null!=a?a:n})}),[a]),Bm((()=>{if(void 0===_.current||p.tabs.length<=0)return;let e=Sv(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&x(e.indexOf(p.tabs[_.current]))}));let S={ref:f};return Xr.createElement(rx,null,Xr.createElement(dx.Provider,{value:E},Xr.createElement(cx.Provider,{value:b},b.tabs.length<=0&&Xr.createElement(tx,{onFocus:()=>{var e,t;for(let n of v.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),eg({ourProps:S,theirProps:s,slot:m,defaultTag:"div",name:"Tabs"}))))})),vx=ig((function(e,t){let{orientation:n,selectedIndex:r}=ux("Tab.List");return eg({ourProps:{ref:Eg(t),role:"tablist","aria-orientation":n},theirProps:e,slot:Mn((()=>({selectedIndex:r})),[r]),defaultTag:"div",name:"Tabs.List"})})),bx=ig((function(e,t){let{selectedIndex:n}=ux("Tab.Panels");return eg({ourProps:{ref:Eg(t)},theirProps:e,slot:Mn((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),yx=ig((function(e,t){var n,r,o,i;let a=Hn(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:f}=ux("Tab.Panel"),p=fx("Tab.Panel"),h=In(null),m=Eg(h,t);Bm((()=>p.registerPanel(h)),[p,h]);let g=ox("panels"),v=f.indexOf(h);-1===v&&(v=g);let b=v===u,{isFocusVisible:y,focusProps:w}=Fm(),x=Mn((()=>({selected:b,focus:y})),[b,y]),_=og({ref:m,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[v])?void 0:n.current)?void 0:r.id,tabIndex:b?l:-1},w);return b||null!=(o=c.unmount)&&!o||null!=(i=c.static)&&i?eg({ourProps:_,theirProps:c,slot:x,defaultTag:"div",features:hx,visible:b,name:"Tabs.Panel"}):Xr.createElement(hg,{"aria-hidden":"true",..._})})),wx=Object.assign(mx,{Group:gx,List:vx,Panels:bx,Panel:yx});const xx=({label:e,error:t,hint:n,class:r,...o})=>_t("div",{class:r,children:_t("div",{class:"flex flex-col gap-2",children:[_t(gc,{label:!0,children:e}),_t("div",{children:o.children}),t&&_t(gc,{danger:!0,hint:!0,children:t}),n&&_t(gc,{hint:!0,children:n})]})}),_x=e=>{const t=In(null);return _t(xx,{class:e.class,error:e.error,hint:e.hint,label:e.label,children:_t("div",{class:"relative",children:[_t(Aw,{immediate:!0,onChange:n=>{var r;e.onChange(n),(r=0,new Promise((e=>setTimeout(e,r)))).then((()=>{var e;return null==(e=t.current)?void 0:e.blur()}))},value:e.value,children:[_t(Ow,{class:mc(Ex,wc,e.error&&Ox,Sx),displayValue:t=>(null==t?void 0:t.label)||e.query||"",onChange:t=>e.onChangeText(t.currentTarget.value),ref:t}),_t(kw,{anchor:"bottom",class:mc("w-[var(--input-width)] rounded-md border border-gray-300 bg-white p-0.5 mt-0.5 shadow-sm focus:outline-none","z-10 transition duration-100 ease-in data-[leave]:data-[closed]:opacity-0","empty:invisible [--anchor-max-height:20rem]"),transition:!0,children:e.options.map((e=>_t(Cw,{class:"group flex cursor-default items-center gap-2 rounded py-2 px-3 select-none data-[focus]:bg-primary-base data-[focus]:text-primary-text",value:e,children:_t(gc,{class:"text-inherit",field:!0,children:e.label})},e.label)))})]}),e.loading?_t(Rc,{class:"absolute top-2 right-2 w-5 h-5 text-primary-base"}):null]})})},Ex="truncate relative block w-full py-2 pl-3 pr-8 rounded-md shadow-sm text-left border border-gray-300 bg-white",Sx="focus:outline-none focus-visible:border-gray-700",Ox="text-red-900 border-red-300 focus-visible:border-red-600",Tx=({label:e,error:t,hint:n,options:r,class:o,...i})=>{var a;const s=null==(a=r.find((e=>e.value===i.value)))?void 0:a.label;return _t(xx,{class:o,error:t,hint:n,label:e,children:_t("div",{class:"relative w-fit min-w-60",children:_t(ex,{onChange:e=>i.onChange(e),value:i.value,children:[_t(Qw,{class:mc(kx,t&&Ax,Cx,!s&&"text-gray-500"),children:[_t(gc,{class:mc(!s&&"text-inherit"),field:!0,children:s||"Select"}),_t($c,{className:"pointer-events-none absolute top-3 right-2.5 text-gray-500",icon:fc,size:"xs"})]}),_t(Xw,{anchor:"bottom",class:mc("w-[var(--button-width)] rounded-md border border-gray-300 bg-white p-0.5 mt-0.5 shadow-sm focus:outline-none","z-10 transition duration-100 ease-in data-[leave]:data-[closed]:opacity-0"),transition:!0,children:r.map((e=>_t(Jw,{class:"group flex cursor-default items-center gap-2 rounded py-2 px-3 select-none data-[focus]:bg-primary-base data-[focus]:text-primary-text",value:e.value,children:_t(gc,{class:"text-inherit",field:!0,children:e.label})},e.label)))})]})})})},kx="relative block w-full py-1.5 px-3 rounded-md shadow-sm text-left border border-gray-300 bg-white",Cx="focus:outline-none focus-visible:border-gray-700",Ax="text-red-900 border-red-300 focus-visible:border-red-600",Rx=({prefix:e,label:t,error:n,hint:r,leadingElement:o,type:i,class:a,...s})=>_t(xx,{class:a,error:n,hint:r,label:t,children:[o,_t("input",{class:mc(Px,wc,n&&Nx,Lx),type:i,...s})]}),Px="self-start py-2 px-3 rounded-md border border-gray-300 bg-white shadow-sm",Lx="focus:outline-none focus-visible:border-gray-700",Nx="text-red-900 border-red-300 focus-visible:border-red-600",Fx=({label:e,error:t,hint:n,options:r,class:o,...i})=>{const a=r.findIndex((e=>e.value===i.value));return _t(xx,{class:o,error:t,hint:n,label:e,children:_t(gx,{...i,class:"flex items-start",onChange:e=>i.onChange(r[e].value),selectedIndex:r.findIndex((e=>e.value===i.value)),children:_t(vx,{class:"relative flex gap-2 bg-gray-100 rounded-lg",children:[_t("span",{class:"absolute rounded-md border border-gray-200 bg-white shadow-sm transition-transform ease-out duration-200 h-full w-1/2 "+(0===a?"translate-x-0":"translate-x-full")}),r.map(((e,t)=>_t(wx,{class:"relative z-10 focus:outline-none py-2 px-12",children:_t(gc,{class:mc([t===a&&"text-gray-900"]),field:!0,children:e.label})},e.label)))]})})})},Ix=e=>{const{data:t,isSuccess:n,isError:r,isLoading:o,refetch:i}=yo({queryKey:["benefitsPlanGetSteps",e.assessmentId],queryFn:()=>bf({activityId:e.assessmentId}),staleTime:1/0});return Nn((()=>{wf({event:ru.AssessmentViewed,properties:{id:e.assessmentId,name:e.title}})}),[e.assessmentId,e.title]),_t(Qc,{children:[o&&_t(Pc,{}),r&&_t(Gc,{retry:i}),n&&_t("div",{class:mc("md:grid md:grid-cols-2",e.verticalAlignment),children:[_t("div",{children:[_t(gc,{class:"mb-2",heading1:!0,children:e.title}),_t(gc,{class:"mb-6",paragraph1:!0,children:e.description}),_t(Dx,{...{...t,...e}})]}),_t("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})]})]})},Dx=e=>{const t=Vx(e),{control:n,formState:r,handleSubmit:o}=function(e={}){const t=Xr.useRef(),n=Xr.useRef(),[r,o]=Xr.useState({isDirty:!1,isValidating:!1,isLoading:bh(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:bh(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Zh(e),formState:r});const i=t.current.control;return i._options=e,ah({subject:i._subjects.state,next:e=>{rh(e,i._proxyFormState,i._updateFormState,!0)&&o({...i._formState})}}),Xr.useEffect((()=>i._disableForm(e.disabled)),[i,e.disabled]),Xr.useEffect((()=>{if(i._proxyFormState.isDirty){const e=i._getDirty();e!==r.isDirty&&i._subjects.state.next({isDirty:e})}}),[i,r.isDirty]),Xr.useEffect((()=>{e.values&&!Fh(e.values,n.current)?(i._reset(e.values,i._options.resetOptions),n.current=e.values,o((e=>({...e})))):i._resetDefaultValues()}),[e.values,i]),Xr.useEffect((()=>{e.errors&&i._setErrors(e.errors)}),[e.errors,i]),Xr.useEffect((()=>{i._state.mount||(i._updateValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()})),Xr.useEffect((()=>{e.shouldUnregister&&i._subjects.values.next({values:i._getWatch()})}),[e.shouldUnregister,i]),t.current.formState=th(r,i),t.current}({mode:"onSubmit",defaultValues:t,shouldFocusError:!1}),i=ch({control:n}),a=Bx(e,i),s=a.filter((e=>e.stepType===Yc.Question)),l=ai(),{mutate:c,status:u}=function(e){const t=eo(),[n]=Pn((()=>new wn(t,e)));Nn((()=>{n.setOptions(e)}),[n,e]);const r=Qr(jn((e=>n.subscribe(Jt.batchCalls(e))),[n]),(()=>n.getCurrentResult())),o=jn(((e,t)=>{n.mutate(e,t).catch(so)}),[n]);if(r.error&&ao(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:o,mutateAsync:r.mutate}}({mutationFn:yf,onMutate:()=>{wf({event:ru.AssessmentSubmitted,properties:{id:e.assessmentId,name:e.title}})},onSuccess:()=>{const e=a[a.length-1];l(e.stepType===Yc.Ineligible?`/ineligible/${e.id}`:"/completion")}}),[d,f]=Pn();return Nn((()=>{const e=(e=>{for(const t of Object.values(nu))if(new RegExp(`\\b${t}\\b`,"i").test(e))return t})(JSON.stringify(i));f(e)}),[i]),_t(qe,{children:[_t("form",{class:"flex flex-col gap-4",children:s.map((e=>{var t;const o=null==(t=r.errors[e.id])?void 0:t.message;switch(e.template){case Xc.Text:return _t(Mx,{control:n,error:o,step:e},e.id);case Xc.Currency:return _t(jx,{control:n,error:o,step:e},e.id);case Xc.Date:return _t(Ux,{australianState:d,control:n,error:o,step:e},e.id);case Xc.SingleSelect:return _t(zx,{control:n,error:o,step:e},e.id);case Xc.Lookup:return _t(Hx,{control:n,error:o,step:e},e.id);default:return null}}))}),_t(Lc,{class:"mt-6 min-w-60",onClick:o((t=>{const n=a[a.length-1].stepType===Yc.Ineligible,r=(n?a:s).map((e=>e.id)),o=Object.fromEntries(Object.entries(t).filter((([e])=>r.includes(e)))),i=Object.entries(o).map((([e,t])=>{var n;return(null==(n=s.find((t=>t.id===e)))?void 0:n.template)===Xc.Lookup?{dataType:tu.Lookup,stepId:e,id:t.id,label:t.label}:{dataType:tu.Standard,stepId:e,value:t}})),l={activityAction:n?eu.ProgressStep:eu.ProgressStartToComplete,activityId:e.assessmentId,progressEvents:i};s.forEach((t=>{wf({event:ru.AssessmentFieldUpdated,properties:{id:e.assessmentId,name:e.title,attribute:t.customerAttribute}})})),c(l)})),status:u,children:"Submit"})]})},Mx=({control:e,step:t,error:n})=>_t(dh,{control:e,name:t.id,render:({field:e})=>_t(Rx,{error:n,hint:t.hint,label:t.title,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)}}}),jx=({control:e,step:t,error:n})=>_t(dh,{control:e,name:t.id,render:({field:e})=>_t(Rx,{error:n,hint:t.hint,label:t.title,leadingElement:_t("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:_t("span",{children:"$"})}),type:"text",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const n=parseFloat(e),r=t.invalidMessage||!1;return t.maximumValue&&n>parseInt(t.maximumValue,10)?r:!(t.minimumValue&&n<parseInt(t.minimumValue,10))||r}}}),Ux=({control:e,step:t,australianState:n,error:r})=>{const o=yo({queryKey:["benefitsPlanGetPublicHolidays"],queryFn:xf,staleTime:1/0});return _t(dh,{control:e,name:t.id,render:({field:e})=>_t(Rx,{error:r,hint:t.hint,label:t.title,type:"date",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{var r,i,a;const s=new Date(e);s.setHours(0,0,0,0);const l=null==(r=t.invalidDays)?void 0:r.includes(Jc.Weekends),c=s.getDay();if(l&&(0===c||6===c))return t.invalidMessage;if(null==(i=t.invalidDays)?void 0:i.includes(Jc.PublicHolidays)){const e=null==(a=o.data)?void 0:a.holidays.filter((e=>e.state.toUpperCase()===(null==n?void 0:n.toUpperCase()))).map((e=>{const t=new Date(e.date);return t.setHours(0,0,0,0),t}));if(null==e?void 0:e.some((e=>e.getTime()===s.getTime())))return t.invalidMessage}let u,d;return t.maximumValue&&(u=new Date(t.maximumValue),u.setHours(0,0,0,0),s>u)?t.invalidMessage:!(t.minimumValue&&("today"===t.minimumValue.toLowerCase()?(d=new Date,d.setDate(d.getDate()+(t.minimumValueAddDays||0)),d.setHours(0,0,0,0)):(d=new Date(t.minimumValue),d.setHours(0,0,0,0)),s<d))||t.invalidMessage}}})},zx=({control:e,step:t,error:n})=>_t(dh,{control:e,name:t.id,render:({field:e})=>Wx(t)?_t(Fx,{error:n,hint:t.hint,label:t.title,options:t.options,...e}):_t(Tx,{error:n,hint:t.hint,label:t.title,options:t.options,...e}),rules:{required:{value:!0,message:"This field is required"}}}),Hx=({control:e,step:t,error:n})=>{const[r,o]=Pn(),[i]=nm(r,300,{trailing:!0}),[a,s]=Pn(!1),[l,c]=Pn([]);return Nn((()=>{i&&i.length>=t.minimumCharacters?(async()=>{let e;try{s(!0),e=await(n={url:(r=t.url,r.replace(/^[a-zA-Z]+:\/\/[^/]+\/?/,"")),query:i||""},hf(n.url,{query:n.query}))}catch(Ym){}var n,r;s(!1),(null==e?void 0:e.addresses)?c(e.addresses):c([])})():c([])}),[i,t.minimumCharacters,t.url]),_t(dh,{control:e,name:t.id,render:({field:e})=>_t(_x,{error:n,hint:t.hint,label:t.title,loading:a,onChangeText:t=>{var n;o(t),t!==(null==(n=e.value)?void 0:n.label)&&e.onChange({id:"",label:""})},options:l,query:r,...e}),rules:{validate:e=>!(!(null==e?void 0:e.id)||!(null==e?void 0:e.label))||"This field is required"}})},Bx=(e,t)=>{const{firstStepId:n,steps:r}=e,o=r.reduce(((e,t)=>({...e,[t.id]:t})),{}),i=(e,n)=>{var r,a;if(!e)return n;const s=o[e],l=[...n,s];if(s.stepType===Yc.Completion||s.stepType===Yc.Ineligible)return l;if(s.stepType===Yc.Consent)return i(s.nextStepId,l);const c=null==t?void 0:t[s.id];if(s.stepType===Yc.Question&&s.template===Xc.SingleSelect&&!c)return l;const u=s.stepType===Yc.Question&&s.template===Xc.SingleSelect?null==(a=null==(r=s.options)?void 0:r.find((e=>e.value===c)))?void 0:a.nextStepId:s.nextStepId;return i(u,l)};return i(n,[])},Wx=e=>2===e.options.length&&e.options.some((e=>"yes"===e.value))&&e.options.some((e=>"no"===e.value)),Vx=e=>e.steps.reduce(((e,t)=>{let n;return n=t.stepType===Yc.Question&&t.template===Xc.SingleSelect?Wx(t)&&void 0===t.defaultValue?"yes":t.defaultValue:t.stepType===Yc.Ineligible||t.stepType===Yc.Completion||t.stepType===Yc.Consent||t.template===Xc.TriviaSingleSelect?void 0:t.defaultValue,{...e,[t.id]:n}}),{}),qx=({props:e})=>{const t=oi(),n="true"===e.skipIntro?"/question":"/consent";return _t("div",{class:"flex max-w-[59.5rem] mx-auto p-8 min-h-[50rem] overflow-x-hidden",children:_t(Gi,{class:"relative flex flex-1",children:_t(Wi,{classNames:{enter:n===t.pathname?"":"slide-enter",enterActive:n===t.pathname?"":"slide-enter-active",exit:"slide-exit",exitActive:"slide-exit-active"},timeout:300,children:_t(wi,{location:t,children:[_t(bi,{element:_t(Op,{acceptButtonLabel:e.acceptButton,assessmentId:e.assessmentId,declineButtonLabel:e.declineButton,description:e.description,details:e.details,imageUrl:e.imageUrl,onAccept:e.onAccept,onDecline:e.onDecline,terms:e.terms,title:e.title,verticalAlignment:e.verticalAlignment}),path:"consent"}),_t(bi,{element:_t(Ix,{assessmentId:e.assessmentId,description:e.description,imageUrl:e.imageUrl,title:e.title,verticalAlignment:e.verticalAlignment}),path:"question"}),_t(bi,{element:_t(_f,{assessmentId:e.assessmentId,imageUrl:e.imageUrl,onComplete:e.onComplete,title:e.title}),path:"completion"}),_t(bi,{element:_t(Tp,{assessmentId:e.assessmentId,onComplete:e.onComplete}),path:"ineligible/:id"}),_t(bi,{element:_t(vi,{to:n}),path:"*"})]})},t.pathname)})})};!function(e,t,n,r){function o(){var t=Reflect.construct(HTMLElement,[],o);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=gt,o.prototype.attributeChangedCallback=bt,o.prototype.disconnectedCallback=yt,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach((function(e){Object.defineProperty(o.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,o)}((e=>(Nn((()=>{var t;t={baseUrl:e.baseUrl,accessToken:e.accessToken,profileId:e.profileId,trackClient:e.trackClient,trackSource:e.trackSource,trackChannel:e.trackChannel},ff||(ff=df.create({baseURL:t.baseUrl}),ff.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))))}),[]),_t(Wr,{children:_t(Ac,{children:_t(to,{client:gf(),children:_t(gi,{children:_t(qx,{props:e})})})})}))),"benefits-plan-assessment",["terms","details","on-accept","on-decline","on-complete"],{shadow:!0});
|
|
23
|
+
function Qi(){return Qi=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},Qi.apply(this,arguments)}new Set(Gi);const Yi=ft(null),Xi=ft(null),Ji=ft(null),Zi=ft(null),eo=ft({outlet:null,matches:[],isDataRoute:!1}),to=ft(null);function no(){return null!=Un(Zi)}function ro(){return no()||_i(!1),Un(Zi).location}function io(e){Un(Ji).static||Fn(e)}function oo(){let{isDataRoute:e}=Un(eo);return e?function(){let{router:e}=function(){let e=Un(Yi);return e||_i(!1),e}(fo.UseNavigateStable),t=ho(po.UseNavigateStable),n=Dn(!1);return io((()=>{n.current=!0})),jn((function(r,i){void 0===i&&(i={}),n.current&&("number"==typeof r?e.navigate(r):e.navigate(r,Qi({fromRouteId:t},i)))}),[e,t])}():function(){no()||_i(!1);let e=Un(Yi),{basename:t,future:n,navigator:r}=Un(Ji),{matches:i}=Un(eo),{pathname:o}=ro(),a=JSON.stringify(Bi(i,n.v7_relativeSplatPath)),s=Dn(!1);return io((()=>{s.current=!0})),jn((function(n,i){if(void 0===i&&(i={}),!s.current)return;if("number"==typeof n)return void r.go(n);let l=zi(n,JSON.parse(a),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Vi([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[t,r,a,o,e])}()}function ao(e,t){return function(e,t,n,r){no()||_i(!1);let{navigator:i}=Un(Ji),{matches:o}=Un(eo),a=o[o.length-1],s=a?a.params:{};!a||a.pathname;let l=a?a.pathnameBase:"/";a&&a.route;let c,u=ro();if(t){var d;let e="string"==typeof t?Si(t):t;"/"===l||(null==(d=e.pathname)?void 0:d.startsWith(l))||_i(!1),c=e}else c=u;let f=c.pathname||"/",p=f;if("/"!==l){let e=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let h=Oi(e,{pathname:p}),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 o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let a=e,s=null==(i=n)?void 0:i.errors;if(null!=s){let e=a.findIndex((e=>e.route.id&&void 0!==(null==s?void 0:s[e.route.id])));e>=0||_i(!1),a=a.slice(0,Math.min(a.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u<a.length;u++){let e=a[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,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight(((e,r,i)=>{let o,u=!1,d=null,f=null;n&&(o=s&&r.route.id?s[r.route.id]:void 0,d=r.route.errorElement||lo,l&&(c<0&&0===i?(u=!0,f=null):c===i&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,i+1)),h=()=>{let t;return t=o?d:u?f:r.route.Component?ze(r.route.Component,null):r.route.element?r.route.element:e,ze(uo,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?ze(co,{location:n.location,revalidation:n.revalidation,component:d,error:o,children:h(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):h()}),null)}(h&&h.map((e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:Vi([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Vi([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);if(t&&m)return ze(Zi.Provider,{value:{location:Qi({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:li.Pop}},m);return m}(e,t)}function so(){let e=function(){var e;let t=Un(to),n=function(){let e=Un(Xi);return e||_i(!1),e}(po.UseRouteError),r=ho(po.UseRouteError);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 ze(qe,null,ze("h2",null,"Unexpected Application Error!"),ze("h3",{style:{fontStyle:"italic"}},t),n?ze("pre",{style:r},n):null,null)}const lo=ze(so,null);class co extends $e{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?ze(eo.Provider,{value:this.props.routeContext},ze(to.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function uo(e){let{routeContext:t,match:n,children:r}=e,i=Un(Yi);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),ze(eo.Provider,{value:t},r)}var fo=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(fo||{}),po=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}(po||{});function ho(e){let t=function(){let e=Un(eo);return e||_i(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||_i(!1),n.route.id}const mo=Jr.startTransition;function go(e){let{basename:t,children:n,initialEntries:r,initialIndex:i,future:o}=e,a=Dn();null==a.current&&(a.current=wi({initialEntries:r,initialIndex:i,v5Compat:!0}));let s=a.current,[l,c]=Pn({action:s.action,location:s.location}),{v7_startTransition:u}=o||{},d=jn((e=>{u&&mo?mo((()=>c(e))):c(e)}),[c,u]);return Fn((()=>s.listen(d)),[s,d]),ze(bo,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:o})}function vo(e){let{to:t,replace:n,state:r,relative:i}=e;no()||_i(!1);let{future:o,static:a}=Un(Ji),{matches:s}=Un(eo),{pathname:l}=ro(),c=oo(),u=zi(t,Bi(s,o.v7_relativeSplatPath),l,"path"===i),d=JSON.stringify(u);return Ln((()=>c(JSON.parse(d),{replace:n,state:r,relative:i})),[c,d,i,n,r]),null}function yo(e){_i(!1)}function bo(e){let{basename:t="/",children:n=null,location:r,navigationType:i=li.Pop,navigator:o,static:a=!1,future:s}=e;no()&&_i(!1);let l=t.replace(/^\/*/,"/"),c=In((()=>({basename:l,navigator:o,static:a,future:Qi({v7_relativeSplatPath:!1},s)})),[l,s,o,a]);"string"==typeof r&&(r=Si(r));let{pathname:u="/",search:d="",hash:f="",state:p=null,key:h="default"}=r,m=In((()=>{let e=Ui(u,l);return null==e?null:{location:{pathname:e,search:d,hash:f,state:p,key:h},navigationType:i}}),[l,u,d,f,p,h,i]);return null==m?null:ze(Ji.Provider,{value:c},ze(Zi.Provider,{children:n,value:m}))}function wo(e){let{children:t,location:n}=e;return ao(_o(t),n)}function _o(e,t){void 0===t&&(t=[]);let n=[];return rr.forEach(e,((e,r)=>{if(!Dr(e))return;let i=[...t,r];if(e.type===qe)return void n.push.apply(n,_o(e.props.children,i));e.type!==yo&&_i(!1),e.props.index&&e.props.children&&_i(!1);let o={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&&(o.children=_o(e.props.children,i)),n.push(o)})),n}function xo(){return xo=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},xo.apply(null,arguments)}function Eo(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function So(e,t){return(So=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,So(e,t)}function ko(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}new Promise((()=>{}));var To={exports:{}};function Ao(){}function Co(){}Co.resetWarningCache=Ao;To.exports=function(){function e(e,t,n,r,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Co,resetWarningCache:Ao};return n.PropTypes=n,n}();const Ro=ko(To.exports);function Po(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const No=!1,Lo=Xr.createContext(null);var Fo=function(e){return e.scrollTop},Do="unmounted",Mo="exited",Io="entering",jo="entered",Uo="exiting",Ho=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(i=Mo,r.appearStatus=Io):i=jo:i=t.unmountOnExit||t.mountOnEnter?Do:Mo,r.state={status:i},r.nextCallback=null,r}Oo(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===Do?{status:Mo}: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!==Io&&n!==jo&&(t=Io):n!==Io&&n!==jo||(t=Uo)}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===Io){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Xr.findDOMNode(this);n&&Fo(n)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mo&&this.setState({status:Do})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Xr.findDOMNode(this),r],o=i[0],a=i[1],s=this.getTimeouts(),l=r?s.appear:s.enter;!e&&!n||No?this.safeSetState({status:jo},(function(){t.props.onEntered(o)})):(this.props.onEnter(o,a),this.safeSetState({status:Io},(function(){t.props.onEntering(o,a),t.onTransitionEnd(l,(function(){t.safeSetState({status:jo},(function(){t.props.onEntered(o,a)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Xr.findDOMNode(this);t&&!No?(this.props.onExit(r),this.safeSetState({status:Uo},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:Mo},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:Mo},(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:Xr.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],o=i[0],a=i[1];this.props.addEndListener(o,a)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if(e===Do)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=Eo(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Xr.createElement(Lo.Provider,{value:null},"function"==typeof n?n(e,r):Xr.cloneElement(Xr.Children.only(n),r))},t}(Xr.Component);function Bo(){}Ho.contextType=Lo,Ho.propTypes={},Ho.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Bo,onEntering:Bo,onEntered:Bo,onExit:Bo,onExiting:Bo,onExited:Bo},Ho.UNMOUNTED=Do,Ho.EXITED=Mo,Ho.ENTERING=Io,Ho.ENTERED=jo,Ho.EXITING=Uo;var zo=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=Po(n.className,r):n.setAttribute("class",Po(n.className&&n.className.baseVal||"",r)));var n,r}))},Vo=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],o=r[1];t.removeClasses(i,"exit"),t.addClass(i,o?"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],o=r[1]?"appear":"enter";t.addClass(i,o,"active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),i=r[0],o=r[1]?"appear":"enter";t.removeClasses(i,o),t.addClass(i,o,"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}Oo(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&&Fo(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,o=n.done;this.appliedClasses[t]={},r&&zo(e,r),i&&zo(e,i),o&&zo(e,o)},n.render=function(){var e=this.props;e.classNames;var t=Eo(e,["classNames"]);return Xr.createElement(Ho,xo({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(Xr.Component);function Wo(e,t){var n=Object.create(null);return e&&rr.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&Dr(e)?t(e):e}(e)})),n}function qo(e,t,n){return null!=n[t]?n[t]:e.props[t]}function $o(e,t,n){var r=Wo(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),o=[];for(var a in e)a in t?o.length&&(i[a]=o,o=[]):o.push(a);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<o.length;r++)s[o[r]]=n(o[r]);return s}(t,r);return Object.keys(i).forEach((function(o){var a=i[o];if(Dr(a)){var s=o in t,l=o in r,c=t[o],u=Dr(c)&&!c.props.in;!l||s&&!u?l||!s||u?l&&s&&Dr(c)&&(i[o]=jr(a,{onExited:n.bind(null,a),in:c.props.in,exit:qo(a,"exit",e),enter:qo(a,"enter",e)})):i[o]=jr(a,{in:!1}):i[o]=jr(a,{onExited:n.bind(null,a),in:!0,exit:qo(a,"exit",e),enter:qo(a,"enter",e)})}})),i}Vo.defaultProps={classNames:""},Vo.propTypes={};var Ko=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Go=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}Oo(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,o=t.handleExited;return{children:t.firstRender?(n=e,r=o,Wo(n.children,(function(e){return jr(e,{onExited:r.bind(null,e),in:!0,appear:qo(e,"appear",n),enter:qo(e,"enter",n),exit:qo(e,"exit",n)})}))):$o(e,i,o),firstRender:!1}},n.handleExited=function(e,t){var n=Wo(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=xo({},t.children);return delete n[e.key],{children:n}})))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=Eo(e,["component","childFactory"]),i=this.state.contextValue,o=Ko(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,null===t?Xr.createElement(Lo.Provider,{value:i},o):Xr.createElement(Lo.Provider,{value:i},Xr.createElement(t,r,o))},t}(Xr.Component);Go.propTypes={},Go.defaultProps={component:"div",childFactory:function(e){return e}};const Qo=()=>{};let Yo={},Xo={},Jo=null,Zo={mark:Qo,measure:Qo};try{"undefined"!=typeof window&&(Yo=window),"undefined"!=typeof document&&(Xo=document),"undefined"!=typeof MutationObserver&&(Jo=MutationObserver),"undefined"!=typeof performance&&(Zo=performance)}catch(Vm){}const{userAgent:ea=""}=Yo.navigator||{},ta=Yo,na=Xo,ra=Jo,ia=Zo;ta.document;const oa=!!na.documentElement&&!!na.head&&"function"==typeof na.addEventListener&&"function"==typeof na.createElement,aa=~ea.indexOf("MSIE")||~ea.indexOf("Trident/");var sa="classic",la="duotone",ca="sharp",ua="sharp-duotone",da=[sa,la,ca,ua],fa={fak:"kit","fa-kit":"kit"},pa={fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"},ha={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands"},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"}},ma=[1,2,3,4,5,6,7,8,9,10],ga=ma.concat([11,12,13,14,15,16,17,18,19,20]),va={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ya=[...Object.keys({classic:["fas","far","fal","fat"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds"]}),"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",va.GROUP,va.SWAP_OPACITY,va.PRIMARY,va.SECONDARY].concat(ma.map((e=>"".concat(e,"x")))).concat(ga.map((e=>"w-".concat(e)))),ba={kit:"fak"},wa={"kit-duotone":"fakd"};const _a="___FONT_AWESOME___",xa=16,Ea="fa",Sa="svg-inline--fa",Oa="data-fa-i2svg",ka="data-fa-pseudo-element",Ta="data-fa-pseudo-element-pending",Aa="data-prefix",Ca="data-icon",Ra="fontawesome-i2svg",Pa="async",Na=["HTML","HEAD","STYLE","SCRIPT"],La=(()=>{try{return!0}catch(e){return!1}})(),Fa=[sa,ca,ua];function Da(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[sa]})}const Ma={...ha};Ma[sa]={...ha[sa],...fa,...pa};const Ia=Da(Ma),ja={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds"}};ja[sa]={...ja[sa],...ba,...wa};const Ua=Da(ja),Ha={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid"}};Ha[sa]={...Ha[sa],fak:"fa-kit"};const Ba=Da(Ha),za={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds"}};za[sa]={...za[sa],"fa-kit":"fak"};const Va=Da(za),Wa=/fa(s|r|l|t|d|b|k|kd|ss|sr|sl|st|sds)?[\-\ ]/,qa="fa-layers-text",$a=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i;Da({classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds"}});const Ka=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Ga=va,Qa=new Set;Object.keys(Ua[sa]).map(Qa.add.bind(Qa)),Object.keys(Ua[ca]).map(Qa.add.bind(Qa)),Object.keys(Ua[ua]).map(Qa.add.bind(Qa));const Ya=["kit",...ya],Xa=ta.FontAwesomeConfig||{};if(na&&"function"==typeof na.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=na.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=r&&(Xa[n]=r)}))}const Ja={styleDefault:"solid",familyDefault:"classic",cssPrefix:Ea,replacementClass:Sa,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Xa.familyPrefix&&(Xa.cssPrefix=Xa.familyPrefix);const Za={...Ja,...Xa};Za.autoReplaceSvg||(Za.observeMutations=!1);const es={};Object.keys(Ja).forEach((e=>{Object.defineProperty(es,e,{enumerable:!0,set:function(t){Za[e]=t,ts.forEach((e=>e(es)))},get:function(){return Za[e]}})})),Object.defineProperty(es,"familyPrefix",{enumerable:!0,set:function(e){Za.cssPrefix=e,ts.forEach((e=>e(es)))},get:function(){return Za.cssPrefix}}),ta.FontAwesomeConfig=es;const ts=[];const ns=xa,rs={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};const is="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function os(){let e=12,t="";for(;e-- >0;)t+=is[62*Math.random()|0];return t}function as(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function ss(e){return e.classList?as(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function ls(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function cs(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";")),"")}function us(e){return e.size!==rs.size||e.x!==rs.x||e.y!==rs.y||e.rotate!==rs.rotate||e.flipX||e.flipY}var ds=':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-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}\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}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function fs(){const e=Ea,t=Sa,n=es.cssPrefix,r=es.replacementClass;let i=ds;if(n!==e||r!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}let ps=!1;function hs(){es.autoAddCss&&!ps&&(!function(e){if(!e||!oa)return;const t=na.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=na.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)}na.head.insertBefore(t,r)}(fs()),ps=!0)}var ms={mixout:()=>({dom:{css:fs,insertCss:hs}}),hooks:()=>({beforeDOMElementCreation(){hs()},beforeI2svg(){hs()}})};const gs=ta||{};gs[_a]||(gs[_a]={}),gs[_a].styles||(gs[_a].styles={}),gs[_a].hooks||(gs[_a].hooks={}),gs[_a].shims||(gs[_a].shims=[]);var vs=gs[_a];const ys=[],bs=function(){na.removeEventListener("DOMContentLoaded",bs),ws=1,ys.map((e=>e()))};let ws=!1;function _s(e){const{tag:t,attributes:n={},children:r=[]}=e;return"string"==typeof e?ls(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,n)=>t+"".concat(n,'="').concat(ls(e[n]),'" ')),"").trim()}(n),">").concat(r.map(_s).join(""),"</").concat(t,">")}function xs(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}oa&&(ws=(na.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(na.readyState),ws||na.addEventListener("DOMContentLoaded",bs));var Es=function(e,t,n,r){var i,o,a,s=Object.keys(e),l=s.length,c=t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i<l;i++)a=c(a,e[o=s[i]],o,e);return a};function Ss(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 Os(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 ks(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:r=!1}=n,i=Os(t);"function"!=typeof vs.hooks.addPack||r?vs.styles[e]={...vs.styles[e]||{},...i}:vs.hooks.addPack(e,Os(t)),"fas"===e&&ks("fa",t)}const{styles:Ts,shims:As}=vs,Cs={[sa]:Object.values(Ba[sa]),[ca]:Object.values(Ba[ca]),[ua]:Object.values(Ba[ua])};let Rs=null,Ps={},Ns={},Ls={},Fs={},Ds={};const Ms={[sa]:Object.keys(Ia[sa]),[ca]:Object.keys(Ia[ca]),[ua]:Object.keys(Ia[ua])};function Is(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r!==e||""===i||(o=i,~Ya.indexOf(o))?null:i;var o}const js=()=>{const e=e=>Es(Ts,((t,n,r)=>(t[r]=Es(n,e,{}),t)),{});Ps=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})),Ns=e(((e,t,n)=>{if(e[n]=n,t[2]){t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=n}))}return e})),Ds=e(((e,t,n)=>{const r=t[2];return e[n]=n,r.forEach((t=>{e[t]=n})),e}));const t="far"in Ts||es.autoFetchSvg,n=Es(As,((e,n)=>{const r=n[0];let i=n[1];const o=n[2];return"far"!==i||t||(i="fas"),"string"==typeof r&&(e.names[r]={prefix:i,iconName:o}),"number"==typeof r&&(e.unicodes[r.toString(16)]={prefix:i,iconName:o}),e}),{names:{},unicodes:{}});Ls=n.names,Fs=n.unicodes,Rs=qs(es.styleDefault,{family:es.familyDefault})};var Us;function Hs(e,t){return(Ps[e]||{})[t]}function Bs(e,t){return(Ds[e]||{})[t]}function zs(e){return Ls[e]||{prefix:null,iconName:null}}function Vs(){return Rs}Us=e=>{Rs=qs(e.styleDefault,{family:es.familyDefault})},ts.push(Us),js();const Ws=()=>({prefix:null,iconName:null,rest:[]});function qs(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:n=sa}=t,r=Ia[n][e],i=Ua[n][e]||Ua[n][r],o=e in vs.styles?e:null;return i||o||null}const $s={[sa]:Object.keys(Ba[sa]),[ca]:Object.keys(Ba[ca]),[ua]:Object.keys(Ba[ua])};function Ks(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:n=!1}=t,r={[sa]:"".concat(es.cssPrefix,"-").concat(sa),[ca]:"".concat(es.cssPrefix,"-").concat(ca),[ua]:"".concat(es.cssPrefix,"-").concat(ua)};let i=null,o=sa;const a=da.filter((e=>e!==la));a.forEach((t=>{(e.includes(r[t])||e.some((e=>$s[t].includes(e))))&&(o=t)}));const s=e.reduce(((e,t)=>{const s=Is(es.cssPrefix,t);if(Ts[t]?(t=Cs[o].includes(t)?Va[o][t]:t,i=t,e.prefix=t):Ms[o].indexOf(t)>-1?(i=t,e.prefix=qs(t,{family:o})):s?e.iconName=s:t===es.replacementClass||a.some((e=>t===r[e]))||e.rest.push(t),!n&&e.prefix&&e.iconName){const t="fa"===i?zs(e.iconName):{},n=Bs(e.prefix,e.iconName);t.prefix&&(i=null),e.iconName=t.iconName||n||e.iconName,e.prefix=t.prefix||e.prefix,"far"!==e.prefix||Ts.far||!Ts.fas||es.autoFetchSvg||(e.prefix="fas")}return e}),Ws());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),s.prefix||o!==ca||!Ts.fass&&!es.autoFetchSvg||(s.prefix="fass",s.iconName=Bs(s.prefix,s.iconName)||s.iconName),s.prefix||o!==ua||!Ts.fasds&&!es.autoFetchSvg||(s.prefix="fasds",s.iconName=Bs(s.prefix,s.iconName)||s.iconName),"fa"!==s.prefix&&"fa"!==i||(s.prefix=Vs()||"fas"),s}let Gs=[],Qs={};const Ys={},Xs=Object.keys(Ys);function Js(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(Qs[e]||[]).forEach((e=>{t=e.apply(null,[t,...r])})),t}function Zs(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Qs[e]||[]).forEach((e=>{e.apply(null,n)}))}function el(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ys[e]?Ys[e].apply(null,t):void 0}function tl(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Vs();if(t)return t=Bs(n,t)||t,xs(nl.definitions,n,t)||xs(vs.styles,n,t)}const nl=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]={...this.definitions[e]||{},...r[e]},ks(e,r[e]);const t=Ba[sa][e];t&&ks(t,r[e]),js()}))}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:o}=n[t],a=o[2];e[r]||(e[r]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[r][t]=o)})),e[r][i]=o})),e}},rl={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return oa?(Zs("beforeI2svg",e),el("pseudoElements2svg",e),el("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===es.autoReplaceSvg&&(es.autoReplaceSvg=!0),es.observeMutations=!0,n=()=>{ol({autoReplaceSvgRoot:t}),Zs("watch",e)},oa&&(ws?setTimeout(n,0):ys.push(n))}},il={noAuto:()=>{es.autoReplaceSvg=!1,es.observeMutations=!1,Zs("noAuto")},config:es,dom:rl,parse:{icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Bs(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=qs(e[0]);return{prefix:n,iconName:Bs(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(es.cssPrefix,"-"))>-1||e.match(Wa))){const t=Ks(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Vs(),iconName:Bs(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Vs();return{prefix:t,iconName:Bs(t,e)||e}}}},library:nl,findIconDefinition:tl,toHtml:_s},ol=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=na}=e;(Object.keys(vs.styles).length>0||es.autoFetchSvg)&&oa&&es.autoReplaceSvg&&il.dom.i2svg({node:t})};function al(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>_s(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!oa)return;const t=na.createElement("div");return t.innerHTML=e.html,t.children}}),e}function sl(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:o,symbol:a,title:s,maskId:l,titleId:c,extra:u,watchable:d=!1}=e,{width:f,height:p}=n.found?n:t,h="fak"===r,m=[es.replacementClass,i?"".concat(es.cssPrefix,"-").concat(i):""].filter((e=>-1===u.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(u.classes).join(" ");let g={children:[],attributes:{...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(p)}};const v=h&&!~u.classes.indexOf("fa-fw")?{width:"".concat(f/p*16*.0625,"em")}:{};d&&(g.attributes[Oa]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(c||os())},children:[s]}),delete g.attributes.title);const y={...g,prefix:r,iconName:i,main:t,mask:n,maskId:l,transform:o,symbol:a,styles:{...v,...u.styles}},{children:b,attributes:w}=n.found&&t.found?el("generateAbstractMask",y)||{children:[],attributes:{}}:el("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=b,y.attributes=w,a?function(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:o}=e;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:{...i,id:!0===o?"".concat(t,"-").concat(es.cssPrefix,"-").concat(n):o},children:r}]}]}(y):function(e){let{children:t,main:n,mask:r,attributes:i,styles:o,transform:a}=e;if(us(a)&&n.found&&!r.found){const{width:e,height:t}=n,r={x:e/t/2,y:.5};i.style=cs({...o,"transform-origin":"".concat(r.x+a.x/16,"em ").concat(r.y+a.y/16,"em")})}return[{tag:"svg",attributes:i,children:t}]}(y)}function ll(e){const{content:t,width:n,height:r,transform:i,title:o,extra:a,watchable:s=!1}=e,l={...a.attributes,...o?{title:o}:{},class:a.classes.join(" ")};s&&(l[Oa]="");const c={...a.styles};us(i)&&(c.transform=function(e){let{transform:t,width:n=xa,height:r=xa,startCentered:i=!1}=e,o="";return o+=i&&aa?"translate(".concat(t.x/ns-n/2,"em, ").concat(t.y/ns-r/2,"em) "):i?"translate(calc(-50% + ".concat(t.x/ns,"em), calc(-50% + ").concat(t.y/ns,"em)) "):"translate(".concat(t.x/ns,"em, ").concat(t.y/ns,"em) "),o+="scale(".concat(t.size/ns*(t.flipX?-1:1),", ").concat(t.size/ns*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}({transform:i,startCentered:!0,width:n,height:r}),c["-webkit-transform"]=c.transform);const u=cs(c);u.length>0&&(l.style=u);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),o&&d.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),d}const{styles:cl}=vs;function ul(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(es.cssPrefix,"-").concat(Ga.GROUP)},children:[{tag:"path",attributes:{class:"".concat(es.cssPrefix,"-").concat(Ga.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(es.cssPrefix,"-").concat(Ga.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const dl={found:!1,width:512,height:512};function fl(e,t){let n=t;return"fa"===t&&null!==es.styleDefault&&(t=Vs()),new Promise(((r,i)=>{if("fa"===n){const n=zs(e)||{};e=n.iconName||e,t=n.prefix||t}if(e&&t&&cl[t]&&cl[t][e]){return r(ul(cl[t][e]))}!function(e,t){La||es.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),r({...dl,icon:es.showMissingIcons&&e&&el("missingIconAbstract")||{}})}))}const pl=()=>{},hl=es.measurePerformance&&ia&&ia.mark&&ia.measure?ia:{mark:pl,measure:pl},ml='FA "6.6.0"',gl=e=>{hl.mark("".concat(ml," ").concat(e," ends")),hl.measure("".concat(ml," ").concat(e),"".concat(ml," ").concat(e," begins"),"".concat(ml," ").concat(e," ends"))};var vl={begin:e=>(hl.mark("".concat(ml," ").concat(e," begins")),()=>gl(e)),end:gl};const yl=()=>{};function bl(e){return"string"==typeof(e.getAttribute?e.getAttribute(Oa):null)}function wl(e){return na.createElementNS("http://www.w3.org/2000/svg",e)}function _l(e){return na.createElement(e)}function xl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:n=("svg"===e.tag?wl:_l)}=t;if("string"==typeof e)return na.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(xl(e,{ceFn:n}))})),r}const El={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(xl(e),t)})),null===t.getAttribute(Oa)&&es.keepOriginalSource){let e=na.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(~ss(t).indexOf(es.replacementClass))return El.replace(e);const r=new RegExp("".concat(es.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const e=n[0].attributes.class.split(" ").reduce(((e,t)=>(t===es.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=>_s(e))).join("\n");t.setAttribute(Oa,""),t.innerHTML=i}};function Sl(e){e()}function Ol(e,t){const n="function"==typeof t?t:yl;if(0===e.length)n();else{let t=Sl;es.mutateApproach===Pa&&(t=ta.requestAnimationFrame||Sl),t((()=>{const t=!0===es.autoReplaceSvg?El.replace:El[es.autoReplaceSvg]||El.replace,r=vl.begin("mutate");e.map(t),r(),n()}))}}let kl=!1;function Tl(){kl=!0}function Al(){kl=!1}let Cl=null;function Rl(e){if(!ra)return;if(!es.observeMutations)return;const{treeCallback:t=yl,nodeCallback:n=yl,pseudoElementsCallback:r=yl,observeMutationsRoot:i=na}=e;Cl=new ra((e=>{if(kl)return;const i=Vs();as(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!bl(e.addedNodes[0])&&(es.searchPseudoElements&&r(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&es.searchPseudoElements&&r(e.target.parentNode),"attributes"===e.type&&bl(e.target)&&~Ka.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(Aa):null,n=e.getAttribute?e.getAttribute(Ca):null;return t&&n}(e.target)){const{prefix:t,iconName:n}=Ks(ss(e.target));e.target.setAttribute(Aa,t||i),n&&e.target.setAttribute(Ca,n)}else(o=e.target)&&o.classList&&o.classList.contains&&o.classList.contains(es.replacementClass)&&n(e.target);var o}))})),oa&&Cl.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Pl(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=void 0!==e.innerText?e.innerText.trim():"";let i=Ks(ss(e));return i.prefix||(i.prefix=Vs()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=(o=i.prefix,a=e.innerText,(Ns[o]||{})[a]||Hs(i.prefix,Ss(e.innerText)))),!i.iconName&&es.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i;var o,a}function Nl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=Pl(e),o=function(e){const t=as(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 es.autoA11y&&(n?t["aria-labelledby"]="".concat(es.replacementClass,"-title-").concat(r||os()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=Js("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{iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:rs,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:s,attributes:o},...a}}const{styles:Ll}=vs;function Fl(e){const t="nest"===es.autoReplaceSvg?Nl(e,{styleParser:!1}):Nl(e);return~t.extra.classes.indexOf(qa)?el("generateLayersText",e,t):el("generateSvgReplacementMutation",e,t)}let Dl=new Set;function Ml(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!oa)return Promise.resolve();const n=na.documentElement.classList,r=e=>n.add("".concat(Ra,"-").concat(e)),i=e=>n.remove("".concat(Ra,"-").concat(e)),o=es.autoFetchSvg?Dl:Fa.map((e=>"fa-".concat(e))).concat(Object.keys(Ll));o.includes("fa")||o.push("fa");const a=[".".concat(qa,":not([").concat(Oa,"])")].concat(o.map((e=>".".concat(e,":not([").concat(Oa,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=as(e.querySelectorAll(a))}catch(u){}if(!(s.length>0))return Promise.resolve();r("pending"),i("complete");const l=vl.begin("onTree"),c=s.reduce(((e,t)=>{try{const n=Fl(t);n&&e.push(n)}catch(u){La||"MissingIcon"===u.name&&console.error(u)}return e}),[]);return new Promise(((e,n)=>{Promise.all(c).then((n=>{Ol(n,(()=>{r("active"),r("complete"),i("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),n(e)}))}))}function Il(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Fl(e).then((e=>{e&&Ol([e],t)}))}Fa.map((e=>{Dl.add("fa-".concat(e))})),Object.keys(Ia[sa]).map(Dl.add.bind(Dl)),Object.keys(Ia[ca]).map(Dl.add.bind(Dl)),Object.keys(Ia[ua]).map(Dl.add.bind(Dl)),Dl=[...Dl];const jl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=rs,symbol:r=!1,mask:i=null,maskId:o=null,title:a=null,titleId:s=null,classes:l=[],attributes:c={},styles:u={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:p}=e;return al({type:"icon",...e},(()=>(Zs("beforeDOMElementCreation",{iconDefinition:e,params:t}),es.autoA11y&&(a?c["aria-labelledby"]="".concat(es.replacementClass,"-title-").concat(s||os()):(c["aria-hidden"]="true",c.focusable="false")),sl({icons:{main:ul(p),mask:i?ul(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:{...rs,...n},symbol:r,title:a,maskId:o,titleId:s,extra:{attributes:c,styles:u,classes:l}}))))};var Ul={mixout(){return{icon:(e=jl,function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=(t||{}).icon?t:tl(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:tl(i||{})),e(r,{...n,mask:i})})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=Ml,e.nodeCallback=Il,e)}),provides(e){e.i2svg=function(e){const{node:t=na,callback:n=()=>{}}=e;return Ml(t,n)},e.generateSvgReplacementMutation=function(e,t){const{iconName:n,title:r,titleId:i,prefix:o,transform:a,symbol:s,mask:l,maskId:c,extra:u}=t;return new Promise(((t,d)=>{Promise.all([fl(n,o),l.iconName?fl(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,sl({icons:{main:d,mask:f},prefix:o,iconName:n,transform:a,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:o}=e;const a=cs(o);let s;return a.length>0&&(n.style=a),us(i)&&(s=el("generateAbstractTransformGrouping",{main:r,transform:i,containerWidth:r.width,iconWidth:r.width})),t.push(s||r.icon),{children:t,attributes:n}}}},Hl={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:n=[]}=t;return al({type:"layer"},(()=>{Zs("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(es.cssPrefix,"-layers"),...n].join(" ")},children:r}]}))}})},Bl={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:o={}}=t;return al({type:"counter",content:e},(()=>(Zs("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:n,extra:r}=e,i={...r.attributes,...n?{title:n}:{},class:r.classes.join(" ")},o=cs(r.styles);o.length>0&&(i.style=o);const a=[];return a.push({tag:"span",attributes:i,children:[t]}),n&&a.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),a}({content:e.toString(),title:n,extra:{attributes:i,styles:o,classes:["".concat(es.cssPrefix,"-layers-counter"),...r]}}))))}})},zl={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:n=rs,title:r=null,classes:i=[],attributes:o={},styles:a={}}=t;return al({type:"text",content:e},(()=>(Zs("beforeDOMElementCreation",{content:e,params:t}),ll({content:e,transform:{...rs,...n},title:r,extra:{attributes:o,styles:a,classes:["".concat(es.cssPrefix,"-layers-text"),...i]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:n,transform:r,extra:i}=t;let o=null,a=null;if(aa){const t=parseInt(getComputedStyle(e).fontSize,10),n=e.getBoundingClientRect();o=n.width/t,a=n.height/t}return es.autoA11y&&!n&&(i.attributes["aria-hidden"]="true"),Promise.resolve([e,ll({content:e.innerHTML,width:o,height:a,transform:r,title:n,extra:i,watchable:!0})])}}};const Vl=new RegExp('"',"ug"),Wl=[1105920,1112319],ql={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"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds"},"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"}},$l=Object.keys(ql).reduce(((e,t)=>(e[t.toLowerCase()]=ql[t],e)),{}),Kl=Object.keys($l).reduce(((e,t)=>{const n=$l[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e}),{});function Gl(e,t){const n="".concat(Ta).concat(t.replace(":","-"));return new Promise(((r,i)=>{if(null!==e.getAttribute(n))return r();const o=as(e.children).filter((e=>e.getAttribute(ka)===t))[0],a=ta.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match($a),c=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&"none"!==u&&""!==u){const u=a.getPropertyValue("content");let d=function(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return($l[n]||{})[i]||Kl[n]}(s,c);const{value:f,isSecondary:p}=function(e){const t=e.replace(Vl,""),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>=Wl[0]&&n<=Wl[1],i=2===t.length&&t[0]===t[1];return{value:Ss(i?t[0]:t),isSecondary:r||i}}(u),h=l[0].startsWith("FontAwesome");let m=Hs(d,f),g=m;if(h){const e=function(e){const t=Fs[e],n=Hs("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||p||o&&o.getAttribute(Aa)===d&&o.getAttribute(Ca)===g)r();else{e.setAttribute(n,g),o&&e.removeChild(o);const a={iconName:null,title:null,titleId:null,prefix:null,transform:rs,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[ka]=t,fl(m,d).then((i=>{const o=sl({...a,icons:{main:i,mask:Ws()},prefix:d,iconName:g,extra:s,watchable:!0}),l=na.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=o.map((e=>_s(e))).join("\n"),e.removeAttribute(n),r()})).catch(i)}}else r()}))}function Ql(e){return Promise.all([Gl(e,"::before"),Gl(e,"::after")])}function Yl(e){return!(e.parentNode===document.head||~Na.indexOf(e.tagName.toUpperCase())||e.getAttribute(ka)||e.parentNode&&"svg"===e.parentNode.tagName)}function Xl(e){if(oa)return new Promise(((t,n)=>{const r=as(e.querySelectorAll("*")).filter(Yl).map(Ql),i=vl.begin("searchPseudoElements");Tl(),Promise.all(r).then((()=>{i(),Al(),t()})).catch((()=>{i(),Al(),n()}))}))}var Jl={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=Xl,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=na}=e;es.searchPseudoElements&&Xl(t)}}};let Zl=!1;var ec={mixout:()=>({dom:{unwatch(){Tl(),Zl=!0}}}),hooks:()=>({bootstrap(){Rl(Js("mutationObserverCallbacks",{}))},noAuto(){Cl&&Cl.disconnect()},watch(e){const{observeMutationsRoot:t}=e;Zl?Al():Rl(Js("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const tc=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});var nc={mixout:()=>({parse:{transform:e=>tc(e)}}),hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=tc(n)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:n,containerWidth:r,iconWidth:i}=e;const o={transform:"translate(".concat(r/2," 256)")},a="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={transform:"".concat(a," ").concat(s," ").concat(l)},u={transform:"translate(".concat(i/2*-1," -256)")};return{tag:"g",attributes:{...o},children:[{tag:"g",attributes:{...c},children:[{tag:t.icon.tag,children:t.icon.children,attributes:{...t.icon.attributes,...u}}]}]}}}};const rc={x:0,y:0,width:"100%",height:"100%"};function ic(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var oc={hooks:()=>({parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?Ks(n.split(" ").map((e=>e.trim()))):Ws();return r.prefix||(r.prefix=Vs()),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:o,transform:a}=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)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="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(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}({transform:a,containerWidth:c,iconWidth:s}),f={tag:"rect",attributes:{...rc,fill:"white"}},p=l.children?{children:l.children.map(ic)}:{},h={tag:"g",attributes:{...d.inner},children:[ic({tag:l.tag,attributes:{...l.attributes,...d.path},...p})]},m={tag:"g",attributes:{...d.outer},children:[h]},g="mask-".concat(o||os()),v="clip-".concat(o||os()),y={tag:"mask",attributes:{...rc,id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"},children:[f,m]},b={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:(w=u,"g"===w.tag?w.children:[w])},y]};var w;return t.push(b,{tag:"rect",attributes:{fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")"),...rc}}),{children:t,attributes:n}}}};!function(e,t){let{mixoutsTo:n}=t;Gs=e,Qs={},Object.keys(Ys).forEach((e=>{-1===Xs.indexOf(e)&&delete Ys[e]})),Gs.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=>{Qs[e]||(Qs[e]=[]),Qs[e].push(t[e])}))}e.provides&&e.provides(Ys)}))}([ms,Ul,Hl,Bl,zl,Jl,ec,nc,oc,{provides(e){let t=!1;ta.matchMedia&&(t=ta.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:{...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={...r,attributeName:"opacity"},o={tag:"circle",attributes:{...n,cx:"256",cy:"364",r:"28"},children:[]};return t||o.children.push({tag:"animate",attributes:{...r,attributeName:"r",values:"28;14;28;28;14;28;"}},{tag:"animate",attributes:{...i,values:"1;0;1;1;0;1;"}}),e.push(o),e.push({tag:"path",attributes:{...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:{...i,values:"1;0;0;0;0;1;"}}]}),t||e.push({tag:"path",attributes:{...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:{...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:il});const ac=il.config,sc=il.library,lc=il.dom,cc=il.parse,uc=il.icon,dc={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"]},fc={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"]},pc={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"]};function hc(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=hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function mc(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=hc(e))&&(r&&(r+=" "),r+=t);return r}const gc=({class:e,children:t,...n})=>{const r=Object.keys(n).find((e=>n[e])),i={class:mc(r?vc[r]:void 0,e),children:t};return n.heading1?xt(xc,{...i}):n.paragraph1?xt(Ec,{...i}):n.label?xt(Sc,{...i}):n.field?xt(Oc,{...i}):n.hint?xt(kc,{...i}):n.terms?xt(Tc,{...i}):n.link?xt(Ac,{...i}):n.h1?xt("h1",{...i}):n.h2?xt("h2",{...i}):n.h3?xt("h3",{...i}):n.p?xt("p",{...i}):n.span?xt("span",{...i}):xt("p",{...i})},vc={brand:"text-primary-base",danger:"text-red-500",dark:"text-gray-700",darker:"text-gray-900",light:"text-gray-400",default:"text-gray-600"},yc=`text-3xl font-bold leading-9 ${vc.darker}`,bc=`text-base font-medium leading-6 ${vc.dark}`,wc=`text-sm font-medium leading-5 ${vc.dark}`,_c=`underline ${vc.brand}`,xc=e=>xt("h1",{...e,class:mc(yc,e.class)}),Ec=e=>xt("p",{...e,class:mc("text-lg leading-7",e.class)}),Sc=e=>xt("span",{...e,class:mc(bc,e.class)}),Oc=e=>xt("span",{...e,class:mc(wc,e.class)}),kc=e=>xt("p",{...e,class:mc("text-sm",e.class)}),Tc=e=>xt("p",{...e,class:mc("text-xs",e.class)}),Ac=e=>xt("a",{...e,class:mc(_c,e.class)});sc.add(pc,fc),ac.autoAddCss=!1;const Cc=({children:e})=>xt(qe,{children:[xt("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}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.right-2\\.5{right:.625rem}.top-3{top:.75rem}.z-10{z-index:10}.m-0\\.5{margin:.125rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.mr-2\\.5{margin-right:.625rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-5{height:1.25rem}.h-full{height:100%}.min-h-\\[50rem\\]{min-height:50rem}.w-1\\/2{width:50%}.w-10{width:2.5rem}.w-5{width:1.25rem}.w-\\[var\\(--button-width\\)\\]{width:var(--button-width)}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-60{min-width:15rem}.max-w-\\[30rem\\]{max-width:30rem}.max-w-\\[59\\.5rem\\]{max-width:59.5rem}.flex-1{flex:1 1 0%}.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))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.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-center{align-items:center}.justify-center{justify-content:center}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.self-start{align-self:flex-start}.overflow-x-hidden{overflow-x:hidden}.rounded{border-radius:.25rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.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-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / 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-primary-base{background-color:var(--fl-color-primary)}.bg-secondary-base{background-color:var(--fl-color-secondary)}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.p-0\\.5{padding:.125rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-12{padding-left:3rem;padding-right:3rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.pl-3{padding-left:.75rem}.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}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-7{line-height:1.75rem}.leading-9{line-height:2.25rem}.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-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-secondary-text{color:var(--fl-color-secondary-text)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.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-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)}.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-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}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,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-hover_from_host: var(--fl-color-primary-hover);--fl-color-primary-focus_from_host: var(--fl-color-primary-focus);--fl-color-primary-text_from_host: var(--fl-color-primary-text);--fl-color-secondary_from_host: var(--fl-color-secondary);--fl-color-secondary-hover_from_host: var(--fl-color-secondary-hover);--fl-color-secondary-focus_from_host: var(--fl-color-secondary-focus);--fl-color-secondary-text_from_host: var(--fl-color-secondary-text);--fl-color-secondary-disabled_from_host: var(--fl-color-secondary-disabled)}*{--fl-color-primary: var(--fl-color-primary_from_host, #2E66F7);--fl-color-primary-hover: var(--fl-color-primary-hover_from_host, #0048fe);--fl-color-primary-focus: var(--fl-color-primary-focus_from_host, #40a9ff);--fl-color-primary-text: var(--fl-color-primary-text_from_host, #ffffff);--fl-color-secondary: var(--fl-color-secondary_from_host, #d3d3d3);--fl-color-secondary-hover: var(--fl-color-secondary-hover_from_host, #ebebeb);--fl-color-secondary-focus: var(--fl-color-secondary-focus_from_host, #ebebeb);--fl-color-secondary-text: var(--fl-color-secondary-text_from_host, #262626);--fl-color-secondary-disabled: var(--fl-color-secondary-disabled_from_host, #f5f5f5)}.slide-enter,.slide-enter-active,.slide-exit,.slide-exit-active{position:absolute;top:0;left:0;bottom:0;right: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-primary-hover:hover{background-color:var(--fl-color-primary-hover)}.hover\\:bg-secondary-hover:hover{background-color:var(--fl-color-secondary-hover)}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-1: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(1px + 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-secondary-base:focus{--tw-ring-color: var(--fl-color-secondary)}.focus\\:ring-offset-1:focus{--tw-ring-offset-width: 1px}.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-\\[focus\\]\\:bg-primary-base[data-focus]{background-color:var(--fl-color-primary)}.data-\\[focus\\]\\:text-primary-text[data-focus]{color:var(--fl-color-primary-text)}.data-\\[leave\\]\\:data-\\[closed\\]\\:opacity-0[data-closed][data-leave]{opacity:0}@media (min-width: 768px){.md\\:block{display:block}.md\\:grid{display:grid}.md\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}'+lc.css()}),xt("div",{class:mc("font-sans",vc.default),children:e})]}),Rc=e=>xt("svg",{class:mc("animate-spin",e.class),fill:"none",viewBox:"0 0 24 24",children:[xt("circle",{class:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),xt("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"})]}),Pc=()=>xt("div",{class:"flex flex-col gap-8 items-center justify-center h-full",children:xt(Rc,{class:mc("w-10 h-10",vc.brand)})}),Nc=({status:e="idle",...t})=>xt("button",{class:mc(["relative items-center px-4 py-2 border border-transparent shadow-sm font-medium rounded-md text-base focus:outline-none focus:ring-1 focus:ring-offset-1 m-0.5",t.secondary?"bg-secondary-base text-secondary-text hover:bg-secondary-hover focus:ring-secondary-base":"bg-primary-base text-primary-text hover:bg-primary-hover focus:ring-primary-base",t.disabled?"bg-secondary-base text-secondary-text opacity-30":"","pending"===e||t.disabled?"pointer-events-none":"",t.class]),disabled:"pending"===e||t.disabled,onClick:t.onClick,tabindex:"pending"===e||t.disabled?-1:void 0,type:"button",children:[xt("span",{class:mc(["pending"===e?"opacity-0":""]),children:t.children}),"pending"===e?xt("div",{class:"absolute inset-0 flex justify-center items-center",children:xt(Rc,{class:"h-5 w-5"})}):null]});function Lc(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 Fc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Lc(Object(n),!0).forEach((function(t){Mc(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Dc(e){return(Dc="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 Mc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ic(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jc(e){return function(e){if(Array.isArray(e))return Uc(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 Uc(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 Uc(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 Uc(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 Hc(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 Bc=["style"];var zc=!1;try{zc=!0}catch(Vm){}function Vc(e){return e&&"object"===Dc(e)&&e.prefix&&e.iconName&&e.icon?e:cc.icon?cc.icon(e):null===e?null:e&&"object"===Dc(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 Wc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Mc({},e,t):{}}var qc={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},$c=Xr.forwardRef((function(e,t){var n=Fc(Fc({},qc),e),r=n.icon,i=n.mask,o=n.symbol,a=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Vc(r),d=Wc("classes",[].concat(jc(function(e){var t,n=e.beat,r=e.fade,i=e.beatFade,o=e.bounce,a=e.shake,s=e.flash,l=e.spin,c=e.spinPulse,u=e.spinReverse,d=e.pulse,f=e.fixedWidth,p=e.inverse,h=e.border,m=e.listItem,g=e.flip,v=e.size,y=e.rotation,b=e.pull,w=(Mc(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":o,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":u,"fa-spin-pulse":c,"fa-pulse":d,"fa-fw":f,"fa-inverse":p,"fa-border":h,"fa-li":m,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(v),null!=v),Mc(t,"fa-rotate-".concat(y),null!=y&&0!==y),Mc(t,"fa-pull-".concat(b),null!=b),Mc(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(w).map((function(e){return w[e]?e:null})).filter((function(e){return e}))}(n)),jc((a||"").split(" ")))),f=Wc("transform","string"==typeof n.transform?cc.transform(n.transform):n.transform),p=Wc("mask",Vc(i)),h=uc(u,Fc(Fc(Fc(Fc({},d),f),p),{},{symbol:o,title:s,titleId:l,maskId:c}));if(!h)return function(){var e;!zc&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",u),null;var m=h.abstract,g={ref:t};return Object.keys(n).forEach((function(e){qc.hasOwnProperty(e)||(g[e]=n[e])})),Kc(m[0],g)}));$c.displayName="FontAwesomeIcon",$c.propTypes={beat:Ro.bool,border:Ro.bool,beatFade:Ro.bool,bounce:Ro.bool,className:Ro.string,fade:Ro.bool,flash:Ro.bool,mask:Ro.oneOfType([Ro.object,Ro.array,Ro.string]),maskId:Ro.string,fixedWidth:Ro.bool,inverse:Ro.bool,flip:Ro.oneOf([!0,!1,"horizontal","vertical","both"]),icon:Ro.oneOfType([Ro.object,Ro.array,Ro.string]),listItem:Ro.bool,pull:Ro.oneOf(["right","left"]),pulse:Ro.bool,rotation:Ro.oneOf([0,90,180,270]),shake:Ro.bool,size:Ro.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:Ro.bool,spinPulse:Ro.bool,spinReverse:Ro.bool,symbol:Ro.oneOfType([Ro.bool,Ro.string]),title:Ro.string,titleId:Ro.string,transform:Ro.oneOfType([Ro.string,Ro.object]),swapOpacity:Ro.bool};var Kc=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)})),o=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=Hc(t.slice(0,r)),o=t.slice(r+1).trim();return i.startsWith("webkit")?e[(n=i,n.charAt(0).toUpperCase()+n.slice(1))]=o:e[i]=o,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[Hc(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,l=Ic(r,Bc);return o.attrs.style=Fc(Fc({},o.attrs.style),s),t.apply(void 0,[n.tag,Fc(Fc({},o.attrs),l)].concat(jc(i)))}.bind(null,Xr.createElement);const Gc=e=>xt("div",{class:"flex flex-col gap-8 items-center justify-center h-full",children:[xt($c,{className:vc.danger,icon:dc,size:"4x"}),xt("div",{class:" max-w-[30rem]",children:[xt(gc,{class:"text-center",heading1:!0,children:"Sorry about that!"}),xt(gc,{class:"text-center",paragraph1:!0,children:"Something unexpected has occurred and we are working hard to fix it. Please try again later."})]}),xt(Nc,{onClick:e.retry,children:"Retry"})]}),Qc=({class:e,...t})=>xt("div",{class:mc("flex-1",e),...t});var Yc=(e=>(e.Ineligible="Ineligible",e.Completion="Completion",e.Consent="Consent",e.Question="Question",e))(Yc||{}),Xc=(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))(Xc||{}),Jc=(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.None="None",e))(Jc||{}),Zc=(e=>(e.ProgressStep="ProgressStep",e.UpdateAnswersOfCompletedActivity="UpdateAnswersOfCompletedActivity",e.ProgressStartToComplete="ProgressStartToComplete",e))(Zc||{}),eu=(e=>(e.Standard="standard",e.Lookup="lookup",e))(eu||{}),tu=(e=>(e.AssessmentViewed="Assessment Viewed",e.AssessmentSkipped="Assessment Skipped",e.AssessmentFieldUpdated="AssessmentField Updated",e.AssessmentSubmitted="Assessment Submitted",e.AssessmentSummaryViewed="AssessmentSummary Viewed",e))(tu||{});function nu(e,t){return function(){return e.apply(t,arguments)}}const{toString:ru}=Object.prototype,{getPrototypeOf:iu}=Object,ou=(e=>t=>{const n=ru.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),au=e=>(e=e.toLowerCase(),t=>ou(t)===e),su=e=>t=>typeof t===e,{isArray:lu}=Array,cu=su("undefined");const uu=au("ArrayBuffer");const du=su("string"),fu=su("function"),pu=su("number"),hu=e=>null!==e&&"object"==typeof e,mu=e=>{if("object"!==ou(e))return!1;const t=iu(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e)},gu=au("Date"),vu=au("File"),yu=au("Blob"),bu=au("FileList"),wu=au("URLSearchParams"),[_u,xu,Eu,Su]=["ReadableStream","Request","Response","Headers"].map(au);function Ou(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,i;if("object"!=typeof e&&(e=[e]),lu(e))for(r=0,i=e.length;r<i;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let a;for(r=0;r<o;r++)a=i[r],t.call(null,e[a],a,e)}}function ku(e,t){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 Tu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Au=e=>!cu(e)&&e!==Tu;const Cu=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&iu(Uint8Array)),Ru=au("HTMLFormElement"),Pu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Nu=au("RegExp"),Lu=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Ou(n,((n,i)=>{let o;!1!==(o=t(n,i,e))&&(r[i]=o||n)})),Object.defineProperties(e,r)},Fu="abcdefghijklmnopqrstuvwxyz",Du="0123456789",Mu={DIGIT:Du,ALPHA:Fu,ALPHA_DIGIT:Fu+Fu.toUpperCase()+Du};const Iu=au("AsyncFunction"),ju=(Uu="function"==typeof setImmediate,Hu=fu(Tu.postMessage),Uu?setImmediate:Hu?(Bu=`axios@${Math.random()}`,zu=[],Tu.addEventListener("message",(({source:e,data:t})=>{e===Tu&&t===Bu&&zu.length&&zu.shift()()}),!1),e=>{zu.push(e),Tu.postMessage(Bu,"*")}):e=>setTimeout(e));var Uu,Hu,Bu,zu;const Vu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(Tu):"undefined"!=typeof process&&process.nextTick||ju,Wu={isArray:lu,isArrayBuffer:uu,isBuffer:function(e){return null!==e&&!cu(e)&&null!==e.constructor&&!cu(e.constructor)&&fu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||fu(e.append)&&("formdata"===(t=ou(e))||"object"===t&&fu(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&uu(e.buffer),t},isString:du,isNumber:pu,isBoolean:e=>!0===e||!1===e,isObject:hu,isPlainObject:mu,isReadableStream:_u,isRequest:xu,isResponse:Eu,isHeaders:Su,isUndefined:cu,isDate:gu,isFile:vu,isBlob:yu,isRegExp:Nu,isFunction:fu,isStream:e=>hu(e)&&fu(e.pipe),isURLSearchParams:wu,isTypedArray:Cu,isFileList:bu,forEach:Ou,merge:function e(){const{caseless:t}=Au(this)&&this||{},n={},r=(r,i)=>{const o=t&&ku(n,i)||i;mu(n[o])&&mu(r)?n[o]=e(n[o],r):mu(r)?n[o]=e({},r):lu(r)?n[o]=r.slice():n[o]=r};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&Ou(arguments[i],r);return n},extend:(e,t,n,{allOwnKeys:r}={})=>(Ou(t,((t,r)=>{n&&fu(t)?e[r]=nu(t,n):e[r]=t}),{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let i,o,a;const s={};if(t=t||{},null==e)return t;do{for(i=Object.getOwnPropertyNames(e),o=i.length;o-- >0;)a=i[o],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&iu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:ou,kindOfTest:au,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(lu(e))return e;let t=e.length;if(!pu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Ru,hasOwnProperty:Pu,hasOwnProp:Pu,reduceDescriptors:Lu,freezeMethods:e=>{Lu(e,((t,n)=>{if(fu(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];fu(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 lu(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:ku,global:Tu,isContextDefined:Au,ALPHABET:Mu,generateString:(e=16,t=Mu.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&fu(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(hu(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[r]=e;const i=lu(e)?[]:{};return Ou(e,((e,t)=>{const o=n(e,r+1);!cu(o)&&(i[t]=o)})),t[r]=void 0,i}}return e};return n(e,0)},isAsyncFn:Iu,isThenable:e=>e&&(hu(e)||fu(e))&&fu(e.then)&&fu(e.catch),setImmediate:ju,asap:Vu};function qu(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}Wu.inherits(qu,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Wu.toJSONObject(this.config),code:this.code,status:this.status}}});const $u=qu.prototype,Ku={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((e=>{Ku[e]={value:e}})),Object.defineProperties(qu,Ku),Object.defineProperty($u,"isAxiosError",{value:!0}),qu.from=(e,t,n,r,i,o)=>{const a=Object.create($u);return Wu.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(e=>"isAxiosError"!==e)),qu.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};function Gu(e){return Wu.isPlainObject(e)||Wu.isArray(e)}function Qu(e){return Wu.endsWith(e,"[]")?e.slice(0,-2):e}function Yu(e,t,n){return e?e.concat(t).map((function(e,t){return e=Qu(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}const Xu=Wu.toFlatObject(Wu,{},null,(function(e){return/^is[A-Z]/.test(e)}));function Ju(e,t,n){if(!Wu.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=Wu.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!Wu.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&Wu.isSpecCompliantForm(t);if(!Wu.isFunction(i))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(Wu.isDate(e))return e.toISOString();if(!s&&Wu.isBlob(e))throw new qu("Blob is not supported. Use a Buffer instead.");return Wu.isArrayBuffer(e)||Wu.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,i){let s=e;if(e&&!i&&"object"==typeof e)if(Wu.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(Wu.isArray(e)&&function(e){return Wu.isArray(e)&&!e.some(Gu)}(e)||(Wu.isFileList(e)||Wu.endsWith(n,"[]"))&&(s=Wu.toArray(e)))return n=Qu(n),s.forEach((function(e,r){!Wu.isUndefined(e)&&null!==e&&t.append(!0===a?Yu([n],r,o):null===a?n:n+"[]",l(e))})),!1;return!!Gu(e)||(t.append(Yu(i,n,o),l(e)),!1)}const u=[],d=Object.assign(Xu,{defaultVisitor:c,convertValue:l,isVisitable:Gu});if(!Wu.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!Wu.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),Wu.forEach(n,(function(n,o){!0===(!(Wu.isUndefined(n)||null===n)&&i.call(t,n,Wu.isString(o)?o.trim():o,r,d))&&e(n,r?r.concat(o):[o])})),u.pop()}}(e),t}function Zu(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ed(e,t){this._pairs=[],e&&Ju(e,this,t)}const td=ed.prototype;function nd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function rd(e,t,n){if(!t)return e;const r=n&&n.encode||nd,i=n&&n.serialize;let o;if(o=i?i(t,n):Wu.isURLSearchParams(t)?t.toString():new ed(t,n).toString(r),o){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}td.append=function(e,t){this._pairs.push([e,t])},td.toString=function(e){const t=e?function(t){return e.call(this,t,Zu)}:Zu;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};class id{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){Wu.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}const od={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ad={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ed,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},sd="undefined"!=typeof window&&"undefined"!=typeof document,ld="object"==typeof navigator&&navigator||void 0,cd=sd&&(!ld||["ReactNative","NativeScript","NS"].indexOf(ld.product)<0),ud="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,dd=sd&&window.location.href||"http://localhost",fd={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:sd,hasStandardBrowserEnv:cd,hasStandardBrowserWebWorkerEnv:ud,navigator:ld,origin:dd},Symbol.toStringTag,{value:"Module"})),...ad};function pd(e){function t(e,n,r,i){let o=e[i++];if("__proto__"===o)return!0;const a=Number.isFinite(+o),s=i>=e.length;if(o=!o&&Wu.isArray(r)?r.length:o,s)return Wu.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a;r[o]&&Wu.isObject(r[o])||(r[o]=[]);return t(e,n,r[o],i)&&Wu.isArray(r[o])&&(r[o]=function(e){const t={},n=Object.keys(e);let r;const i=n.length;let o;for(r=0;r<i;r++)o=n[r],t[o]=e[o];return t}(r[o])),!a}if(Wu.isFormData(e)&&Wu.isFunction(e.entries)){const n={};return Wu.forEachEntry(e,((e,r)=>{t(function(e){return Wu.matchAll(/\w+|\[(\w*)]/g,e).map((e=>"[]"===e[0]?"":e[1]||e[0]))}(e),r,n,0)})),n}return null}const hd={transitional:od,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=Wu.isObject(e);i&&Wu.isHTMLForm(e)&&(e=new FormData(e));if(Wu.isFormData(e))return r?JSON.stringify(pd(e)):e;if(Wu.isArrayBuffer(e)||Wu.isBuffer(e)||Wu.isStream(e)||Wu.isFile(e)||Wu.isBlob(e)||Wu.isReadableStream(e))return e;if(Wu.isArrayBufferView(e))return e.buffer;if(Wu.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let o;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Ju(e,new fd.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return fd.isNode&&Wu.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((o=Wu.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Ju(o?{"files[]":e}:e,t&&new t,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),function(e,t,n){if(Wu.isString(e))try{return(t||JSON.parse)(e),Wu.trim(e)}catch(Vm){if("SyntaxError"!==Vm.name)throw Vm}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||hd.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(Wu.isResponse(e)||Wu.isReadableStream(e))return e;if(e&&Wu.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(Vm){if(n){if("SyntaxError"===Vm.name)throw qu.from(Vm,qu.ERR_BAD_RESPONSE,this,null,this.response);throw Vm}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fd.classes.FormData,Blob:fd.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Wu.forEach(["delete","get","head","post","put","patch"],(e=>{hd.headers[e]={}}));const md=Wu.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"]),gd=Symbol("internals");function vd(e){return e&&String(e).trim().toLowerCase()}function yd(e){return!1===e||null==e?e:Wu.isArray(e)?e.map(yd):String(e)}function bd(e,t,n,r,i){return Wu.isFunction(r)?r.call(this,t,n):(i&&(t=n),Wu.isString(t)?Wu.isString(r)?-1!==t.indexOf(r):Wu.isRegExp(r)?r.test(t):void 0:void 0)}class wd{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function i(e,t,n){const i=vd(t);if(!i)throw new Error("header name must be a non-empty string");const o=Wu.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=yd(e))}const o=(e,t)=>Wu.forEach(e,((e,n)=>i(e,n,t)));if(Wu.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(Wu.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))o((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]&&md[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(Wu.isHeaders(e))for(const[a,s]of e.entries())i(s,a,n);else null!=e&&i(t,e,n);return this}get(e,t){if(e=vd(e)){const n=Wu.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(Wu.isFunction(t))return t.call(this,e,n);if(Wu.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=vd(e)){const n=Wu.findKey(this,e);return!(!n||void 0===this[n]||t&&!bd(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function i(e){if(e=vd(e)){const i=Wu.findKey(n,e);!i||t&&!bd(0,n[i],i,t)||(delete n[i],r=!0)}}return Wu.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&&!bd(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}normalize(e){const t=this,n={};return Wu.forEach(this,((r,i)=>{const o=Wu.findKey(n,i);if(o)return t[o]=yd(r),void delete t[i];const a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,((e,t,n)=>t.toUpperCase()+n))}(i):String(i).trim();a!==i&&delete t[i],t[a]=yd(r),n[a]=!0})),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return Wu.forEach(this,((n,r)=>{null!=n&&!1!==n&&(t[r]=e&&Wu.isArray(n)?n.join(", "):n)})),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map((([e,t])=>e+": "+t)).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach((e=>n.set(e))),n}static accessor(e){const t=(this[gd]=this[gd]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=vd(e);t[r]||(!function(e,t){const n=Wu.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 Wu.isArray(e)?e.forEach(r):r(e),this}}function _d(e,t){const n=this||hd,r=t||n,i=wd.from(r.headers);let o=r.data;return Wu.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function xd(e){return!(!e||!e.__CANCEL__)}function Ed(e,t,n){qu.call(this,null==e?"canceled":e,qu.ERR_CANCELED,t,n),this.name="CanceledError"}function Sd(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new qu("Request failed with status code "+n.status,[qu.ERR_BAD_REQUEST,qu.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}wd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Wu.reduceDescriptors(wd.prototype,(({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}})),Wu.freezeMethods(wd),Wu.inherits(Ed,qu,{__CANCEL__:!0});const Od=(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,o=0,a=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[a];i||(i=l),n[o]=s,r[o]=l;let u=a,d=0;for(;u!==o;)d+=n[u++],u%=e;if(o=(o+1)%e,o===a&&(a=(a+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,o=1e3/t;const a=(t,o=Date.now())=>{i=o,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[(...e)=>{const t=Date.now(),s=t-i;s>=o?a(e,t):(n=e,r||(r=setTimeout((()=>{r=null,a(n)}),o-s)))},()=>n&&a(n)]}((n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,s=o-r,l=i(s);r=o;e({loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:l||void 0,estimated:l&&a&&o<=a?(a-o)/l:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})}),n)},kd=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Td=e=>(...t)=>Wu.asap((()=>e(...t))),Ad=fd.hasStandardBrowserEnv?function(){const e=fd.navigator&&/(msie|trident)/i.test(fd.navigator.userAgent),t=document.createElement("a");let n;function r(n){let r=n;return e&&(t.setAttribute("href",r),r=t.href),t.setAttribute("href",r),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:"/"===t.pathname.charAt(0)?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(e){const t=Wu.isString(e)?r(e):e;return t.protocol===n.protocol&&t.host===n.host}}():function(){return function(){return!0}}(),Cd=fd.hasStandardBrowserEnv?{write(e,t,n,r,i,o){const a=[e+"="+encodeURIComponent(t)];Wu.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Wu.isString(r)&&a.push("path="+r),Wu.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function Rd(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Pd=e=>e instanceof wd?{...e}:e;function Nd(e,t){t=t||{};const n={};function r(e,t,n){return Wu.isPlainObject(e)&&Wu.isPlainObject(t)?Wu.merge.call({caseless:n},e,t):Wu.isPlainObject(t)?Wu.merge({},t):Wu.isArray(t)?t.slice():t}function i(e,t,n){return Wu.isUndefined(t)?Wu.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!Wu.isUndefined(t))return r(void 0,t)}function a(e,t){return Wu.isUndefined(t)?Wu.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}const l={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(e,t)=>i(Pd(e),Pd(t),!0)};return Wu.forEach(Object.keys(Object.assign({},e,t)),(function(r){const o=l[r]||i,a=o(e[r],t[r],r);Wu.isUndefined(a)&&o!==s||(n[r]=a)})),n}const Ld=e=>{const t=Nd({},e);let n,{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=wd.from(s),t.url=rd(Rd(t.baseURL,t.url),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Wu.isFormData(r))if(fd.hasStandardBrowserEnv||fd.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(!1!==(n=s.getContentType())){const[e,...t]=n?n.split(";").map((e=>e.trim())).filter(Boolean):[];s.setContentType([e||"multipart/form-data",...t].join("; "))}if(fd.hasStandardBrowserEnv&&(i&&Wu.isFunction(i)&&(i=i(t)),i||!1!==i&&Ad(t.url))){const e=o&&a&&Cd.read(a);e&&s.set(o,e)}return t},Fd="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){const r=Ld(e);let i=r.data;const o=wd.from(r.headers).normalize();let a,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function h(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(a),r.signal&&r.signal.removeEventListener("abort",a)}let m=new XMLHttpRequest;function g(){if(!m)return;const r=wd.from("getAllResponseHeaders"in m&&m.getAllResponseHeaders());Sd((function(e){t(e),h()}),(function(e){n(e),h()}),{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 qu("Request aborted",qu.ECONNABORTED,e,m)),m=null)},m.onerror=function(){n(new qu("Network Error",qu.ERR_NETWORK,e,m)),m=null},m.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const i=r.transitional||od;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new qu(t,i.clarifyTimeoutError?qu.ETIMEDOUT:qu.ECONNABORTED,e,m)),m=null},void 0===i&&o.setContentType(null),"setRequestHeader"in m&&Wu.forEach(o.toJSON(),(function(e,t){m.setRequestHeader(t,e)})),Wu.isUndefined(r.withCredentials)||(m.withCredentials=!!r.withCredentials),d&&"json"!==d&&(m.responseType=r.responseType),p&&([l,u]=Od(p,!0),m.addEventListener("progress",l)),f&&m.upload&&([s,c]=Od(f),m.upload.addEventListener("progress",s),m.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(a=t=>{m&&(n(!t||t.type?new Ed(null,e,m):t),m.abort(),m=null)},r.cancelToken&&r.cancelToken.subscribe(a),r.signal&&(r.signal.aborted?a():r.signal.addEventListener("abort",a)));const v=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);v&&-1===fd.protocols.indexOf(v)?n(new qu("Unsupported protocol "+v+":",qu.ERR_BAD_REQUEST,e)):m.send(i||null)}))},Dd=(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,a();const t=e instanceof Error?e:this.reason;r.abort(t instanceof qu?t:new Ed(t instanceof Error?t.message:t))}};let o=t&&setTimeout((()=>{o=null,i(new qu(`timeout ${t} of ms exceeded`,qu.ETIMEDOUT))}),t);const a=()=>{e&&(o&&clearTimeout(o),o=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=()=>Wu.asap(a),s}},Md=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},Id=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()}},jd=(e,t,n,r)=>{const i=async function*(e,t){for await(const n of Id(e))yield*Md(n,t)}(e,t);let o,a=0,s=e=>{o||(o=!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 o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(t){throw s(t),t}},cancel:e=>(s(e),i.return())},{highWaterMark:2})},Ud="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,Hd=Ud&&"function"==typeof ReadableStream,Bd=Ud&&("function"==typeof TextEncoder?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),zd=(e,...t)=>{try{return!!e(...t)}catch(Vm){return!1}},Vd=Hd&&zd((()=>{let e=!1;const t=new Request(fd.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Wd=Hd&&zd((()=>Wu.isReadableStream(new Response("").body))),qd={stream:Wd&&(e=>e.body)};var $d;Ud&&($d=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((e=>{!qd[e]&&(qd[e]=Wu.isFunction($d[e])?t=>t[e]():(t,n)=>{throw new qu(`Response type '${e}' is not supported`,qu.ERR_NOT_SUPPORT,n)})})));const Kd=async(e,t)=>{const n=Wu.toFiniteNumber(e.getContentLength());return null==n?(async e=>{if(null==e)return 0;if(Wu.isBlob(e))return e.size;if(Wu.isSpecCompliantForm(e)){const t=new Request(fd.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return Wu.isArrayBufferView(e)||Wu.isArrayBuffer(e)?e.byteLength:(Wu.isURLSearchParams(e)&&(e+=""),Wu.isString(e)?(await Bd(e)).byteLength:void 0)})(t):n},Gd={http:null,xhr:Fd,fetch:Ud&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:f}=Ld(e);c=c?(c+"").toLowerCase():"text";let p,h=Dd([i,o&&o.toAbortSignal()],a);const m=h&&h.unsubscribe&&(()=>{h.unsubscribe()});let g;try{if(l&&Vd&&"get"!==n&&"head"!==n&&0!==(g=await Kd(u,r))){let e,n=new Request(t,{method:"POST",body:r,duplex:"half"});if(Wu.isFormData(r)&&(e=n.headers.get("content-type"))&&u.setContentType(e),n.body){const[e,t]=kd(g,Od(Td(l)));r=jd(n.body,65536,e,t)}}Wu.isString(d)||(d=d?"include":"omit");const i="credentials"in Request.prototype;p=new Request(t,{...f,signal:h,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",credentials:i?d:void 0});let o=await fetch(p);const a=Wd&&("stream"===c||"response"===c);if(Wd&&(s||a&&m)){const e={};["status","statusText","headers"].forEach((t=>{e[t]=o[t]}));const t=Wu.toFiniteNumber(o.headers.get("content-length")),[n,r]=s&&kd(t,Od(Td(s),!0))||[];o=new Response(jd(o.body,65536,n,(()=>{r&&r(),m&&m()})),e)}c=c||"text";let v=await qd[Wu.findKey(qd,c)||"text"](o,e);return!a&&m&&m(),await new Promise(((t,n)=>{Sd(t,n,{data:v,headers:wd.from(o.headers),status:o.status,statusText:o.statusText,config:e,request:p})}))}catch(v){if(m&&m(),v&&"TypeError"===v.name&&/fetch/i.test(v.message))throw Object.assign(new qu("Network Error",qu.ERR_NETWORK,e,p),{cause:v.cause||v});throw qu.from(v,v&&v.code,e,p)}})};Wu.forEach(Gd,((e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(Vm){}Object.defineProperty(e,"adapterName",{value:t})}}));const Qd=e=>`- ${e}`,Yd=e=>Wu.isFunction(e)||null===e||!1===e,Xd=e=>{e=Wu.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let o=0;o<t;o++){let t;if(n=e[o],r=n,!Yd(n)&&(r=Gd[(t=String(n)).toLowerCase()],void 0===r))throw new qu(`Unknown adapter '${t}'`);if(r)break;i[t||"#"+o]=r}if(!r){const e=Object.entries(i).map((([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")));throw new qu("There is no suitable adapter to dispatch the request "+(t?e.length>1?"since :\n"+e.map(Qd).join("\n"):" "+Qd(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r};function Jd(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ed(null,e)}function Zd(e){Jd(e),e.headers=wd.from(e.headers),e.data=_d.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Xd(e.adapter||hd.adapter)(e).then((function(t){return Jd(e),t.data=_d.call(e,e.transformResponse,t),t.headers=wd.from(t.headers),t}),(function(t){return xd(t)||(Jd(e),t&&t.response&&(t.response.data=_d.call(e,e.transformResponse,t.response),t.response.headers=wd.from(t.response.headers))),Promise.reject(t)}))}const ef="1.7.7",tf={};["object","boolean","number","function","string","symbol"].forEach(((e,t)=>{tf[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));const nf={};tf.transitional=function(e,t,n){function r(e,t){return"[Axios v1.7.7] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,i,o)=>{if(!1===e)throw new qu(r(i," has been removed"+(t?" in "+t:"")),qu.ERR_DEPRECATED);return t&&!nf[i]&&(nf[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};const rf={assertOptions:function(e,t,n){if("object"!=typeof e)throw new qu("options must be an object",qu.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const o=r[i],a=t[o];if(a){const t=e[o],n=void 0===t||a(t,o,e);if(!0!==n)throw new qu("option "+o+" must be "+n,qu.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new qu("Unknown option "+o,qu.ERR_BAD_OPTION)}},validators:tf},of=rf.validators;class af{constructor(e){this.defaults=e,this.interceptors={request:new id,response:new id}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let e;Error.captureStackTrace?Error.captureStackTrace(e={}):e=new Error;const t=e.stack?e.stack.replace(/^.+\n/,""):"";try{n.stack?t&&!String(n.stack).endsWith(t.replace(/^.+\n.+\n/,""))&&(n.stack+="\n"+t):n.stack=t}catch(Vm){}}throw n}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Nd(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:i}=t;void 0!==n&&rf.assertOptions(n,{silentJSONParsing:of.transitional(of.boolean),forcedJSONParsing:of.transitional(of.boolean),clarifyTimeoutError:of.transitional(of.boolean)},!1),null!=r&&(Wu.isFunction(r)?t.paramsSerializer={serialize:r}:rf.assertOptions(r,{encode:of.function,serialize:of.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&Wu.merge(i.common,i[t.method]);i&&Wu.forEach(["delete","get","head","post","put","patch","common"],(e=>{delete i[e]})),t.headers=wd.concat(o,i);const a=[];let s=!0;this.interceptors.request.forEach((function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,a.unshift(e.fulfilled,e.rejected))}));const l=[];let c;this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));let u,d=0;if(!s){const e=[Zd.bind(this),void 0];for(e.unshift.apply(e,a),e.push.apply(e,l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=a.length;let f=t;for(d=0;d<u;){const e=a[d++],t=a[d++];try{f=e(f)}catch(p){t.call(this,p);break}}try{c=Zd.call(this,f)}catch(p){return Promise.reject(p)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return rd(Rd((e=Nd(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}Wu.forEach(["delete","get","head","options"],(function(e){af.prototype[e]=function(t,n){return this.request(Nd(n||{},{method:e,url:t,data:(n||{}).data}))}})),Wu.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Nd(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}af.prototype[e]=t(),af.prototype[e+"Form"]=t(!0)}));class sf{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 Ed(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 e;return{token:new sf((function(t){e=t})),cancel:e}}}const lf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(lf).forEach((([e,t])=>{lf[t]=e}));const cf=function e(t){const n=new af(t),r=nu(af.prototype.request,n);return Wu.extend(r,af.prototype,n,{allOwnKeys:!0}),Wu.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Nd(t,n))},r}(hd);let uf;cf.Axios=af,cf.CanceledError=Ed,cf.CancelToken=sf,cf.isCancel=xd,cf.VERSION=ef,cf.toFormData=Ju,cf.AxiosError=qu,cf.Cancel=cf.CanceledError,cf.all=function(e){return Promise.all(e)},cf.spread=function(e){return function(t){return e.apply(null,t)}},cf.isAxiosError=function(e){return Wu.isObject(e)&&!0===e.isAxiosError},cf.mergeConfig=Nd,cf.AxiosHeaders=wd,cf.formToJSON=e=>pd(Wu.isHTMLForm(e)?new FormData(e):e),cf.getAdapter=Xd,cf.HttpStatusCode=lf,cf.default=cf;const df=async(e,t)=>{var n;return null==(n=await(null==uf?void 0:uf.get(e,t)))?void 0:n.data};let ff;const pf=()=>{if(ff)return ff;return ff=new un({defaultOptions:{queries:{retry:(e,t)=>{var n;return 0===e&&![401,403].includes((null==(n=t.response)?void 0:n.status)||0)}}}}),ff},hf="/benefits-plan/workplace-backend",mf=e=>df(`${hf}/v2.0/activities/${e.activityId}/steps`),gf=e=>{var t;const n=null==(t=e.progressEvents)?void 0:t.map((({dataType:e,...t})=>e===eu.Standard?t:{dataType:e,...t}));return(async(e,t,n)=>{var r;return null==(r=await(null==uf?void 0:uf.put(e,t,n)))?void 0:r.data})(`${hf}/v1.0/customer/activities/${e.activityId}`,{activityAction:e.activityAction,progressEvents:n})},vf=e=>(async(e,t,n)=>{var r;return null==(r=await(null==uf?void 0:uf.post(e,t,n)))?void 0:r.data})(`${hf}/v2.0/analytics/track`,e),yf=e=>{const{data:t,isError:n,isLoading:r,refetch:i}=yi({queryKey:["benefitsPlanGetCalculate",e.assessmentId],queryFn:()=>(async e=>df(`${hf}/v1.0/activities/${e.activityId}/calculate`))({activityId:e.assessmentId}),staleTime:1/0});Ln((()=>{vf({event:tu.AssessmentSummaryViewed,properties:{id:e.assessmentId,name:e.title}})}),[e.assessmentId,e.title]);let o=null;return(null==t?void 0:t.calculationType)!==Jc.Health&&(null==t?void 0:t.calculationType)!==Jc.Everyday&&(null==t?void 0:t.calculationType)!==Jc.Devices&&(null==t?void 0:t.calculationType)!==Jc.HomeLoan&&(null==t?void 0:t.calculationType)!==Jc.Energy&&(null==t?void 0:t.calculationType)!==Jc.Broadband||(o=t.estimates),xt(Qc,{children:[r&&xt(Pc,{}),n&&xt(Gc,{retry:i}),!o||r||n?null:xt("div",{class:mc("md:grid md:grid-cols-2",e.verticalAlignment),children:[xt("div",{children:[xt(gc,{class:"mb-2",heading1:!0,children:o.primary.title}),xt(gc,{class:"mb-2",paragraph1:!0,children:o.blurb.text}),xt("img",{class:"mb-6",loading:"lazy",src:o.blurb.imageUrl}),xt("div",{class:"flex gap-1 items-start flex-wrap",children:[xt(Nc,{onClick:()=>window.open(null==o?void 0:o.moreDetailsUrl,"_blank"),children:"See your plans"}),e.onComplete?xt(Nc,{onClick:e.onComplete,secondary:!0,children:"Next"}):null]})]}),xt("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})]})]})},{entries:bf,setPrototypeOf:wf,isFrozen:_f,getPrototypeOf:xf,getOwnPropertyDescriptor:Ef}=Object;let{freeze:Sf,seal:Of,create:kf}=Object,{apply:Tf,construct:Af}="undefined"!=typeof Reflect&&Reflect;Sf||(Sf=function(e){return e}),Of||(Of=function(e){return e}),Tf||(Tf=function(e,t,n){return e.apply(t,n)}),Af||(Af=function(e,t){return new e(...t)});const Cf=zf(Array.prototype.forEach),Rf=zf(Array.prototype.pop),Pf=zf(Array.prototype.push),Nf=zf(String.prototype.toLowerCase),Lf=zf(String.prototype.toString),Ff=zf(String.prototype.match),Df=zf(String.prototype.replace),Mf=zf(String.prototype.indexOf),If=zf(String.prototype.trim),jf=zf(Object.prototype.hasOwnProperty),Uf=zf(RegExp.prototype.test),Hf=(Bf=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Af(Bf,t)});var Bf;function zf(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Tf(e,t,r)}}function Vf(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nf;wf&&wf(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(_f(t)||(t[r]=e),i=e)}e[i]=!0}return e}function Wf(e){for(let t=0;t<e.length;t++){jf(e,t)||(e[t]=null)}return e}function qf(e){const t=kf(null);for(const[n,r]of bf(e)){jf(e,n)&&(Array.isArray(r)?t[n]=Wf(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=qf(r):t[n]=r)}return t}function $f(e,t){for(;null!==e;){const n=Ef(e,t);if(n){if(n.get)return zf(n.get);if("function"==typeof n.value)return zf(n.value)}e=xf(e)}return function(){return null}}const Kf=Sf(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Gf=Sf(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Qf=Sf(["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"]),Yf=Sf(["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"]),Xf=Sf(["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"]),Jf=Sf(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Zf=Sf(["#text"]),ep=Sf(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),tp=Sf(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),np=Sf(["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"]),rp=Sf(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ip=Of(/\{\{[\w\W]*|[\w\W]*\}\}/gm),op=Of(/<%[\w\W]*|[\w\W]*%>/gm),ap=Of(/\${[\w\W]*}/gm),sp=Of(/^data-[\-\w.\u00B7-\uFFFF]/),lp=Of(/^aria-[\-\w]+$/),cp=Of(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),up=Of(/^(?:\w+script|data):/i),dp=Of(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),fp=Of(/^html$/i),pp=Of(/^[a-z][.\w]*(-[.\w]+)+$/i);var hp=Object.freeze({__proto__:null,MUSTACHE_EXPR:ip,ERB_EXPR:op,TMPLIT_EXPR:ap,DATA_ATTR:sp,ARIA_ATTR:lp,IS_ALLOWED_URI:cp,IS_SCRIPT_OR_DATA:up,ATTR_WHITESPACE:dp,DOCTYPE_NAME:fp,CUSTOM_ELEMENT:pp});const mp=1,gp=3,vp=7,yp=8,bp=9;var wp=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window;const n=t=>e(t);if(n.version="3.1.6",n.removed=[],!t||!t.document||t.document.nodeType!==bp)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:a,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:h}=t,m=c.prototype,g=$f(m,"cloneNode"),v=$f(m,"remove"),y=$f(m,"nextSibling"),b=$f(m,"childNodes"),w=$f(m,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let _,x="";const{implementation:E,createNodeIterator:S,createDocumentFragment:O,getElementsByTagName:k}=r,{importNode:T}=i;let A={};n.isSupported="function"==typeof bf&&"function"==typeof w&&E&&void 0!==E.createHTMLDocument;const{MUSTACHE_EXPR:C,ERB_EXPR:R,TMPLIT_EXPR:P,DATA_ATTR:N,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:F,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:M}=hp;let{IS_ALLOWED_URI:I}=hp,j=null;const U=Vf({},[...Kf,...Gf,...Qf,...Xf,...Zf]);let H=null;const B=Vf({},[...ep,...tp,...np,...rp]);let z=Object.seal(kf(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}})),V=null,W=null,q=!0,$=!0,K=!1,G=!0,Q=!1,Y=!0,X=!1,J=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!0,ie=!1,oe=!0,ae=!1,se={},le=null;const ce=Vf({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=Vf({},["audio","video","img","source","image","track"]);let fe=null;const pe=Vf({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",me="http://www.w3.org/2000/svg",ge="http://www.w3.org/1999/xhtml";let ve=ge,ye=!1,be=null;const we=Vf({},[he,me,ge],Lf);let _e=null;const xe=["application/xhtml+xml","text/html"];let Ee=null,Se=null;const Oe=r.createElement("form"),ke=function(e){return e instanceof RegExp||e instanceof Function},Te=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Se||Se!==e){if(e&&"object"==typeof e||(e={}),e=qf(e),_e=-1===xe.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===_e?Lf:Nf,j=jf(e,"ALLOWED_TAGS")?Vf({},e.ALLOWED_TAGS,Ee):U,H=jf(e,"ALLOWED_ATTR")?Vf({},e.ALLOWED_ATTR,Ee):B,be=jf(e,"ALLOWED_NAMESPACES")?Vf({},e.ALLOWED_NAMESPACES,Lf):we,fe=jf(e,"ADD_URI_SAFE_ATTR")?Vf(qf(pe),e.ADD_URI_SAFE_ATTR,Ee):pe,ue=jf(e,"ADD_DATA_URI_TAGS")?Vf(qf(de),e.ADD_DATA_URI_TAGS,Ee):de,le=jf(e,"FORBID_CONTENTS")?Vf({},e.FORBID_CONTENTS,Ee):ce,V=jf(e,"FORBID_TAGS")?Vf({},e.FORBID_TAGS,Ee):{},W=jf(e,"FORBID_ATTR")?Vf({},e.FORBID_ATTR,Ee):{},se=!!jf(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,$=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Q=e.SAFE_FOR_TEMPLATES||!1,Y=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ne=e.RETURN_TRUSTED_TYPE||!1,Z=e.FORCE_BODY||!1,re=!1!==e.SANITIZE_DOM,ie=e.SANITIZE_NAMED_PROPS||!1,oe=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,I=e.ALLOWED_URI_REGEXP||cp,ve=e.NAMESPACE||ge,z=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(z.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&ke(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(z.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(z.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&($=!1),te&&(ee=!0),se&&(j=Vf({},Zf),H=[],!0===se.html&&(Vf(j,Kf),Vf(H,ep)),!0===se.svg&&(Vf(j,Gf),Vf(H,tp),Vf(H,rp)),!0===se.svgFilters&&(Vf(j,Qf),Vf(H,tp),Vf(H,rp)),!0===se.mathMl&&(Vf(j,Xf),Vf(H,np),Vf(H,rp))),e.ADD_TAGS&&(j===U&&(j=qf(j)),Vf(j,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(H===B&&(H=qf(H)),Vf(H,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&Vf(fe,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ce&&(le=qf(le)),Vf(le,e.FORBID_CONTENTS,Ee)),oe&&(j["#text"]=!0),X&&Vf(j,["html","head","body"]),j.table&&(Vf(j,["tbody"]),delete V.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Hf('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Hf('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,x=_.createHTML("")}else void 0===_&&(_=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(o){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(h,o)),null!==_&&"string"==typeof x&&(x=_.createHTML(""));Sf&&Sf(e),Se=e}},Ae=Vf({},["mi","mo","mn","ms","mtext"]),Ce=Vf({},["foreignobject","annotation-xml"]),Re=Vf({},["title","style","font","a","script"]),Pe=Vf({},[...Gf,...Qf,...Yf]),Ne=Vf({},[...Xf,...Jf]),Le=function(e){Pf(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){v(e)}},Fe=function(e,t){try{Pf(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Pf(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!H[e])if(ee||te)try{Le(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},De=function(e){let t=null,n=null;if(Z)e="<remove></remove>"+e;else{const t=Ff(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===_e&&ve===ge&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=_?_.createHTML(e):e;if(ve===ge)try{t=(new p).parseFromString(i,_e)}catch(a){}if(!t||!t.documentElement){t=E.createDocument(ve,"template",null);try{t.documentElement.innerHTML=ye?x:i}catch(a){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),ve===ge?k.call(t,X?"html":"body")[0]:X?t.documentElement:o},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)},Ie=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},Ue=function(e,t,r){A[e]&&Cf(A[e],(e=>{e.call(n,t,r,Se)}))},He=function(e){let t=null;if(Ue("beforeSanitizeElements",e,null),Ie(e))return Le(e),!0;const r=Ee(e.nodeName);if(Ue("uponSanitizeElement",e,{tagName:r,allowedTags:j}),e.hasChildNodes()&&!je(e.firstElementChild)&&Uf(/<[/\w]/g,e.innerHTML)&&Uf(/<[/\w]/g,e.textContent))return Le(e),!0;if(e.nodeType===vp)return Le(e),!0;if(Y&&e.nodeType===yp&&Uf(/<[/\w]/g,e.data))return Le(e),!0;if(!j[r]||V[r]){if(!V[r]&&ze(r)){if(z.tagNameCheck instanceof RegExp&&Uf(z.tagNameCheck,r))return!1;if(z.tagNameCheck instanceof Function&&z.tagNameCheck(r))return!1}if(oe&&!le[r]){const t=w(e)||e.parentNode,n=b(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const i=g(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,y(e))}}}return Le(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=Nf(e.tagName),r=Nf(t.tagName);return!!be[e.namespaceURI]&&(e.namespaceURI===me?t.namespaceURI===ge?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||Ae[r]):Boolean(Pe[n]):e.namespaceURI===he?t.namespaceURI===ge?"math"===n:t.namespaceURI===me?"math"===n&&Ce[r]:Boolean(Ne[n]):e.namespaceURI===ge?!(t.namespaceURI===me&&!Ce[r])&&!(t.namespaceURI===he&&!Ae[r])&&!Ne[n]&&(Re[n]||!Pe[n]):!("application/xhtml+xml"!==_e||!be[e.namespaceURI]))}(e)?(Le(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Uf(/<\/no(script|embed|frames)/i,e.innerHTML)?(Q&&e.nodeType===gp&&(t=e.textContent,Cf([C,R,P],(e=>{t=Df(t,e," ")})),e.textContent!==t&&(Pf(n.removed,{element:e.cloneNode()}),e.textContent=t)),Ue("afterSanitizeElements",e,null),!1):(Le(e),!0)},Be=function(e,t,n){if(re&&("id"===t||"name"===t)&&(n in r||n in Oe))return!1;if($&&!W[t]&&Uf(N,t));else if(q&&Uf(L,t));else if(!H[t]||W[t]){if(!(ze(e)&&(z.tagNameCheck instanceof RegExp&&Uf(z.tagNameCheck,e)||z.tagNameCheck instanceof Function&&z.tagNameCheck(e))&&(z.attributeNameCheck instanceof RegExp&&Uf(z.attributeNameCheck,t)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(t))||"is"===t&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Uf(z.tagNameCheck,n)||z.tagNameCheck instanceof Function&&z.tagNameCheck(n))))return!1}else if(fe[t]);else if(Uf(I,Df(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Mf(n,"data:")||!ue[e]){if(K&&!Uf(F,Df(n,D,"")));else if(n)return!1}else;return!0},ze=function(e){return"annotation-xml"!==e&&Ff(e,M)},Ve=function(e){Ue("beforeSanitizeAttributes",e,null);const{attributes:t}=e;if(!t)return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:H};let i=t.length;for(;i--;){const a=t[i],{name:s,namespaceURI:l,value:c}=a,u=Ee(s);let d="value"===s?c:If(c);if(r.attrName=u,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Ue("uponSanitizeAttribute",e,r),d=r.attrValue,Y&&Uf(/((--!?|])>)|<\/(style|title)/i,d)){Fe(s,e);continue}if(r.forceKeepAttr)continue;if(Fe(s,e),!r.keepAttr)continue;if(!G&&Uf(/\/>/i,d)){Fe(s,e);continue}Q&&Cf([C,R,P],(e=>{d=Df(d,e," ")}));const f=Ee(e.nodeName);if(Be(f,u,d)){if(!ie||"id"!==u&&"name"!==u||(Fe(s,e),d="user-content-"+d),_&&"object"==typeof h&&"function"==typeof h.getAttributeType)if(l);else switch(h.getAttributeType(f,u)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}try{l?e.setAttributeNS(l,s,d):e.setAttribute(s,d),Ie(e)?Le(e):Rf(n.removed)}catch(o){}}}Ue("afterSanitizeAttributes",e,null)},We=function e(t){let n=null;const r=Me(t);for(Ue("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)Ue("uponSanitizeShadowNode",n,null),He(n)||(n.content instanceof a&&e(n.content),Ve(n));Ue("afterSanitizeShadowDOM",t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,s=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw Hf("toString is not a function");if("string"!=typeof(e=e.toString()))throw Hf("dirty is not a string, aborting")}if(!n.isSupported)return e;if(J||Te(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Ee(e.nodeName);if(!j[t]||V[t])throw Hf("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=De("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),o.nodeType===mp&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!ee&&!Q&&!X&&-1===e.indexOf("<"))return _&&ne?_.createHTML(e):e;if(r=De(e),!r)return ee?null:ne?x:""}r&&Z&&Le(r.firstChild);const u=Me(ae?e:r);for(;s=u.nextNode();)He(s)||(s.content instanceof a&&We(s.content),Ve(s));if(ae)return e;if(ee){if(te)for(c=O.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(H.shadowroot||H.shadowrootmode)&&(c=T.call(i,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&j["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Uf(fp,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Q&&Cf([C,R,P],(e=>{d=Df(d,e," ")})),_&&ne?_.createHTML(d):d},n.setConfig=function(){Te(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},n.clearConfig=function(){Se=null,J=!1},n.isValidAttribute=function(e,t,n){Se||Te({});const r=Ee(e),i=Ee(t);return Be(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&(A[e]=A[e]||[],Pf(A[e],t))},n.removeHook=function(e){if(A[e])return Rf(A[e])},n.removeHooks=function(e){A[e]&&(A[e]=[])},n.removeAllHooks=function(){A={}},n}();const _p=e=>{var t,n;const r=oo();return xt(Qc,{class:mc("md:grid md:grid-cols-2",e.verticalAlignment),children:[xt("div",{class:"flex flex-col gap-6 items-start",children:[xt("div",{children:[xt(gc,{class:"mb-2",heading1:!0,children:e.title}),xt(gc,{paragraph1:!0,children:e.description})]}),(null==(t=e.details)?void 0:t.length)?xt("div",{class:"flex flex-col p-6 rounded-lg border border-gray-200 shadow-sm gap-2",children:e.details.map(((e,t)=>xt("div",{class:"flex",children:[xt($c,{className:"text-primary-base mt-1 mr-2.5 text-sm",icon:pc}),e]},t)))}):null,xt("div",{class:"flex gap-1 items-start flex-wrap",children:[xt(Nc,{onClick:()=>{var t;r("/question"),null==(t=e.onAccept)||t.call(e)},children:e.acceptButtonLabel}),e.declineButtonLabel&&e.onDecline&&xt(Nc,{onClick:()=>{var t;null==(t=e.onDecline)||t.call(e),vf({event:tu.AssessmentSkipped,properties:{id:e.assessmentId,name:e.title}})},secondary:!0,children:e.declineButtonLabel})]}),(null==(n=e.terms)?void 0:n.length)?xt(gc,{terms:!0,children:e.terms.map(((e,t)=>xt("span",{dangerouslySetInnerHTML:{__html:wp.sanitize(e,{ADD_ATTR:["target"]})}},t)))}):null]}),xt("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})]})},xp=e=>{const{data:t,isError:n,isLoading:r,refetch:i}=yi({queryKey:["benefitsPlanGetSteps",e.assessmentId],queryFn:()=>mf({activityId:e.assessmentId})}),{id:o}=function(){let{matches:e}=Un(eo),t=e[e.length-1];return t?t.params:{}}(),a=null==t?void 0:t.steps.find((e=>e.id===o));return xt(Qc,{children:[r&&xt(Pc,{}),n&&xt(Gc,{retry:i}),!a||r||n?null:xt(qe,{children:[xt(gc,{class:"mb-2",heading1:!0,children:a.title}),xt(gc,{class:"mb-6",paragraph1:!0,children:a.description}),e.onComplete?xt(Nc,{onClick:e.onComplete,children:"Next"}):null]})]})};var Ep=e=>"checkbox"===e.type,Sp=e=>e instanceof Date,Op=e=>null==e;const kp=e=>"object"==typeof e;var Tp=e=>!Op(e)&&!Array.isArray(e)&&kp(e)&&!Sp(e),Ap=e=>Tp(e)&&e.target?Ep(e.target)?e.target.checked:e.target.value:e,Cp=(e,t)=>e.has((e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e)(t)),Rp=e=>{const t=e.constructor&&e.constructor.prototype;return Tp(t)&&t.hasOwnProperty("isPrototypeOf")},Pp="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function Np(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(Pp&&(e instanceof Blob||e instanceof FileList)||!n&&!Tp(e))return e;if(t=n?[]:{},n||Rp(e))for(const n in e)e.hasOwnProperty(n)&&(t[n]=Np(e[n]));else t=e}return t}var Lp=e=>Array.isArray(e)?e.filter(Boolean):[],Fp=e=>void 0===e,Dp=(e,t,n)=>{if(!t||!Tp(e))return n;const r=Lp(t.split(/[,[\].]+?/)).reduce(((e,t)=>Op(e)?e:e[t]),e);return Fp(r)||r===e?Fp(e[t])?n:e[t]:r},Mp=e=>"boolean"==typeof e,Ip=e=>/^\w*$/.test(e),jp=e=>Lp(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Up=(e,t,n)=>{let r=-1;const i=Ip(t)?[t]:jp(t),o=i.length,a=o-1;for(;++r<o;){const t=i[r];let o=n;if(r!==a){const n=e[t];o=Tp(n)||Array.isArray(n)?n:isNaN(+i[r+1])?{}:[]}if("__proto__"===t)return;e[t]=o,e=e[t]}return e};const Hp={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Bp={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},zp="max",Vp="min",Wp="maxLength",qp="minLength",$p="pattern",Kp="required",Gp="validate",Qp=Xr.createContext(null),Yp=()=>Xr.useContext(Qp);var Xp=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(i,o,{get:()=>{const i=o;return t._proxyFormState[i]!==Bp.all&&(t._proxyFormState[i]=!r||Bp.all),n&&(n[i]=!0),e[i]}});return i},Jp=e=>Tp(e)&&!Object.keys(e).length,Zp=(e,t,n,r)=>{n(e);const{name:i,...o}=e;return Jp(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find((e=>t[e]===(!r||Bp.all)))},eh=e=>Array.isArray(e)?e:[e],th=(e,t,n)=>!e||!t||e===t||eh(e).some((e=>e&&(n?e===t:e.startsWith(t)||t.startsWith(e))));function nh(e){const t=Xr.useRef(e);t.current=e,Xr.useEffect((()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}}),[e.disabled])}var rh=e=>"string"==typeof e,ih=(e,t,n,r,i)=>rh(e)?(r&&t.watch.add(e),Dp(n,e,i)):Array.isArray(e)?e.map((e=>(r&&t.watch.add(e),Dp(n,e)))):(r&&(t.watchAll=!0),n);function oh(e){const t=Yp(),{control:n=t.control,name:r,defaultValue:i,disabled:o,exact:a}=e||{},s=Xr.useRef(r);s.current=r,nh({disabled:o,subject:n._subjects.values,next:e=>{th(s.current,e.name,a)&&c(Np(ih(s.current,n._names,e.values||n._formValues,!1,i)))}});const[l,c]=Xr.useState(n._getWatch(r,i));return Xr.useEffect((()=>n._removeUnmounted())),l}function ah(e){const t=Yp(),{name:n,disabled:r,control:i=t.control,shouldUnregister:o}=e,a=Cp(i._names.array,n),s=oh({control:i,name:n,defaultValue:Dp(i._formValues,n,Dp(i._defaultValues,n,e.defaultValue)),exact:!0}),l=function(e){const t=Yp(),{control:n=t.control,disabled:r,name:i,exact:o}=e||{},[a,s]=Xr.useState(n._formState),l=Xr.useRef(!0),c=Xr.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),u=Xr.useRef(i);return u.current=i,nh({disabled:r,next:e=>l.current&&th(u.current,e.name,o)&&Zp(e,c.current,n._updateFormState)&&s({...n._formState,...e}),subject:n._subjects.state}),Xr.useEffect((()=>(l.current=!0,c.current.isValid&&n._updateValid(!0),()=>{l.current=!1})),[n]),Xp(a,n,c.current,!1)}({control:i,name:n,exact:!0}),c=Xr.useRef(i.register(n,{...e.rules,value:s,...Mp(e.disabled)?{disabled:e.disabled}:{}}));return Xr.useEffect((()=>{const e=i._options.shouldUnregister||o,t=(e,t)=>{const n=Dp(i._fields,e);n&&n._f&&(n._f.mount=t)};if(t(n,!0),e){const e=Np(Dp(i._options.defaultValues,n));Up(i._defaultValues,n,e),Fp(Dp(i._formValues,n))&&Up(i._formValues,n,e)}return()=>{(a?e&&!i._state.action:e)?i.unregister(n):t(n,!1)}}),[n,i,a,o]),Xr.useEffect((()=>{Dp(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Dp(i._fields,n)._f.value})}),[r,n,i]),{field:{name:n,value:s,...Mp(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:Xr.useCallback((e=>c.current.onChange({target:{value:Ap(e),name:n},type:Hp.CHANGE})),[n]),onBlur:Xr.useCallback((()=>c.current.onBlur({target:{value:Dp(i._formValues,n),name:n},type:Hp.BLUR})),[n,i]),ref:Xr.useCallback((e=>{const t=Dp(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:()=>!!Dp(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Dp(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Dp(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Dp(l.validatingFields,n)},error:{enumerable:!0,get:()=>Dp(l.errors,n)}})}}const sh=e=>e.render(ah(e));var lh=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},ch=e=>({isOnSubmit:!e||e===Bp.onSubmit,isOnBlur:e===Bp.onBlur,isOnChange:e===Bp.onChange,isOnAll:e===Bp.all,isOnTouch:e===Bp.onTouched}),uh=(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=Dp(e,i);if(n){const{_f:e,...o}=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(o,t))break}else if(Tp(o)&&dh(o,t))break}}};var fh=(e,t,n)=>{const r=eh(Dp(e,n));return Up(r,"root",t[n]),Up(e,n,r),e},ph=e=>"file"===e.type,hh=e=>"function"==typeof e,mh=e=>{if(!Pp)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},gh=e=>rh(e),vh=e=>"radio"===e.type,yh=e=>e instanceof RegExp;const bh={value:!1,isValid:!1},wh={value:!0,isValid:!0};var _h=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&&!Fp(e[0].attributes.value)?Fp(e[0].value)||""===e[0].value?wh:{value:e[0].value,isValid:!0}:wh:bh}return bh};const xh={isValid:!1,value:null};var Eh=e=>Array.isArray(e)?e.reduce(((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e),xh):xh;function Sh(e,t,n="validate"){if(gh(e)||Array.isArray(e)&&e.every(gh)||Mp(e)&&!e)return{type:n,message:gh(e)?e:"",ref:t}}var Oh=e=>Tp(e)&&!yh(e)?e:{value:e,message:""},kh=async(e,t,n,r,i)=>{const{ref:o,refs:a,required:s,maxLength:l,minLength:c,min:u,max:d,pattern:f,validate:p,name:h,valueAsNumber:m,mount:g,disabled:v}=e._f,y=Dp(t,h);if(!g||v)return{};const b=a?a[0]:o,w=e=>{r&&b.reportValidity&&(b.setCustomValidity(Mp(e)?"":e||""),b.reportValidity())},_={},x=vh(o),E=Ep(o),S=x||E,O=(m||ph(o))&&Fp(o.value)&&Fp(y)||mh(o)&&""===o.value||""===y||Array.isArray(y)&&!y.length,k=lh.bind(null,h,n,_),T=(e,t,n,r=Wp,i=qp)=>{const a=e?t:n;_[h]={type:e?r:i,message:a,ref:o,...k(e?r:i,a)}};if(i?!Array.isArray(y)||!y.length:s&&(!S&&(O||Op(y))||Mp(y)&&!y||E&&!_h(a).isValid||x&&!Eh(a).isValid)){const{value:e,message:t}=gh(s)?{value:!!s,message:s}:Oh(s);if(e&&(_[h]={type:Kp,message:t,ref:b,...k(Kp,t)},!n))return w(t),_}if(!(O||Op(u)&&Op(d))){let e,t;const r=Oh(d),i=Oh(u);if(Op(y)||isNaN(y)){const n=o.valueAsDate||new Date(y),a=e=>new Date((new Date).toDateString()+" "+e),s="time"==o.type,l="week"==o.type;rh(r.value)&&y&&(e=s?a(y)>a(r.value):l?y>r.value:n>new Date(r.value)),rh(i.value)&&y&&(t=s?a(y)<a(i.value):l?y<i.value:n<new Date(i.value))}else{const n=o.valueAsNumber||(y?+y:y);Op(r.value)||(e=n>r.value),Op(i.value)||(t=n<i.value)}if((e||t)&&(T(!!e,r.message,i.message,zp,Vp),!n))return w(_[h].message),_}if((l||c)&&!O&&(rh(y)||i&&Array.isArray(y))){const e=Oh(l),t=Oh(c),r=!Op(e.value)&&y.length>+e.value,i=!Op(t.value)&&y.length<+t.value;if((r||i)&&(T(r,e.message,t.message),!n))return w(_[h].message),_}if(f&&!O&&rh(y)){const{value:e,message:t}=Oh(f);if(yh(e)&&!y.match(e)&&(_[h]={type:$p,message:t,ref:o,...k($p,t)},!n))return w(t),_}if(p)if(hh(p)){const e=Sh(await p(y,t),b);if(e&&(_[h]={...e,...k(Gp,e.message)},!n))return w(e.message),_}else if(Tp(p)){let e={};for(const r in p){if(!Jp(e)&&!n)break;const i=Sh(await p[r](y,t),b,r);i&&(e={...i,...k(r,i.message)},w(i.message),n&&(_[h]=e))}if(!Jp(e)&&(_[h]={ref:b,...e},!n))return _}return w(!0),_};function Th(e,t){const n=Array.isArray(t)?t:Ip(t)?[t]:jp(t),r=1===n.length?e:function(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Fp(e)?r++:e[t[r++]];return e}(e,n),i=n.length-1,o=n[i];return r&&delete r[o],0!==i&&(Tp(r)&&Jp(r)||Array.isArray(r)&&function(e){for(const t in e)if(e.hasOwnProperty(t)&&!Fp(e[t]))return!1;return!0}(r))&&Th(e,n.slice(0,-1)),e}var Ah=()=>{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=[]}}},Ch=e=>Op(e)||!kp(e);function Rh(e,t){if(Ch(e)||Ch(t))return e===t;if(Sp(e)&&Sp(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(Sp(n)&&Sp(e)||Tp(n)&&Tp(e)||Array.isArray(n)&&Array.isArray(e)?!Rh(n,e):n!==e)return!1}}return!0}var Ph=e=>"select-multiple"===e.type,Nh=e=>vh(e)||Ep(e),Lh=e=>mh(e)&&e.isConnected,Fh=e=>{for(const t in e)if(hh(e[t]))return!0;return!1};function Dh(e,t={}){const n=Array.isArray(e);if(Tp(e)||n)for(const r in e)Array.isArray(e[r])||Tp(e[r])&&!Fh(e[r])?(t[r]=Array.isArray(e[r])?[]:{},Dh(e[r],t[r])):Op(e[r])||(t[r]=!0);return t}function Mh(e,t,n){const r=Array.isArray(e);if(Tp(e)||r)for(const i in e)Array.isArray(e[i])||Tp(e[i])&&!Fh(e[i])?Fp(t)||Ch(n[i])?n[i]=Array.isArray(e[i])?Dh(e[i],[]):{...Dh(e[i])}:Mh(e[i],Op(t)?{}:t[i],n[i]):n[i]=!Rh(e[i],t[i]);return n}var Ih=(e,t)=>Mh(e,t,Dh(t)),jh=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Fp(e)?e:t?""===e?NaN:e?+e:e:n&&rh(e)?new Date(e):r?r(e):e;function Uh(e){const t=e.ref;if(!(e.refs?e.refs.every((e=>e.disabled)):t.disabled))return ph(t)?t.files:vh(t)?Eh(e.refs).value:Ph(t)?[...t.selectedOptions].map((({value:e})=>e)):Ep(t)?_h(e.refs).value:jh(Fp(t.value)?e.ref.value:t.value,e)}var Hh=(e,t,n,r)=>{const i={};for(const o of e){const e=Dp(t,o);e&&Up(i,o,e._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},Bh=e=>Fp(e)?e:yh(e)?e.source:Tp(e)?yh(e.value)?e.value.source:e.value:e;const zh="AsyncFunction";var Vh=e=>!(e&&e.validate||!(hh(e.validate)&&e.validate.constructor.name===zh||Tp(e.validate)&&Object.values(e.validate).find((e=>e.constructor.name===zh)))),Wh=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function qh(e,t,n){const r=Dp(e,n);if(r||Ip(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const r=i.join("."),o=Dp(t,r),a=Dp(e,r);if(o&&!Array.isArray(o)&&n!==r)return{name:n};if(a&&a.type)return{name:r,error:a};i.pop()}return{name:n}}var $h=(e,t,n,r,i)=>!i.isOnAll&&(!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:!(n?r.isOnChange:i.isOnChange)||e),Kh=(e,t)=>!Lp(Dp(e,t)).length&&Th(e,t);const Gh={mode:Bp.onSubmit,reValidateMode:Bp.onChange,shouldFocusError:!0};function Qh(e={}){let t,n={...Gh,...e},r={submitCount:0,isDirty:!1,isLoading:hh(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},o=(Tp(n.defaultValues)||Tp(n.values))&&Np(n.defaultValues||n.values)||{},a=n.shouldUnregister?{}:Np(o),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:Ah(),array:Ah(),state:Ah()},f=ch(n.mode),p=ch(n.reValidateMode),h=n.criteriaMode===Bp.all,m=async e=>{if(u.isValid||e){const e=n.resolver?Jp((await w()).errors):await _(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?Up(r.validatingFields,e,t):Th(r.validatingFields,e))})),d.state.next({validatingFields:r.validatingFields,isValidating:!Jp(r.validatingFields)}))},v=(e,t,n,r)=>{const l=Dp(i,e);if(l){const i=Dp(a,e,Fp(n)?Dp(o,e):n);Fp(i)||r&&r.defaultChecked||t?Up(a,e,t?i:Uh(l._f)):S(e,i),s.mount&&m()}},y=(e,t,n,a,s)=>{let l=!1,c=!1;const f={name:e},p=!!(Dp(i,e)&&Dp(i,e)._f&&Dp(i,e)._f.disabled);if(!n||a){u.isDirty&&(c=r.isDirty,r.isDirty=f.isDirty=x(),l=c!==f.isDirty);const n=p||Rh(Dp(o,e),t);c=!(p||!Dp(r.dirtyFields,e)),n||p?Th(r.dirtyFields,e):Up(r.dirtyFields,e,!0),f.dirtyFields=r.dirtyFields,l=l||u.dirtyFields&&c!==!n}if(n){const t=Dp(r.touchedFields,e);t||(Up(r.touchedFields,e,n),f.touchedFields=r.touchedFields,l=l||u.touchedFields&&t!==n)}return l&&s&&d.state.next(f),l?f:{}},b=(n,i,o,a)=>{const s=Dp(r.errors,n),l=u.isValid&&Mp(i)&&r.isValid!==i;var f;if(e.delayError&&o?(f=()=>((e,t)=>{Up(r.errors,e,t),d.state.next({errors:r.errors})})(n,o),t=e=>{clearTimeout(c),c=setTimeout(f,e)},t(e.delayError)):(clearTimeout(c),t=null,o?Up(r.errors,n,o):Th(r.errors,n)),(o?!Rh(s,o):s)||!Jp(a)||l){const e={...a,...l&&Mp(i)?{isValid:i}:{},errors:r.errors,name:n};r={...r,...e},d.state.next(e)}},w=async e=>{g(e,!0);const t=await n.resolver(a,n.context,Hh(e||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation));return g(e),t},_=async(e,t,i={valid:!0})=>{for(const o in e){const s=e[o];if(s){const{_f:e,...c}=s;if(e){const c=l.array.has(e.name),d=s._f&&Vh(s._f);d&&u.validatingFields&&g([o],!0);const f=await kh(s,a,h,n.shouldUseNativeValidation&&!t,c);if(d&&u.validatingFields&&g([o]),f[e.name]&&(i.valid=!1,t))break;!t&&(Dp(f,e.name)?c?fh(r.errors,f,e.name):Up(r.errors,e.name,f[e.name]):Th(r.errors,e.name))}!Jp(c)&&await _(c,t,i)}}return i.valid},x=(e,t)=>(e&&t&&Up(a,e,t),!Rh(R(),o)),E=(e,t,n)=>ih(e,l,{...s.mount?a:Fp(t)?o:rh(e)?{[e]:t}:t},n,t),S=(e,t,n={})=>{const r=Dp(i,e);let o=t;if(r){const n=r._f;n&&(!n.disabled&&Up(a,e,jh(t,n)),o=mh(n.ref)&&Op(t)?"":t,Ph(n.ref)?[...n.ref.options].forEach((e=>e.selected=o.includes(e.value))):n.refs?Ep(n.ref)?n.refs.length>1?n.refs.forEach((e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(o)?!!o.find((t=>t===e.value)):o===e.value))):n.refs[0]&&(n.refs[0].checked=!!o):n.refs.forEach((e=>e.checked=e.value===o)):ph(n.ref)?n.ref.value="":(n.ref.value=o,n.ref.type||d.values.next({name:e,values:{...a}})))}(n.shouldDirty||n.shouldTouch)&&y(e,o,n.shouldTouch,n.shouldDirty,!0),n.shouldValidate&&C(e)},O=(e,t,n)=>{for(const r in t){const o=t[r],a=`${e}.${r}`,s=Dp(i,a);!l.array.has(e)&&Ch(o)&&(!s||s._f)||Sp(o)?S(a,o,n):O(a,o,n)}},k=(e,t,n={})=>{const c=Dp(i,e),f=l.array.has(e),p=Np(t);Up(a,e,p),f?(d.array.next({name:e,values:{...a}}),(u.isDirty||u.dirtyFields)&&n.shouldDirty&&d.state.next({name:e,dirtyFields:Ih(o,a),isDirty:x(e,p)})):!c||c._f||Op(p)?S(e,p,n):O(e,p,n),uh(e,l)&&d.state.next({...r}),d.values.next({name:s.mount?e:void 0,values:{...a}})},T=async o=>{s.mount=!0;const c=o.target;let v=c.name,x=!0;const E=Dp(i,v),S=e=>{x=Number.isNaN(e)||Rh(e,Dp(a,v,e))};if(E){let s,O;const k=c.type?Uh(E._f):Ap(o),T=o.type===Hp.BLUR||o.type===Hp.FOCUS_OUT,A=!Wh(E._f)&&!n.resolver&&!Dp(r.errors,v)&&!E._f.deps||$h(T,Dp(r.touchedFields,v),r.isSubmitted,p,f),R=uh(v,l,T);Up(a,v,k),T?(E._f.onBlur&&E._f.onBlur(o),t&&t(0)):E._f.onChange&&E._f.onChange(o);const P=y(v,k,T,!1),N=!Jp(P)||R;if(!T&&d.values.next({name:v,type:o.type,values:{...a}}),A)return u.isValid&&("onBlur"===e.mode?T&&m():m()),N&&d.state.next({name:v,...R?{}:P});if(!T&&R&&d.state.next({...r}),n.resolver){const{errors:e}=await w([v]);if(S(k),x){const t=qh(r.errors,i,v),n=qh(e,i,t.name||v);s=n.error,v=n.name,O=Jp(e)}}else g([v],!0),s=(await kh(E,a,h,n.shouldUseNativeValidation))[v],g([v]),S(k),x&&(s?O=!1:u.isValid&&(O=await _(i,!0)));x&&(E._f.deps&&C(E._f.deps),b(v,O,s,P))}},A=(e,t)=>{if(Dp(r.errors,t)&&e.focus)return e.focus(),1},C=async(e,t={})=>{let o,a;const s=eh(e);if(n.resolver){const t=await(async e=>{const{errors:t}=await w(e);if(e)for(const n of e){const e=Dp(t,n);e?Up(r.errors,n,e):Th(r.errors,n)}else r.errors=t;return t})(Fp(e)?e:s);o=Jp(t),a=e?!s.some((e=>Dp(t,e))):o}else e?(a=(await Promise.all(s.map((async e=>{const t=Dp(i,e);return await _(t&&t._f?{[e]:t}:t)})))).every(Boolean),(a||r.isValid)&&m()):a=o=await _(i);return d.state.next({...!rh(e)||u.isValid&&o!==r.isValid?{}:{name:e},...n.resolver||!e?{isValid:o}:{},errors:r.errors}),t.shouldFocus&&!a&&dh(i,A,e?s:l.mount),a},R=e=>{const t={...s.mount?a:o};return Fp(e)?t:rh(e)?Dp(t,e):e.map((e=>Dp(t,e)))},P=(e,t)=>({invalid:!!Dp((t||r).errors,e),isDirty:!!Dp((t||r).dirtyFields,e),error:Dp((t||r).errors,e),isValidating:!!Dp(r.validatingFields,e),isTouched:!!Dp((t||r).touchedFields,e)}),N=(e,t,n)=>{const o=(Dp(i,e,{_f:{}})._f||{}).ref,a=Dp(r.errors,e)||{},{ref:s,message:l,type:c,...u}=a;Up(r.errors,e,{...u,...t,ref:o}),d.state.next({name:e,errors:r.errors,isValid:!1}),n&&n.shouldFocus&&o&&o.focus&&o.focus()},L=(e,t={})=>{for(const s of e?eh(e):l.mount)l.mount.delete(s),l.array.delete(s),t.keepValue||(Th(i,s),Th(a,s)),!t.keepError&&Th(r.errors,s),!t.keepDirty&&Th(r.dirtyFields,s),!t.keepTouched&&Th(r.touchedFields,s),!t.keepIsValidating&&Th(r.validatingFields,s),!n.shouldUnregister&&!t.keepDefaultValue&&Th(o,s);d.values.next({values:{...a}}),d.state.next({...r,...t.keepDirty?{isDirty:x()}:{}}),!t.keepIsValid&&m()},F=({disabled:e,name:t,field:n,fields:r,value:i})=>{if(Mp(e)&&s.mount||e){const o=e?void 0:Fp(i)?Uh(n?n._f:Dp(r,t)._f):i;Up(a,t,o),y(t,o,!1,!1,!0)}},D=(t,r={})=>{let a=Dp(i,t);const c=Mp(r.disabled)||Mp(e.disabled);return Up(i,t,{...a||{},_f:{...a&&a._f?a._f:{ref:{name:t}},name:t,mount:!0,...r}}),l.mount.add(t),a?F({field:a,disabled:Mp(r.disabled)?r.disabled:e.disabled,name:t,value:r.value}):v(t,!0,r.value),{...c?{disabled:r.disabled||e.disabled}:{},...n.progressive?{required:!!r.required,min:Bh(r.min),max:Bh(r.max),minLength:Bh(r.minLength),maxLength:Bh(r.maxLength),pattern:Bh(r.pattern)}:{},name:t,onChange:T,onBlur:T,ref:e=>{if(e){D(t,r),a=Dp(i,t);const n=Fp(e.value)&&e.querySelectorAll&&e.querySelectorAll("input,select,textarea")[0]||e,s=Nh(n),l=a._f.refs||[];if(s?l.find((e=>e===n)):n===a._f.ref)return;Up(i,t,{_f:{...a._f,...s?{refs:[...l.filter(Lh),n,...Array.isArray(Dp(o,t))?[{}]:[]],ref:{type:n.type,name:t}}:{ref:n}}}),v(t,!1,void 0,n)}else a=Dp(i,t,{}),a._f&&(a._f.mount=!1),(n.shouldUnregister||r.shouldUnregister)&&(!Cp(l.array,t)||!s.action)&&l.unMount.add(t)}}},M=()=>n.shouldFocusError&&dh(i,A,l.mount),I=(e,t)=>async o=>{let s;o&&(o.preventDefault&&o.preventDefault(),o.persist&&o.persist());let l=Np(a);if(d.state.next({isSubmitting:!0}),n.resolver){const{errors:e,values:t}=await w();r.errors=e,l=t}else await _(i);if(Th(r.errors,"root"),Jp(r.errors)){d.state.next({errors:{}});try{await e(l,o)}catch(c){s=c}}else t&&await t({...r.errors},o),M(),setTimeout(M);if(d.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Jp(r.errors)&&!s,submitCount:r.submitCount+1,errors:r.errors}),s)throw s},j=(t,n={})=>{const c=t?Np(t):o,f=Np(c),p=Jp(t),h=p?o:f;if(n.keepDefaultValues||(o=c),!n.keepValues){if(n.keepDirtyValues)for(const e of l.mount)Dp(r.dirtyFields,e)?Up(h,e,Dp(a,e)):k(e,Dp(h,e));else{if(Pp&&Fp(t))for(const e of l.mount){const t=Dp(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={}}a=e.shouldUnregister?n.keepDefaultValues?Np(o):{}:Np(h),d.array.next({values:{...h}}),d.values.next({values:{...h}})}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:!p&&(n.keepDirty?r.isDirty:!(!n.keepDefaultValues||Rh(t,o))),isSubmitted:!!n.keepIsSubmitted&&r.isSubmitted,dirtyFields:p?{}:n.keepDirtyValues?n.keepDefaultValues&&a?Ih(o,a):r.dirtyFields:n.keepDefaultValues&&t?Ih(o,t):n.keepDirty?r.dirtyFields:{},touchedFields:n.keepTouched?r.touchedFields:{},errors:n.keepErrors?r.errors:{},isSubmitSuccessful:!!n.keepIsSubmitSuccessful&&r.isSubmitSuccessful,isSubmitting:!1})},U=(e,t)=>j(hh(e)?e(a):e,t);return{control:{register:D,unregister:L,getFieldState:P,handleSubmit:I,setError:N,_executeSchema:w,_getWatch:E,_getDirty:x,_updateValid:m,_removeUnmounted:()=>{for(const e of l.unMount){const t=Dp(i,e);t&&(t._f.refs?t._f.refs.every((e=>!Lh(e))):!Lh(t._f.ref))&&L(e)}l.unMount=new Set},_updateFieldArray:(e,t=[],n,l,c=!0,f=!0)=>{if(l&&n){if(s.action=!0,f&&Array.isArray(Dp(i,e))){const t=n(Dp(i,e),l.argA,l.argB);c&&Up(i,e,t)}if(f&&Array.isArray(Dp(r.errors,e))){const t=n(Dp(r.errors,e),l.argA,l.argB);c&&Up(r.errors,e,t),Kh(r.errors,e)}if(u.touchedFields&&f&&Array.isArray(Dp(r.touchedFields,e))){const t=n(Dp(r.touchedFields,e),l.argA,l.argB);c&&Up(r.touchedFields,e,t)}u.dirtyFields&&(r.dirtyFields=Ih(o,a)),d.state.next({name:e,isDirty:x(e,t),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else Up(a,e,t)},_updateDisabledField:F,_getFieldArray:t=>Lp(Dp(s.mount?a:o,t,e.shouldUnregister?Dp(o,t,[]):[])),_reset:j,_resetDefaultValues:()=>hh(n.defaultValues)&&n.defaultValues().then((e=>{U(e,n.resetOptions),d.state.next({isLoading:!1})})),_updateFormState:e=>{r={...r,...e}},_disableForm:e=>{Mp(e)&&(d.state.next({disabled:e}),dh(i,((t,n)=>{const r=Dp(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 a},get _state(){return s},set _state(e){s=e},get _defaultValues(){return o},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:C,register:D,handleSubmit:I,watch:(e,t)=>hh(e)?d.values.subscribe({next:n=>e(E(void 0,t),n)}):E(e,t,!0),setValue:k,getValues:R,reset:U,resetField:(e,t={})=>{Dp(i,e)&&(Fp(t.defaultValue)?k(e,Np(Dp(o,e))):(k(e,t.defaultValue),Up(o,e,Np(t.defaultValue))),t.keepTouched||Th(r.touchedFields,e),t.keepDirty||(Th(r.dirtyFields,e),r.isDirty=t.defaultValue?x(e,Np(Dp(o,e))):x()),t.keepError||(Th(r.errors,e),u.isValid&&m()),d.state.next({...r}))},clearErrors:e=>{e&&eh(e).forEach((e=>Th(r.errors,e))),d.state.next({errors:e?r.errors:{}})},unregister:L,setError:N,setFocus:(e,t={})=>{const n=Dp(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:P}}const Yh="undefined"!=typeof document?Xr.useLayoutEffect:()=>{};const Xh=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Jh=e=>{if(e&&"window"in e&&e.window===e)return e;return Xh(e).defaultView||window};function Zh(e){let t=null;return()=>(null==t&&(t=e()),t)}const em=Zh((function(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t})),tm=Zh((function(){return e=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent));var e,t}));class nm{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function rm(e){let t=Dn({isFocused:!1,observer:null});Yh((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=Dn(null);return Yh((()=>{t.current=e}),[e]),jn(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return jn((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{t.current.isFocused=!1,r.disabled&&n(new nm("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let im=null,om=new Set,am=new Map,sm=!1,lm=!1;const cm={Tab:!0,Escape:!0};function um(e,t){for(let n of om)n(e,t)}function dm(e){sm=!0,function(e){return!(e.metaKey||!em()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(im="keyboard",um("keyboard",e))}function fm(e){im="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(sm=!0,um("pointer",e))}function pm(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(tm()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(sm=!0,im="virtual")}function hm(e){e.target!==window&&e.target!==document&&(sm||lm||(im="virtual",um("virtual",e)),sm=!1,lm=!1)}function mm(){sm=!1,lm=!0}function gm(e){if("undefined"==typeof window||am.get(Jh(e)))return;const t=Jh(e),n=Xh(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){sm=!0,r.apply(this,arguments)},n.addEventListener("keydown",dm,!0),n.addEventListener("keyup",dm,!0),n.addEventListener("click",pm,!0),t.addEventListener("focus",hm,!0),t.addEventListener("blur",mm,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",fm,!0),n.addEventListener("pointermove",fm,!0),n.addEventListener("pointerup",fm,!0)):(n.addEventListener("mousedown",fm,!0),n.addEventListener("mousemove",fm,!0),n.addEventListener("mouseup",fm,!0)),t.addEventListener("beforeunload",(()=>{vm(e)}),{once:!0}),am.set(t,{focus:r})}const vm=(e,t)=>{const n=Jh(e),r=Xh(e);t&&r.removeEventListener("DOMContentLoaded",t),am.has(n)&&(n.HTMLElement.prototype.focus=am.get(n).focus,r.removeEventListener("keydown",dm,!0),r.removeEventListener("keyup",dm,!0),r.removeEventListener("click",pm,!0),n.removeEventListener("focus",hm,!0),n.removeEventListener("blur",mm,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",fm,!0),r.removeEventListener("pointermove",fm,!0),r.removeEventListener("pointerup",fm,!0)):(r.removeEventListener("mousedown",fm,!0),r.removeEventListener("mousemove",fm,!0),r.removeEventListener("mouseup",fm,!0)),am.delete(n))};function ym(){return"pointer"!==im}"undefined"!=typeof document&&function(e){const t=Xh(e);let n;"loading"!==t.readyState?gm(e):(n=()=>{gm(e)},t.addEventListener("DOMContentLoaded",n))}();const bm=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function wm(e,t,n){gm(),Ln((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?Jh(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Jh(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Jh(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?Jh(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!bm.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof o||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!cm[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(ym())};return om.add(t),()=>{om.delete(t)}}),t)}let _m=!1,xm=0;function Em(){_m=!0,setTimeout((()=>{_m=!1}),50)}function Sm(e){"touch"===e.pointerType&&Em()}function Om(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",Sm):document.addEventListener("touchend",Em),xm++,()=>{xm--,xm>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",Sm):document.removeEventListener("touchend",Em))}}function km(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=Pn(!1),s=Dn({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Ln(Om,[]);let{hoverProps:l,triggerHoverEnd:c}=In((()=>{let e=(e,r)=>{if(s.pointerType=r,i||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),a(!0)},o=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{_m&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||_m||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[t,n,r,i,s]);return Ln((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}function Tm(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Dn({isFocused:!1,isFocusVisible:t||ym()}),[o,a]=Pn(!1),[s,l]=Pn((()=>i.current.isFocused&&i.current.isFocusVisible)),c=jn((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=jn((e=>{i.current.isFocused=e,a(e),c()}),[c]);wm((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=jn((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=rm(o),s=jn((e=>{const t=Xh(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),a(e))}),[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:u}),{focusWithinProps:f}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Dn({isFocusWithin:!1}),a=jn((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=rm(a),l=jn((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,s(e))}),[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?f:d}}var Am=Object.defineProperty,Cm=(e,t,n)=>(((e,t,n)=>{t in e?Am(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let Rm=new class{constructor(){Cm(this,"current",this.detect()),Cm(this,"handoffState","pending"),Cm(this,"currentId",0)}set(e){this.current!==e&&(this.handoffState="pending",this.currentId=0,this.current=e)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return"server"===this.current}get isClient(){return"client"===this.current}detect(){return"undefined"==typeof window||"undefined"==typeof document?"server":"client"}handoff(){"pending"===this.handoffState&&(this.handoffState="complete")}get isHandoffComplete(){return"complete"===this.handoffState}};function Pm(e){return Rm.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Nm(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Lm(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return Nm((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=Lm();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function Fm(){let[e]=Pn(Lm);return Ln((()=>()=>e.dispose()),[e]),e}let Dm=(e,t)=>{Rm.isServer?Ln(e,t):Fn(e,t)};function Mm(e){let t=Dn(e);return Dm((()=>{t.current=e}),[e]),t}let Im=function(e){let t=Mm(e);return Xr.useCallback(((...e)=>t.current(...e)),[t])};function jm({disabled:e=!1}={}){let t=Dn(null),[n,r]=Pn(!1),i=Fm(),o=Im((()=>{t.current=null,r(!1),i.dispose()})),a=Im((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Pm(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}let Um=ft(void 0);function Hm(){return Un(Um)}function Bm(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function zm(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,zm),r}var Vm,Wm,qm=((Wm=qm||{})[Wm.None=0]="None",Wm[Wm.RenderStrategy=1]="RenderStrategy",Wm[Wm.Static=2]="Static",Wm),$m=((Vm=$m||{})[Vm.Unmount=0]="Unmount",Vm[Vm.Hidden=1]="Hidden",Vm);function Km({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:Qm;let l=Ym(t,e);if(o)return Gm(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Gm(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return zm(e?0:1,{0:()=>null,1:()=>Gm({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Gm(l,n,r,a,s)}function Gm(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=eg(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(o===qe&&(Object.keys(Zm(l)).length>0||Object.keys(Zm(d)).length>0)){if(Dr(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Bm(t(...e),l.className):Bm(t,l.className),r=n?{className:n}:{},o=Ym(u.props,Zm(eg(l,["ref"])));for(let i in d)i in o&&delete d[i];return jr(u,Object.assign({},o,d,c,{ref:i(u.ref,c.ref)},r))}if(Object.keys(Zm(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Zm(l)).concat(Object.keys(Zm(d))).map((e=>` - ${e}`)).join("\n"),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map((e=>` - ${e}`)).join("\n")].join("\n"))}return ze(o,Object.assign({},eg(l,["ref"]),o!==qe&&c,o!==qe&&d),u)}function Qm(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Ym(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Xm(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)null==n||n(...e)}});return t}function Jm(e){var t;return Object.assign(tr(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Zm(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function eg(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function tg(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))rg(n,ng(t,r),i);return n}function ng(e,t){return e?e+"["+t+"]":t}function rg(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())rg(e,ng(t,r.toString()),i);else n instanceof Date?e.push([t,n.toISOString()]):"boolean"==typeof n?e.push([t,n?"1":"0"]):"string"==typeof n?e.push([t,n]):"number"==typeof n?e.push([t,`${n}`]):null==n?e.push([t,""]):tg(n,t,e)}var ig=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ig||{});let og=Jm((function(e,t){var n;let{features:r=1,...i}=e;return Km({ourProps:{ref:t,"aria-hidden":!(2&~r)||(null!=(n=i["aria-hidden"])?n:void 0),hidden:!(4&~r)||void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...!(4&~r)&&!!(2&~r)&&{display:"none"}}},theirProps:i,slot:{},defaultTag:"span",name:"Hidden"})})),ag=ft(null);function sg({children:e}){let t=Un(ag);if(!t)return Xr.createElement(Xr.Fragment,null,e);let{target:n}=t;return n?mr(Xr.createElement(Xr.Fragment,null,e),n):null}function lg({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,a]=Pn(null),s=Fm();return Ln((()=>{if(r&&o)return s.addEventListener(o,"reset",r)}),[o,t,r]),Xr.createElement(sg,null,Xr.createElement(cg,{setForm:a,formId:t}),tg(e).map((([e,r])=>Xr.createElement(og,{features:ig.Hidden,...Zm({key:e,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:e,value:r,...i})}))))}function cg({setForm:e,formId:t}){return Ln((()=>{if(t){let n=document.getElementById(t);n&&e(n)}}),[e,t]),t?null:Xr.createElement(og,{features:ig.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:t=>{if(!t)return;let n=t.closest("form");n&&e(n)}})}let ug=ft(void 0);function dg(){return Un(ug)}function fg(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}let pg=Symbol();function hg(...e){let t=Dn(e);Ln((()=>{t.current=e}),[e]);let n=Im((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[pg])))?void 0:n}let mg=ft(null);function gg(){let e=Un(mg);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,gg),e}return e}mg.displayName="DescriptionContext";let vg=Jm((function(e,t){let n=Bn(),r=Hm(),{id:i=`headlessui-description-${n}`,...o}=e,a=gg(),s=hg(t);Dm((()=>a.register(i)),[i,a.register]);let l=r||!1,c=In((()=>({...a.slot,disabled:l})),[a.slot,l]);return Km({ourProps:{ref:s,...a.props,id:i},theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(vg,{});var yg,bg=((yg=bg||{}).Space=" ",yg.Enter="Enter",yg.Escape="Escape",yg.Backspace="Backspace",yg.Delete="Delete",yg.ArrowLeft="ArrowLeft",yg.ArrowUp="ArrowUp",yg.ArrowRight="ArrowRight",yg.ArrowDown="ArrowDown",yg.Home="Home",yg.End="End",yg.PageUp="PageUp",yg.PageDown="PageDown",yg.Tab="Tab",yg);let wg=ft(null);function _g(){let e=Un(wg);if(null===e){let e=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,_g),e}return e}function xg(e){var t,n,r;let i=null!=(n=null==(t=Un(wg))?void 0:t.value)?n:void 0;return(null!=(r=null==e?void 0:e.length)?r:0)>0?[i,...e].filter(Boolean).join(" "):i}wg.displayName="LabelContext";let Eg=Jm((function(e,t){var n;let r=Bn(),i=_g(),o=dg(),a=Hm(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=hg(t);Dm((()=>i.register(s)),[s,i.register]);let f=Im((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),p=a||!1,h=In((()=>({...i.slot,disabled:p})),[i.slot,p]),m={ref:d,...i.props,id:s,htmlFor:l,onClick:f};return c&&("onClick"in m&&(delete m.htmlFor,delete m.onClick),"onClick"in u&&delete u.onClick),Km({ourProps:m,theirProps:u,slot:h,defaultTag:l?"label":"div",name:i.name||"Label"})})),Sg=Object.assign(Eg,{});function Og(e,t){return null!==e&&null!==t&&"object"==typeof e&&"object"==typeof t&&"id"in e&&"id"in t?e.id===t.id:e===t}function kg(e,t=!1){let[n,r]=Nn((()=>({})),{}),i=In((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return Dm((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let Tg=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function Ag(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach((e=>e())))}}}function Cg(e){return Qr(e.subscribe,e.getSnapshot,e.getSnapshot)}let Rg=new Tg((()=>Ag((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}})));function Pg(e,t){let n=Rg.get(t),r=Bn(),i=Cg(n);if(Dm((()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)}),[n,e]),!e)return!1;let o=i.indexOf(r),a=i.length;return-1===o&&(o=a,a+=1),o===a-1}let Ng=new Map,Lg=new Map;function Fg(e){var t;let n=null!=(t=Lg.get(e))?t:0;return Lg.set(e,n+1),0!==n||(Ng.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>Dg(e)}function Dg(e){var t;let n=null!=(t=Lg.get(e))?t:1;if(1===n?Lg.delete(e):Lg.set(e,n-1),1!==n)return;let r=Ng.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ng.delete(e))}let Mg=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),Ig=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var jg,Ug,Hg,Bg=((Hg=Bg||{})[Hg.First=1]="First",Hg[Hg.Previous=2]="Previous",Hg[Hg.Next=4]="Next",Hg[Hg.Last=8]="Last",Hg[Hg.WrapAround=16]="WrapAround",Hg[Hg.NoScroll=32]="NoScroll",Hg[Hg.AutoFocus=64]="AutoFocus",Hg),zg=((Ug=zg||{})[Ug.Error=0]="Error",Ug[Ug.Overflow=1]="Overflow",Ug[Ug.Success=2]="Success",Ug[Ug.Underflow=3]="Underflow",Ug),Vg=((jg=Vg||{})[jg.Previous=-1]="Previous",jg[jg.Next=1]="Next",jg);function Wg(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Mg)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var qg=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(qg||{});function $g(e,t=0){var n;return e!==(null==(n=Pm(e))?void 0:n.body)&&zm(t,{0:()=>e.matches(Mg),1(){let t=e;for(;null!==t;){if(t.matches(Mg))return!0;t=t.parentElement}return!1}})}var Kg=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Kg||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let Gg=["textarea","input"].join(",");function Qg(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function Yg(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?Qg(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(Ig)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):Wg(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:o.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,Gg))&&n}(s)&&s.select(),2}function Xg(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Jg(){return Xg()||/Android/gi.test(window.navigator.userAgent)}function Zg(e,t,n,r){let i=Mm(n);Ln((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}const ev=30;function tv(e,t,n){let r=Pg(e,"outside-click"),i=Mm(n),o=jn((function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!$g(r,qg.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=Dn(null);Zg(r,"pointerdown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),Zg(r,"mousedown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),Zg(r,"click",(e=>{Jg()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=Dn({x:0,y:0});Zg(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),Zg(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=ev||Math.abs(n-s.current.y)>=ev))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let i=Mm(n);Ln((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}(r,"blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function nv(...e){return In((()=>Pm(...e)),[...e])}function rv(e,t){return In((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function iv(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function ov(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let av=Ag((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Lm(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:ov(n)},i=[Xg()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=Lm();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);a&&!r(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},iv(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach((({before:e})=>null==e?void 0:e(r))),i.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function sv(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=Cg(av),i=t?r.get(t):void 0,o=!!i&&i.count>0;Dm((()=>{if(t&&e)return av.dispatch("PUSH",t,n),()=>av.dispatch("POP",t,n)}),[e,t])}(Pg(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function lv(e){return[e.screenX,e.screenY]}av.subscribe((()=>{let e=av.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&av.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&av.dispatch("TEARDOWN",n)}}));var cv=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(cv||{});function uv(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function dv(e,t,n,r){let[i,o]=Pn(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=Pn(e),r=jn((e=>n(e)),[t]),i=jn((e=>n((t=>t|e))),[t]),o=jn((e=>(t&e)===e),[t]),a=jn((e=>n((t=>t&~e))),[n]),s=jn((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(e&&i?3:0),c=Dn(!1),u=Dn(!1),d=Fm();return Dm((()=>{if(e)return n&&o(!0),t?(null==void 0||undefined.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Lm();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame((()=>{o.add(function(e,t){let n=function(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}(t),r=Lm();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:o}=getComputedStyle(e),[a,s]=[i,o].map((e=>{let[t=0]=e.split(",").filter(Boolean).map((e=>e.includes("ms")?parseFloat(e):1e3*parseFloat(e))).sort(((e,t)=>t-e));return t})),l=a+s;if(0!==l){let t=r.group((r=>{let i=r.setTimeout((()=>{n(),r.dispose()}),l);r.addEventListener(e,"transitionrun",(o=>{o.target===o.currentTarget&&(i(),r.addEventListener(e,"transitioncancel",(e=>{e.target===e.currentTarget&&(n(),t())})))}))}));r.addEventListener(e,"transitionend",(e=>{e.target===e.currentTarget&&(n(),r.dispose())}))}else n();return r.dispose}(e,r)),n()})),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){u.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==void 0||undefined.call(r,n))}})):void(n&&s(3))}),[e,n,t,d]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function fv(e){return mv(e)?(e.nodeName||"").toLowerCase():"#document"}function pv(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function hv(e){var t;return null==(t=(mv(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function mv(e){return e instanceof Node||e instanceof pv(e).Node}function gv(e){return e instanceof Element||e instanceof pv(e).Element}function vv(e){return e instanceof HTMLElement||e instanceof pv(e).HTMLElement}function yv(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof pv(e).ShadowRoot)}function bv(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ov(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function wv(e){return["table","td","th"].includes(fv(e))}function _v(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Vm){return!1}}))}function xv(e){const t=Ev(),n=gv(e)?Ov(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Ev(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Sv(e){return["html","body","#document"].includes(fv(e))}function Ov(e){return pv(e).getComputedStyle(e)}function kv(e){return gv(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Tv(e){if("html"===fv(e))return e;const t=e.assignedSlot||e.parentNode||yv(e)&&e.host||hv(e);return yv(t)?t.host:t}function Av(e){const t=Tv(e);return Sv(t)?e.ownerDocument?e.ownerDocument.body:e.body:vv(t)&&bv(t)?t:Av(t)}function Cv(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Av(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=pv(i);if(o){const e=Rv(a);return t.concat(a,a.visualViewport||[],bv(i)?i:[],e&&n?Cv(e):[])}return t.concat(i,Cv(i,[],n))}function Rv(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Pv=Math.min,Nv=Math.max,Lv=Math.round,Fv=Math.floor,Dv=e=>({x:e,y:e}),Mv={left:"right",right:"left",bottom:"top",top:"bottom"},Iv={start:"end",end:"start"};function jv(e,t,n){return Nv(e,Pv(t,n))}function Uv(e,t){return"function"==typeof e?e(t):e}function Hv(e){return e.split("-")[0]}function Bv(e){return e.split("-")[1]}function zv(e){return"x"===e?"y":"x"}function Vv(e){return"y"===e?"height":"width"}function Wv(e){return["top","bottom"].includes(Hv(e))?"y":"x"}function qv(e){return zv(Wv(e))}function $v(e){return e.replace(/start|end/g,(e=>Iv[e]))}function Kv(e){return e.replace(/left|right|bottom|top/g,(e=>Mv[e]))}function Gv(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Qv(e,t,n){let{reference:r,floating:i}=e;const o=Wv(t),a=qv(t),s=Vv(a),l=Hv(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-i.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Bv(t)){case"start":p[a]-=f*(n&&c?-1:1);break;case"end":p[a]+=f*(n&&c?-1:1)}return p}async function Yv(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=Uv(t,e),h=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[f?"floating"===d?"reference":"floating":d],g=Gv(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(m)))||n?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=Gv(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-w.top+h.top)/b.y,bottom:(w.bottom-g.bottom+h.bottom)/b.y,left:(g.left-w.left+h.left)/b.x,right:(w.right-g.right+h.right)/b.x}}function Xv(e){const t=Ov(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=vv(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=Lv(n)!==o||Lv(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Jv(e){return gv(e)?e:e.contextElement}function Zv(e){const t=Jv(e);if(!vv(t))return Dv(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Xv(t);let a=(o?Lv(n.width):n.width)/r,s=(o?Lv(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const ey=Dv(0);function ty(e){const t=pv(e);return Ev()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ey}function ny(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Jv(e);let a=Dv(1);t&&(r?gv(r)&&(a=Zv(r)):a=Zv(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==pv(e))&&t}(o,n,r)?ty(o):Dv(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=pv(o),t=r&&gv(r)?pv(r):r;let n=e,i=Rv(n);for(;i&&r&&t!==n;){const e=Zv(i),t=i.getBoundingClientRect(),r=Ov(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=pv(i),i=Rv(n)}}return Gv({width:u,height:d,x:l,y:c})}function ry(e){return ny(hv(e)).left+kv(e).scrollLeft}function iy(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=pv(e),r=hv(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Ev();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=hv(e),n=kv(e),r=e.ownerDocument.body,i=Nv(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Nv(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+ry(e);const s=-n.scrollTop;return"rtl"===Ov(r).direction&&(a+=Nv(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(hv(e));else if(gv(t))r=function(e,t){const n=ny(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=vv(e)?Zv(e):Dv(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=ty(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return Gv(r)}function oy(e,t){const n=Tv(e);return!(n===t||!gv(n)||Sv(n))&&("fixed"===Ov(n).position||oy(n,t))}function ay(e,t,n){const r=vv(t),i=hv(t),o="fixed"===n,a=ny(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=Dv(0);if(r||!r&&!o)if(("body"!==fv(t)||bv(i))&&(s=kv(t)),r){const e=ny(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=ry(i));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function sy(e){return"static"===Ov(e).position}function ly(e,t){return vv(e)&&"fixed"!==Ov(e).position?t?t(e):e.offsetParent:null}function cy(e,t){const n=pv(e);if(_v(e))return n;if(!vv(e)){let t=Tv(e);for(;t&&!Sv(t);){if(gv(t)&&!sy(t))return t;t=Tv(t)}return n}let r=ly(e,t);for(;r&&wv(r)&&sy(r);)r=ly(r,t);return r&&Sv(r)&&sy(r)&&!xv(r)?n:r||function(e){let t=Tv(e);for(;vv(t)&&!Sv(t);){if(xv(t))return t;if(_v(t))return null;t=Tv(t)}return null}(e)||n}const uy={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=hv(r),s=!!t&&_v(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=Dv(1);const u=Dv(0),d=vv(r);if((d||!d&&!o)&&(("body"!==fv(r)||bv(a))&&(l=kv(r)),vv(r))){const e=ny(r);c=Zv(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:hv,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?_v(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Cv(e,[],!1).filter((e=>gv(e)&&"body"!==fv(e))),i=null;const o="fixed"===Ov(e).position;let a=o?Tv(e):e;for(;gv(a)&&!Sv(a);){const t=Ov(a),n=xv(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||bv(a)&&!n&&oy(e,a))?r=r.filter((e=>e!==a)):i=t,a=Tv(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=iy(t,n,i);return e.top=Nv(r.top,e.top),e.right=Pv(r.right,e.right),e.bottom=Pv(r.bottom,e.bottom),e.left=Nv(r.left,e.left),e}),iy(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:cy,getElementRects:async function(e){const t=this.getOffsetParent||cy,n=this.getDimensions,r=await n(e.floating);return{reference:ay(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=Xv(e);return{width:t,height:n}},getScale:Zv,isElement:gv,isRTL:function(e){return"rtl"===Ov(e).direction}};function dy(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=Jv(e),u=i||o?[...c?Cv(c):[],...Cv(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=hv(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:f}=e.getBoundingClientRect();if(s||t(),!d||!f)return;const p={rootMargin:-Fv(u)+"px "+-Fv(i.clientWidth-(c+d))+"px "+-Fv(i.clientHeight-(u+f))+"px "+-Fv(c)+"px",threshold:Nv(0,Pv(1,l))||1};let h=!0;function m(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(Vm){r=new IntersectionObserver(m,p)}r.observe(e)}(!0),o}(c,n):null;let f,p=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let m=l?ny(e):null;return l&&function t(){const r=ny(e);!m||r.x===m.x&&r.y===m.y&&r.width===m.width&&r.height===m.height||n();m=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const fy=Yv,py=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=Hv(n),s=Bv(n),l="y"===Wv(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=Uv(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...d};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},hy=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Uv(e,t),c={x:n,y:r},u=await Yv(t,l),d=Wv(Hv(i)),f=zv(d);let p=c[f],h=c[d];if(o){const e="y"===f?"bottom":"right";p=jv(p+u["y"===f?"top":"left"],p,p-u[e])}if(a){const e="y"===d?"bottom":"right";h=jv(h+u["y"===d?"top":"left"],h,h-u[e])}const m=s.fn({...t,[f]:p,[d]:h});return{...m,data:{x:m.x-n,y:m.y-r}}}}},my=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=Uv(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const v=Hv(i),y=Wv(s),b=Hv(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),_=f||(b||!m?[Kv(s)]:function(e){const t=Kv(e);return[$v(e),t,$v(t)]}(s)),x="none"!==h;!f&&x&&_.push(...function(e,t,n,r){const i=Bv(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(Hv(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map($v)))),o}(s,m,h,w));const E=[s,..._],S=await Yv(t,g),O=[];let k=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&O.push(S[v]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Bv(e),i=qv(e),o=Vv(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Kv(a)),[a,Kv(a)]}(i,a,w);O.push(S[e[0]],S[e[1]])}if(k=[...k,{placement:i,overflows:O}],!O.every((e=>e<=0))){var T,A;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=E[e];if(t)return{data:{index:e,overflows:k},reset:{placement:t}};let n=null==(A=k.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!n)switch(p){case"bestFit":{var C;const e=null==(C=k.filter((e=>{if(x){const t=Wv(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:C[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},gy=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:n,rects:r,platform:i,elements:o}=t,{apply:a=()=>{},...s}=Uv(e,t),l=await Yv(t,s),c=Hv(n),u=Bv(n),d="y"===Wv(n),{width:f,height:p}=r.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=p-l.top-l.bottom,v=f-l.left-l.right,y=Pv(p-l[h],g),b=Pv(f-l[m],v),w=!t.middlewareData.shift;let _=y,x=b;if(d?x=u||w?Pv(b,v):v:_=u||w?Pv(y,g):g,w&&!u){const e=Nv(l.left,0),t=Nv(l.right,0),n=Nv(l.top,0),r=Nv(l.bottom,0);d?x=f-2*(0!==e||0!==t?e+t:Nv(l.left,l.right)):_=p-2*(0!==n||0!==r?n+r:Nv(l.top,l.bottom))}await a({...t,availableWidth:x,availableHeight:_});const E=await i.getDimensions(o.floating);return f!==E.width||p!==E.height?{reset:{rects:!0}}:{}}}},vy=(e,t,n)=>{const r=new Map,i={platform:uy,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Qv(c,r,l),f=r,p={},h=0;for(let m=0;m<s.length;m++){const{name:n,fn:o}=s[m],{x:g,y:v,data:y,reset:b}=await o({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=g?g:u,d=null!=v?v:d,p={...p,[n]:{...p[n],...y}},b&&h<=50&&(h++,"object"==typeof b&&(b.placement&&(f=b.placement),b.rects&&(c=!0===b.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):b.rects),({x:u,y:d}=Qv(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}})(e,t,{...i,platform:o})};var yy="undefined"!=typeof document?Fn:Ln;function by(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!by(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!by(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function wy(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function _y(e,t){const n=wy(e);return Math.round(t*n)/n}function xy(e){const t=Dn(e);return yy((()=>{t.current=e})),t}const Ey=(e,t)=>({...py(e),options:[e,t]}),Sy=(e,t)=>({...hy(e),options:[e,t]}),Oy=(e,t)=>({...my(e),options:[e,t]}),ky=(e,t)=>({...gy(e),options:[e,t]}),Ty={...Jr},Ay=Ty.useInsertionEffect||(e=>e());function Cy(e){const t=Dn((()=>{}));return Ay((()=>{t.current=e})),jn((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var Ry="undefined"!=typeof document?Fn:Ln;let Py=!1,Ny=0;const Ly=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Ny++;const Fy=Ty.useId||function(){const[e,t]=Pn((()=>Py?Ly():void 0));return Ry((()=>{null==e&&t(Ly())}),[]),Ln((()=>{Py=!0}),[]),e};const Dy=ft(null),My=ft(null),Iy=()=>{var e;return(null==(e=Un(Dy))?void 0:e.id)||null},jy=()=>Un(My),Uy="data-floating-ui-focusable";function Hy(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=Fy(),o=Dn({}),[a]=Pn((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=Iy(),[l,c]=Pn(r.reference),u=Cy(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),d=In((()=>({setPositionReference:c})),[]),f=In((()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference})),[l,r.reference,r.floating]);return In((()=>({dataRef:o,open:t,onOpenChange:u,elements:f,events:a,floatingId:i,refs:d})),[t,u,f,a,i,d])}function By(e){void 0===e&&(e={});const{nodeId:t}=e,n=Hy({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Pn(null),[s,l]=Pn(null),c=(null==i?void 0:i.reference)||o,u=Dn(null),d=jy();Ry((()=>{c&&(u.current=c)}),[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Pn({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Pn(r);by(f,r)||p(r);const[h,m]=Pn(null),[g,v]=Pn(null),y=jn((e=>{e!==x.current&&(x.current=e,m(e))}),[]),b=jn((e=>{e!==E.current&&(E.current=e,v(e))}),[]),w=o||h,_=a||g,x=Dn(null),E=Dn(null),S=Dn(u),O=null!=l,k=xy(l),T=xy(i),A=jn((()=>{if(!x.current||!E.current)return;const e={placement:t,strategy:n,middleware:f};T.current&&(e.platform=T.current),vy(x.current,E.current,e).then((e=>{const t={...e,isPositioned:!0};C.current&&!by(S.current,t)&&(S.current=t,zr((()=>{d(t)})))}))}),[f,t,n,T]);yy((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const C=Dn(!1);yy((()=>(C.current=!0,()=>{C.current=!1})),[]),yy((()=>{if(w&&(x.current=w),_&&(E.current=_),w&&_){if(k.current)return k.current(w,_,A);A()}}),[w,_,A,k,O]);const R=In((()=>({reference:x,floating:E,setReference:y,setFloating:b})),[y,b]),P=In((()=>({reference:w,floating:_})),[w,_]),N=In((()=>{const e={position:n,left:0,top:0};if(!P.floating)return e;const t=_y(P.floating,u.x),r=_y(P.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...wy(P.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,P.floating,u.x,u.y]);return In((()=>({...u,update:A,refs:R,elements:P,floatingStyles:N})),[u,A,R,P,N])}({...e,elements:{...i,...s&&{reference:s}}}),p=jn((e=>{const t=gv(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)}),[f.refs]),h=jn((e=>{(gv(e)||null===e)&&(u.current=e,a(e)),(gv(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!gv(e))&&f.refs.setReference(e)}),[f.refs]),m=In((()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u})),[f.refs,h,p]),g=In((()=>({...f.elements,domReference:c})),[f.elements,c]),v=In((()=>({...f,...r,refs:m,elements:g,nodeId:t})),[f,m,g,t,r]);return Ry((()=>{r.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=v)})),In((()=>({...f,context:v,refs:m,elements:g})),[f,m,g,v])}const zy="active",Vy="selected";function Wy(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[zy]:t,[Vy]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[Uy]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;i&&[zy,Vy].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function qy(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const $y=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:a=0,minItemsVisible:s=4,referenceOverflowThreshold:l=0,scrollRef:c,...u}=Uv(e,t),{rects:d,elements:{floating:f}}=t,p=n.current[a],h=(null==c?void 0:c.current)||f,m=f.clientTop||h.clientTop,g=0!==f.clientTop,v=0!==h.clientTop,y=f===h;if(!p)return{};const b={...t,...await Ey(-p.offsetTop-f.clientTop-d.reference.height/2-p.offsetHeight/2-o).fn(t)},w=await fy(qy(b,h.scrollHeight+m+f.clientTop),u),_=await fy(b,{...u,elementContext:"reference"}),x=Math.max(0,w.top),E=b.y+x,S=Math.max(0,h.scrollHeight+(g&&y||v?2*m:0)-x-Math.max(0,w.bottom));return h.style.maxHeight=S+"px",h.scrollTop=x,i&&(h.offsetHeight<p.offsetHeight*Math.min(s,n.current.length-1)-1||_.top>=-l||_.bottom>=-l?zr((()=>i(!0))):zr((()=>i(!1)))),r&&(r.current=await fy(qy({...b,y:E},h.offsetHeight+m+f.clientTop),u)),{y:E}}});function Ky(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=Cy(s),c=Dn(!1),u=Dn(null),d=Dn(null);Ln((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),zr((()=>{l((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=o.current&&(d.current={...o.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,r.floating,o,a,l]);const f=In((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&zr((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return In((()=>i?{floating:f}:{}),[i,f])}let Gy=ft({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Gy.displayName="FloatingContext";let Qy=ft(null);Qy.displayName="PlacementContext";let Yy=4;function Xy({children:e,enabled:t=!0}){let[n,r]=Pn(null),[i,o]=Pn(0),a=Dn(null),[s,l]=Pn(null);!function(e){Dm((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==n&&null!==s,{to:u="bottom",gap:d=0,offset:f=0,padding:p=0,inner:h}=function(e,t){var n,r,i;let o=Jy(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=Jy(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=Jy(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[m,g="center"]=u.split(" ");Dm((()=>{c&&o(0)}),[c]);let{refs:v,floatingStyles:y,context:b}=By({open:c,placement:"selection"===m?"center"===g?"bottom":`bottom-${g}`:"center"===g?`${m}`:`${m}-${g}`,strategy:"absolute",transform:!1,middleware:[Ey({mainAxis:"selection"===m?0:d,crossAxis:f}),Sy({padding:p}),"selection"!==m&&Oy({padding:p}),"selection"===m&&h?$y({...h,padding:p,overflowRef:a,offset:i,minItemsVisible:Yy,referenceOverflowThreshold:p,onFallbackChange(e){var t,n;if(!e)return;let r=b.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(Yy,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=b.elements.floating)?void 0:t.childNodes)?n:[])if(o instanceof HTMLElement){let e=o.offsetTop,t=e+o.clientHeight+i,n=r.scrollTop,c=n+r.clientHeight;if(!(e>=n&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,n)),s=o.clientHeight;break}a--}a>=1&&o((e=>{let t=s*a-l+i;return e>=t?e:t}))}}):null,ky({padding:p,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:dy}),[w=m,_=g]=b.placement.split("-");"selection"===m&&(w="selection");let x=In((()=>({anchor:[w,_].filter(Boolean).join(" ")})),[w,_]),E=Ky(b,{overflowRef:a,onChange:o}),{getReferenceProps:S,getFloatingProps:O}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=jn((t=>Wy(t,e,"reference")),t),o=jn((t=>Wy(t,e,"floating")),n),a=jn((t=>Wy(t,e,"item")),r);return In((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([E]),k=Im((e=>{l(e),v.setFloating(e)}));return ze(Qy.Provider,{value:r},ze(Gy.Provider,{value:{setFloating:k,setReference:v.setReference,styles:y,getReferenceProps:S,getFloatingProps:O,slot:x}},e))}function Jy(e,t,n=void 0){let r=Fm(),i=Im(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=eb(e,t);return[i,n=>{let o=Zy(e);{let a=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=eb(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=In((()=>i(e,t)[0]),[e,t]),[a=o,s]=Pn();return Dm((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function Zy(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...Zy(r)]:[n]}return[]}function eb(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let tb=ft(null);tb.displayName="OpenClosedContext";var nb=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(nb||{});function rb({value:e,children:t}){return Xr.createElement(tb.Provider,{value:e},t)}var ib,ob=((ib=ob||{})[ib.First=0]="First",ib[ib.Previous=1]="Previous",ib[ib.Next=2]="Next",ib[ib.Last=3]="Last",ib[ib.Specific=4]="Specific",ib[ib.Nothing=5]="Nothing",ib);function ab(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function sb(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Jr&&Jr.useSyncExternalStore((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=Pn(Rm.isHandoffComplete);return t&&!1===Rm.isHandoffComplete&&n(!1),Ln((()=>{!0!==t&&n(!0)}),[t]),Ln((()=>Rm.handoff()),[]),!e&&t}let lb=ft(!1);function cb(e){let t=Un(lb),n=Un(pb),r=nv(e),[i,o]=Pn((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(Rm.isServer)return null;let i=null==r?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return Ln((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),Ln((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}let ub=qe,db=Jm((function(e,t){let n=e,r=Dn(null),i=hg(function(e,t=!0){return Object.assign(e,{[pg]:t})}((e=>{r.current=e})),t),o=nv(r),a=cb(r),[s]=Pn((()=>{var e;return Rm.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Un(hb),c=sb();return Dm((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),Dm((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=Im(e),n=Dn(!1);Ln((()=>(n.current=!1,()=>{n.current=!0,Nm((()=>{n.current&&t()}))})),[t])}((()=>{var e;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))})),c&&a&&s?mr(Km({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:ub,name:"Portal"}),s):null}));let fb=qe,pb=ft(null);let hb=ft(null),mb=Jm((function(e,t){let n=hg(t),{enabled:r=!0,...i}=e;return r?Xr.createElement(db,{...i,ref:n}):Km({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:ub,name:"Portal"})})),gb=Jm((function(e,t){let{target:n,...r}=e,i={ref:hg(t)};return Xr.createElement(pb.Provider,{value:n},Km({ourProps:i,theirProps:r,defaultTag:fb,name:"Popover.Group"}))})),vb=Object.assign(mb,{Group:gb});let yb=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function bb(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(n=i.innerText)?n:"":r;return yb.test(a)&&(a=a.replace(yb,"")),a}function wb(e){let t=Dn(""),n=Dn("");return Im((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():bb(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return bb(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var _b=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(_b||{}),xb=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(xb||{}),Eb=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Eb||{}),Sb=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(Sb||{});function Ob(e,t=e=>e){let n=null!==e.activeOptionIndex?e.options[e.activeOptionIndex]:null,r=Qg(t(e.options.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{options:r,activeOptionIndex:i}}let kb={1:e=>e.dataRef.current.disabled||1===e.listboxState?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1},0(e){if(e.dataRef.current.disabled||0===e.listboxState)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex((e=>n(e.dataRef.current.value)));return-1!==r&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,i,o,a;if(e.dataRef.current.disabled||1===e.listboxState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===ob.Nothing)return{...s,activeOptionIndex:null};if(t.focus===ob.Specific)return{...s,activeOptionIndex:e.options.findIndex((e=>e.id===t.id))};if(t.focus===ob.Previous){let n=e.activeOptionIndex;if(null!==n){let o=e.options[n].dataRef.current.domRef,a=ab(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.options[a].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeOptionIndex:a}}}}else if(t.focus===ob.Next){let n=e.activeOptionIndex;if(null!==n){let r=e.options[n].dataRef.current.domRef,i=ab(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.options[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeOptionIndex:i}}}}let l=Ob(e),c=ab(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeOptionIndex:c}},3:(e,t)=>{if(e.dataRef.current.disabled||1===e.listboxState)return e;let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeOptionIndex?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find((e=>{var t;return!e.dataRef.current.disabled&&(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))})),o=i?e.options.indexOf(i):-1;return-1===o||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,activationTrigger:1}},4:e=>e.dataRef.current.disabled||1===e.listboxState||""===e.searchQuery?e:{...e,searchQuery:""},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Ob(e,(e=>[...e,n]));return null===e.activeOptionIndex&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Ob(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},Tb=ft(null);function Ab(e){let t=Un(Tb);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ab),t}return t}Tb.displayName="ListboxActionsContext";let Cb=ft(null);function Rb(e){let t=Un(Cb);if(null===t){let t=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Rb),t}return t}function Pb(e,t){return zm(t.type,kb,e,t)}Cb.displayName="ListboxDataContext";let Nb=qe;let Lb=ft(!1),Fb=qm.RenderStrategy|qm.Static;let Db=qe;let Mb=Jm((function(e,t){var n;let r=Hm(),{value:i,defaultValue:o,form:a,name:s,onChange:l,by:c,invalid:u=!1,disabled:d=r||!1,horizontal:f=!1,multiple:p=!1,__demoMode:h=!1,...m}=e;const g=f?"horizontal":"vertical";let v=hg(t),y=function(e){let[t]=Pn(e);return t}(o),[b=(p?[]:void 0),w]=function(e,t,n){let[r,i]=Pn(n),o=void 0!==e,a=Dn(o),s=Dn(!1),l=Dn(!1);return!o||a.current||s.current?!o&&a.current&&!l.current&&(l.current=!0,a.current=o,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")):(s.current=!0,a.current=o,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")),[o?e:r,Im((e=>(o||i(e),null==t?void 0:t(e))))]}(i,l,y),[_,x]=Nn(Pb,{dataRef:{current:null},listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),E=Dn({static:!1,hold:!1}),S=Dn(new Map),O=function(e=Og){return jn(((t,n)=>{if("string"==typeof e){let r=e;return(null==t?void 0:t[r])===(null==n?void 0:n[r])}return e(t,n)}),[e])}(c),k=jn((e=>zm(T.mode,{1:()=>b.some((t=>O(t,e))),0:()=>O(b,e)})),[b]),T=In((()=>({..._,value:b,disabled:d,invalid:u,mode:p?1:0,orientation:g,compare:O,isSelected:k,optionsPropsRef:E,listRef:S})),[b,d,u,p,_,S]);Dm((()=>{_.dataRef.current=T}),[T]),tv(0===T.listboxState,[T.buttonElement,T.optionsElement],((e,t)=>{var n;x({type:1}),$g(t,qg.Loose)||(e.preventDefault(),null==(n=T.buttonElement)||n.focus())}));let A=In((()=>({open:0===T.listboxState,disabled:d,invalid:u,value:b})),[T,d,b,u]),C=Im((e=>{let t=T.options.find((t=>t.id===e));t&&M(t.dataRef.current.value)})),R=Im((()=>{if(null!==T.activeOptionIndex){let{dataRef:e,id:t}=T.options[T.activeOptionIndex];M(e.current.value),x({type:2,focus:ob.Specific,id:t})}})),P=Im((()=>x({type:0}))),N=Im((()=>x({type:1}))),L=Fm(),F=Im(((e,t,n)=>{L.dispose(),L.microTask((()=>e===ob.Specific?x({type:2,focus:ob.Specific,id:t,trigger:n}):x({type:2,focus:e,trigger:n})))})),D=Im(((e,t)=>(x({type:5,id:e,dataRef:t}),()=>x({type:6,id:e})))),M=Im((e=>zm(T.mode,{0:()=>null==w?void 0:w(e),1(){let t=T.value.slice(),n=t.findIndex((t=>O(t,e)));return-1===n?t.push(e):t.splice(n,1),null==w?void 0:w(t)}}))),I=Im((e=>x({type:3,value:e}))),j=Im((()=>x({type:4}))),U=Im((e=>{x({type:7,element:e})})),H=Im((e=>{x({type:8,element:e})})),B=In((()=>({onChange:M,registerOption:D,goToOption:F,closeListbox:N,openListbox:P,selectActiveOption:R,selectOption:C,search:I,clearSearch:j,setButtonElement:U,setOptionsElement:H})),[]),[z,V]=function({inherit:e=!1}={}){let t=xg(),[n,r]=Pn([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,In((()=>function(e){let t=Im((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=In((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return Xr.createElement(wg.Provider,{value:n},e.children)}),[r])]}({inherit:!0}),W={ref:v},q=jn((()=>{if(void 0!==y)return null==w?void 0:w(y)}),[w,y]);return Xr.createElement(V,{value:z,props:{htmlFor:null==(n=T.buttonElement)?void 0:n.id},slot:{open:0===T.listboxState,disabled:d}},Xr.createElement(Xy,null,Xr.createElement(Tb.Provider,{value:B},Xr.createElement(Cb.Provider,{value:T},Xr.createElement(rb,{value:zm(T.listboxState,{0:nb.Open,1:nb.Closed})},null!=s&&null!=b&&Xr.createElement(lg,{disabled:d,data:{[s]:b},form:a,onReset:q}),Km({ourProps:W,theirProps:m,slot:A,defaultTag:Nb,name:"Listbox"}))))))})),Ib=Jm((function(e,t){var n;let r=Rb("Listbox.Button"),i=Ab("Listbox.Button"),o=Bn(),a=dg(),{id:s=a||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:c=!1,...u}=e,d=hg(t,Un(Gy).setReference,i.setButtonElement),f=Un(Gy).getReferenceProps,p=Im((e=>{switch(e.key){case bg.Enter:!function(e){var t,n;let r=null!=(t=null==e?void 0:e.form)?t:e.closest("form");if(r){for(let t of r.elements)if(t!==e&&("INPUT"===t.tagName&&"submit"===t.type||"BUTTON"===t.tagName&&"submit"===t.type||"INPUT"===t.nodeName&&"image"===t.type))return void t.click();null==(n=r.requestSubmit)||n.call(r)}}(e.currentTarget);break;case bg.Space:case bg.ArrowDown:e.preventDefault(),zr((()=>i.openListbox())),r.value||i.goToOption(ob.First);break;case bg.ArrowUp:e.preventDefault(),zr((()=>i.openListbox())),r.value||i.goToOption(ob.Last)}})),h=Im((e=>{if(e.key===bg.Space)e.preventDefault()})),m=Im((e=>{var t;if(fg(e.currentTarget))return e.preventDefault();0===r.listboxState?(zr((()=>i.closeListbox())),null==(t=r.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),i.openListbox())})),g=Im((e=>e.preventDefault())),v=xg([s]),y=function(){var e,t;return null!=(t=null==(e=Un(mg))?void 0:e.value)?t:void 0}(),{isFocusVisible:b,focusProps:w}=Tm({autoFocus:c}),{isHovered:_,hoverProps:x}=km({isDisabled:l}),{pressed:E,pressProps:S}=jm({disabled:l}),O=In((()=>({open:0===r.listboxState,active:E||0===r.listboxState,disabled:l,invalid:r.invalid,value:r.value,hover:_,focus:b,autofocus:c})),[r.listboxState,r.value,l,_,b,E,r.invalid,c]);return Km({ourProps:Xm(f(),{ref:d,id:s,type:rv(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":null==(n=r.optionsElement)?void 0:n.id,"aria-expanded":0===r.listboxState,"aria-labelledby":v,"aria-describedby":y,disabled:l||void 0,autoFocus:c,onKeyDown:p,onKeyUp:h,onKeyPress:g,onClick:m},w,x,S),theirProps:u,slot:O,defaultTag:"button",name:"Listbox.Button"})})),jb=Sg,Ub=Jm((function(e,t){var n,r;let i=Bn(),{id:o=`headlessui-listbox-options-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return In((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[f,p]=Pn(null);d&&(s=!0);let h=Rb("Listbox.Options"),m=Ab("Listbox.Options"),g=nv(h.optionsElement),v=Un(tb),[y,b]=dv(c,f,null!==v?(v&nb.Open)===nb.Open:0===h.listboxState);!function(e,t,n){let r=Mm((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));Ln((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=Lm();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}return()=>i.dispose()}),[t,r,e])}(y,h.buttonElement,m.closeListbox),sv(!h.__demoMode&&(l&&0===h.listboxState),g),function(e,{allowed:t,disallowed:n}={}){let r=Pg(e,"inert-others");Dm((()=>{var e,i;if(!r)return;let o=Lm();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(Fg(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=Pm(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some((t=>e.contains(t)))||o.add(Fg(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!h.__demoMode&&(l&&0===h.listboxState),{allowed:Im((()=>[h.buttonElement,h.optionsElement]))});let w=!function(e,t){let n=Dn({left:0,top:0});if(Dm((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==h.listboxState,h.buttonElement)&&y,_=function(e,t){let[n,r]=Pn(t);return!e&&n!==t&&r(t),e?n:t}(y&&1===h.listboxState,h.value),x=Im((e=>h.compare(_,e))),E=In((()=>{var e;if(null==d||null==(e=null==d?void 0:d.to)||!e.includes("selection"))return null;let t=h.options.findIndex((e=>x(e.dataRef.current.value)));return-1===t&&(t=0),t}),[d,h.options]),S=(()=>{if(null==d)return;if(null===E)return{...d,inner:void 0};let e=Array.from(h.listRef.current.values());return{...d,inner:{listRef:{current:e},index:E}}})(),[O,k]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Un(Qy),n=In((()=>e),[JSON.stringify(e,"undefined"!=typeof HTMLElement?(e,t)=>t instanceof HTMLElement?t.outerHTML:t:void 0)]);Dm((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=Un(Gy);return In((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(S),T=function(){let{getFloatingProps:e,slot:t}=Un(Gy);return jn(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),A=hg(t,d?O:null,m.setOptionsElement,p),C=Fm();Ln((()=>{var e;let t=h.optionsElement;t&&0===h.listboxState&&t!==(null==(e=Pm(t))?void 0:e.activeElement)&&(null==t||t.focus({preventScroll:!0}))}),[h.listboxState,h.optionsElement]);let R=Im((e=>{var t,n;switch(C.dispose(),e.key){case bg.Space:if(""!==h.searchQuery)return e.preventDefault(),e.stopPropagation(),m.search(e.key);case bg.Enter:if(e.preventDefault(),e.stopPropagation(),null!==h.activeOptionIndex){let{dataRef:e}=h.options[h.activeOptionIndex];m.onChange(e.current.value)}0===h.mode&&(zr((()=>m.closeListbox())),null==(t=h.buttonElement)||t.focus({preventScroll:!0}));break;case zm(h.orientation,{vertical:bg.ArrowDown,horizontal:bg.ArrowRight}):return e.preventDefault(),e.stopPropagation(),m.goToOption(ob.Next);case zm(h.orientation,{vertical:bg.ArrowUp,horizontal:bg.ArrowLeft}):return e.preventDefault(),e.stopPropagation(),m.goToOption(ob.Previous);case bg.Home:case bg.PageUp:return e.preventDefault(),e.stopPropagation(),m.goToOption(ob.First);case bg.End:case bg.PageDown:return e.preventDefault(),e.stopPropagation(),m.goToOption(ob.Last);case bg.Escape:return e.preventDefault(),e.stopPropagation(),zr((()=>m.closeListbox())),void(null==(n=h.buttonElement)||n.focus({preventScroll:!0}));case bg.Tab:e.preventDefault(),e.stopPropagation(),zr((()=>m.closeListbox())),function(e,t){Yg(Wg(),t,{relativeTo:e})}(h.buttonElement,e.shiftKey?Bg.Previous:Bg.Next);break;default:1===e.key.length&&(m.search(e.key),C.setTimeout((()=>m.clearSearch()),350))}})),P=null==(n=h.buttonElement)?void 0:n.id,N=In((()=>({open:0===h.listboxState})),[h.listboxState]),L=Xm(d?T():{},{id:o,ref:A,"aria-activedescendant":null===h.activeOptionIndex||null==(r=h.options[h.activeOptionIndex])?void 0:r.id,"aria-multiselectable":1===h.mode||void 0,"aria-labelledby":P,"aria-orientation":h.orientation,onKeyDown:R,role:"listbox",tabIndex:0===h.listboxState?0:void 0,style:{...u.style,...k,"--button-width":kg(h.buttonElement,!0).width},...uv(b)});return Xr.createElement(vb,{enabled:!!s&&(e.static||y)},Xr.createElement(Cb.Provider,{value:1===h.mode?h:{...h,isSelected:x}},Km({ourProps:L,theirProps:u,slot:N,defaultTag:"div",features:Fb,visible:w,name:"Listbox.Options"})))})),Hb=Jm((function(e,t){let n=Bn(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...a}=e,s=!0===Un(Lb),l=Rb("Listbox.Option"),c=Ab("Listbox.Option"),u=null!==l.activeOptionIndex&&l.options[l.activeOptionIndex].id===r,d=l.isSelected(o),f=Dn(null),p=wb(f),h=Mm({disabled:i,value:o,domRef:f,get textValue(){return p()}}),m=hg(t,f,(e=>{e?l.listRef.current.set(r,e):l.listRef.current.delete(r)}));Dm((()=>{if(!l.__demoMode&&0===l.listboxState&&u&&0!==l.activationTrigger)return Lm().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=f.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[f,u,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Dm((()=>{if(!s)return c.registerOption(r,h)}),[h,r,s]);let g=Im((e=>{var t;if(i)return e.preventDefault();c.onChange(o),0===l.mode&&(zr((()=>c.closeListbox())),null==(t=l.buttonElement)||t.focus({preventScroll:!0}))})),v=Im((()=>{if(i)return c.goToOption(ob.Nothing);c.goToOption(ob.Specific,r)})),y=function(){let e=Dn([-1,-1]);return{wasMoved(t){let n=lv(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=lv(t)}}}(),b=Im((e=>{y.update(e),!i&&(u||c.goToOption(ob.Specific,r,0))})),w=Im((e=>{y.wasMoved(e)&&(i||u||c.goToOption(ob.Specific,r,0))})),_=Im((e=>{y.wasMoved(e)&&(i||u&&c.goToOption(ob.Nothing))})),x=In((()=>({active:u,focus:u,selected:d,disabled:i,selectedOption:d&&s})),[u,d,i,s]);return!d&&s?null:Km({ourProps:s?{}:{id:r,ref:m,role:"option",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-selected":d,disabled:void 0,onClick:g,onFocus:v,onPointerEnter:b,onMouseEnter:b,onPointerMove:w,onMouseMove:w,onPointerLeave:_,onMouseLeave:_},theirProps:a,slot:x,defaultTag:"div",name:"Listbox.Option"})})),Bb=Jm((function(e,t){let{options:n,placeholder:r,...i}=e,o={ref:hg(t)},a=Rb("ListboxSelectedOption"),s=In((()=>({})),[]),l=void 0===a.value||null===a.value||1===a.mode&&Array.isArray(a.value)&&0===a.value.length;return Xr.createElement(Lb.Provider,{value:!0},Km({ourProps:o,theirProps:{...i,children:Xr.createElement(Xr.Fragment,null,r&&l?r:n)},slot:s,defaultTag:Db,name:"ListboxSelectedOption"}))})),zb=Object.assign(Mb,{Button:Ib,Label:jb,Options:Ub,Option:Hb,SelectedOption:Bb});function Vb({onFocus:e}){let[t,n]=Pn(!0),r=function(){let e=Dn(!1);return Dm((()=>(e.current=!0,()=>{e.current=!1})),[]),e}();return t?Xr.createElement(og,{as:"button",type:"button",features:ig.Focusable,onFocus:t=>{t.preventDefault();let i,o=50;i=requestAnimationFrame((function t(){if(o--<=0)i&&cancelAnimationFrame(i);else if(e()){if(cancelAnimationFrame(i),!r.current)return;n(!1)}else i=requestAnimationFrame(t)}))}}):null}const Wb=ft(null);function qb({children:e}){let t=Dn({groups:new Map,get(e,t){var n;let r=this.groups.get(e);r||(r=new Map,this.groups.set(e,r));let i=null!=(n=r.get(t))?n:0;return r.set(t,i+1),[Array.from(r.keys()).indexOf(t),function(){let e=r.get(t);e>1?r.set(t,e-1):r.delete(t)}]}});return ze(Wb.Provider,{value:t},e)}function $b(e){let t=Un(Wb);if(!t)throw new Error("You must wrap your component in a <StableCollection>");let n=Bn(),[r,i]=t.current.get(e,n);return Ln((()=>i),[]),r}var Kb,Gb=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(Gb||{}),Qb=((Kb=Qb||{})[Kb.Less=-1]="Less",Kb[Kb.Equal=0]="Equal",Kb[Kb.Greater=1]="Greater",Kb),Yb=(e=>(e[e.SetSelectedIndex=0]="SetSelectedIndex",e[e.RegisterTab=1]="RegisterTab",e[e.UnregisterTab=2]="UnregisterTab",e[e.RegisterPanel=3]="RegisterPanel",e[e.UnregisterPanel=4]="UnregisterPanel",e))(Yb||{});let Xb={0(e,t){var n;let r=Qg(e.tabs,(e=>e.current)),i=Qg(e.panels,(e=>e.current)),o=r.filter((e=>{var t;return!(null!=(t=e.current)&&t.hasAttribute("disabled"))})),a={...e,tabs:r,panels:i};if(t.index<0||t.index>r.length-1){let n=zm(Math.sign(t.index-e.selectedIndex),{[-1]:()=>1,0:()=>zm(Math.sign(t.index),{[-1]:()=>0,0:()=>0,1:()=>1}),1:()=>0});if(0===o.length)return a;let i=zm(n,{0:()=>r.indexOf(o[0]),1:()=>r.indexOf(o[o.length-1])});return{...a,selectedIndex:-1===i?e.selectedIndex:i}}let s=r.slice(0,t.index),l=[...r.slice(t.index),...s].find((e=>o.includes(e)));if(!l)return a;let c=null!=(n=r.indexOf(l))?n:e.selectedIndex;return-1===c&&(c=e.selectedIndex),{...a,selectedIndex:c}},1(e,t){if(e.tabs.includes(t.tab))return e;let n=e.tabs[e.selectedIndex],r=Qg([...e.tabs,t.tab],(e=>e.current)),i=e.selectedIndex;return e.info.current.isControlled||(i=r.indexOf(n),-1===i&&(i=e.selectedIndex)),{...e,tabs:r,selectedIndex:i}},2:(e,t)=>({...e,tabs:e.tabs.filter((e=>e!==t.tab))}),3:(e,t)=>e.panels.includes(t.panel)?e:{...e,panels:Qg([...e.panels,t.panel],(e=>e.current))},4:(e,t)=>({...e,panels:e.panels.filter((e=>e!==t.panel))})},Jb=ft(null);function Zb(e){let t=Un(Jb);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Zb),t}return t}Jb.displayName="TabsDataContext";let ew=ft(null);function tw(e){let t=Un(ew);if(null===t){let t=new Error(`<${e} /> is missing a parent <Tab.Group /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,tw),t}return t}function nw(e,t){return zm(t.type,Xb,e,t)}ew.displayName="TabsActionsContext";let rw=qm.RenderStrategy|qm.Static;let iw=Jm((function(e,t){var n,r;let i=Bn(),{id:o=`headlessui-tabs-tab-${i}`,disabled:a=!1,autoFocus:s=!1,...l}=e,{orientation:c,activation:u,selectedIndex:d,tabs:f,panels:p}=Zb("Tab"),h=tw("Tab"),m=Zb("Tab"),[g,v]=Pn(null),y=Dn(null),b=hg(y,t,v);Dm((()=>h.registerTab(y)),[h,y]);let w=$b("tabs"),_=f.indexOf(y);-1===_&&(_=w);let x=_===d,E=Im((e=>{var t;let n=e();if(n===zg.Success&&"auto"===u){let e=null==(t=Pm(y))?void 0:t.activeElement,n=m.tabs.findIndex((t=>t.current===e));-1!==n&&h.change(n)}return n})),S=Im((e=>{let t=f.map((e=>e.current)).filter(Boolean);if(e.key===bg.Space||e.key===bg.Enter)return e.preventDefault(),e.stopPropagation(),void h.change(_);switch(e.key){case bg.Home:case bg.PageUp:return e.preventDefault(),e.stopPropagation(),E((()=>Yg(t,Bg.First)));case bg.End:case bg.PageDown:return e.preventDefault(),e.stopPropagation(),E((()=>Yg(t,Bg.Last)))}return E((()=>zm(c,{vertical:()=>e.key===bg.ArrowUp?Yg(t,Bg.Previous|Bg.WrapAround):e.key===bg.ArrowDown?Yg(t,Bg.Next|Bg.WrapAround):zg.Error,horizontal:()=>e.key===bg.ArrowLeft?Yg(t,Bg.Previous|Bg.WrapAround):e.key===bg.ArrowRight?Yg(t,Bg.Next|Bg.WrapAround):zg.Error})))===zg.Success?e.preventDefault():void 0})),O=Dn(!1),k=Im((()=>{var e;O.current||(O.current=!0,null==(e=y.current)||e.focus({preventScroll:!0}),h.change(_),Nm((()=>{O.current=!1})))})),T=Im((e=>{e.preventDefault()})),{isFocusVisible:A,focusProps:C}=Tm({autoFocus:s}),{isHovered:R,hoverProps:P}=km({isDisabled:a}),{pressed:N,pressProps:L}=jm({disabled:a}),F=In((()=>({selected:x,hover:R,active:N,focus:A,autofocus:s,disabled:a})),[x,R,A,N,s,a]);return Km({ourProps:Xm({ref:b,onKeyDown:S,onMouseDown:T,onClick:k,id:o,role:"tab",type:rv(e,g),"aria-controls":null==(r=null==(n=p[_])?void 0:n.current)?void 0:r.id,"aria-selected":x,tabIndex:x?0:-1,disabled:a||void 0,autoFocus:s},C,P,L),theirProps:l,slot:F,defaultTag:"button",name:"Tabs.Tab"})})),ow=Jm((function(e,t){let{defaultIndex:n=0,vertical:r=!1,manual:i=!1,onChange:o,selectedIndex:a=null,...s}=e;const l=r?"vertical":"horizontal",c=i?"manual":"auto";let u=null!==a,d=Mm({isControlled:u}),f=hg(t),[p,h]=Nn(nw,{info:d,selectedIndex:null!=a?a:n,tabs:[],panels:[]}),m=In((()=>({selectedIndex:p.selectedIndex})),[p.selectedIndex]),g=Mm(o||(()=>{})),v=Mm(p.tabs),y=In((()=>({orientation:l,activation:c,...p})),[l,c,p]),b=Im((e=>(h({type:1,tab:e}),()=>h({type:2,tab:e})))),w=Im((e=>(h({type:3,panel:e}),()=>h({type:4,panel:e})))),_=Im((e=>{x.current!==e&&g.current(e),u||h({type:0,index:e})})),x=Mm(u?e.selectedIndex:p.selectedIndex),E=In((()=>({registerTab:b,registerPanel:w,change:_})),[]);Dm((()=>{h({type:0,index:null!=a?a:n})}),[a]),Dm((()=>{if(void 0===x.current||p.tabs.length<=0)return;let e=Qg(p.tabs,(e=>e.current));e.some(((e,t)=>p.tabs[t]!==e))&&_(e.indexOf(p.tabs[x.current]))}));let S={ref:f};return Xr.createElement(qb,null,Xr.createElement(ew.Provider,{value:E},Xr.createElement(Jb.Provider,{value:y},y.tabs.length<=0&&Xr.createElement(Vb,{onFocus:()=>{var e,t;for(let n of v.current)if(0===(null==(e=n.current)?void 0:e.tabIndex))return null==(t=n.current)||t.focus(),!0;return!1}}),Km({ourProps:S,theirProps:s,slot:m,defaultTag:"div",name:"Tabs"}))))})),aw=Jm((function(e,t){let{orientation:n,selectedIndex:r}=Zb("Tab.List");return Km({ourProps:{ref:hg(t),role:"tablist","aria-orientation":n},theirProps:e,slot:In((()=>({selectedIndex:r})),[r]),defaultTag:"div",name:"Tabs.List"})})),sw=Jm((function(e,t){let{selectedIndex:n}=Zb("Tab.Panels");return Km({ourProps:{ref:hg(t)},theirProps:e,slot:In((()=>({selectedIndex:n})),[n]),defaultTag:"div",name:"Tabs.Panels"})})),lw=Jm((function(e,t){var n,r,i,o;let a=Bn(),{id:s=`headlessui-tabs-panel-${a}`,tabIndex:l=0,...c}=e,{selectedIndex:u,tabs:d,panels:f}=Zb("Tab.Panel"),p=tw("Tab.Panel"),h=Dn(null),m=hg(h,t);Dm((()=>p.registerPanel(h)),[p,h]);let g=$b("panels"),v=f.indexOf(h);-1===v&&(v=g);let y=v===u,{isFocusVisible:b,focusProps:w}=Tm(),_=In((()=>({selected:y,focus:b})),[y,b]),x=Xm({ref:m,id:s,role:"tabpanel","aria-labelledby":null==(r=null==(n=d[v])?void 0:n.current)?void 0:r.id,tabIndex:y?l:-1},w);return y||null!=(i=c.unmount)&&!i||null!=(o=c.static)&&o?Km({ourProps:x,theirProps:c,slot:_,defaultTag:"div",features:rw,visible:y,name:"Tabs.Panel"}):Xr.createElement(og,{"aria-hidden":"true",...x})})),cw=Object.assign(iw,{Group:ow,List:aw,Panels:sw,Panel:lw});const uw=({label:e,error:t,hint:n,class:r,...i})=>xt("div",{class:r,children:xt("div",{class:"flex flex-col gap-2",children:[xt(gc,{label:!0,children:e}),xt("div",{children:i.children}),t&&xt(gc,{danger:!0,hint:!0,children:t}),n&&xt(gc,{hint:!0,children:n})]})}),dw=({label:e,error:t,hint:n,options:r,class:i,...o})=>{var a;const s=null==(a=r.find((e=>e.value===o.value)))?void 0:a.label;return xt(uw,{class:i,error:t,hint:n,label:e,children:xt("div",{class:"relative w-fit min-w-60",children:xt(zb,{onChange:e=>o.onChange(e),value:o.value,children:[xt(Ib,{class:mc(fw,t&&hw,pw,!s&&"text-gray-500"),children:[xt(gc,{class:mc(!s&&"text-inherit"),field:!0,children:s||"Select"}),xt($c,{className:"pointer-events-none absolute top-3 right-2.5 text-gray-500",icon:fc,size:"xs"})]}),xt(Ub,{anchor:"bottom",class:mc("w-[var(--button-width)] rounded-md border border-gray-300 bg-white p-0.5 mt-0.5 shadow-sm focus:outline-none","z-10 transition duration-100 ease-in data-[leave]:data-[closed]:opacity-0"),transition:!0,children:r.map((e=>xt(Hb,{class:"group flex cursor-default items-center gap-2 rounded py-2 px-3 select-none data-[focus]:bg-primary-base data-[focus]:text-primary-text",value:e.value,children:xt(gc,{class:"text-inherit",field:!0,children:e.label})},e.label)))})]})})})},fw="relative block w-full py-1.5 px-3 rounded-md shadow-sm text-left border border-gray-300 bg-white",pw="focus:outline-none focus-visible:border-gray-700",hw="text-red-900 border-red-300 focus-visible:border-red-600",mw=({prefix:e,label:t,error:n,hint:r,leadingElement:i,type:o,class:a,...s})=>xt(uw,{class:a,error:n,hint:r,label:t,children:[i,xt("input",{class:mc(gw,wc,n&&yw,vw),type:o,...s})]}),gw="self-start py-2 px-3 rounded-md border border-gray-300 bg-white shadow-sm",vw="focus:outline-none focus-visible:border-gray-700",yw="text-red-900 border-red-300 focus-visible:border-red-600",bw=({label:e,error:t,hint:n,options:r,class:i,...o})=>{const a=r.findIndex((e=>e.value===o.value));return xt(uw,{class:i,error:t,hint:n,label:e,children:xt(ow,{...o,class:"flex items-start",onChange:e=>o.onChange(r[e].value),selectedIndex:r.findIndex((e=>e.value===o.value)),children:xt(aw,{class:"relative flex gap-2 bg-gray-100 rounded-lg",children:[xt("span",{class:"absolute rounded-md border border-gray-200 bg-white shadow-sm transition-transform ease-out duration-200 h-full w-1/2 "+(0===a?"translate-x-0":"translate-x-full")}),r.map(((e,t)=>xt(cw,{class:"relative z-10 focus:outline-none py-2 px-12",children:xt(gc,{class:mc([t===a&&"text-gray-900"]),field:!0,children:e.label})},e.label)))]})})})},ww=e=>{const{data:t,isSuccess:n,isError:r,isLoading:i,refetch:o}=yi({queryKey:["benefitsPlanGetSteps",e.assessmentId],queryFn:()=>mf({activityId:e.assessmentId}),staleTime:1/0});return Ln((()=>{vf({event:tu.AssessmentViewed,properties:{id:e.assessmentId,name:e.title}})}),[e.assessmentId,e.title]),xt(Qc,{children:[i&&xt(Pc,{}),r&&xt(Gc,{retry:o}),n&&xt("div",{class:mc("md:grid md:grid-cols-2",e.verticalAlignment),children:[xt("div",{children:[xt(gc,{class:"mb-2",heading1:!0,children:e.title}),xt(gc,{class:"mb-6",paragraph1:!0,children:e.description}),xt(_w,{...{...t,...e}})]}),xt("img",{class:"max-w-[30rem] w-full hidden md:block",loading:"lazy",src:e.imageUrl})]})]})},_w=e=>{const t=Aw(e),{control:n,formState:r,handleSubmit:i}=function(e={}){const t=Xr.useRef(),n=Xr.useRef(),[r,i]=Xr.useState({isDirty:!1,isValidating:!1,isLoading:hh(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:hh(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Qh(e),formState:r});const o=t.current.control;return o._options=e,nh({subject:o._subjects.state,next:e=>{Zp(e,o._proxyFormState,o._updateFormState,!0)&&i({...o._formState})}}),Xr.useEffect((()=>o._disableForm(e.disabled)),[o,e.disabled]),Xr.useEffect((()=>{if(o._proxyFormState.isDirty){const e=o._getDirty();e!==r.isDirty&&o._subjects.state.next({isDirty:e})}}),[o,r.isDirty]),Xr.useEffect((()=>{e.values&&!Rh(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,i((e=>({...e})))):o._resetDefaultValues()}),[e.values,o]),Xr.useEffect((()=>{e.errors&&o._setErrors(e.errors)}),[e.errors,o]),Xr.useEffect((()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()})),Xr.useEffect((()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})}),[e.shouldUnregister,o]),t.current.formState=Xp(r,o),t.current}({mode:"all",defaultValues:t,shouldFocusError:!1}),o=oh({control:n}),a=kw(e,o),s=a.filter((e=>e.stepType===Yc.Question)),l=oo(),{mutate:c,status:u}=function(e){const t=ei(),[n]=Pn((()=>new wn(t,e)));Ln((()=>{n.setOptions(e)}),[n,e]);const r=Qr(jn((e=>n.subscribe(Jt.batchCalls(e))),[n]),(()=>n.getCurrentResult())),i=jn(((e,t)=>{n.mutate(e,t).catch(si)}),[n]);if(r.error&&ai(n.options.throwOnError,[r.error]))throw r.error;return{...r,mutate:i,mutateAsync:r.mutate}}({mutationFn:gf,onMutate:()=>{vf({event:tu.AssessmentSubmitted,properties:{id:e.assessmentId,name:e.title}})},onSuccess:()=>{const e=a[a.length-1];l(e.stepType===Yc.Ineligible?`/ineligible/${e.id}`:"/completion")}});return xt(qe,{children:[xt("form",{class:"flex flex-col gap-4",children:s.map((e=>{var t;const i=null==(t=r.errors[e.id])?void 0:t.message;switch(e.template){case Xc.Text:return xt(xw,{control:n,error:i,step:e},e.id);case Xc.Currency:return xt(Ew,{control:n,error:i,step:e},e.id);case Xc.Date:return xt(Sw,{control:n,error:i,step:e},e.id);case Xc.SingleSelect:return xt(Ow,{control:n,error:i,step:e},e.id);default:return null}}))}),xt(Nc,{class:"mt-6 min-w-60",onClick:i((t=>{const n=s.map((e=>e.id)),r=Object.fromEntries(Object.entries(t).filter((([e])=>n.includes(e)))),i=Object.entries(r).map((([e,t])=>({dataType:eu.Standard,stepId:e,value:t}))),o={activityAction:Zc.ProgressStartToComplete,activityId:e.assessmentId,progressEvents:i};s.forEach((t=>{vf({event:tu.AssessmentFieldUpdated,properties:{id:e.assessmentId,name:e.title,attribute:t.customerAttribute}})})),c(o)})),status:u,children:"Submit"})]})},xw=({control:e,step:t,error:n})=>xt(sh,{control:e,name:t.id,render:({field:e})=>xt(mw,{error:n,hint:t.hint,label:t.title,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)}}}),Ew=({control:e,step:t,error:n})=>xt(sh,{control:e,name:t.id,render:({field:e})=>xt(mw,{error:n,hint:t.hint,label:t.title,leadingElement:xt("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:xt("span",{children:"$"})}),type:"text",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const n=parseFloat(e),r=t.invalidMessage||!1;return t.maximumValue&&n>parseInt(t.maximumValue,10)?r:!(t.minimumValue&&n<parseInt(t.minimumValue,10))||r}}}),Sw=({control:e,step:t,error:n})=>xt(sh,{control:e,name:t.id,render:({field:e})=>xt(mw,{error:n,hint:t.hint,label:t.title,type:"date",...e}),rules:{required:{value:!0,message:"This field is required"},validate:e=>{const n=new Date(e);let r,i;return n.setHours(0,0,0,0),t.maximumValue&&(r=new Date(t.maximumValue),r.setHours(0,0,0,0),n>r)?t.invalidMessage:!(t.minimumValue&&("today"===t.minimumValue.toLowerCase()?(i=new Date,i.setDate(i.getDate()+(t.minimumValueAddDays||0)),i.setHours(0,0,0,0)):(i=new Date(t.minimumValue),i.setHours(0,0,0,0)),n<i))||t.invalidMessage}}}),Ow=({control:e,step:t,error:n})=>xt(sh,{control:e,name:t.id,render:({field:e})=>Tw(t)?xt(bw,{error:n,hint:t.hint,label:t.title,options:t.options,...e}):xt(dw,{error:n,hint:t.hint,label:t.title,options:t.options,...e}),rules:{required:{value:!0,message:"This field is required"}}}),kw=(e,t)=>{const{firstStepId:n,steps:r}=e,i=r.reduce(((e,t)=>({...e,[t.id]:t})),{}),o=(e,n)=>{var r,a;if(!e)return n;const s=i[e],l=[...n,s];if(s.stepType===Yc.Completion||s.stepType===Yc.Ineligible)return l;if(s.stepType===Yc.Consent)return o(s.nextStepId,l);const c=null==t?void 0:t[s.id];if(s.stepType===Yc.Question&&s.template===Xc.SingleSelect&&!c)return l;const u=s.stepType===Yc.Question&&s.template===Xc.SingleSelect?null==(a=null==(r=s.options)?void 0:r.find((e=>e.value===c)))?void 0:a.nextStepId:s.nextStepId;return o(u,l)};return o(n,[])},Tw=e=>2===e.options.length&&e.options.some((e=>"yes"===e.value))&&e.options.some((e=>"no"===e.value)),Aw=e=>e.steps.reduce(((e,t)=>{let n;return n=t.stepType===Yc.Question&&t.template===Xc.SingleSelect?Tw(t)&&void 0===t.defaultValue?"yes":t.defaultValue:t.stepType===Yc.Ineligible||t.stepType===Yc.Completion||t.stepType===Yc.Consent||t.template===Xc.TriviaSingleSelect?void 0:t.defaultValue,{...e,[t.id]:n}}),{}),Cw=({props:e})=>{const t=ro(),n="true"===e.skipIntro?"/question":"/consent";return xt("div",{class:"flex max-w-[59.5rem] mx-auto p-8 min-h-[50rem] overflow-x-hidden",children:xt(Go,{class:"relative flex flex-1",children:xt(Vo,{classNames:{enter:n===t.pathname?"":"slide-enter",enterActive:n===t.pathname?"":"slide-enter-active",exit:"slide-exit",exitActive:"slide-exit-active"},timeout:300,children:xt(wo,{location:t,children:[xt(yo,{element:xt(_p,{acceptButtonLabel:e.acceptButton,assessmentId:e.assessmentId,declineButtonLabel:e.declineButton,description:e.description,details:e.details,imageUrl:e.imageUrl,onAccept:e.onAccept,onDecline:e.onDecline,terms:e.terms,title:e.title,verticalAlignment:e.verticalAlignment}),path:"consent"}),xt(yo,{element:xt(ww,{assessmentId:e.assessmentId,description:e.description,imageUrl:e.imageUrl,title:e.title,verticalAlignment:e.verticalAlignment}),path:"question"}),xt(yo,{element:xt(yf,{assessmentId:e.assessmentId,imageUrl:e.imageUrl,onComplete:e.onComplete,title:e.title}),path:"completion"}),xt(yo,{element:xt(xp,{assessmentId:e.assessmentId,onComplete:e.onComplete}),path:"ineligible/:id"}),xt(yo,{element:xt(vo,{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=gt,i.prototype.attributeChangedCallback=yt,i.prototype.disconnectedCallback=bt,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=>(Ln((()=>{var t;t={baseUrl:e.baseUrl,accessToken:e.accessToken,profileId:e.profileId,trackClient:e.trackClient,trackSource:e.trackSource,trackChannel:e.trackChannel},uf||(uf=cf.create({baseURL:t.baseUrl}),uf.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))))}),[]),xt(Vr,{children:xt(Cc,{children:xt(ti,{client:pf(),children:xt(go,{children:xt(Cw,{props:e})})})})}))),"benefits-plan-assessment",["terms","details","on-accept","on-decline","on-complete"],{shadow:!0});
|