@flarehr/superhero-salpac-profile-admin 1.0.1081 → 1.0.1082

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 __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,"access private method"),n),__privateWrapper=(e,t,n,r)=>({set _(r){__privateSet(e,t,r,n)},get _(){return __privateGet(e,t,r)}});!function(){"use strict";var e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w,b,x,k,S,E,C,T,P,R,A,O,L,M,F,I,D,G,N,$,H,W,U,j,B,z,q,K,V,Q,Y,X,J,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,pe,he,fe,ve,me,ge,ye,_e,we,be,xe,ke,Se,Ee,Ce,Te,Pe,Re,Ae={},Oe=[],Le=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function Fe(e,t){for(var n in t)e[n]=t[n];return e}function Ie(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function De(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?_e.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 Ge(e,a,r,i,null)}function Ge(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?++be:i,__i:-1,__u:0};return null==i&&null!=we.vnode&&we.vnode(o),o}function Ne(){return{current:null}}function $e(e){return e.children}function He(e,t){this.props=e,this.context=t}function We(e,t){if(null==t)return e.__?We(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?We(e):null}function Ue(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 Ue(e)}}function je(e){(!e.__d&&(e.__d=!0)&&xe.push(e)&&!Be.__r++||ke!==we.debounceRendering)&&((ke=we.debounceRendering)||Se)(Be)}function Be(){var e,t,n,r,i,o,a,s;for(xe.sort(Ee);e=xe.shift();)e.__d&&(t=xe.length,r=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=Fe({},i)).__v=i.__v+1,we.vnode&&we.vnode(r),Je(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?We(i):o,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,Ze(a,r,s),r.__e!=o&&Ue(r)),xe.length>t&&xe.sort(Ee));Be.__r=0}function ze(e,t,n,r,i,o,a,s,l,c,u){var d,p,h,f,v,m=r&&r.__k||Oe,g=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++)null!=(i=t[r])&&"boolean"!=typeof i&&"function"!=typeof i?(a=r+d,(i=e.__k[r]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Ge(null,i,null,null,null):Me(i)?Ge($e,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Ge(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,-1!==(s=i.__i=Ve(i,n,a,u))&&(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?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=We(o)),tt(o,o))}(n,t,m),l=n.__d,d=0;d<g;d++)null!=(h=n.__k[d])&&(p=-1===h.__i?Ae:m[h.__i]||Ae,h.__i=d,Je(e,h,p,i,o,a,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&et(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==v&&null!=f&&(v=f),65536&h.__u||p.__k===h.__k?l=qe(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=v}function qe(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=qe(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=We(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ke(e,t){return t=t||[],null==e||"boolean"==typeof e||(Me(e)?e.some((function(e){Ke(e,t)})):t.push(e)),t}function Ve(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 Qe(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Le.test(t)?n:n+"px"}function Ye(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||Qe(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Qe(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=Ce,e.addEventListener(t,o?Pe:Te,o)):e.removeEventListener(t,o?Pe:Te,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 Xe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Ce++;else if(t.t<n.u)return;return n(we.event?we.event(t):t)}}}function Je(e,t,n,r,i,o,a,s,l,c){var u,d,p,h,f,v,m,g,y,_,w,b,x,k,S,E,C=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=we.__b)&&u(t);e:if("function"==typeof C)try{if(g=t.props,y="prototype"in C&&C.prototype.render,_=(u=C.contextType)&&r[u.__c],w=u?_?_.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(y?t.__c=d=new C(g,w):(t.__c=d=new He(g,w),d.constructor=C,d.render=nt),_&&_.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Fe({},d.__s)),Fe(d.__s,C.getDerivedStateFromProps(g,d.__s))),h=d.props,f=d.state,d.__v=t,p)y&&null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==C.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,v)}))}if(d.context=w,d.props=g,d.__P=e,d.__e=!1,x=we.__r,k=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&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=Fe(Fe({},r),d.getChildContext())),y&&!p&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(h,f)),ze(e,Me(E=null!=u&&u.type===$e&&null==u.key?u.props.children:u)?E:[E],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||null!=o){for(t.__u|=l?160:128;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;we.__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,p,h,f,v,m=n.props,g=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((h=o[c])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){e=h,o[c]=null;break}if(null==e){if(null===y)return document.createTextNode(g);e=document.createElementNS(i,y,g.is&&g),s&&(we.__m&&we.__m(t,o),s=!1),o=null}if(null===y)m===g||s&&e.data===g||(e.data=g);else{if(o=o&&_e.call(e.childNodes),m=n.props||Ae,!s&&null!=o)for(m={},c=0;c<e.attributes.length;c++)m[(h=e.attributes[c]).name]=h.value;for(c in m)if(h=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=h;else if(!(c in g)){if("value"==c&&"defaultValue"in g||"checked"==c&&"defaultChecked"in g)continue;Ye(e,c,null,h,i)}for(c in g)h=g[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?v=h:s&&"function"!=typeof h||m[c]===h||Ye(e,c,h,m[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=""),ze(e,Me(p)?p:[p],t,n,r,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&We(n,0),s,l),null!=o)for(c=o.length;c--;)Ie(o[c]);s||(c="value","progress"===y&&null==f?e.removeAttribute("value"):void 0!==f&&(f!==e[c]||"progress"===y&&!f||"option"===y&&f!==m[c])&&Ye(e,c,f,m[c],i),c="checked",void 0!==v&&v!==e[c]&&Ye(e,c,v,m[c],i))}return e}(n.__e,t,n,r,i,o,a,l,c);(u=we.diffed)&&u(t)}function Ze(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)et(n[r],n[++r],n[++r]);we.__c&&we.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){we.__e(n,t.__v)}}))}function et(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){we.__e(i,n)}}function tt(e,t,n){var r,i;if(we.unmount&&we.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){we.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&tt(r[i],t,n||"function"!=typeof e.type);n||Ie(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function nt(e,t,n){return this.constructor(e,n)}function rt(e,t,n){var r,i,o,a;we.__&&we.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],a=[],Je(t,e=(!r&&n||t).__k=De($e,null,[e]),i||Ae,Ae,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?_e.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),Ze(o,e,a)}function it(e,t){rt(e,t,it)}function ot(e,t,n){var r,i,o,a,s=Fe({},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?_e.call(arguments,2):n),Ge(e.type,s,r||e.key,i||e.ref,null)}function at(e,t){var n={__c:t="__cC"+Re++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,je(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function st(){return(st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}_e=Oe.slice,we={__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}},be=0,He.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Fe({},this.state),"function"==typeof e&&(e=e(Fe({},n),this.props)),e&&Fe(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),je(this))},He.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),je(this))},He.prototype.render=$e,xe=[],Se="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ee=function(e,t){return e.__v.__b-t.__v.__b},Be.__r=0,Ce=0,Te=Xe(!1),Pe=Xe(!0),Re=0;var lt=["context","children"];function ct(e){return this.getChildContext=function(){return e.context},ot(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,lt))}function ut(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=De(ct,st({},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[dt(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=De(ft,{name:c},l):r[o]=l}var u=n?De(ft,null,r):r;return De(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?it:rt)(this._vdom,this._root)}function dt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function pt(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[dt(e)]=n,this._vdom=ot(this._vdom,r),rt(this._vdom,this._root)}}function ht(){rt(this._vdom=null,this._root)}function ft(e,t){var n=this;return De("slot",st({},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 vt,mt,gt,yt,_t=0,wt=[],bt=we,xt=bt.__b,kt=bt.__r,St=bt.diffed,Et=bt.__c,Ct=bt.unmount,Tt=bt.__;function Pt(e,t){bt.__h&&bt.__h(mt,e,_t||t),_t=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Rt(e){return _t=1,At(qt,e)}function At(e,t,n){var r=Pt(vt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):qt(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=mt,!mt.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))};mt.u=!0;var o=mt.shouldComponentUpdate,a=mt.componentWillUpdate;mt.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)},mt.shouldComponentUpdate=i}return r.__N||r.__}function Ot(e,t){var n=Pt(vt++,3);!bt.__s&&zt(n.__H,t)&&(n.__=e,n.i=t,mt.__H.__h.push(n))}function Lt(e,t){var n=Pt(vt++,4);!bt.__s&&zt(n.__H,t)&&(n.__=e,n.i=t,mt.__h.push(n))}function Mt(e){return _t=5,It((function(){return{current:e}}),[])}function Ft(e,t,n){_t=6,Lt((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function It(e,t){var n=Pt(vt++,7);return zt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Dt(e,t){return _t=8,It((function(){return e}),t)}function Gt(e){var t=mt.context[e.__c],n=Pt(vt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(mt)),t.props.value):e.__}function Nt(e,t){bt.useDebugValue&&bt.useDebugValue(t?t(e):e)}function $t(){var e=Pt(vt++,11);if(!e.__){for(var t=mt.__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 Ht(){for(var e;e=wt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jt),e.__H.__h.forEach(Bt),e.__H.__h=[]}catch(_u){e.__H.__h=[],bt.__e(_u,e.__v)}}bt.__b=function(e){mt=null,xt&&xt(e)},bt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Tt&&Tt(e,t)},bt.__r=function(e){kt&&kt(e),vt=0;var t=(mt=e.__c).__H;t&&(gt===mt?(t.__h=[],mt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(jt),t.__h.forEach(Bt),t.__h=[],vt=0)),gt=mt},bt.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==wt.push(t)&&yt===bt.requestAnimationFrame||((yt=bt.requestAnimationFrame)||Ut)(Ht)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),gt=mt=null},bt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(jt),e.__h=e.__h.filter((function(e){return!e.__||Bt(e)}))}catch(tu){t.some((function(e){e.__h&&(e.__h=[])})),t=[],bt.__e(tu,e.__v)}})),Et&&Et(e,t)},bt.unmount=function(e){Ct&&Ct(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{jt(e)}catch(n){t=n}})),n.__H=void 0,t&&bt.__e(t,n.__v))};var Wt="function"==typeof requestAnimationFrame;function Ut(e){var t,n=function(){clearTimeout(r),Wt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Wt&&(t=requestAnimationFrame(n))}function jt(e){var t=mt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),mt=t}function Bt(e){var t=mt;e.__c=e.__(),mt=t}function zt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function qt(e,t){return"function"==typeof t?t(e):t}class Kt extends Error{}function Vt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Kt.prototype.name="InvalidTokenError";class Qt{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Kt(`Invalid token specified: missing part #${n+1}`);let i;try{i=Vt(r)}catch(Ic){throw new Kt(`Invalid token specified: invalid base64 for part #${n+1} (${Ic.message})`)}try{return JSON.parse(i)}catch(Ic){throw new Kt(`Invalid token specified: invalid json for part #${n+1} (${Ic.message})`)}}(e):{roles:[]};return new Qt(t.roles)}}var Yt=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(){}},Xt="undefined"==typeof window||"Deno"in globalThis;function Jt(){}function Zt(e){return"number"==typeof e&&e>=0&&e!==1/0}function en(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tn(e,t){return"function"==typeof e?e(t):e}function nn(e,t){return"function"==typeof e?e(t):e}function rn(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==an(a,t.options))return!1}else if(!ln(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 on(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(sn(t.options.mutationKey)!==sn(o))return!1}else if(!ln(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function an(e,t){return((null==t?void 0:t.queryKeyHashFn)||sn)(e)}function sn(e){return JSON.stringify(e,((e,t)=>pn(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ln(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ln(e[n],t[n]))))}function cn(e,t){if(e===t)return e;const n=dn(e)&&dn(t);if(n||pn(e)&&pn(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]=cn(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function un(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 dn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pn(e){if(!hn(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!hn(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function hn(e){return"[object Object]"===Object.prototype.toString.call(e)}function fn(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?cn(e,t):t}function vn(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function mn(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gn=Symbol();function yn(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==gn?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var _n=new(r=class extends Yt{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,n),__privateSet(this,n,(e=>{if(!Xt&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var r;__privateSet(this,n,e),null==(r=__privateGet(this,t))||r.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),wn=new(s=class extends Yt{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,a),__privateSet(this,a,(e=>{if(!Xt&&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(){__privateGet(this,o)||this.setEventListener(__privateGet(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,void 0))}setEventListener(e){var t;__privateSet(this,a,e),null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,a=new WeakMap,s);function bn(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function xn(e){return Math.min(1e3*2**e,3e4)}function kn(e){return"online"!==(e??"online")||wn.isOnline()}var Sn=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function En(e){return e instanceof Sn}function Cn(e){let t,n=!1,r=0,i=!1;const o=bn(),a=()=>_n.isFocused()&&("always"===e.networkMode||wn.isOnline())&&e.canRun(),s=()=>kn(e.networkMode)&&e.canRun(),l=n=>{var r;i||(i=!0,null==(r=e.onSuccess)||r.call(e,n),null==t||t(),o.resolve(n))},c=n=>{var r;i||(i=!0,null==(r=e.onError)||r.call(e,n),null==t||t(),o.reject(n))},u=()=>new Promise((n=>{var r;t=e=>{(i||a())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,i||null==(n=e.onContinue)||n.call(e)})),d=()=>{if(i)return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var o;if(i)return;const s=e.retry??(Xt?0:3),l=e.retryDelay??xn,p="function"==typeof l?l(r,t):l,h=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);var f;!n&&h?(r++,null==(o=e.onFail)||o.call(e,r,t),(f=p,new Promise((e=>{setTimeout(e,f)}))).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{var n;i||(c(new Sn(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var Tn=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)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),Pn=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zt(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xt?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,c),Rn=(y=class extends Pn{constructor(e){super(),__privateAdd(this,m),__privateAdd(this,u),__privateAdd(this,d),__privateAdd(this,p),__privateAdd(this,h),__privateAdd(this,f),__privateAdd(this,v),__privateSet(this,v,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(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??__privateGet(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,h))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,p).remove(this)}setData(e,t){const n=fn(this.state.data,e,this.options);return __privateMethod(this,m,g).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){__privateMethod(this,m,g).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=__privateGet(this,h))?void 0:t.promise;return null==(n=__privateGet(this,h))||n.cancel(e),r?r.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==nn(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}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||!en(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,h)&&(__privateGet(this,v)?__privateGet(this,h).cancel({revert:!0}):__privateGet(this,h).cancelRetry()),this.scheduleGc()),__privateGet(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,m,g).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(__privateGet(this,h))return __privateGet(this,h).continueRetry(),__privateGet(this,h).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:()=>(__privateSet(this,v,!0),o.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=yn(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return a(n),__privateSet(this,v,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};a(s),null==(n=this.options.behavior)||n.onFetch(s,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=s.fetchOptions)?void 0:r.meta)||__privateMethod(this,m,g).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,n,r,i;En(e)&&e.silent||__privateMethod(this,m,g).call(this,{type:"error",error:e}),En(e)||(null==(n=(t=__privateGet(this,p).config).onError)||n.call(t,e,this),null==(i=(r=__privateGet(this,p).config).onSettled)||i.call(r,this.state.data,e,this)),this.scheduleGc()};return __privateSet(this,h,Cn({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null==(n=(t=__privateGet(this,p).config).onSuccess)||n.call(t,e,this),null==(i=(r=__privateGet(this,p).config).onSettled)||i.call(r,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,m,g).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,m,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,m,g).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),__privateGet(this,h).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,m=new WeakSet,g=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,...An(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 En(n)&&n.revert&&__privateGet(this,d)?{...__privateGet(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),Tn.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},y);function An(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var On=(w=class extends Yt{constructor(e={}){super(),__privateAdd(this,_),this.config=e,__privateSet(this,_,new Map)}build(e,t,n){const r=t.queryKey,i=t.queryHash??an(r,t);let o=this.get(i);return o||(o=new Rn({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){__privateGet(this,_).has(e.queryHash)||(__privateGet(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,_).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Tn.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,_).get(e)}getAll(){return[...__privateGet(this,_).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>rn(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>rn(e,t))):t}notify(e){Tn.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Tn.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Tn.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},_=new WeakMap,w),Ln=(C=class extends Pn{constructor(e){super(),__privateAdd(this,S),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,k),this.mutationId=e.mutationId,__privateSet(this,x,e.mutationCache),__privateSet(this,b,[]),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){__privateGet(this,b).includes(e)||(__privateGet(this,b).push(e),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,b,__privateGet(this,b).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var e;return(null==(e=__privateGet(this,k))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w;__privateSet(this,k,Cn({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,S,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,S,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,S,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const b="pending"===this.state.status,C=!__privateGet(this,k).canStart();try{if(!b){__privateMethod(this,S,E).call(this,{type:"pending",variables:e,isPaused:C}),await(null==(n=(t=__privateGet(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&&__privateMethod(this,S,E).call(this,{type:"pending",context:o,variables:e,isPaused:C})}const h=await __privateGet(this,k).start();return await(null==(a=(o=__privateGet(this,x).config).onSuccess)?void 0:a.call(o,h,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,h,e,this.state.context)),await(null==(u=(c=__privateGet(this,x).config).onSettled)?void 0:u.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,h,null,e,this.state.context)),__privateMethod(this,S,E).call(this,{type:"success",data:h}),h}catch(T){try{throw await(null==(f=(h=__privateGet(this,x).config).onError)?void 0:f.call(h,T,e,this.state.context,this)),await(null==(m=(v=this.options).onError)?void 0:m.call(v,T,e,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(_=this.options).onSettled)?void 0:w.call(_,void 0,T,e,this.state.context)),T}finally{__privateMethod(this,S,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},b=new WeakMap,x=new WeakMap,k=new WeakMap,S=new WeakSet,E=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),Tn.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:e})}))},C);var Mn=(R=class extends Yt{constructor(e={}){super(),__privateAdd(this,T),__privateAdd(this,P),this.config=e,__privateSet(this,T,new Map),__privateSet(this,P,Date.now())}build(e,t,n){const r=new Ln({mutationCache:this,mutationId:++__privateWrapper(this,P)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Fn(e),n=__privateGet(this,T).get(t)??[];n.push(e),__privateGet(this,T).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=Fn(e);if(__privateGet(this,T).has(n)){const r=null==(t=__privateGet(this,T).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?__privateGet(this,T).delete(n):__privateGet(this,T).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=__privateGet(this,T).get(Fn(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=__privateGet(this,T).get(Fn(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){Tn.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>on(t,e)))}findAll(e={}){return this.getAll().filter((t=>on(e,t)))}notify(e){Tn.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Tn.batch((()=>Promise.all(e.map((e=>e.continue().catch(Jt))))))}},T=new WeakMap,P=new WeakMap,R);function Fn(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function In(e){return{onFetch:(t,n)=>{var r,i,o,a,s;const l=t.options,c=null==(o=null==(i=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:i.fetchMore)?void 0:o.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let n=!1;const r=yn(t.options,t.fetchOptions),i=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};var s;s=a,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const l=await r(a),{maxPages:c}=t.options,u=o?mn:vn;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,i,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},n=(e?Gn:Dn)(l,t);p=await i(t,n,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Dn(l,p);if(h>0&&null==e)break;p=await i(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Dn(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 Gn(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 Nn=(N=class{constructor(e={}){__privateAdd(this,A),__privateAdd(this,O),__privateAdd(this,L),__privateAdd(this,M),__privateAdd(this,F),__privateAdd(this,I),__privateAdd(this,D),__privateAdd(this,G),__privateSet(this,A,e.queryCache||new On),__privateSet(this,O,e.mutationCache||new Mn),__privateSet(this,L,e.defaultOptions||{}),__privateSet(this,M,new Map),__privateSet(this,F,new Map),__privateSet(this,I,0)}mount(){__privateWrapper(this,I)._++,1===__privateGet(this,I)&&(__privateSet(this,D,_n.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onFocus())}))),__privateSet(this,G,wn.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,I)._--,0===__privateGet(this,I)&&(null==(e=__privateGet(this,D))||e.call(this),__privateSet(this,D,void 0),null==(t=__privateGet(this,G))||t.call(this),__privateSet(this,G,void 0))}isFetching(e){return __privateGet(this,A).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).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=__privateGet(this,A).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(tn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,A).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,A).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 __privateGet(this,A).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Tn.batch((()=>__privateGet(this,A).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,A);Tn.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=__privateGet(this,A),r={type:"active",...e};return Tn.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Tn.batch((()=>__privateGet(this,A).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(Jt).catch(Jt)}invalidateQueries(e={},t={}){return Tn.batch((()=>{if(__privateGet(this,A).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=Tn.batch((()=>__privateGet(this,A).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Jt)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=__privateGet(this,A).build(this,t);return n.isStaleByTime(tn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}fetchInfiniteQuery(e){return e.behavior=In(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e.behavior=In(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wn.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,A)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,L)}setDefaultOptions(e){__privateSet(this,L,e)}setQueryDefaults(e,t){__privateGet(this,M).set(sn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,M).values()];let n={};return t.forEach((t=>{ln(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){__privateGet(this,F).set(sn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,F).values()];let n={};return t.forEach((t=>{ln(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,L).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=an(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===gn&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,L).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,A).clear(),__privateGet(this,O).clear()}},A=new WeakMap,O=new WeakMap,L=new WeakMap,M=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,G=new WeakMap,N),$n=(ue=class extends Yt{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,$),__privateAdd(this,H),__privateAdd(this,W),__privateAdd(this,U),__privateAdd(this,j),__privateAdd(this,B),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,V),__privateAdd(this,Q),__privateAdd(this,Y),__privateAdd(this,X),__privateAdd(this,J),__privateAdd(this,Z,new Set),this.options=t,__privateSet(this,$,e),__privateSet(this,q,null),__privateSet(this,z,bn()),this.options.experimental_prefetchInRender||__privateGet(this,z).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,H).addObserver(this),Hn(__privateGet(this,H),this.options)?__privateMethod(this,ee,te).call(this):this.updateResult(),__privateMethod(this,ee,oe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wn(__privateGet(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wn(__privateGet(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,ee,ae).call(this),__privateMethod(this,ee,se).call(this),__privateGet(this,H).removeObserver(this)}setOptions(e,t){const n=this.options,r=__privateGet(this,H);if(this.options=__privateGet(this,$).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof nn(this.options.enabled,__privateGet(this,H)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,ee,le).call(this),__privateGet(this,H).setOptions(this.options),n._defaulted&&!un(this.options,n)&&__privateGet(this,$).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,H),observer:this});const i=this.hasListeners();i&&Un(__privateGet(this,H),r,this.options,n)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,H)===r&&nn(this.options.enabled,__privateGet(this,H))===nn(n.enabled,__privateGet(this,H))&&tn(this.options.staleTime,__privateGet(this,H))===tn(n.staleTime,__privateGet(this,H))||__privateMethod(this,ee,ne).call(this);const o=__privateMethod(this,ee,re).call(this);!i||__privateGet(this,H)===r&&nn(this.options.enabled,__privateGet(this,H))===nn(n.enabled,__privateGet(this,H))&&o===__privateGet(this,J)||__privateMethod(this,ee,ie).call(this,o)}getOptimisticResult(e){const t=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),e),n=this.createResult(t,e);return function(e,t){if(!un(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(__privateSet(this,U,n),__privateSet(this,B,this.options),__privateSet(this,j,__privateGet(this,H).state)),n}getCurrentResult(){return __privateGet(this,U)}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){__privateGet(this,Z).add(e)}getCurrentQuery(){return __privateGet(this,H)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,$).defaultQueryOptions(e),n=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return __privateMethod(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,U))))}createResult(e,t){var n;const r=__privateGet(this,H),i=this.options,o=__privateGet(this,U),a=__privateGet(this,j),s=__privateGet(this,B),l=e!==r?e.state:__privateGet(this,W),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const n=this.hasListeners(),o=!n&&Hn(e,t),a=n&&Un(e,r,t,i);(o||a)&&(d={...d,...An(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:f,status:v}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==a?void 0:a.data)&&t.select===__privateGet(this,K))u=__privateGet(this,V);else try{__privateSet(this,K,t.select),u=t.select(d.data),u=fn(null==o?void 0:o.data,u,t),__privateSet(this,V,u),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===v){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=__privateGet(this,Q))?void 0:n.state.data,__privateGet(this,Q)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}void 0!==e&&(v="success",u=fn(null==o?void 0:o.data,e,t),p=!0)}__privateGet(this,q)&&(h=__privateGet(this,q),u=__privateGet(this,V),f=Date.now(),v="error");const m="fetching"===d.fetchStatus,g="pending"===v,y="error"===v,_=g&&m,w=void 0!==u,b={status:v,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===v,isError:y,isInitialLoading:_,isLoading:_,data:u,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:f,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:m,isRefetching:m&&!g,isLoadingError:y&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:y&&w,isStale:jn(e,t),refetch:this.refetch,promise:__privateGet(this,z)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},n=()=>{const e=__privateSet(this,z,b.promise=bn());t(e)},i=__privateGet(this,z);switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||n();break;case"rejected":"error"===b.status&&b.error===i.reason||n()}}return b}updateResult(e){const t=__privateGet(this,U),n=this.createResult(__privateGet(this,H),this.options);if(__privateSet(this,j,__privateGet(this,H).state),__privateSet(this,B,this.options),void 0!==__privateGet(this,j).data&&__privateSet(this,Q,__privateGet(this,H)),un(n,t))return;__privateSet(this,U,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&&!__privateGet(this,Z).size)return!0;const r=new Set(n??__privateGet(this,Z));return this.options.throwOnError&&r.add("error"),Object.keys(__privateGet(this,U)).some((e=>{const n=e;return __privateGet(this,U)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),__privateMethod(this,ee,ce).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,ee,oe).call(this)}},$=new WeakMap,H=new WeakMap,W=new WeakMap,U=new WeakMap,j=new WeakMap,B=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,V=new WeakMap,Q=new WeakMap,Y=new WeakMap,X=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakSet,te=function(e){__privateMethod(this,ee,le).call(this);let t=__privateGet(this,H).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Jt)),t},ne=function(){__privateMethod(this,ee,ae).call(this);const e=tn(this.options.staleTime,__privateGet(this,H));if(Xt||__privateGet(this,U).isStale||!Zt(e))return;const t=en(__privateGet(this,U).dataUpdatedAt,e);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,U).isStale||this.updateResult()}),t+1))},re=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,H)):this.options.refetchInterval)??!1},ie=function(e){__privateMethod(this,ee,se).call(this),__privateSet(this,J,e),!Xt&&!1!==nn(this.options.enabled,__privateGet(this,H))&&Zt(__privateGet(this,J))&&0!==__privateGet(this,J)&&__privateSet(this,X,setInterval((()=>{(this.options.refetchIntervalInBackground||_n.isFocused())&&__privateMethod(this,ee,te).call(this)}),__privateGet(this,J)))},oe=function(){__privateMethod(this,ee,ne).call(this),__privateMethod(this,ee,ie).call(this,__privateMethod(this,ee,re).call(this))},ae=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},se=function(){__privateGet(this,X)&&(clearInterval(__privateGet(this,X)),__privateSet(this,X,void 0))},le=function(){const e=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),this.options);if(e===__privateGet(this,H))return;const t=__privateGet(this,H);__privateSet(this,H,e),__privateSet(this,W,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){Tn.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,U))})),__privateGet(this,$).getQueryCache().notify({query:__privateGet(this,H),type:"observerResultsUpdated"})}))},ue);function Hn(e,t){return function(e,t){return!1!==nn(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Wn(e,t,t.refetchOnMount)}function Wn(e,t,n){if(!1!==nn(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&jn(e,t)}return!1}function Un(e,t,n,r){return(e!==t||!1===nn(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&jn(e,n)}function jn(e,t){return!1!==nn(t.enabled,e)&&e.isStaleByTime(tn(t.staleTime,e))}var Bn=(ye=class extends Yt{constructor(e,t){super(),__privateAdd(this,ve),__privateAdd(this,de),__privateAdd(this,pe),__privateAdd(this,he),__privateAdd(this,fe),__privateSet(this,de,e),this.setOptions(t),this.bindMethods(),__privateMethod(this,ve,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=__privateGet(this,de).defaultMutationOptions(e),un(this.options,n)||__privateGet(this,de).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,he),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&sn(n.mutationKey)!==sn(this.options.mutationKey)?this.reset():"pending"===(null==(t=__privateGet(this,he))?void 0:t.state.status)&&__privateGet(this,he).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=__privateGet(this,he))||e.removeObserver(this)}onMutationUpdate(e){__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this,e)}getCurrentResult(){return __privateGet(this,pe)}reset(){var e;null==(e=__privateGet(this,he))||e.removeObserver(this),__privateSet(this,he,void 0),__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this)}mutate(e,t){var n;return __privateSet(this,fe,t),null==(n=__privateGet(this,he))||n.removeObserver(this),__privateSet(this,he,__privateGet(this,de).getMutationCache().build(__privateGet(this,de),this.options)),__privateGet(this,he).addObserver(this),__privateGet(this,he).execute(e)}},de=new WeakMap,pe=new WeakMap,he=new WeakMap,fe=new WeakMap,ve=new WeakSet,me=function(){var e;const t=(null==(e=__privateGet(this,he))?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};__privateSet(this,pe,{...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){Tn.batch((()=>{var t,n,r,i,o,a,s,l;if(__privateGet(this,fe)&&this.hasListeners()){const c=__privateGet(this,pe).variables,u=__privateGet(this,pe).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=__privateGet(this,fe)).onSuccess)||n.call(t,e.data,c,u),null==(i=(r=__privateGet(this,fe)).onSettled)||i.call(r,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(a=(o=__privateGet(this,fe)).onError)||a.call(o,e.error,c,u),null==(l=(s=__privateGet(this,fe)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach((e=>{e(__privateGet(this,pe))}))}))},ye);function zn(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 qn(e,t){this.props=e,this.context=t}function Kn(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:zn(this.props,e)}function r(t){return this.shouldComponentUpdate=n,De(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qn.prototype=new He).isPureReactComponent=!0,qn.prototype.shouldComponentUpdate=function(e,t){return zn(this.props,e)||zn(this.state,t)};var Vn=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Vn&&Vn(e)};var Qn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Yn(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=Qn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Xn=function(e,t){return null==e?null:Ke(Ke(e).map(t))},Jn={map:Xn,forEach:Xn,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ke},Zn=we.__e;we.__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);Zn(e,t,n,r)};var er=we.unmount;function tr(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=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return tr(e,t,n)}))),e}function nr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return nr(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 rr(){this.__u=0,this.t=null,this.__b=null}function ir(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function or(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 De(n,i)}return i.displayName="Lazy",i.__f=!0,i}function ar(){this.u=null,this.o=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),er&&er(e)},(rr.prototype=new He).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ir(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]=nr(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)},rr.prototype.componentWillUnmount=function(){this.t=[]},rr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=tr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&De($e,null,e.fallback);return i&&(i.__u&=-33),[De($e,null,t.__a?null:e.children),i]};var sr=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 lr(e){return this.getChildContext=function(){return e.context},e.children}function cr(e){var t=this,n=e.i;t.componentWillUnmount=function(){rt(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)}}),rt(De(lr,{context:t.context},e.__v),t.l)}function ur(e,t){var n=De(cr,{__v:e,i:t});return n.containerInfo=t,n}(ar.prototype=new He).__a=function(e){var t=this,n=ir(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),sr(t,e,r)):i()};n?n(o):o()}},ar.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(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},ar.prototype.componentDidUpdate=ar.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){sr(e,n,t)}))};var dr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pr=/^(?: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]/,hr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fr=/[A-Z0-9]/g,vr="undefined"!=typeof document,mr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function gr(e,t,n){return null==t.__k&&(t.textContent=""),rt(e,t),"function"==typeof n&&n(),e?e.__c:null}function yr(e,t,n){return it(e,t),"function"==typeof n&&n(),e?e.__c:null}He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(He.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var _r=we.event;function wr(){}function br(){return this.cancelBubble}function xr(){return this.defaultPrevented}we.event=function(e){return _r&&(e=_r(e)),e.persist=wr,e.isPropagationStopped=br,e.isDefaultPrevented=xr,e.nativeEvent=e};var kr,Sr={enumerable:!1,configurable:!0,get:function(){return this.class}},Er=we.vnode;we.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||vr&&"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||mr(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":hr.test(o)&&(o=s):s=o="oninput":i&&pr.test(o)?o=o.replace(fr,"-$&").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=Ke(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Ke(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",Sr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=dr,Er&&Er(e)};var Cr=we.__r;we.__r=function(e){Cr&&Cr(e),kr=e.__c};var Tr=we.diffed;we.diffed=function(e){Tr&&Tr(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),kr=null};var Pr={ReactCurrentDispatcher:{current:{readContext:function(e){return kr.__n[e.__c].props.value},useCallback:Dt,useContext:Gt,useDebugValue:Nt,useDeferredValue:Hr,useEffect:Ot,useId:$t,useImperativeHandle:Ft,useInsertionEffect:Ur,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Rt,useSyncExternalStore:Br,useTransition:Wr}}};function Rr(e){return De.bind(null,e)}function Ar(e){return!!e&&e.$$typeof===dr}function Or(e){return Ar(e)&&e.type===$e}function Lr(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Mr(e){return Ar(e)?ot.apply(null,arguments):e}function Fr(e){return!!e.__k&&(rt(null,e),!0)}function Ir(e){return e&&(e.base||1===e.nodeType&&e)||null}var Dr=function(e,t){return e(t)},Gr=function(e,t){return e(t)},Nr=$e;function $r(e){e()}function Hr(e){return e}function Wr(){return[!1,$r]}var Ur=Lt,jr=Ar;function Br(e,t){var n=t(),r=Rt({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Lt((function(){i.__=n,i.v=t,zr(i)&&o({h:i})}),[e,n,t]),Ot((function(){return zr(i)&&o({h:i}),e((function(){zr(i)&&o({h:i})}))}),[e]),n}function zr(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 qr={useState:Rt,useId:$t,useReducer:At,useEffect:Ot,useLayoutEffect:Lt,useInsertionEffect:Ur,useTransition:Wr,useDeferredValue:Hr,useSyncExternalStore:Br,startTransition:$r,useRef:Mt,useImperativeHandle:Ft,useMemo:It,useCallback:Dt,useContext:Gt,useDebugValue:Nt,version:"18.3.1",Children:Jn,render:gr,hydrate:yr,unmountComponentAtNode:Fr,createPortal:ur,createElement:De,createContext:at,createFactory:Rr,cloneElement:Mr,createRef:Ne,Fragment:$e,isValidElement:Ar,isElement:jr,isFragment:Or,isMemo:Lr,findDOMNode:Ir,Component:He,PureComponent:qn,memo:Kn,forwardRef:Yn,flushSync:Gr,unstable_batchedUpdates:Dr,StrictMode:Nr,Suspense:rr,SuspenseList:ar,lazy:or,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pr};const Kr=Object.freeze(Object.defineProperty({__proto__:null,Children:Jn,Component:He,Fragment:$e,PureComponent:qn,StrictMode:Nr,Suspense:rr,SuspenseList:ar,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pr,cloneElement:Mr,createContext:at,createElement:De,createFactory:Rr,createPortal:ur,createRef:Ne,default:qr,findDOMNode:Ir,flushSync:Gr,forwardRef:Yn,hydrate:yr,isElement:jr,isFragment:Or,isMemo:Lr,isValidElement:Ar,lazy:or,memo:Kn,render:gr,startTransition:$r,unmountComponentAtNode:Fr,unstable_batchedUpdates:Dr,useCallback:Dt,useContext:Gt,useDebugValue:Nt,useDeferredValue:Hr,useEffect:Ot,useErrorBoundary:function(e){var t=Pt(vt++,10),n=Rt();return t.__=e,mt.componentDidCatch||(mt.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:$t,useImperativeHandle:Ft,useInsertionEffect:Ur,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Rt,useSyncExternalStore:Br,useTransition:Wr,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));var Vr=0;function Qr(e,t,n,r,i,o){t||(t={});var a,s,l=t;"ref"in t&&(a=t.ref,delete t.ref);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:--Vr,__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 we.vnode&&we.vnode(c),c}var Yr=at(void 0),Xr=e=>{const t=Gt(Yr);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jr=({client:e,children:t})=>(Ot((()=>(e.mount(),()=>{e.unmount()})),[e]),Qr(Yr.Provider,{value:e,children:t})),Zr=at(!1);Zr.Provider;var ei=at(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function ti(e,t){return"function"==typeof e?e(...t):!!e}function ni(){}var ri=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function ii(e,t,n){var r,i,o,a,s;const l=Xr(),c=Gt(Zr),u=Gt(ei),d=l.defaultQueryOptions(e);null==(i=null==(r=l.getDefaultOptions().queries)?void 0:r._experimental_beforeQuery)||i.call(r,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,u),(e=>{Ot((()=>{e.clearReset()}),[e])})(u);const p=!l.getQueryCache().get(d.queryHash),[h]=Rt((()=>new t(l,d))),f=h.getOptimisticResult(d);if(Br(Dt((e=>{const t=c?ni:h.subscribe(Tn.batchCalls(e));return h.updateResult(),t}),[h,c]),(()=>h.getCurrentResult())),Ot((()=>{h.setOptions(d,{listeners:!1})}),[d,h]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(d,f))throw ri(d,h,u);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ti(n,[e.error,r]))({result:f,errorResetBoundary:u,throwOnError:d.throwOnError,query:l.getQueryCache().get(d.queryHash)}))throw f.error;if(null==(a=null==(o=l.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||a.call(o,d,f),d.experimental_prefetchInRender&&!Xt&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,c)){const e=p?ri(d,h,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch(ni).finally((()=>{h.updateResult()}))}return d.notifyOnChangeProps?f:h.trackResult(f)}function oi(e,t){return ii(e,$n)}const ai=at({account:{accountId:""},backend:{url:"",accessToken:""}}),si=()=>Gt(ai);class li extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,li.prototype)}get response(){return this._response}}const ci=async(e,t,n,r)=>{const i=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.1081",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!i.ok)throw new li(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},ui=async(e,t,n,r)=>{const i=await ci(e,t,n,r);return await i.json()},di=e=>{const t=si();return It((()=>e(t)),[e,t])};let pi;const hi=()=>{if(pi)return pi;return pi=new Nn({defaultOptions:{queries:{retry:(e,t)=>{var n;return t instanceof li&&![401,403].includes((null==(n=t.response)?void 0:n.status)||0)}}}}),pi},fi="linkedAccount",vi="linkedProfilesForAccount",mi="salaryPackagedItem",gi="checkProfileSearchAuthorization",yi="payrollAdvice",_i="invoices",wi="/salary-packaging/admin/v1.0",bi=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/auth`);return ui(t,e.backend.accessToken,"GET")},xi=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profile-search?search=${t}`);return ui(n,e.backend.accessToken,"GET")},ki=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const n=new Date;n.setUTCDate((new Date).getUTCDate()+2);const r=new URL(`${e.backend.url}${wi}/ingest/clients`);await ci(r,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]})},Si=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}`);return ui(t,e.backend.accessToken,"GET")},Ei=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles`);return ui(t,e.backend.accessToken,"GET")},Ci=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/unlink`);await ci(n,e.backend.accessToken,"POST")},Ti=e=>async(t,n)=>{const r=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/items/${n}`);return ui(r,e.backend.accessToken,"GET")},Pi=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`);return ui(n,e.backend.accessToken,"GET")},Ri=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/invoices`);return ui(t,e.backend.accessToken,"GET")},Ai=()=>({checkProfileSearchAuthorization:di(bi),searchProfilesForAccount:di(xi),ingestClient:di(ki),linkedAccount:di(Si),linkedProfilesForAccount:di(Ei),unlinkProfile:di(Ci),salaryPackagedItem:di(Ti),payrollAdvice:di(Pi),invoices:di(Ri)});var Oi={};Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.parse=function(e,t){const n=new Gi,r=e.length;if(r<2)return n;const i=(null==t?void 0:t.decode)||Hi;let o=0;do{const t=e.indexOf("=",o);if(-1===t)break;const a=e.indexOf(";",o),s=-1===a?r:a;if(t>s){o=e.lastIndexOf(";",t-1)+1;continue}const l=Ni(e,o,t),c=$i(e,t,l),u=e.slice(l,c);if(void 0===n[u]){let r=Ni(e,t+1,s),o=$i(e,s,r);const a=i(e.slice(r,o));n[u]=a}o=s+1}while(o<r);return n},Oi.serialize=function(e,t,n){const r=(null==n?void 0:n.encode)||encodeURIComponent;if(!Li.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=r(t);if(!Mi.test(i))throw new TypeError(`argument val is invalid: ${t}`);let o=e+"="+i;if(!n)return o;if(void 0!==n.maxAge){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);o+="; Max-Age="+n.maxAge}if(n.domain){if(!Fi.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);o+="; Domain="+n.domain}if(n.path){if(!Ii.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);o+="; Path="+n.path}if(n.expires){if(!function(e){return"[object Date]"===Di.call(e)}(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);o+="; Expires="+n.expires.toUTCString()}n.httpOnly&&(o+="; HttpOnly");n.secure&&(o+="; Secure");n.partitioned&&(o+="; Partitioned");if(n.priority){switch("string"==typeof n.priority?n.priority.toLowerCase():void 0){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}}if(n.sameSite){switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}}return o};const Li=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,Mi=/^[\u0021-\u003A\u003C-\u007E]*$/,Fi=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Ii=/^[\u0020-\u003A\u003D-\u007E]*$/,Di=Object.prototype.toString,Gi=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function Ni(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function $i(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function Hi(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(Ic){return e}}var Wi="popstate";function Ui(e={}){return function(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s="POP",l=null,c=u();null==c&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:v.location,delta:t})}function p(e,t){s="PUSH";let r=qi(v.location,e,t);n&&n(r,e),c=u()+1;let d=zi(r,c),p=v.createHref(r);try{a.pushState(d,"",p)}catch(h){if(h instanceof DOMException&&"DataCloneError"===h.name)throw h;i.location.assign(p)}o&&l&&l({action:s,location:v.location,delta:1})}function h(e,t){s="REPLACE";let r=qi(v.location,e,t);n&&n(r,e),c=u();let i=zi(r,c),d=v.createHref(r);a.replaceState(i,"",d),o&&l&&l({action:s,location:v.location,delta:0})}function f(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:Ki(e);return n=n.replace(/ $/,"%20"),ji(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}let v={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Wi,d),l=e,()=>{i.removeEventListener(Wi,d),l=null}},createHref:e=>t(i,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:p,replace:h,go:e=>a.go(e)};return v}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=Vi(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),qi("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Ki(t))}),(function(e,t){Bi("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function ji(e,t){if(!1===e||null==e)throw new Error(t)}function Bi(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(Ic){}}}function zi(e,t){return{usr:e.state,key:e.key,idx:t}}function qi(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Vi(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Ki({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function Vi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Qi(e,t,n="/"){return function(e,t,n,r){let i="string"==typeof t?Vi(t):t,o=co(i.pathname||"/",n);if(null==o)return null;let a=Yi(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=lo(o);s=ao(a[l],e,r)}return s}(e,t,n,!1)}function Yi(e,t=[],n=[],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("/")&&(ji(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=fo([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(ji(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),Yi(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:oo(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&(null==(n=e.path)?void 0:n.includes("?")))for(let r of Xi(e.path))i(e,t,r);else i(e,t)})),t}function Xi(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=Xi(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))}var Ji=/^:[\w-]+$/,Zi=3,eo=2,to=1,no=10,ro=-2,io=e=>"*"===e;function oo(e,t){let n=e.split("/"),r=n.length;return n.some(io)&&(r+=ro),t&&(r+=eo),n.filter((e=>!io(e))).reduce(((e,t)=>e+(Ji.test(t)?Zi:""===t?to:no)),r)}function ao(e,t,n=!1){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=so({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=so({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:fo([o,u.pathname]),pathnameBase:vo(fo([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=fo([o,u.pathnameBase]))}return a}function so(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){Bi("*"===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,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function lo(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Bi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function co(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 uo(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 po(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function ho(e,t,n,r=!1){let i;"string"==typeof e?i=Vi(e):(i={...e},ji(!i.pathname||!i.pathname.includes("?"),uo("?","pathname","search",i)),ji(!i.pathname||!i.pathname.includes("#"),uo("#","pathname","hash",i)),ji(!i.search||!i.search.includes("#"),uo("#","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="/"){let{pathname:n,search:r="",hash:i=""}="string"==typeof e?Vi(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:mo(r),hash:go(i)}}(i,o),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var fo=e=>e.join("/").replace(/\/\/+/g,"/"),vo=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mo=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",go=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var yo=["POST","PUT","PATCH","DELETE"];new Set(yo);var _o=["GET",...yo];new Set(_o);var wo=at(null);wo.displayName="DataRouter";var bo=at(null);bo.displayName="DataRouterState";var xo=at({isTransitioning:!1});xo.displayName="ViewTransition",at(new Map).displayName="Fetchers",at(null).displayName="Await";var ko=at(null);ko.displayName="Navigation";var So=at(null);So.displayName="Location";var Eo=at({outlet:null,matches:[],isDataRoute:!1});Eo.displayName="Route";var Co=at(null);function To(){return null!=Gt(So)}function Po(){return ji(To(),"useLocation() may be used only in the context of a <Router> component."),Gt(So).location}Co.displayName="RouteError";var Ro="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ao(e){Gt(ko).static||Lt(e)}function Oo(){let{isDataRoute:e}=Gt(Eo);return e?function(){let{router:e}=function(e){let t=Gt(wo);return ji(t,Ho(e)),t}("useNavigate"),t=Wo("useNavigate"),n=Mt(!1);return Ao((()=>{n.current=!0})),Dt((async(r,i={})=>{Bi(n.current,Ro),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))}),[e,t])}():function(){ji(To(),"useNavigate() may be used only in the context of a <Router> component.");let e=Gt(wo),{basename:t,navigator:n}=Gt(ko),{matches:r}=Gt(Eo),{pathname:i}=Po(),o=JSON.stringify(po(r)),a=Mt(!1);return Ao((()=>{a.current=!0})),Dt(((r,s={})=>{if(Bi(a.current,Ro),!a.current)return;if("number"==typeof r)return void n.go(r);let l=ho(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:fo([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,o,i,e])}()}var Lo=at(null);function Mo(e){let t=Gt(Eo).outlet;return t?De(Lo.Provider,{value:e},t):t}function Fo(e,{relative:t}={}){let{matches:n}=Gt(Eo),{pathname:r}=Po(),i=JSON.stringify(po(n));return It((()=>ho(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function Io(e,t,n,r){var i;ji(To(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:a}=Gt(ko),{matches:s}=Gt(Eo),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let e=p&&p.path||"";jo(u,!p||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,f=Po();if(t){let e="string"==typeof t?Vi(t):t;ji("/"===d||(null==(i=e.pathname)?void 0:i.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=f;let v=h.pathname||"/",m=v;if("/"!==d){let e=d.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=!a&&n&&n.matches&&n.matches.length>0?n.matches:Qi(e,{pathname:m});Bi(p||null!=g,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Bi(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=function(e,t=[],n=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,i=null==n?void 0:n.errors;if(null!=i){let e=r.findIndex((e=>e.route.id&&void 0!==(null==i?void 0:i[e.route.id])));ji(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),r=r.slice(0,Math.min(r.length,e+1))}let o=!1,a=-1;if(n)for(let s=0;s<r.length;s++){let e=r[s];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(a=s),e.route.id){let{loaderData:t,errors:i}=n,s=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!i||void 0===i[e.route.id]);if(e.route.lazy||s){o=!0,r=a>=0?r.slice(0,a+1):[r[0]];break}}}return r.reduceRight(((e,s,l)=>{let c,u=!1,d=null,p=null;n&&(c=i&&s.route.id?i[s.route.id]:void 0,d=s.route.errorElement||Go,o&&(a<0&&0===l?(jo("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,p=null):a===l&&(u=!0,p=s.route.hydrateFallbackElement||null)));let h=t.concat(r.slice(0,l+1)),f=()=>{let t;return t=c?d:u?p:s.route.Component?De(s.route.Component,null):s.route.element?s.route.element:e,De($o,{match:s,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(s.route.ErrorBoundary||s.route.errorElement||0===l)?De(No,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:fo([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:fo([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,r);return t&&y?De(So.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},y):y}function Do(){let e=function(){var e;let t=Gt(Co),n=function(e){let t=Gt(bo);return ji(t,Ho(e)),t}("useRouteError"),r=Wo("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="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=De($e,null,De("p",null,"💿 Hey developer 👋"),De("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",De("code",{style:o},"ErrorBoundary")," or"," ",De("code",{style:o},"errorElement")," prop on your route.")),De($e,null,De("h2",null,"Unexpected Application Error!"),De("h3",{style:{fontStyle:"italic"}},t),n?De("pre",{style:i},n):null,a)}var Go=De(Do,null),No=class extends He{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?De(Eo.Provider,{value:this.props.routeContext},De(Co.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $o({routeContext:e,match:t,children:n}){let r=Gt(wo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),De(Eo.Provider,{value:e},n)}function Ho(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wo(e){let t=function(e){let t=Gt(Eo);return ji(t,Ho(e)),t}(e),n=t.matches[t.matches.length-1];return ji(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Uo={};function jo(e,t,n){t||Uo[e]||(Uo[e]=!0,Bi(!1,n))}function Bo({to:e,replace:t,state:n,relative:r}){ji(To(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=Gt(ko);Bi(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=Gt(Eo),{pathname:a}=Po(),s=Oo(),l=ho(e,po(o),a,"path"===r),c=JSON.stringify(l);return Ot((()=>{s(JSON.parse(c),{replace:t,state:n,relative:r})}),[s,c,r,t,n]),null}function zo(e){return Mo(e.context)}function qo(e){ji(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ko({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){ji(!To(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=It((()=>({basename:a,navigator:i,static:o,future:{}})),[a,i,o]);"string"==typeof n&&(n=Vi(n));let{pathname:l="/",search:c="",hash:u="",state:d=null,key:p="default"}=n,h=It((()=>{let e=co(l,a);return null==e?null:{location:{pathname:e,search:c,hash:u,state:d,key:p},navigationType:r}}),[a,l,c,u,d,p,r]);return Bi(null!=h,`<Router basename="${a}"> is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:De(ko.Provider,{value:s},De(So.Provider,{children:t,value:h}))}function Vo({children:e,location:t}){return Io(Qo(e),t)}function Qo(e,t=[]){let n=[];return Jn.forEach(e,((e,r)=>{if(!Ar(e))return;let i=[...t,r];if(e.type===$e)return void n.push.apply(n,Qo(e.props.children,i));ji(e.type===qo,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ji(!e.props.index||!e.props.children,"An index route cannot have child routes.");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,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.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=Qo(e.props.children,i)),n.push(o)})),n}Kn((function({routes:e,future:t,state:n}){return Io(e,void 0,n,t)}));var Yo="get",Xo="application/x-www-form-urlencoded";function Jo(e){return null!=e&&"string"==typeof e.tagName}var Zo=null;var ea=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ta(e){return null==e||ea.has(e)?e:(Bi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xo}"`),null)}function na(e,t){let n,r,i,o,a;if(Jo(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?co(a,t):null,n=e.getAttribute("method")||Yo,i=ta(e.getAttribute("enctype"))||Xo,o=new FormData(e)}else if(function(e){return Jo(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Jo(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?co(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Yo,i=ta(e.getAttribute("formenctype"))||ta(a.getAttribute("enctype"))||Xo,o=new FormData(a,e),!function(){if(null===Zo)try{new FormData(document.createElement("form"),0),Zo=!1}catch(Ic){Zo=!0}return Zo}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Jo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Yo,r=null,i=Xo,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}function ra(e,t){if(!1===e||null==e)throw new Error(t)}function ia(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function oa(e,t,n){return function(e,t){let n=new Set;return new Set(t),e.reduce(((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(ia).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}function aa(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null==(r=n[t].route.path)?void 0:r.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===o?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===o?t.filter(((t,o)=>{var l;let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:(null==(l=n[0])?void 0:l.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function sa(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i})).flat(1),[...new Set(r)];var r}function la(){let e=Gt(wo);return ra(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}var ca=at(void 0);function ua(){let e=Gt(ca);return ra(e,"You must render this element inside a <HydratedRouter> element"),e}function da(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function pa({page:e,...t}){let{router:n}=la(),r=It((()=>Qi(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?De(ha,{page:e,matches:r,...t}):null}function ha({page:e,matches:t,...n}){let r=Po(),{manifest:i,routeModules:o}=ua(),{basename:a}=la(),{loaderData:s,matches:l}=function(){let e=Gt(bo);return ra(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),c=It((()=>aa(e,t,l,i,r,"data")),[e,t,l,i,r]),u=It((()=>aa(e,t,l,i,r,"assets")),[e,t,l,i,r]),d=It((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach((e=>{var t;let r=i.routes[e.route.id];r&&r.hasLoader&&(!c.some((t=>t.route.id===e.route.id))&&e.route.id in s&&(null==(t=o[e.route.id])?void 0:t.shouldRevalidate)||r.hasClientLoader?l=!0:n.add(e.route.id))})),0===n.size)return[];let u=function(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===co(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}(e,a);return l&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[a,s,r,i,c,t,e,o]),p=It((()=>sa(u,i)),[u,i]),h=function(e){let{manifest:t,routeModules:n}=ua(),[r,i]=Rt([]);return Ot((()=>{let r=!1;return oa(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}(u);return De($e,null,d.map((e=>De("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>De("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>De("link",{key:e,...t}))))}function fa(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}ca.displayName="FrameworkContext";var va="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{va&&(window.__reactRouterVersion="7.5.3")}catch(Ic){}function ma({basename:e,children:t,window:n}){let r=Mt();null==r.current&&(r.current=Ui({window:n,v5Compat:!0}));let i=r.current,[o,a]=Rt({action:i.action,location:i.location}),s=Dt((e=>{$r((()=>a(e)))}),[a]);return Lt((()=>i.listen(s)),[i,s]),De(Ko,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var ga=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ya=Yn((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,state:a,target:s,to:l,preventScrollReset:c,viewTransition:u,...d},p){let h,{basename:f}=Gt(ko),v="string"==typeof l&&ga.test(l),m=!1;if("string"==typeof l&&v&&(h=l,va))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=co(t.pathname,f);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:m=!0}catch(Ic){Bi(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=function(e,{relative:t}={}){ji(To(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=Gt(ko),{hash:i,pathname:o,search:a}=Fo(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:fo([n,o])),r.createHref({pathname:s,search:a,hash:i})}(l,{relative:r}),[y,_,w]=function(e,t){let n=Gt(ca),[r,i]=Rt(!1),[o,a]=Rt(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,p=Mt(null);Ot((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),Ot((()=>{if(r){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{i(!0)},f=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,p,{}]:[o,p,{onFocus:da(s,h),onBlur:da(l,f),onMouseEnter:da(c,h),onMouseLeave:da(u,f),onTouchStart:da(d,h)}]:[!1,p,{}]}(n,d),b=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a}={}){let s=Oo(),l=Po(),c=Fo(e,{relative:o});return Dt((u=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(u,t)){u.preventDefault();let t=void 0!==n?n:Ki(l)===Ki(c);s(e,{replace:t,state:r,preventScrollReset:i,relative:o,viewTransition:a})}}),[l,s,c,n,r,t,e,i,o,a])}(l,{replace:o,state:a,target:s,preventScrollReset:c,relative:r,viewTransition:u});let x=De("a",{...d,...w,href:h||g,onClick:m||i?e:function(t){e&&e(t),t.defaultPrevented||b(t)},ref:fa(p,_),target:s,"data-discover":v||"render"!==t?void 0:"true"});return y&&!v?De($e,null,x,De(pa,{page:g})):x}));ya.displayName="Link";var _a=Yn((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:s,...l},c){let u=Fo(o,{relative:l.relative}),d=Po(),p=Gt(bo),{navigator:h,basename:f}=Gt(ko),v=null!=p&&function(e,t={}){let n=Gt(xo);ji(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=wa("useViewTransitionState"),i=Fo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=co(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=co(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=so(i.pathname,a)||null!=so(i.pathname,o)}(u)&&!0===a,m=h.encodeLocation?h.encodeLocation(u).pathname:u.pathname,g=d.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(g=g.toLowerCase(),y=y?y.toLowerCase():null,m=m.toLowerCase()),y&&f&&(y=co(y,f)||y);const _="/"!==m&&m.endsWith("/")?m.length-1:m.length;let w,b=g===m||!r&&g.startsWith(m)&&"/"===g.charAt(_),x=null!=y&&(y===m||!r&&y.startsWith(m)&&"/"===y.charAt(m.length)),k={isActive:b,isPending:x,isTransitioning:v},S=b?e:void 0;w="function"==typeof n?n(k):[n,b?"active":null,x?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(k):i;return De(ya,{...l,"aria-current":S,className:w,ref:c,style:E,to:o,viewTransition:a},"function"==typeof s?s(k):s)}));function wa(e){let t=Gt(wo);return ji(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}_a.displayName="NavLink",Yn((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=Yo,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,...p},h)=>{let f=function(){let{router:e}=wa("useSubmit"),{basename:t}=Gt(ko),n=Wo("useRouteId");return Dt((async(r,i={})=>{let{action:o,method:a,encType:s,formData:l,body:c}=na(r,t);if(!1===i.navigate){let t=i.fetcherKey||xa();await e.fetch(t,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||a,formEncType:i.encType||s,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||a,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})}),[e,t,n])}(),v=function(e,{relative:t}={}){let{basename:n}=Gt(ko),r=Gt(Eo);ji(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Fo(e||".",{relative:t})},a=Po();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:fo([n,o.pathname]));return Ki(o)}(s,{relative:c}),m="get"===a.toLowerCase()?"get":"post",g="string"==typeof s&&ga.test(s);return De("form",{ref:h,method:m,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=(null==r?void 0:r.getAttribute("formmethod"))||a;f(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:o,relative:c,preventScrollReset:u,viewTransition:d})},...p,"data-discover":g||"render"!==e?void 0:"true"})})).displayName="Form";var ba=0,xa=()=>`__${String(++ba)}__`;function ka(){return ka=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},ka.apply(null,arguments)}new TextEncoder;var Sa=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(Ic){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ea="-ms-",Ca="-moz-",Ta="-webkit-",Pa="comm",Ra="rule",Aa="decl",Oa="@keyframes",La=Math.abs,Ma=String.fromCharCode,Fa=Object.assign;function Ia(e){return e.trim()}function Da(e,t,n){return e.replace(t,n)}function Ga(e,t){return e.indexOf(t)}function Na(e,t){return 0|e.charCodeAt(t)}function $a(e,t,n){return e.slice(t,n)}function Ha(e){return e.length}function Wa(e){return e.length}function Ua(e,t){return t.push(e),e}var ja=1,Ba=1,za=0,qa=0,Ka=0,Va="";function Qa(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ja,column:Ba,length:a,return:""}}function Ya(e,t){return Fa(Qa("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xa(){return Ka=qa<za?Na(Va,qa++):0,Ba++,10===Ka&&(Ba=1,ja++),Ka}function Ja(){return Na(Va,qa)}function Za(){return qa}function es(e,t){return $a(Va,e,t)}function ts(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ns(e){return ja=Ba=1,za=Ha(Va=e),qa=0,[]}function rs(e){return Va="",e}function is(e){return Ia(es(qa-1,ss(91===e?e+2:40===e?e+1:e)))}function os(e){for(;(Ka=Ja())&&Ka<33;)Xa();return ts(e)>2||ts(Ka)>3?"":" "}function as(e,t){for(;--t&&Xa()&&!(Ka<48||Ka>102||Ka>57&&Ka<65||Ka>70&&Ka<97););return es(e,Za()+(t<6&&32==Ja()&&32==Xa()))}function ss(e){for(;Xa();)switch(Ka){case e:return qa;case 34:case 39:34!==e&&39!==e&&ss(Ka);break;case 40:41===e&&ss(e);break;case 92:Xa()}return qa}function ls(e,t){for(;Xa()&&e+Ka!==57&&(e+Ka!==84||47!==Ja()););return"/*"+es(t,qa-1)+"*"+Ma(47===e?e:Xa())}function cs(e){for(;!ts(Ja());)Xa();return es(e,qa)}function us(e){return rs(ds("",null,null,null,[""],e=ns(e),0,[0],e))}function ds(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,v=1,m=1,g=1,y=0,_="",w=i,b=o,x=r,k=_;m;)switch(f=y,y=Xa()){case 40:if(108!=f&&58==Na(k,d-1)){-1!=Ga(k+=Da(is(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:k+=is(y);break;case 9:case 10:case 13:case 32:k+=os(f);break;case 92:k+=as(Za()-1,7);continue;case 47:switch(Ja()){case 42:case 47:Ua(hs(ls(Xa(),Za()),t,n),l);break;default:k+="/"}break;case 123*v:s[c++]=Ha(k)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==g&&(k=Da(k,/\f/g,"")),h>0&&Ha(k)-d&&Ua(h>32?fs(k+";",r,n,d-1):fs(Da(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ua(x=ps(k,t,n,c,u,i,s,_,w=[],b=[],d),o),123===y)if(0===u)ds(k,t,x,x,w,o,d,s,b);else switch(99===p&&110===Na(k,3)?100:p){case 100:case 108:case 109:case 115:ds(e,x,x,r&&Ua(ps(e,x,x,0,0,i,s,_,i,w=[],d),b),i,b,d,s,r?w:b);break;default:ds(k,x,x,x,[""],b,0,s,b)}}c=u=h=0,v=g=1,_=k="",d=a;break;case 58:d=1+Ha(k),h=f;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==(Ka=qa>0?Na(Va,--qa):0,Ba--,10===Ka&&(Ba=1,ja--),Ka))continue;switch(k+=Ma(y),y*v){case 38:g=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ha(k)-1)*g,g=1;break;case 64:45===Ja()&&(k+=is(Xa())),p=Ja(),u=d=Ha(_=k+=cs(Za())),y++;break;case 45:45===f&&2==Ha(k)&&(v=0)}}return o}function ps(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],h=Wa(p),f=0,v=0,m=0;f<r;++f)for(var g=0,y=$a(e,d+1,d=La(v=a[f])),_=e;g<h;++g)(_=Ia(v>0?p[g]+" "+y:Da(y,/&\f/g,p[g])))&&(l[m++]=_);return Qa(e,t,n,0===i?Ra:s,l,c,u)}function hs(e,t,n){return Qa(e,t,n,Pa,Ma(Ka),$a(e,2,-2),0)}function fs(e,t,n,r){return Qa(e,t,n,Aa,$a(e,0,r),$a(e,r+1,-1),r)}function vs(e,t){for(var n="",r=Wa(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ms(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Aa:return e.return=e.return||e.value;case Pa:return"";case Oa:return e.return=e.value+"{"+vs(e.children,r)+"}";case Ra:e.value=e.props.join(",")}return Ha(n=vs(e.children,r))?e.return=e.value+"{"+n+"}":""}function gs(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ys=function(e,t,n){for(var r=0,i=0;r=i,i=Ja(),38===r&&12===i&&(t[n]=1),!ts(i);)Xa();return es(e,qa)},_s=function(e,t){return rs(function(e,t){var n=-1,r=44;do{switch(ts(r)){case 0:38===r&&12===Ja()&&(t[n]=1),e[n]+=ys(qa-1,t,n);break;case 2:e[n]+=is(r);break;case 4:if(44===r){e[++n]=58===Ja()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ma(r)}}while(r=Xa());return e}(ns(e),t))},ws=new WeakMap,bs=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ws.get(n))&&!r){ws.set(e,!0);for(var i=[],o=_s(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},xs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ks(e,t){switch(function(e,t){return 45^Na(e,0)?(((t<<2^Na(e,0))<<2^Na(e,1))<<2^Na(e,2))<<2^Na(e,3):0}(e,t)){case 5103:return Ta+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ta+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ta+e+Ca+e+Ea+e+e;case 6828:case 4268:return Ta+e+Ea+e+e;case 6165:return Ta+e+Ea+"flex-"+e+e;case 5187:return Ta+e+Da(e,/(\w+).+(:[^]+)/,Ta+"box-$1$2"+Ea+"flex-$1$2")+e;case 5443:return Ta+e+Ea+"flex-item-"+Da(e,/flex-|-self/,"")+e;case 4675:return Ta+e+Ea+"flex-line-pack"+Da(e,/align-content|flex-|-self/,"")+e;case 5548:return Ta+e+Ea+Da(e,"shrink","negative")+e;case 5292:return Ta+e+Ea+Da(e,"basis","preferred-size")+e;case 6060:return Ta+"box-"+Da(e,"-grow","")+Ta+e+Ea+Da(e,"grow","positive")+e;case 4554:return Ta+Da(e,/([^-])(transform)/g,"$1"+Ta+"$2")+e;case 6187:return Da(Da(Da(e,/(zoom-|grab)/,Ta+"$1"),/(image-set)/,Ta+"$1"),e,"")+e;case 5495:case 3959:return Da(e,/(image-set\([^]*)/,Ta+"$1$`$1");case 4968:return Da(Da(e,/(.+:)(flex-)?(.*)/,Ta+"box-pack:$3"+Ea+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ta+e+e;case 4095:case 3583:case 4068:case 2532:return Da(e,/(.+)-inline(.+)/,Ta+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ha(e)-1-t>6)switch(Na(e,t+1)){case 109:if(45!==Na(e,t+4))break;case 102:return Da(e,/(.+:)(.+)-([^]+)/,"$1"+Ta+"$2-$3$1"+Ca+(108==Na(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ga(e,"stretch")?ks(Da(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Na(e,t+1))break;case 6444:switch(Na(e,Ha(e)-3-(~Ga(e,"!important")&&10))){case 107:return Da(e,":",":"+Ta)+e;case 101:return Da(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ta+(45===Na(e,14)?"inline-":"")+"box$3$1"+Ta+"$2$3$1"+Ea+"$2box$3")+e}break;case 5936:switch(Na(e,t+11)){case 114:return Ta+e+Ea+Da(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ta+e+Ea+Da(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ta+e+Ea+Da(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ta+e+Ea+e+e}return e}var Ss=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Aa:e.return=ks(e.value,e.length);break;case Oa:return vs([Ya(e,{value:Da(e.value,"@","@"+Ta)})],r);case Ra:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vs([Ya(e,{props:[Da(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return vs([Ya(e,{props:[Da(t,/:(plac\w+)/,":"+Ta+"input-$1")]}),Ya(e,{props:[Da(t,/:(plac\w+)/,":-moz-$1")]}),Ya(e,{props:[Da(t,/:(plac\w+)/,Ea+"input-$1")]})],r)}return""}))}}],Es=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||Ss,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[ms,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[bs,xs].concat(o,p),u=Wa(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,vs(us(e?e+"{"+t.styles+"}":t.styles),h),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Sa({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},Cs={exports:{}},Ts={},Ps="function"==typeof Symbol&&Symbol.for,Rs=Ps?Symbol.for("react.element"):60103,As=Ps?Symbol.for("react.portal"):60106,Os=Ps?Symbol.for("react.fragment"):60107,Ls=Ps?Symbol.for("react.strict_mode"):60108,Ms=Ps?Symbol.for("react.profiler"):60114,Fs=Ps?Symbol.for("react.provider"):60109,Is=Ps?Symbol.for("react.context"):60110,Ds=Ps?Symbol.for("react.async_mode"):60111,Gs=Ps?Symbol.for("react.concurrent_mode"):60111,Ns=Ps?Symbol.for("react.forward_ref"):60112,$s=Ps?Symbol.for("react.suspense"):60113,Hs=Ps?Symbol.for("react.suspense_list"):60120,Ws=Ps?Symbol.for("react.memo"):60115,Us=Ps?Symbol.for("react.lazy"):60116,js=Ps?Symbol.for("react.block"):60121,Bs=Ps?Symbol.for("react.fundamental"):60117,zs=Ps?Symbol.for("react.responder"):60118,qs=Ps?Symbol.for("react.scope"):60119;function Ks(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rs:switch(e=e.type){case Ds:case Gs:case Os:case Ms:case Ls:case $s:return e;default:switch(e=e&&e.$$typeof){case Is:case Ns:case Us:case Ws:case Fs:return e;default:return t}}case As:return t}}}function Vs(e){return Ks(e)===Gs}Ts.AsyncMode=Ds,Ts.ConcurrentMode=Gs,Ts.ContextConsumer=Is,Ts.ContextProvider=Fs,Ts.Element=Rs,Ts.ForwardRef=Ns,Ts.Fragment=Os,Ts.Lazy=Us,Ts.Memo=Ws,Ts.Portal=As,Ts.Profiler=Ms,Ts.StrictMode=Ls,Ts.Suspense=$s,Ts.isAsyncMode=function(e){return Vs(e)||Ks(e)===Ds},Ts.isConcurrentMode=Vs,Ts.isContextConsumer=function(e){return Ks(e)===Is},Ts.isContextProvider=function(e){return Ks(e)===Fs},Ts.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rs},Ts.isForwardRef=function(e){return Ks(e)===Ns},Ts.isFragment=function(e){return Ks(e)===Os},Ts.isLazy=function(e){return Ks(e)===Us},Ts.isMemo=function(e){return Ks(e)===Ws},Ts.isPortal=function(e){return Ks(e)===As},Ts.isProfiler=function(e){return Ks(e)===Ms},Ts.isStrictMode=function(e){return Ks(e)===Ls},Ts.isSuspense=function(e){return Ks(e)===$s},Ts.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Os||e===Gs||e===Ms||e===Ls||e===$s||e===Hs||"object"==typeof e&&null!==e&&(e.$$typeof===Us||e.$$typeof===Ws||e.$$typeof===Fs||e.$$typeof===Is||e.$$typeof===Ns||e.$$typeof===Bs||e.$$typeof===zs||e.$$typeof===qs||e.$$typeof===js)},Ts.typeOf=Ks,Cs.exports=Ts;var Qs=Cs.exports,Ys={};Ys[Qs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ys[Qs.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Xs(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Js=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Zs=function(e,t,n){Js(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var el={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tl=/[A-Z]|^ms/g,nl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rl=function(e){return 45===e.charCodeAt(1)},il=function(e){return null!=e&&"boolean"!=typeof e},ol=gs((function(e){return rl(e)?e:e.replace(tl,"-$&").toLowerCase()})),al=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(nl,(function(e,t,n){return ll={name:t,styles:n,next:ll},t}))}return 1===el[e]||rl(e)||"number"!=typeof t||0===t?t:t+"px"};function sl(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return ll={name:i.name,styles:i.styles,next:ll},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)ll={name:a.name,styles:a.styles,next:ll},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=sl(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":il(s)&&(r+=ol(o)+":"+al(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=sl(e,t,a);switch(o){case"animation":case"animationName":r+=ol(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)il(a[c])&&(r+=ol(o)+":"+al(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=ll,l=n(e);return ll=s,sl(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var ll,cl=/label:\s*([^\s;{]+)\s*(;|$)/g;function ul(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";ll=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=sl(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=sl(n,t,e[a]),r)i+=o[a]}cl.lastIndex=0;for(var s,l="";null!==(s=cl.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:ll}}var dl,pl,hl=!!Kr.useInsertionEffect&&Kr.useInsertionEffect,fl=hl||function(e){return e()},vl=hl||Lt,ml=at("undefined"!=typeof HTMLElement?Es({key:"css"}):null),gl=ml.Provider,yl=function(e){return Yn((function(t,n){var r=Gt(ml);return e(t,r,n)}))},_l=at({}),wl={}.hasOwnProperty,bl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xl=function(e,t){var n={};for(var r in t)wl.call(t,r)&&(n[r]=t[r]);return n[bl]=e,n},kl=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Js(t,n,r),fl((function(){return Zs(t,n,r)})),null},Sl=yl((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[bl],o=[r],a="";"string"==typeof e.className?a=Xs(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=ul(o,void 0,Gt(_l));a+=t.key+"-"+s.name;var l={};for(var c in e)wl.call(e,c)&&"css"!==c&&c!==bl&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),De($e,null,De(kl,{cache:t,serialized:s,isStringTag:"string"==typeof i}),De(i,l))})),El=function(e,t){var n=arguments;if(null==t||!wl.call(t,"css"))return De.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Sl,i[1]=xl(e,t);for(var o=2;o<r;o++)i[o]=n[o];return De.apply(null,i)};dl=El||(El={}),pl||(pl=dl.JSX||(dl.JSX={}));var Cl=yl((function(e,t){var n=ul([e.styles],void 0,Gt(_l)),r=Mt();return vl((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),vl((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Zs(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function Tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ul(t)}var Pl=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Rl=gs((function(e){return Pl.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Al=function(e){return"theme"!==e},Ol=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Rl:Al},Ll=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Ml=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Js(t,n,r),fl((function(){return Zs(t,n,r)})),null},Fl=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=Ll(t,n,o),l=s||Ol(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var h=u.length,f=1;f<h;f++)d.push(u[f],p[f])}var v=yl((function(e,t,n){var r=c&&e.as||a,o="",u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=Gt(_l)}"string"==typeof e.className?o=Xs(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var f=ul(d.concat(u),t.registered,p);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var v=c&&void 0===s?Ol(r):l,m={};for(var g in e)c&&"as"===g||v(g)&&(m[g]=e[g]);return m.className=o,n&&(m.ref=n),De($e,null,De(Ml,{cache:t,serialized:f,isStringTag:"string"==typeof r}),De(r,m))}));return v.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(t,r){return e(t,ka({},n,r,{shouldForwardProp:Ll(v,r,!0)})).apply(void 0,d)},v}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Fl[e]=Fl(e)}));const Il=Fl.span({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isActive:e})=>e?{cursor:"default","--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:{cursor:"pointer",borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}})),Dl=Fl.span({marginLeft:"0.25rem",display:"inline-flex",width:"1.25rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontWeight:"700","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},(({isActive:e})=>e?{"--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))",".group:hover &":{"--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity))"}}));var Gl=$e,Nl=function(e,t,n){return wl.call(t,"css")?Qr(Sl,xl(e,t),n):Qr(e,t,n)},$l=function(e,t,n){return wl.call(t,"css")?Qr(Sl,xl(e,t),n):Qr(e,t,n)};const Hl=({tabs:e})=>Nl("div",{css:{display:"block"},children:Nl("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))",paddingBottom:"1rem"},children:Nl("nav",{"aria-label":"Tabs",css:{marginBottom:"-2px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"},paddingTop:"1rem"},children:e.map((e=>Nl(_a,{to:e.id,children:({isActive:t})=>$l(Il,{className:"group",isActive:t,children:[e.displayName,void 0!==e.count&&Nl(Dl,{isActive:t,children:e.count})]})},e.id)))})})}),Wl=e=>{var t,n;const{linkedProfilesForAccount:r,checkProfileSearchAuthorization:i,linkedAccount:o}=Ai(),a=oi({queryKey:[fi],queryFn:o}),s=oi({queryKey:[vi],queryFn:r}),l=oi({queryKey:[gi],queryFn:i});Ot((()=>{l.error&&e.onError(l.error.message),s.error&&e.onError(s.error.message)}),[l.error,s.error,e]);const c=It((()=>{var e;return[{id:"search",displayName:"Search"},{id:"profiles",displayName:"Linked Profiles",count:null==(e=s.data)?void 0:e.length},{id:"invoices",displayName:"Invoices"}]}),[s.data]);return l.isSuccess&&"Linked"!==l.data.status?Nl(Bo,{to:"unlinked",replace:!0}):l.isSuccess?$l("div",{children:[$l("dl",{css:{marginLeft:"0.25rem",paddingTop:"1rem"},children:[$l("div",{css:{display:"flex",gap:"0.5rem"},children:[Nl("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Account"}),Nl("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:null==(t=a.data)?void 0:t.id})]}),$l("div",{css:{display:"flex",gap:"0.5rem"},children:[Nl("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Client"}),Nl("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:null==(n=a.data)?void 0:n.catchEClientId})]})]}),Nl(Hl,{tabs:c}),Nl("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:Nl(zo,{})})]}):Nl("div",{children:"Loading..."})},Ul=e=>Nl(jh,{children:Nl("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),jl=e=>Nl(Uh,{children:Nl("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((t=>Nl("li",{children:e.navTo?Nl(_a,{css:{"--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))",textDecorationLine:"underline"},to:e.navTo,children:t}):t},t)))})}),Bl="undefined"!=typeof document?qr.useLayoutEffect:()=>{};const zl=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},ql=e=>{if(e&&"window"in e&&e.window===e)return e;return zl(e).defaultView||window};function Kl(e){let t=null;return()=>(null==t&&(t=e()),t)}const Vl=Kl((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})),Ql=Kl((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 Yl{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 Xl(e){let t=Mt({isFocused:!1,observer:null});Bl((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=Mt(null);return Bl((()=>{t.current=e}),[e]),Dt(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Dt((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 Yl("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 Jl=null,Zl=new Set,ec=new Map,tc=!1,nc=!1;const rc={Tab:!0,Escape:!0};function ic(e,t){for(let n of Zl)n(e,t)}function oc(e){tc=!0,function(e){return!(e.metaKey||!Vl()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Jl="keyboard",ic("keyboard",e))}function ac(e){Jl="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(tc=!0,ic("pointer",e))}function sc(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Ql()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(tc=!0,Jl="virtual")}function lc(e){e.target!==window&&e.target!==document&&(tc||nc||(Jl="virtual",ic("virtual",e)),tc=!1,nc=!1)}function cc(){tc=!1,nc=!0}function uc(e){if("undefined"==typeof window||ec.get(ql(e)))return;const t=ql(e),n=zl(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){tc=!0,r.apply(this,arguments)},n.addEventListener("keydown",oc,!0),n.addEventListener("keyup",oc,!0),n.addEventListener("click",sc,!0),t.addEventListener("focus",lc,!0),t.addEventListener("blur",cc,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",ac,!0),n.addEventListener("pointermove",ac,!0),n.addEventListener("pointerup",ac,!0)):(n.addEventListener("mousedown",ac,!0),n.addEventListener("mousemove",ac,!0),n.addEventListener("mouseup",ac,!0)),t.addEventListener("beforeunload",(()=>{dc(e)}),{once:!0}),ec.set(t,{focus:r})}const dc=(e,t)=>{const n=ql(e),r=zl(e);t&&r.removeEventListener("DOMContentLoaded",t),ec.has(n)&&(n.HTMLElement.prototype.focus=ec.get(n).focus,r.removeEventListener("keydown",oc,!0),r.removeEventListener("keyup",oc,!0),r.removeEventListener("click",sc,!0),n.removeEventListener("focus",lc,!0),n.removeEventListener("blur",cc,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",ac,!0),r.removeEventListener("pointermove",ac,!0),r.removeEventListener("pointerup",ac,!0)):(r.removeEventListener("mousedown",ac,!0),r.removeEventListener("mousemove",ac,!0),r.removeEventListener("mouseup",ac,!0)),ec.delete(n))};function pc(){return"pointer"!==Jl}"undefined"!=typeof document&&function(e){const t=zl(e);let n;"loading"!==t.readyState?uc(e):(n=()=>{uc(e)},t.addEventListener("DOMContentLoaded",n))}();const hc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fc(e,t,n){uc(),Ot((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?ql(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?ql(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?ql(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?ql(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!hc.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&&!rc[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(pc())};return Zl.add(t),()=>{Zl.delete(t)}}),t)}let vc=!1,mc=0;function gc(){vc=!0,setTimeout((()=>{vc=!1}),50)}function yc(e){"touch"===e.pointerType&&gc()}function _c(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",yc):document.addEventListener("touchend",gc),mc++,()=>{mc--,mc>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",yc):document.removeEventListener("touchend",gc))}}function wc(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Mt({isFocused:!1,isFocusVisible:t||pc()}),[o,a]=Rt(!1),[s,l]=Rt((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Dt((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Dt((e=>{i.current.isFocused=e,a(e),c()}),[c]);fc((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=Dt((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Xl(o),s=Dt((e=>{const t=zl(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:p}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Mt({isFocusWithin:!1}),a=Dt((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Xl(a),l=Dt((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?p:d}}var bc=Object.defineProperty,xc=(e,t,n)=>(((e,t,n)=>{t in e?bc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let kc=new class{constructor(){xc(this,"current",this.detect()),xc(this,"handoffState","pending"),xc(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 Sc(e){return kc.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Ec(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Cc(){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 Ec((()=>{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=Cc();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 Tc(){let[e]=Rt(Cc);return Ot((()=>()=>e.dispose()),[e]),e}let Pc=(e,t)=>{kc.isServer?Ot(e,t):Lt(e,t)};function Rc(e){let t=Mt(e);return Pc((()=>{t.current=e}),[e]),t}let Ac=function(e){let t=Rc(e);return qr.useCallback(((...e)=>t.current(...e)),[t])};let Oc=at(void 0);function Lc(){return Gt(Oc)}function Mc(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function Fc(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,Fc),r}var Ic,Dc,Gc=((Dc=Gc||{})[Dc.None=0]="None",Dc[Dc.RenderStrategy=1]="RenderStrategy",Dc[Dc.Static=2]="Static",Dc),Nc=((Ic=Nc||{})[Ic.Unmount=0]="Unmount",Ic[Ic.Hidden=1]="Hidden",Ic);function $c(){let e=function(){let e=Mt([]),t=Dt((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return Dt((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:Wc;let l=Uc(t,e);if(o)return Hc(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Hc(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Fc(e?0:1,{0:()=>null,1:()=>Hc({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Hc(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function Hc(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=qc(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===$e&&(Object.keys(zc(l)).length>0||Object.keys(zc(d)).length>0)){if(Ar(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Mc(t(...e),l.className):Mc(t,l.className),r=n?{className:n}:{},o=Uc(u.props,zc(qc(l,["ref"])));for(let i in d)i in o&&delete d[i];return Mr(u,Object.assign({},o,d,c,{ref:i(Kc(u),c.ref)},r))}if(Object.keys(zc(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(zc(l)).concat(Object.keys(zc(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 De(o,Object.assign({},qc(l,["ref"]),o!==$e&&c,o!==$e&&d),u)}function Wc(...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 Uc(...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 jc(...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 Bc(e){var t;return Object.assign(Yn(e),{displayName:null!=(t=e.displayName)?t:e.name})}function zc(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function qc(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Kc(e){return qr.version.split(".")[0]>="19"?e.props.ref:e.ref}let Vc=at(void 0);function Qc(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 Yc=Symbol();function Xc(...e){let t=Mt(e);Ot((()=>{t.current=e}),[e]);let n=Ac((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[Yc])))?void 0:n}let Jc=at(null);function Zc(){let e=Gt(Jc);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,Zc),e}return e}Jc.displayName="DescriptionContext";let eu=Bc((function(e,t){let n=$t(),r=Lc(),{id:i=`headlessui-description-${n}`,...o}=e,a=Zc(),s=Xc(t);Pc((()=>a.register(i)),[i,a.register]);let l=r||!1,c=It((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return $c()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(eu,{});var tu,nu=((tu=nu||{}).Space=" ",tu.Enter="Enter",tu.Escape="Escape",tu.Backspace="Backspace",tu.Delete="Delete",tu.ArrowLeft="ArrowLeft",tu.ArrowUp="ArrowUp",tu.ArrowRight="ArrowRight",tu.ArrowDown="ArrowDown",tu.Home="Home",tu.End="End",tu.PageUp="PageUp",tu.PageDown="PageDown",tu.Tab="Tab",tu);let ru=at(null);function iu(){let e=Gt(ru);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,iu),e}return e}function ou({inherit:e=!1}={}){let t=function(){var e,t;let n=null!=(t=null==(e=Gt(ru))?void 0:e.value)?t:void 0;return n}(),[n,r]=Rt([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,It((()=>function(e){let t=Ac((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=It((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return qr.createElement(ru.Provider,{value:n},e.children)}),[r])]}ru.displayName="LabelContext";let au=Bc((function(e,t){var n;let r=$t(),i=iu(),o=Gt(Vc),a=Lc(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Xc(t);Pc((()=>i.register(s)),[s,i.register]);let p=Ac((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})}}})),h=a||!1,f=It((()=>({...i.slot,disabled:h})),[i.slot,h]),v={ref:d,...i.props,id:s,htmlFor:l,onClick:p};return c&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in u&&delete u.onClick),$c()({ourProps:v,theirProps:u,slot:f,defaultTag:l?"label":"div",name:i.name||"Label"})}));function su(e,t=!1){let[n,r]=At((()=>({})),{}),i=It((()=>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 Pc((()=>{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}Object.assign(au,{});let lu=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 cu(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 uu(e){return Br(e.subscribe,e.getSnapshot,e.getSnapshot)}let du=new lu((()=>cu((()=>[]),{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 pu(e,t){let n=du.get(t),r=$t(),i=uu(n);if(Pc((()=>{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 hu=new Map,fu=new Map;function vu(e){var t;let n=null!=(t=fu.get(e))?t:0;return fu.set(e,n+1),0!==n||(hu.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>mu(e)}function mu(e){var t;let n=null!=(t=fu.get(e))?t:1;if(1===n?fu.delete(e):fu.set(e,n-1),1!==n)return;let r=hu.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,hu.delete(e))}let gu=["[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(","),yu=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var _u,wu,bu,xu=((bu=xu||{})[bu.First=1]="First",bu[bu.Previous=2]="Previous",bu[bu.Next=4]="Next",bu[bu.Last=8]="Last",bu[bu.WrapAround=16]="WrapAround",bu[bu.NoScroll=32]="NoScroll",bu[bu.AutoFocus=64]="AutoFocus",bu),ku=((wu=ku||{})[wu.Error=0]="Error",wu[wu.Overflow=1]="Overflow",wu[wu.Success=2]="Success",wu[wu.Underflow=3]="Underflow",wu),Su=((_u=Su||{})[_u.Previous=-1]="Previous",_u[_u.Next=1]="Next",_u);function Eu(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(gu)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var Cu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Cu||{});function Tu(e,t=0){var n;return e!==(null==(n=Sc(e))?void 0:n.body)&&Fc(t,{0:()=>e.matches(gu),1(){let t=e;for(;null!==t;){if(t.matches(gu))return!0;t=t.parentElement}return!1}})}function Pu(e){let t=Sc(e);Cc().nextFrame((()=>{t&&!Tu(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var Ru=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ru||{});"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 Au=["textarea","input"].join(",");function Ou(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 Lu(e,t){return function(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?Ou(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(yu)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):Eu(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,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==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,Au))&&n}(s)&&s.select(),2}(Eu(),t,{relativeTo:e})}function Mu(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Fu(){return Mu()||/Android/gi.test(window.navigator.userAgent)}function Iu(e,t,n,r){let i=Rc(n);Ot((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function Du(e,t,n){let r=pu(e,"outside-click"),i=Rc(n),o=Dt((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!Tu(r,Cu.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=Mt(null);Iu(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),Iu(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),Iu(r,"click",(e=>{Fu()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=Mt({x:0,y:0});Iu(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),Iu(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let i=Rc(n);Ot((()=>{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 Gu(...e){return It((()=>Sc(...e)),[...e])}function Nu(e,t){return It((()=>{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 $u(){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 Hu(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Wu=cu((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Cc(),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:Hu(n)},i=[Mu()?{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=Cc();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)}))}))}}:{},$u(),{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 Uu(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=uu(Wu),i=t?r.get(t):void 0,o=!!i&&i.count>0;Pc((()=>{if(t&&e)return Wu.dispatch("PUSH",t,n),()=>Wu.dispatch("POP",t,n)}),[e,t])}(pu(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function ju(e){return[e.screenX,e.screenY]}Wu.subscribe((()=>{let e=Wu.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)&&Wu.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Wu.dispatch("TEARDOWN",n)}}));var Bu,zu;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Bu=null==process?void 0:{})?void 0:Bu.NODE_ENV)&&void 0===(null==(zu=null==Element?void 0:Element.prototype)?void 0:zu.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var qu=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(qu||{});function Ku(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Vu(e,t,n,r){let[i,o]=Rt(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=Rt(e),r=Dt((e=>n(e)),[t]),i=Dt((e=>n((t=>t|e))),[t]),o=Dt((e=>(t&e)===e),[t]),a=Dt((e=>n((t=>t&~e))),[n]),s=Dt((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(e&&i?3:0),c=Mt(!1),u=Mt(!1),d=Tc();return Pc((()=>{var i;if(e)return n&&o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Cc();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((()=>{n(),o.requestAnimationFrame((()=>{o.add(function(e,t){var n,r;let i=Cc();if(!e)return i.dispose;let o=!1;i.add((()=>{o=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{o||t()})),i.dispose)}(e,r))}))})),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(){var e;u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.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 Qu(){return"undefined"!=typeof window}function Yu(e){return Zu(e)?(e.nodeName||"").toLowerCase():"#document"}function Xu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ju(e){var t;return null==(t=(Zu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Zu(e){return!!Qu()&&(e instanceof Node||e instanceof Xu(e).Node)}function ed(e){return!!Qu()&&(e instanceof Element||e instanceof Xu(e).Element)}function td(e){return!!Qu()&&(e instanceof HTMLElement||e instanceof Xu(e).HTMLElement)}function nd(e){return!(!Qu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Xu(e).ShadowRoot)}function rd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=cd(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function id(e){return["table","td","th"].includes(Yu(e))}function od(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Ic){return!1}}))}function ad(e){const t=sd(),n=ed(e)?cd(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 sd(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ld(e){return["html","body","#document"].includes(Yu(e))}function cd(e){return Xu(e).getComputedStyle(e)}function ud(e){return ed(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dd(e){if("html"===Yu(e))return e;const t=e.assignedSlot||e.parentNode||nd(e)&&e.host||Ju(e);return nd(t)?t.host:t}function pd(e){const t=dd(e);return ld(t)?e.ownerDocument?e.ownerDocument.body:e.body:td(t)&&rd(t)?t:pd(t)}function hd(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=pd(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Xu(i);if(o){const e=fd(a);return t.concat(a,a.visualViewport||[],rd(i)?i:[],e&&n?hd(e):[])}return t.concat(i,hd(i,[],n))}function fd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const vd=Math.min,md=Math.max,gd=Math.round,yd=Math.floor,_d=e=>({x:e,y:e}),wd={left:"right",right:"left",bottom:"top",top:"bottom"},bd={start:"end",end:"start"};function xd(e,t,n){return md(e,vd(t,n))}function kd(e,t){return"function"==typeof e?e(t):e}function Sd(e){return e.split("-")[0]}function Ed(e){return e.split("-")[1]}function Cd(e){return"x"===e?"y":"x"}function Td(e){return"y"===e?"height":"width"}function Pd(e){return["top","bottom"].includes(Sd(e))?"y":"x"}function Rd(e){return Cd(Pd(e))}function Ad(e){return e.replace(/start|end/g,(e=>bd[e]))}function Od(e){return e.replace(/left|right|bottom|top/g,(e=>wd[e]))}function Ld(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 Md(e,t,n){let{reference:r,floating:i}=e;const o=Pd(t),a=Rd(t),s=Td(a),l=Sd(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Ed(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Fd(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:p=!1,padding:h=0}=kd(t,e),f=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}}(h),v=s[p?"floating"===d?"reference":"floating":d],m=Ld(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="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)),_=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=Ld(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-w.top+f.top)/_.y,bottom:(w.bottom-m.bottom+f.bottom)/_.y,left:(m.left-w.left+f.left)/_.x,right:(w.right-m.right+f.right)/_.x}}function Id(e){const t=cd(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=td(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=gd(n)!==o||gd(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Dd(e){return ed(e)?e:e.contextElement}function Gd(e){const t=Dd(e);if(!td(t))return _d(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Id(t);let a=(o?gd(n.width):n.width)/r,s=(o?gd(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Nd=_d(0);function $d(e){const t=Xu(e);return sd()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Nd}function Hd(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Dd(e);let a=_d(1);t&&(r?ed(r)&&(a=Gd(r)):a=Gd(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Xu(e))&&t}(o,n,r)?$d(o):_d(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=Xu(o),t=r&&ed(r)?Xu(r):r;let n=e,i=fd(n);for(;i&&r&&t!==n;){const e=Gd(i),t=i.getBoundingClientRect(),r=cd(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=Xu(i),i=fd(n)}}return Ld({width:u,height:d,x:l,y:c})}function Wd(e,t){const n=ud(e).scrollLeft;return t?t.left+n:Hd(Ju(e)).left+n}function Ud(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Wd(e,r)),y:r.top+t.scrollTop}}function jd(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Xu(e),r=Ju(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=sd();(!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=Ju(e),n=ud(e),r=e.ownerDocument.body,i=md(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=md(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Wd(e);const s=-n.scrollTop;return"rtl"===cd(r).direction&&(a+=md(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Ju(e));else if(ed(t))r=function(e,t){const n=Hd(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=td(e)?Gd(e):_d(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=$d(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ld(r)}function Bd(e,t){const n=dd(e);return!(n===t||!ed(n)||ld(n))&&("fixed"===cd(n).position||Bd(n,t))}function zd(e,t,n){const r=td(t),i=Ju(t),o="fixed"===n,a=Hd(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=_d(0);if(r||!r&&!o)if(("body"!==Yu(t)||rd(i))&&(s=ud(t)),r){const e=Hd(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Wd(i));const c=!i||r||o?_d(0):Ud(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function qd(e){return"static"===cd(e).position}function Kd(e,t){if(!td(e)||"fixed"===cd(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ju(e)===n&&(n=n.ownerDocument.body),n}function Vd(e,t){const n=Xu(e);if(od(e))return n;if(!td(e)){let t=dd(e);for(;t&&!ld(t);){if(ed(t)&&!qd(t))return t;t=dd(t)}return n}let r=Kd(e,t);for(;r&&id(r)&&qd(r);)r=Kd(r,t);return r&&ld(r)&&qd(r)&&!ad(r)?n:r||function(e){let t=dd(e);for(;td(t)&&!ld(t);){if(ad(t))return t;if(od(t))return null;t=dd(t)}return null}(e)||n}const Qd={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=Ju(r),s=!!t&&od(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=_d(1);const u=_d(0),d=td(r);if((d||!d&&!o)&&(("body"!==Yu(r)||rd(a))&&(l=ud(r)),td(r))){const e=Hd(r);c=Gd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||o?_d(0):Ud(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:Ju,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?od(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=hd(e,[],!1).filter((e=>ed(e)&&"body"!==Yu(e))),i=null;const o="fixed"===cd(e).position;let a=o?dd(e):e;for(;ed(a)&&!ld(a);){const t=cd(a),n=ad(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||rd(a)&&!n&&Bd(e,a))?r=r.filter((e=>e!==a)):i=t,a=dd(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=jd(t,n,i);return e.top=md(r.top,e.top),e.right=vd(r.right,e.right),e.bottom=vd(r.bottom,e.bottom),e.left=md(r.left,e.left),e}),jd(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Vd,getElementRects:async function(e){const t=this.getOffsetParent||Vd,n=this.getDimensions,r=await n(e.floating);return{reference:zd(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}=Id(e);return{width:t,height:n}},getScale:Gd,isElement:ed,isRTL:function(e){return"rtl"===cd(e).direction}};function Yd(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=Dd(e),u=i||o?[...c?hd(c):[],...hd(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=Ju(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:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h={rootMargin:-yd(u)+"px "+-yd(i.clientWidth-(c+d))+"px "+-yd(i.clientHeight-(u+p))+"px "+-yd(c)+"px",threshold:md(0,vd(1,l))||1};let f=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{r=new IntersectionObserver(v,{...h,root:i.ownerDocument})}catch(Ic){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let v=l?Hd(e):null;return l&&function t(){const r=Hd(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Xd=Fd,Jd=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=Sd(n),s=Ed(n),l="y"===Pd(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=kd(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*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}}}}},Zd=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}=kd(e,t),c={x:n,y:r},u=await Fd(t,l),d=Pd(Sd(i)),p=Cd(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=xd(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";f=xd(f+u["y"===d?"top":"left"],f,f-u[e])}const v=s.fn({...t,[p]:h,[d]:f});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:a}}}}}},ep=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:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...m}=kd(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const g=Sd(i),y=Pd(s),_=Sd(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(_||!v?[Od(s)]:function(e){const t=Od(e);return[Ad(e),t,Ad(t)]}(s)),x="none"!==f;!p&&x&&b.push(...function(e,t,n,r){const i=Ed(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[]}}(Sd(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(Ad)))),o}(s,v,f,w));const k=[s,...b],S=await Fd(t,m),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ed(e),i=Rd(e),o=Td(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Od(a)),[a,Od(a)]}(i,a,w);E.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every((e=>e<=0))){var T,P;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(P=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(h){case"bestFit":{var R;const e=null==(R=C.filter((e=>{if(x){const t=Pd(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:R[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},tp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=kd(e,t),u=await Fd(t,c),d=Sd(i),p=Ed(i),h="y"===Pd(i),{width:f,height:v}=o.floating;let m,g;"top"===d||"bottom"===d?(m=d,g=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,m="end"===p?"top":"bottom");const y=v-u.top-u.bottom,_=f-u.left-u.right,w=vd(v-u[m],y),b=vd(f-u[g],_),x=!t.middlewareData.shift;let k=w,S=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=_),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),x&&!p){const e=md(u.left,0),t=md(u.right,0),n=md(u.top,0),r=md(u.bottom,0);h?S=f-2*(0!==e||0!==t?e+t:md(u.left,u.right)):k=v-2*(0!==n||0!==r?n+r:md(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return f!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}},np=(e,t,n)=>{const r=new Map,i={platform:Qd,...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}=Md(c,r,l),p=r,h={},f=0;for(let v=0;v<s.length;v++){const{name:n,fn:o}=s[v],{x:m,y:g,data:y,reset:_}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=g?g:d,h={...h,[n]:{...h[n],...y}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),({x:u,y:d}=Md(c,p,l))),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};var rp="undefined"!=typeof document?Lt:Ot;function ip(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(!ip(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)&&!ip(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function op(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ap(e,t){const n=op(e);return Math.round(t*n)/n}function sp(e){const t=Mt(e);return rp((()=>{t.current=e})),t}const lp=(e,t)=>({...Jd(e),options:[e,t]}),cp=(e,t)=>({...ep(e),options:[e,t]}),up=(e,t)=>({...tp(e),options:[e,t]}),dp={...Kr},pp=dp.useInsertionEffect||(e=>e());function hp(e){const t=Mt((()=>{}));return pp((()=>{t.current=e})),Dt((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 fp="undefined"!=typeof document?Lt:Ot;let vp=!1,mp=0;const gp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+mp++;const yp=dp.useId||function(){const[e,t]=Rt((()=>vp?gp():void 0));return fp((()=>{null==e&&t(gp())}),[]),Ot((()=>{vp=!0}),[]),e};const _p=at(null),wp=at(null),bp="data-floating-ui-focusable";function xp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=yp(),o=Mt({}),[a]=Rt((()=>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!=((null==(l=Gt(_p))?void 0:l.id)||null);var l;const[c,u]=Rt(r.reference),d=hp(((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)})),p=It((()=>({setPositionReference:u})),[]),h=It((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return It((()=>({dataRef:o,open:t,onOpenChange:d,elements:h,events:a,floatingId:i,refs:p})),[t,d,h,a,i,p])}function kp(e){void 0===e&&(e={});const{nodeId:t}=e,n=xp({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Rt(null),[s,l]=Rt(null),c=(null==i?void 0:i.domReference)||o,u=Mt(null),d=Gt(wp);fp((()=>{c&&(u.current=c)}),[c]);const p=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]=Rt({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=Rt(r);ip(p,r)||h(r);const[f,v]=Rt(null),[m,g]=Rt(null),y=Dt((e=>{e!==x.current&&(x.current=e,v(e))}),[]),_=Dt((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=o||f,b=a||m,x=Mt(null),k=Mt(null),S=Mt(u),E=null!=l,C=sp(l),T=sp(i),P=sp(c),R=Dt((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),np(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!ip(S.current,t)&&(S.current=t,Gr((()=>{d(t)})))}))}),[p,t,n,T,P]);rp((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const A=Mt(!1);rp((()=>(A.current=!0,()=>{A.current=!1})),[]),rp((()=>{if(w&&(x.current=w),b&&(k.current=b),w&&b){if(C.current)return C.current(w,b,R);R()}}),[w,b,R,C,E]);const O=It((()=>({reference:x,floating:k,setReference:y,setFloating:_})),[y,_]),L=It((()=>({reference:w,floating:b})),[w,b]),M=It((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=ap(L.floating,u.x),r=ap(L.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...op(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,L.floating,u.x,u.y]);return It((()=>({...u,update:R,refs:O,elements:L,floatingStyles:M})),[u,R,O,L,M])}({...e,elements:{...i,...s&&{reference:s}}}),h=Dt((e=>{const t=ed(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),f=Dt((e=>{(ed(e)||null===e)&&(u.current=e,a(e)),(ed(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ed(e))&&p.refs.setReference(e)}),[p.refs]),v=It((()=>({...p.refs,setReference:f,setPositionReference:h,domReference:u})),[p.refs,f,h]),m=It((()=>({...p.elements,domReference:c})),[p.elements,c]),g=It((()=>({...p,...r,refs:v,elements:m,nodeId:t})),[p,v,m,t,r]);return fp((()=>{r.dataRef.current.floatingContext=g;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=g)})),It((()=>({...p,context:g,refs:v,elements:m})),[p,v,m,g])}const Sp="active",Ep="selected";function Cp(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[Sp]:t,[Ep]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[bp]:""},...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&&[Sp,Ep].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 Tp(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function Pp(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=hp(s),c=Mt(!1),u=Mt(null),d=Mt(null);Ot((()=>{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(),Gr((()=>{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 p=It((()=>({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)&&Gr((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return It((()=>i?{floating:p}:{}),[i,p])}let Rp=at({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Rp.displayName="FloatingContext";let Ap=at(null);Ap.displayName="PlacementContext";function Op({children:e,enabled:t=!0}){let[n,r]=Rt(null),[i,o]=Rt(0),a=Mt(null),[s,l]=Rt(null);!function(e){Pc((()=>{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:p=0,padding:h=0,inner:f}=function(e,t){var n,r,i;let o=Lp(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=Lp(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=Lp(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[v,m="center"]=u.split(" ");Pc((()=>{c&&o(0)}),[c]);let{refs:g,floatingStyles:y,context:_}=kp({open:c,placement:"selection"===v?"center"===m?"bottom":`bottom-${m}`:"center"===m?`${v}`:`${v}-${m}`,strategy:"absolute",transform:!1,middleware:[lp({mainAxis:"selection"===v?0:d,crossAxis:p}),(k={padding:h},{...Zd(k),options:[k,S]}),"selection"!==v&&cp({padding:h}),"selection"===v&&f?(x={...f,padding:h,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:h,onFallbackChange(e){var t,n;if(!e)return;let r=_.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=_.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}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=kd(x,e),{rects:u,elements:{floating:d}}=e,p=t.current[o],h=(null==l?void 0:l.current)||d,f=d.clientTop||h.clientTop,v=0!==d.clientTop,m=0!==h.clientTop,g=d===h;if(!p)return{};const y={...e,...await lp(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-i).fn(e)},_=await Xd(Tp(y,h.scrollHeight+f+d.clientTop),c),w=await Xd(y,{...c,elementContext:"reference"}),b=md(0,_.top),k=y.y+b,S=h.scrollHeight>h.clientHeight,E=(S?e=>e:gd)(md(0,h.scrollHeight+(v&&g||m?2*f:0)-b-md(0,_.bottom)));if(h.style.maxHeight=E+"px",h.scrollTop=b,r){const e=S&&h.offsetHeight<p.offsetHeight*a-1||w.top>=-s||w.bottom>=-s;Gr((()=>r(e)))}return n&&(n.current=await Xd(Tp({...y,y:k},h.offsetHeight+f+d.clientTop),c)),{y:k}}}):null,up({padding:h,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:Yd}),[w=v,b=m]=_.placement.split("-");var x,k,S;"selection"===v&&(w="selection");let E=It((()=>({anchor:[w,b].filter(Boolean).join(" ")})),[w,b]),C=Pp(_,{overflowRef:a,onChange:o}),{getReferenceProps:T,getFloatingProps:P}=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=Dt((t=>Cp(t,e,"reference")),t),o=Dt((t=>Cp(t,e,"floating")),n),a=Dt((t=>Cp(t,e,"item")),r);return It((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([C]),R=Ac((e=>{l(e),g.setFloating(e)}));return De(Ap.Provider,{value:r},De(Rp.Provider,{value:{setFloating:R,setReference:g.setReference,styles:y,getReferenceProps:T,getFloatingProps:P,slot:E}},e))}function Lp(e,t,n=void 0){let r=Tc(),i=Ac(((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=Fp(e,t);return[i,n=>{let o=Mp(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=Fp(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=It((()=>i(e,t)[0]),[e,t]),[a=o,s]=Rt();return Pc((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function Mp(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,...Mp(r)]:[n]}return[]}function Fp(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 Ip=at(null);Ip.displayName="OpenClosedContext";var Dp=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Dp||{});function Gp(){return Gt(Ip)}function Np({value:e,children:t}){return qr.createElement(Ip.Provider,{value:e},t)}var $p,Hp=(($p=Hp||{})[$p.First=0]="First",$p[$p.Previous=1]="Previous",$p[$p.Next=2]="Next",$p[$p.Last=3]="Last",$p[$p.Specific=4]="Specific",$p[$p.Nothing=5]="Nothing",$p);function Wp(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 Up(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Kr&&(e=>e.useSyncExternalStore)(Kr)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=Rt(kc.isHandoffComplete);return t&&!1===kc.isHandoffComplete&&n(!1),Ot((()=>{!0!==t&&n(!0)}),[t]),Ot((()=>kc.handoff()),[]),!e&&t}let jp=at(!1);function Bp(e){let t=Gt(jp),n=Gt(Vp),r=Gu(e),[i,o]=Rt((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(kc.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 Ot((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),Ot((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}let zp=$e,qp=Bc((function(e,t){let n=e,r=Mt(null),i=Xc(function(e,t=!0){return Object.assign(e,{[Yc]:t})}((e=>{r.current=e})),t),o=Gu(r),a=Bp(r),[s]=Rt((()=>{var e;return kc.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Gt(Qp),c=Up();Pc((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),Pc((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=Ac(e),n=Mt(!1);Ot((()=>(n.current=!1,()=>{n.current=!0,Ec((()=>{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)))}));let u=$c();return c&&a&&s?ur(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:zp,name:"Portal"}),s):null}));let Kp=$e,Vp=at(null);let Qp=at(null),Yp=Bc((function(e,t){let n=Xc(t),{enabled:r=!0,...i}=e,o=$c();return r?qr.createElement(qp,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:zp,name:"Portal"})})),Xp=Bc((function(e,t){let{target:n,...r}=e,i={ref:Xc(t)},o=$c();return qr.createElement(Vp.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Kp,name:"Popover.Group"}))})),Jp=Object.assign(Yp,{Group:Xp});function Zp(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:oh)!==$e||1===qr.Children.count(e.children)}let eh=at(null);eh.displayName="TransitionContext";var th=(e=>(e.Visible="visible",e.Hidden="hidden",e))(th||{});let nh=at(null);function rh(e){return"children"in e?rh(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ih(e,t){let n=Rc(e),r=Mt([]),i=function(){let e=Mt(!1);return Pc((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),o=Tc(),a=Ac(((e,t=Nc.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Fc(t,{[Nc.Unmount](){r.current.splice(a,1)},[Nc.Hidden](){r.current[a].state="hidden"}}),o.microTask((()=>{var e;!rh(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=Ac((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Nc.Unmount)})),l=Mt([]),c=Mt(Promise.resolve()),u=Mt({enter:[],leave:[]}),d=Ac(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Ac(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return It((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}nh.displayName="NestingContext";let oh=$e,ah=Gc.RenderStrategy;let sh=Bc((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=Mt(null),s=Xc(...Zp(e)?[a,t]:null===t?[]:[t]);Up();let l=Gp();if(void 0===n&&null!==l&&(n=(l&Dp.Open)===Dp.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=Rt(n?"visible":"hidden"),d=ih((()=>{n||u("hidden")})),[p,h]=Rt(!0),f=Mt([n]);Pc((()=>{!1!==p&&f.current[f.current.length-1]!==n&&(f.current.push(n),h(!1))}),[f,n]);let v=It((()=>({show:n,appear:r,initial:p})),[n,r,p]);Pc((()=>{n?u("visible"):!rh(d)&&null!==a.current&&u("hidden")}),[n,d]);let m={unmount:i},g=Ac((()=>{var t;p&&h(!1),null==(t=e.beforeEnter)||t.call(e)})),y=Ac((()=>{var t;p&&h(!1),null==(t=e.beforeLeave)||t.call(e)})),_=$c();return qr.createElement(nh.Provider,{value:d},qr.createElement(eh.Provider,{value:v},_({ourProps:{...m,as:$e,children:qr.createElement(lh,{ref:s,...m,...o,beforeEnter:g,beforeLeave:y})},theirProps:{},defaultTag:$e,features:ah,visible:"visible"===c,name:"Transition"})))})),lh=Bc((function(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:p,leave:h,leaveFrom:f,leaveTo:v,...m}=e,[g,y]=Rt(null),_=Mt(null),w=Zp(e),b=Xc(...w?[_,t,y]:null===t?[]:[t]),x=null==(n=m.unmount)||n?Nc.Unmount:Nc.Hidden,{show:k,appear:S,initial:E}=function(){let e=Gt(eh);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,T]=Rt(k?"visible":"hidden"),P=function(){let e=Gt(nh);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:R,unregister:A}=P;Pc((()=>R(_)),[R,_]),Pc((()=>{if(x===Nc.Hidden&&_.current)return k&&"visible"!==C?void T("visible"):Fc(C,{hidden:()=>A(_),visible:()=>R(_)})}),[C,_,R,A,k,x]);let O=Up();Pc((()=>{if(w&&O&&"visible"===C&&null===_.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[_,C,O,w]);let L=E&&!S,M=S&&k&&E,F=Mt(!1),I=ih((()=>{F.current||(T("hidden"),A(_))}),P),D=Ac((e=>{F.current=!0;let t=e?"enter":"leave";I.onStart(_,t,(e=>{"enter"===e?null==o||o():"leave"===e&&(null==s||s())}))})),G=Ac((e=>{let t=e?"enter":"leave";F.current=!1,I.onStop(_,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())})),"leave"===t&&!rh(I)&&(T("hidden"),A(_))}));Ot((()=>{w&&i||(D(k),G(k))}),[k,w,i]);let N=(()=>!(!i||!w||!O||L))(),[,$]=Vu(N,g,k,{start:D,end:G}),H=zc({ref:b,className:(null==(r=Mc(m.className,M&&c,M&&u,$.enter&&c,$.enter&&$.closed&&u,$.enter&&!$.closed&&d,$.leave&&h,$.leave&&!$.closed&&f,$.leave&&$.closed&&v,!$.transition&&k&&p))?void 0:r.trim())||void 0,...Ku($)}),W=0;"visible"===C&&(W|=Dp.Open),"hidden"===C&&(W|=Dp.Closed),$.enter&&(W|=Dp.Opening),$.leave&&(W|=Dp.Closing);let U=$c();return qr.createElement(nh.Provider,{value:I},qr.createElement(Np,{value:W},U({ourProps:H,theirProps:m,defaultTag:oh,features:ah,visible:"visible"===C,name:"Transition.Child"})))})),ch=Bc((function(e,t){let n=null!==Gt(eh),r=null!==Gp();return qr.createElement(qr.Fragment,null,!n&&r?qr.createElement(sh,{ref:t,...e}):qr.createElement(lh,{ref:t,...e}))})),uh=Object.assign(sh,{Child:ch,Root:sh});let dh=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ph(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 dh.test(a)&&(a=a.replace(dh,"")),a}function hh(e){let t=Mt(""),n=Mt("");return Ac((()=>{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():ph(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return ph(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var fh=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fh||{}),vh=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(vh||{}),mh=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(mh||{});function gh(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=Ou(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}let yh={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===Hp.Nothing)return{...s,activeItemIndex:null};if(t.focus===Hp.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===Hp.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=Wp(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[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,activeItemIndex:a}}}}else if(t.focus===Hp.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=Wp(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[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,activeItemIndex:i}}}}let l=gh(e),c=Wp(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=gh(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=gh(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.itemsElement===t.element?e:{...e,itemsElement:t.element}},_h=at(null);function wh(e){let t=Gt(_h);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wh),t}return t}function bh(e,t){return Fc(t.type,yh,e,t)}_h.displayName="MenuContext";let xh=$e;let kh=Gc.RenderStrategy|Gc.Static;let Sh=$e;let Eh=Bc((function(e,t){let{__demoMode:n=!1,...r}=e,i=At(bh,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:a,buttonElement:s},l]=i,c=Xc(t);Du(0===o,[s,a],((e,t)=>{l({type:1}),Tu(t,Cu.Loose)||(e.preventDefault(),null==s||s.focus())}));let u=Ac((()=>{l({type:1})})),d=It((()=>({open:0===o,close:u})),[o,u]),p={ref:c},h=$c();return qr.createElement(Op,null,qr.createElement(_h.Provider,{value:i},qr.createElement(Np,{value:Fc(o,{0:Dp.Open,1:Dp.Closed})},h({ourProps:p,theirProps:r,slot:d,defaultTag:xh,name:"Menu"}))))})),Ch=Bc((function(e,t){var n;let r=$t(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=wh("Menu.Button"),u=Gt(Rp).getReferenceProps,d=Xc(t,Gt(Rp).setReference,Ac((e=>c({type:7,element:e})))),p=Ac((e=>{switch(e.key){case nu.Space:case nu.Enter:case nu.ArrowDown:e.preventDefault(),e.stopPropagation(),Gr((()=>c({type:0}))),c({type:2,focus:Hp.First});break;case nu.ArrowUp:e.preventDefault(),e.stopPropagation(),Gr((()=>c({type:0}))),c({type:2,focus:Hp.Last})}})),h=Ac((e=>{if(e.key===nu.Space)e.preventDefault()})),f=Ac((e=>{var t;if(Qc(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(Gr((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:v,focusProps:m}=wc({autoFocus:a}),{isHovered:g,hoverProps:y}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=Rt(!1),s=Mt({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Ot(_c,[]);let{hoverProps:l,triggerHoverEnd:c}=It((()=>{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=>{vc&&"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||vc||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 Ot((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:_,pressProps:w}=function({disabled:e=!1}={}){let t=Mt(null),[n,r]=Rt(!1),i=Tc(),o=Ac((()=>{t.current=null,r(!1),i.dispose()})),a=Ac((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Sc(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}}}({disabled:o}),b=It((()=>({open:0===l.menuState,active:_||0===l.menuState,disabled:o,hover:g,focus:v,autofocus:a})),[l,g,v,_,o,a]),x=jc(u(),{ref:d,id:i,type:Nu(e,l.buttonElement),"aria-haspopup":"menu","aria-controls":null==(n=l.itemsElement)?void 0:n.id,"aria-expanded":0===l.menuState,disabled:o||void 0,autoFocus:a,onKeyDown:p,onKeyUp:h,onClick:f},m,y,w);return $c()({ourProps:x,theirProps:s,slot:b,defaultTag:"button",name:"Menu.Button"})})),Th=Bc((function(e,t){var n,r;let i=$t(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return It((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[p,h]=wh("Menu.Items"),[f,v]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Gt(Ap),n=It((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);Pc((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=Gt(Rp);return It((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),m=function(){let{getFloatingProps:e,slot:t}=Gt(Rp);return Dt(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[g,y]=Rt(null),_=Xc(t,d?f:null,Ac((e=>h({type:8,element:e}))),y),w=Gu(p.itemsElement);d&&(s=!0);let b=Gp(),[x,k]=Vu(c,g,null!==b?(b&Dp.Open)===Dp.Open:0===p.menuState);!function(e,t,n){let r=Rc((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));Ot((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=Cc();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])}(x,p.buttonElement,(()=>{h({type:1})})),Uu(!p.__demoMode&&(l&&0===p.menuState),w),function(e,{allowed:t,disallowed:n}={}){let r=pu(e,"inert-others");Pc((()=>{var e,i;if(!r)return;let o=Cc();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(vu(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=Sc(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(vu(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!p.__demoMode&&(l&&0===p.menuState),{allowed:Dt((()=>[p.buttonElement,p.itemsElement]),[p.buttonElement,p.itemsElement])});let S=!function(e,t){let n=Mt({left:0,top:0});if(Pc((()=>{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!==p.menuState,p.buttonElement)&&x;Ot((()=>{let e=p.itemsElement;e&&0===p.menuState&&e!==(null==w?void 0:w.activeElement)&&e.focus({preventScroll:!0})}),[p.menuState,p.itemsElement,w]),function(e,{container:t,accept:n,walk:r}){let i=Mt(n),o=Mt(r);Ot((()=>{i.current=n,o.current=r}),[n,r]),Pc((()=>{if(!t||!e)return;let n=Sc(t);if(!n)return;let r=i.current,a=o.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,i,o])}(0===p.menuState,{container:p.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let E=Tc(),C=Ac((e=>{var t,n,r;switch(E.dispose(),e.key){case nu.Space:if(""!==p.searchQuery)return e.preventDefault(),e.stopPropagation(),h({type:3,value:e.key});case nu.Enter:if(e.preventDefault(),e.stopPropagation(),h({type:1}),null!==p.activeItemIndex){let{dataRef:e}=p.items[p.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}Pu(p.buttonElement);break;case nu.ArrowDown:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Next});case nu.ArrowUp:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Previous});case nu.Home:case nu.PageUp:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.First});case nu.End:case nu.PageDown:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Last});case nu.Escape:e.preventDefault(),e.stopPropagation(),Gr((()=>h({type:1}))),null==(r=p.buttonElement)||r.focus({preventScroll:!0});break;case nu.Tab:e.preventDefault(),e.stopPropagation(),Gr((()=>h({type:1}))),Lu(p.buttonElement,e.shiftKey?xu.Previous:xu.Next);break;default:1===e.key.length&&(h({type:3,value:e.key}),E.setTimeout((()=>h({type:4})),350))}})),T=Ac((e=>{if(e.key===nu.Space)e.preventDefault()})),P=It((()=>({open:0===p.menuState})),[p.menuState]),R=jc(d?m():{},{"aria-activedescendant":null===p.activeItemIndex||null==(n=p.items[p.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=p.buttonElement)?void 0:r.id,id:o,onKeyDown:C,onKeyUp:T,role:"menu",tabIndex:0===p.menuState?0:void 0,ref:_,style:{...u.style,...v,"--button-width":su(p.buttonElement,!0).width},...Ku(k)}),A=$c();return qr.createElement(Jp,{enabled:!!s&&(e.static||x)},A({ourProps:R,theirProps:u,slot:P,defaultTag:"div",features:kh,visible:S,name:"Menu.Items"}))})),Ph=Bc((function(e,t){let n=$t(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=wh("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=Mt(null),u=Xc(t,c);Pc((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return Cc().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=hh(c),p=Mt({disabled:i,domRef:c,get textValue(){return d()}});Pc((()=>{p.current.disabled=i}),[p,i]),Pc((()=>(s({type:5,id:r,dataRef:p}),()=>s({type:6,id:r}))),[p,r]);let h=Ac((()=>{s({type:1})})),f=Ac((e=>{if(i)return e.preventDefault();s({type:1}),Pu(a.buttonElement)})),v=Ac((()=>{if(i)return s({type:2,focus:Hp.Nothing});s({type:2,focus:Hp.Specific,id:r})})),m=function(){let e=Mt([-1,-1]);return{wasMoved(t){let n=ju(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=ju(t)}}}(),g=Ac((e=>{m.update(e),!i&&(l||s({type:2,focus:Hp.Specific,id:r,trigger:0}))})),y=Ac((e=>{m.wasMoved(e)&&(i||l||s({type:2,focus:Hp.Specific,id:r,trigger:0}))})),_=Ac((e=>{m.wasMoved(e)&&(i||l&&s({type:2,focus:Hp.Nothing}))})),[w,b]=ou(),[x,k]=function(){let[e,t]=Rt([]);return[e.length>0?e.join(" "):void 0,It((()=>function(e){let n=Ac((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=It((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return qr.createElement(Jc.Provider,{value:r},e.children)}),[t])]}(),S=It((()=>({active:l,focus:l,disabled:i,close:h})),[l,i,h]),E={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":w,"aria-describedby":x,disabled:void 0,onClick:f,onFocus:v,onPointerEnter:g,onMouseEnter:g,onPointerMove:y,onMouseMove:y,onPointerLeave:_,onMouseLeave:_},C=$c();return qr.createElement(b,null,qr.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:Sh,name:"Menu.Item"})))})),Rh=Bc((function(e,t){let[n,r]=ou(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=$c();return qr.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),Ah=Bc((function(e,t){let n=$t(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=iu();Pc((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return $c()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),Oh=Bc((function(e,t){let n=e,r={ref:t,role:"separator"};return $c()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),Lh=Object.assign(Eh,{Button:Ch,Items:Th,Item:Ph,Section:Rh,Heading:Ah,Separator:Oh});function Mh({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Fh=Yn(Mh);function Ih({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Dh=Yn(Ih),Gh=e=>Nl(Uh,{children:$l(Lh,{as:"div",children:[Nl("div",{children:$l(Ch,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[Nl("span",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Open options"}),Nl(Fh,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),Nl(Th,{transition:!0,className:"right-45 w-30",css:{position:"fixed",zIndex:"10",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--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)","--tw-ring-color":"rgb(0 0 0 / 0.05)",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed]":{"--tw-scale-x":".95","--tw-scale-y":".95",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"},"&[data-leave]":{transitionDuration:"75ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}},children:e.items.map(((t,n)=>Nl(Ph,{children:Nl("button",{type:"button",css:{display:"block",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},n)},n)))})]})}),Nh=e=>e&&new Date(e).toLocaleDateString("en-AU")||void 0,$h=e=>void 0!==e&&`$ ${Number(e).toLocaleString("en-US")}`||void 0,Hh=e=>$l(Uh,{children:[Nh(e.value),Nl("br",{}),Nh(e.value)]}),Wh=e=>{const[t,n]=Rt(!1);return $l(Uh,{css:{position:"relative"},children:[Nl(uh,{show:t,children:Nl("div",{css:{position:"absolute",bottom:"3rem",display:"flex",height:"2rem",width:"4.313rem",flexDirection:"row",alignItems:"flex-start",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(17 24 39 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",opacity:"0.9","--tw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","&[data-closed]":{opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"},"&[data-leave]":{transitionDuration:"500ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"}},children:Nl("p",{css:{order:"0",height:"1rem",width:"2.813rem",flex:"none",flexGrow:"0",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",fontStyle:"normal","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},children:"Copied"})})}),Nl("button",{onClick:async()=>{await(async e=>{await navigator.clipboard.writeText(e)})(e.value),n(!0),setTimeout((()=>{n(!1)}),3e3)},type:"button",css:{display:"block",flexShrink:"1",borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))"},"&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},children:e.value})]})},Uh=Fl.td`
1
+ var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,"access private method"),n),__privateWrapper=(e,t,n,r)=>({set _(r){__privateSet(e,t,r,n)},get _(){return __privateGet(e,t,r)}});!function(){"use strict";var e,t,n,r,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w,b,x,k,S,E,C,T,P,R,A,O,L,M,F,I,D,G,N,$,H,W,U,j,B,z,q,K,V,Q,Y,X,J,Z,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,pe,he,fe,ve,me,ge,ye,_e,we,be,xe,ke,Se,Ee,Ce,Te,Pe,Re,Ae={},Oe=[],Le=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Me=Array.isArray;function Fe(e,t){for(var n in t)e[n]=t[n];return e}function Ie(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function De(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?_e.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 Ge(e,a,r,i,null)}function Ge(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?++be:i,__i:-1,__u:0};return null==i&&null!=we.vnode&&we.vnode(o),o}function Ne(){return{current:null}}function $e(e){return e.children}function He(e,t){this.props=e,this.context=t}function We(e,t){if(null==t)return e.__?We(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?We(e):null}function Ue(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 Ue(e)}}function je(e){(!e.__d&&(e.__d=!0)&&xe.push(e)&&!Be.__r++||ke!==we.debounceRendering)&&((ke=we.debounceRendering)||Se)(Be)}function Be(){var e,t,n,r,i,o,a,s;for(xe.sort(Ee);e=xe.shift();)e.__d&&(t=xe.length,r=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=Fe({},i)).__v=i.__v+1,we.vnode&&we.vnode(r),Je(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?We(i):o,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,Ze(a,r,s),r.__e!=o&&Ue(r)),xe.length>t&&xe.sort(Ee));Be.__r=0}function ze(e,t,n,r,i,o,a,s,l,c,u){var d,p,h,f,v,m=r&&r.__k||Oe,g=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++)null!=(i=t[r])&&"boolean"!=typeof i&&"function"!=typeof i?(a=r+d,(i=e.__k[r]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Ge(null,i,null,null,null):Me(i)?Ge($e,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Ge(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,-1!==(s=i.__i=Ve(i,n,a,u))&&(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?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=We(o)),tt(o,o))}(n,t,m),l=n.__d,d=0;d<g;d++)null!=(h=n.__k[d])&&(p=-1===h.__i?Ae:m[h.__i]||Ae,h.__i=d,Je(e,h,p,i,o,a,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&et(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==v&&null!=f&&(v=f),65536&h.__u||p.__k===h.__k?l=qe(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=v}function qe(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=qe(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=We(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ke(e,t){return t=t||[],null==e||"boolean"==typeof e||(Me(e)?e.some((function(e){Ke(e,t)})):t.push(e)),t}function Ve(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 Qe(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Le.test(t)?n:n+"px"}function Ye(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||Qe(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Qe(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=Ce,e.addEventListener(t,o?Pe:Te,o)):e.removeEventListener(t,o?Pe:Te,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 Xe(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=Ce++;else if(t.t<n.u)return;return n(we.event?we.event(t):t)}}}function Je(e,t,n,r,i,o,a,s,l,c){var u,d,p,h,f,v,m,g,y,_,w,b,x,k,S,E,C=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=we.__b)&&u(t);e:if("function"==typeof C)try{if(g=t.props,y="prototype"in C&&C.prototype.render,_=(u=C.contextType)&&r[u.__c],w=u?_?_.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(y?t.__c=d=new C(g,w):(t.__c=d=new He(g,w),d.constructor=C,d.render=nt),_&&_.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),y&&null==d.__s&&(d.__s=d.state),y&&null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Fe({},d.__s)),Fe(d.__s,C.getDerivedStateFromProps(g,d.__s))),h=d.props,f=d.state,d.__v=t,p)y&&null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),y&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(y&&null==C.getDerivedStateFromProps&&g!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),y&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,v)}))}if(d.context=w,d.props=g,d.__P=e,d.__e=!1,x=we.__r,k=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&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=Fe(Fe({},r),d.getChildContext())),y&&!p&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(h,f)),ze(e,Me(E=null!=u&&u.type===$e&&null==u.key?u.props.children:u)?E:[E],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||null!=o){for(t.__u|=l?160:128;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;we.__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,p,h,f,v,m=n.props,g=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((h=o[c])&&"setAttribute"in h==!!y&&(y?h.localName===y:3===h.nodeType)){e=h,o[c]=null;break}if(null==e){if(null===y)return document.createTextNode(g);e=document.createElementNS(i,y,g.is&&g),s&&(we.__m&&we.__m(t,o),s=!1),o=null}if(null===y)m===g||s&&e.data===g||(e.data=g);else{if(o=o&&_e.call(e.childNodes),m=n.props||Ae,!s&&null!=o)for(m={},c=0;c<e.attributes.length;c++)m[(h=e.attributes[c]).name]=h.value;for(c in m)if(h=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=h;else if(!(c in g)){if("value"==c&&"defaultValue"in g||"checked"==c&&"defaultChecked"in g)continue;Ye(e,c,null,h,i)}for(c in g)h=g[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?v=h:s&&"function"!=typeof h||m[c]===h||Ye(e,c,h,m[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=""),ze(e,Me(p)?p:[p],t,n,r,"foreignObject"===y?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&We(n,0),s,l),null!=o)for(c=o.length;c--;)Ie(o[c]);s||(c="value","progress"===y&&null==f?e.removeAttribute("value"):void 0!==f&&(f!==e[c]||"progress"===y&&!f||"option"===y&&f!==m[c])&&Ye(e,c,f,m[c],i),c="checked",void 0!==v&&v!==e[c]&&Ye(e,c,v,m[c],i))}return e}(n.__e,t,n,r,i,o,a,l,c);(u=we.diffed)&&u(t)}function Ze(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)et(n[r],n[++r],n[++r]);we.__c&&we.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){we.__e(n,t.__v)}}))}function et(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){we.__e(i,n)}}function tt(e,t,n){var r,i;if(we.unmount&&we.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||et(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){we.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&tt(r[i],t,n||"function"!=typeof e.type);n||Ie(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function nt(e,t,n){return this.constructor(e,n)}function rt(e,t,n){var r,i,o,a;we.__&&we.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],a=[],Je(t,e=(!r&&n||t).__k=De($e,null,[e]),i||Ae,Ae,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?_e.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),Ze(o,e,a)}function it(e,t){rt(e,t,it)}function ot(e,t,n){var r,i,o,a,s=Fe({},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?_e.call(arguments,2):n),Ge(e.type,s,r||e.key,i||e.ref,null)}function at(e,t){var n={__c:t="__cC"+Re++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,je(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function st(){return(st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}_e=Oe.slice,we={__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}},be=0,He.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Fe({},this.state),"function"==typeof e&&(e=e(Fe({},n),this.props)),e&&Fe(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),je(this))},He.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),je(this))},He.prototype.render=$e,xe=[],Se="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ee=function(e,t){return e.__v.__b-t.__v.__b},Be.__r=0,Ce=0,Te=Xe(!1),Pe=Xe(!0),Re=0;var lt=["context","children"];function ct(e){return this.getChildContext=function(){return e.context},ot(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,lt))}function ut(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=De(ct,st({},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[dt(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=De(ft,{name:c},l):r[o]=l}var u=n?De(ft,null,r):r;return De(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?it:rt)(this._vdom,this._root)}function dt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function pt(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[dt(e)]=n,this._vdom=ot(this._vdom,r),rt(this._vdom,this._root)}}function ht(){rt(this._vdom=null,this._root)}function ft(e,t){var n=this;return De("slot",st({},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 vt,mt,gt,yt,_t=0,wt=[],bt=we,xt=bt.__b,kt=bt.__r,St=bt.diffed,Et=bt.__c,Ct=bt.unmount,Tt=bt.__;function Pt(e,t){bt.__h&&bt.__h(mt,e,_t||t),_t=0;var n=mt.__H||(mt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Rt(e){return _t=1,At(qt,e)}function At(e,t,n){var r=Pt(vt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):qt(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=mt,!mt.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))};mt.u=!0;var o=mt.shouldComponentUpdate,a=mt.componentWillUpdate;mt.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)},mt.shouldComponentUpdate=i}return r.__N||r.__}function Ot(e,t){var n=Pt(vt++,3);!bt.__s&&zt(n.__H,t)&&(n.__=e,n.i=t,mt.__H.__h.push(n))}function Lt(e,t){var n=Pt(vt++,4);!bt.__s&&zt(n.__H,t)&&(n.__=e,n.i=t,mt.__h.push(n))}function Mt(e){return _t=5,It((function(){return{current:e}}),[])}function Ft(e,t,n){_t=6,Lt((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function It(e,t){var n=Pt(vt++,7);return zt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Dt(e,t){return _t=8,It((function(){return e}),t)}function Gt(e){var t=mt.context[e.__c],n=Pt(vt++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(mt)),t.props.value):e.__}function Nt(e,t){bt.useDebugValue&&bt.useDebugValue(t?t(e):e)}function $t(){var e=Pt(vt++,11);if(!e.__){for(var t=mt.__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 Ht(){for(var e;e=wt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jt),e.__H.__h.forEach(Bt),e.__H.__h=[]}catch(_u){e.__H.__h=[],bt.__e(_u,e.__v)}}bt.__b=function(e){mt=null,xt&&xt(e)},bt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Tt&&Tt(e,t)},bt.__r=function(e){kt&&kt(e),vt=0;var t=(mt=e.__c).__H;t&&(gt===mt?(t.__h=[],mt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(jt),t.__h.forEach(Bt),t.__h=[],vt=0)),gt=mt},bt.diffed=function(e){St&&St(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==wt.push(t)&&yt===bt.requestAnimationFrame||((yt=bt.requestAnimationFrame)||Ut)(Ht)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),gt=mt=null},bt.__c=function(e,t){t.some((function(e){try{e.__h.forEach(jt),e.__h=e.__h.filter((function(e){return!e.__||Bt(e)}))}catch(tu){t.some((function(e){e.__h&&(e.__h=[])})),t=[],bt.__e(tu,e.__v)}})),Et&&Et(e,t)},bt.unmount=function(e){Ct&&Ct(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{jt(e)}catch(n){t=n}})),n.__H=void 0,t&&bt.__e(t,n.__v))};var Wt="function"==typeof requestAnimationFrame;function Ut(e){var t,n=function(){clearTimeout(r),Wt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Wt&&(t=requestAnimationFrame(n))}function jt(e){var t=mt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),mt=t}function Bt(e){var t=mt;e.__c=e.__(),mt=t}function zt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function qt(e,t){return"function"==typeof t?t(e):t}class Kt extends Error{}function Vt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Kt.prototype.name="InvalidTokenError";class Qt{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Kt(`Invalid token specified: missing part #${n+1}`);let i;try{i=Vt(r)}catch(Ic){throw new Kt(`Invalid token specified: invalid base64 for part #${n+1} (${Ic.message})`)}try{return JSON.parse(i)}catch(Ic){throw new Kt(`Invalid token specified: invalid json for part #${n+1} (${Ic.message})`)}}(e):{roles:[]};return new Qt(t.roles)}}var Yt=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(){}},Xt="undefined"==typeof window||"Deno"in globalThis;function Jt(){}function Zt(e){return"number"==typeof e&&e>=0&&e!==1/0}function en(e,t){return Math.max(e+(t||0)-Date.now(),0)}function tn(e,t){return"function"==typeof e?e(t):e}function nn(e,t){return"function"==typeof e?e(t):e}function rn(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==an(a,t.options))return!1}else if(!ln(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 on(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(sn(t.options.mutationKey)!==sn(o))return!1}else if(!ln(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function an(e,t){return((null==t?void 0:t.queryKeyHashFn)||sn)(e)}function sn(e){return JSON.stringify(e,((e,t)=>pn(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function ln(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!ln(e[n],t[n]))))}function cn(e,t){if(e===t)return e;const n=dn(e)&&dn(t);if(n||pn(e)&&pn(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]=cn(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function un(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 dn(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function pn(e){if(!hn(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!hn(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function hn(e){return"[object Object]"===Object.prototype.toString.call(e)}function fn(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?cn(e,t):t}function vn(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function mn(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var gn=Symbol();function yn(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==gn?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var _n=new(r=class extends Yt{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,n),__privateSet(this,n,(e=>{if(!Xt&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var r;__privateSet(this,n,e),null==(r=__privateGet(this,t))||r.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),wn=new(s=class extends Yt{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,a),__privateSet(this,a,(e=>{if(!Xt&&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(){__privateGet(this,o)||this.setEventListener(__privateGet(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,void 0))}setEventListener(e){var t;__privateSet(this,a,e),null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,a=new WeakMap,s);function bn(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function xn(e){return Math.min(1e3*2**e,3e4)}function kn(e){return"online"!==(e??"online")||wn.isOnline()}var Sn=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function En(e){return e instanceof Sn}function Cn(e){let t,n=!1,r=0,i=!1;const o=bn(),a=()=>_n.isFocused()&&("always"===e.networkMode||wn.isOnline())&&e.canRun(),s=()=>kn(e.networkMode)&&e.canRun(),l=n=>{var r;i||(i=!0,null==(r=e.onSuccess)||r.call(e,n),null==t||t(),o.resolve(n))},c=n=>{var r;i||(i=!0,null==(r=e.onError)||r.call(e,n),null==t||t(),o.reject(n))},u=()=>new Promise((n=>{var r;t=e=>{(i||a())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,i||null==(n=e.onContinue)||n.call(e)})),d=()=>{if(i)return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var o;if(i)return;const s=e.retry??(Xt?0:3),l=e.retryDelay??xn,p="function"==typeof l?l(r,t):l,h=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);var f;!n&&h?(r++,null==(o=e.onFail)||o.call(e,r,t),(f=p,new Promise((e=>{setTimeout(e,f)}))).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{var n;i||(c(new Sn(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var Tn=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)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),Pn=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Zt(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Xt?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,c),Rn=(y=class extends Pn{constructor(e){super(),__privateAdd(this,m),__privateAdd(this,u),__privateAdd(this,d),__privateAdd(this,p),__privateAdd(this,h),__privateAdd(this,f),__privateAdd(this,v),__privateSet(this,v,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(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??__privateGet(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,h))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,p).remove(this)}setData(e,t){const n=fn(this.state.data,e,this.options);return __privateMethod(this,m,g).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){__privateMethod(this,m,g).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=__privateGet(this,h))?void 0:t.promise;return null==(n=__privateGet(this,h))||n.cancel(e),r?r.then(Jt).catch(Jt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==nn(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===gn||this.state.dataUpdateCount+this.state.errorUpdateCount===0}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||!en(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,h)&&(__privateGet(this,v)?__privateGet(this,h).cancel({revert:!0}):__privateGet(this,h).cancelRetry()),this.scheduleGc()),__privateGet(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,m,g).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(__privateGet(this,h))return __privateGet(this,h).continueRetry(),__privateGet(this,h).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:()=>(__privateSet(this,v,!0),o.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=yn(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return a(n),__privateSet(this,v,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};a(s),null==(n=this.options.behavior)||n.onFetch(s,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=s.fetchOptions)?void 0:r.meta)||__privateMethod(this,m,g).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,n,r,i;En(e)&&e.silent||__privateMethod(this,m,g).call(this,{type:"error",error:e}),En(e)||(null==(n=(t=__privateGet(this,p).config).onError)||n.call(t,e,this),null==(i=(r=__privateGet(this,p).config).onSettled)||i.call(r,this.state.data,e,this)),this.scheduleGc()};return __privateSet(this,h,Cn({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null==(n=(t=__privateGet(this,p).config).onSuccess)||n.call(t,e,this),null==(i=(r=__privateGet(this,p).config).onSettled)||i.call(r,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,m,g).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,m,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,m,g).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),__privateGet(this,h).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,v=new WeakMap,m=new WeakSet,g=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,...An(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 En(n)&&n.revert&&__privateGet(this,d)?{...__privateGet(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),Tn.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},y);function An(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:kn(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var On=(w=class extends Yt{constructor(e={}){super(),__privateAdd(this,_),this.config=e,__privateSet(this,_,new Map)}build(e,t,n){const r=t.queryKey,i=t.queryHash??an(r,t);let o=this.get(i);return o||(o=new Rn({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){__privateGet(this,_).has(e.queryHash)||(__privateGet(this,_).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,_).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,_).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Tn.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,_).get(e)}getAll(){return[...__privateGet(this,_).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>rn(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>rn(e,t))):t}notify(e){Tn.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){Tn.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){Tn.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},_=new WeakMap,w),Ln=(C=class extends Pn{constructor(e){super(),__privateAdd(this,S),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,k),this.mutationId=e.mutationId,__privateSet(this,x,e.mutationCache),__privateSet(this,b,[]),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){__privateGet(this,b).includes(e)||(__privateGet(this,b).push(e),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,b,__privateGet(this,b).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var e;return(null==(e=__privateGet(this,k))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,i,o,a,s,l,c,u,d,p,h,f,v,m,g,y,_,w;__privateSet(this,k,Cn({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,S,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,S,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,S,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const b="pending"===this.state.status,C=!__privateGet(this,k).canStart();try{if(!b){__privateMethod(this,S,E).call(this,{type:"pending",variables:e,isPaused:C}),await(null==(n=(t=__privateGet(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&&__privateMethod(this,S,E).call(this,{type:"pending",context:o,variables:e,isPaused:C})}const h=await __privateGet(this,k).start();return await(null==(a=(o=__privateGet(this,x).config).onSuccess)?void 0:a.call(o,h,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,h,e,this.state.context)),await(null==(u=(c=__privateGet(this,x).config).onSettled)?void 0:u.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,h,null,e,this.state.context)),__privateMethod(this,S,E).call(this,{type:"success",data:h}),h}catch(T){try{throw await(null==(f=(h=__privateGet(this,x).config).onError)?void 0:f.call(h,T,e,this.state.context,this)),await(null==(m=(v=this.options).onError)?void 0:m.call(v,T,e,this.state.context)),await(null==(y=(g=__privateGet(this,x).config).onSettled)?void 0:y.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(_=this.options).onSettled)?void 0:w.call(_,void 0,T,e,this.state.context)),T}finally{__privateMethod(this,S,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},b=new WeakMap,x=new WeakMap,k=new WeakMap,S=new WeakSet,E=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),Tn.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:e})}))},C);var Mn=(R=class extends Yt{constructor(e={}){super(),__privateAdd(this,T),__privateAdd(this,P),this.config=e,__privateSet(this,T,new Map),__privateSet(this,P,Date.now())}build(e,t,n){const r=new Ln({mutationCache:this,mutationId:++__privateWrapper(this,P)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=Fn(e),n=__privateGet(this,T).get(t)??[];n.push(e),__privateGet(this,T).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=Fn(e);if(__privateGet(this,T).has(n)){const r=null==(t=__privateGet(this,T).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?__privateGet(this,T).delete(n):__privateGet(this,T).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=__privateGet(this,T).get(Fn(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=__privateGet(this,T).get(Fn(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){Tn.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>on(t,e)))}findAll(e={}){return this.getAll().filter((t=>on(e,t)))}notify(e){Tn.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return Tn.batch((()=>Promise.all(e.map((e=>e.continue().catch(Jt))))))}},T=new WeakMap,P=new WeakMap,R);function Fn(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function In(e){return{onFetch:(t,n)=>{var r,i,o,a,s;const l=t.options,c=null==(o=null==(i=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:i.fetchMore)?void 0:o.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let n=!1;const r=yn(t.options,t.fetchOptions),i=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};var s;s=a,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const l=await r(a),{maxPages:c}=t.options,u=o?mn:vn;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,i,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},n=(e?Gn:Dn)(l,t);p=await i(t,n,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Dn(l,p);if(h>0&&null==e)break;p=await i(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=f}}}function Dn(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 Gn(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 Nn=(N=class{constructor(e={}){__privateAdd(this,A),__privateAdd(this,O),__privateAdd(this,L),__privateAdd(this,M),__privateAdd(this,F),__privateAdd(this,I),__privateAdd(this,D),__privateAdd(this,G),__privateSet(this,A,e.queryCache||new On),__privateSet(this,O,e.mutationCache||new Mn),__privateSet(this,L,e.defaultOptions||{}),__privateSet(this,M,new Map),__privateSet(this,F,new Map),__privateSet(this,I,0)}mount(){__privateWrapper(this,I)._++,1===__privateGet(this,I)&&(__privateSet(this,D,_n.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onFocus())}))),__privateSet(this,G,wn.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,A).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,I)._--,0===__privateGet(this,I)&&(null==(e=__privateGet(this,D))||e.call(this),__privateSet(this,D,void 0),null==(t=__privateGet(this,G))||t.call(this),__privateSet(this,G,void 0))}isFetching(e){return __privateGet(this,A).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).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=__privateGet(this,A).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(tn(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,A).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,A).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 __privateGet(this,A).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Tn.batch((()=>__privateGet(this,A).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,A).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,A);Tn.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=__privateGet(this,A),r={type:"active",...e};return Tn.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=Tn.batch((()=>__privateGet(this,A).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(Jt).catch(Jt)}invalidateQueries(e={},t={}){return Tn.batch((()=>{if(__privateGet(this,A).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=Tn.batch((()=>__privateGet(this,A).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Jt)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(Jt)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=__privateGet(this,A).build(this,t);return n.isStaleByTime(tn(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Jt).catch(Jt)}fetchInfiniteQuery(e){return e.behavior=In(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Jt).catch(Jt)}ensureInfiniteQueryData(e){return e.behavior=In(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return wn.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,A)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,L)}setDefaultOptions(e){__privateSet(this,L,e)}setQueryDefaults(e,t){__privateGet(this,M).set(sn(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,M).values()];let n={};return t.forEach((t=>{ln(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){__privateGet(this,F).set(sn(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,F).values()];let n={};return t.forEach((t=>{ln(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,L).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=an(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===gn&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,L).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,A).clear(),__privateGet(this,O).clear()}},A=new WeakMap,O=new WeakMap,L=new WeakMap,M=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,G=new WeakMap,N),$n=(ue=class extends Yt{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,$),__privateAdd(this,H),__privateAdd(this,W),__privateAdd(this,U),__privateAdd(this,j),__privateAdd(this,B),__privateAdd(this,z),__privateAdd(this,q),__privateAdd(this,K),__privateAdd(this,V),__privateAdd(this,Q),__privateAdd(this,Y),__privateAdd(this,X),__privateAdd(this,J),__privateAdd(this,Z,new Set),this.options=t,__privateSet(this,$,e),__privateSet(this,q,null),__privateSet(this,z,bn()),this.options.experimental_prefetchInRender||__privateGet(this,z).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,H).addObserver(this),Hn(__privateGet(this,H),this.options)?__privateMethod(this,ee,te).call(this):this.updateResult(),__privateMethod(this,ee,oe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Wn(__privateGet(this,H),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Wn(__privateGet(this,H),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,ee,ae).call(this),__privateMethod(this,ee,se).call(this),__privateGet(this,H).removeObserver(this)}setOptions(e,t){const n=this.options,r=__privateGet(this,H);if(this.options=__privateGet(this,$).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof nn(this.options.enabled,__privateGet(this,H)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,ee,le).call(this),__privateGet(this,H).setOptions(this.options),n._defaulted&&!un(this.options,n)&&__privateGet(this,$).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,H),observer:this});const i=this.hasListeners();i&&Un(__privateGet(this,H),r,this.options,n)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,H)===r&&nn(this.options.enabled,__privateGet(this,H))===nn(n.enabled,__privateGet(this,H))&&tn(this.options.staleTime,__privateGet(this,H))===tn(n.staleTime,__privateGet(this,H))||__privateMethod(this,ee,ne).call(this);const o=__privateMethod(this,ee,re).call(this);!i||__privateGet(this,H)===r&&nn(this.options.enabled,__privateGet(this,H))===nn(n.enabled,__privateGet(this,H))&&o===__privateGet(this,J)||__privateMethod(this,ee,ie).call(this,o)}getOptimisticResult(e){const t=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),e),n=this.createResult(t,e);return function(e,t){if(!un(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(__privateSet(this,U,n),__privateSet(this,B,this.options),__privateSet(this,j,__privateGet(this,H).state)),n}getCurrentResult(){return __privateGet(this,U)}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){__privateGet(this,Z).add(e)}getCurrentQuery(){return __privateGet(this,H)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,$).defaultQueryOptions(e),n=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return __privateMethod(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,U))))}createResult(e,t){var n;const r=__privateGet(this,H),i=this.options,o=__privateGet(this,U),a=__privateGet(this,j),s=__privateGet(this,B),l=e!==r?e.state:__privateGet(this,W),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const n=this.hasListeners(),o=!n&&Hn(e,t),a=n&&Un(e,r,t,i);(o||a)&&(d={...d,...An(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:f,status:v}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==a?void 0:a.data)&&t.select===__privateGet(this,K))u=__privateGet(this,V);else try{__privateSet(this,K,t.select),u=t.select(d.data),u=fn(null==o?void 0:o.data,u,t),__privateSet(this,V,u),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===v){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=__privateGet(this,Q))?void 0:n.state.data,__privateGet(this,Q)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,q,null)}catch(x){__privateSet(this,q,x)}void 0!==e&&(v="success",u=fn(null==o?void 0:o.data,e,t),p=!0)}__privateGet(this,q)&&(h=__privateGet(this,q),u=__privateGet(this,V),f=Date.now(),v="error");const m="fetching"===d.fetchStatus,g="pending"===v,y="error"===v,_=g&&m,w=void 0!==u,b={status:v,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===v,isError:y,isInitialLoading:_,isLoading:_,data:u,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:f,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:m,isRefetching:m&&!g,isLoadingError:y&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:y&&w,isStale:jn(e,t),refetch:this.refetch,promise:__privateGet(this,z)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},n=()=>{const e=__privateSet(this,z,b.promise=bn());t(e)},i=__privateGet(this,z);switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||n();break;case"rejected":"error"===b.status&&b.error===i.reason||n()}}return b}updateResult(e){const t=__privateGet(this,U),n=this.createResult(__privateGet(this,H),this.options);if(__privateSet(this,j,__privateGet(this,H).state),__privateSet(this,B,this.options),void 0!==__privateGet(this,j).data&&__privateSet(this,Q,__privateGet(this,H)),un(n,t))return;__privateSet(this,U,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&&!__privateGet(this,Z).size)return!0;const r=new Set(n??__privateGet(this,Z));return this.options.throwOnError&&r.add("error"),Object.keys(__privateGet(this,U)).some((e=>{const n=e;return __privateGet(this,U)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),__privateMethod(this,ee,ce).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,ee,oe).call(this)}},$=new WeakMap,H=new WeakMap,W=new WeakMap,U=new WeakMap,j=new WeakMap,B=new WeakMap,z=new WeakMap,q=new WeakMap,K=new WeakMap,V=new WeakMap,Q=new WeakMap,Y=new WeakMap,X=new WeakMap,J=new WeakMap,Z=new WeakMap,ee=new WeakSet,te=function(e){__privateMethod(this,ee,le).call(this);let t=__privateGet(this,H).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Jt)),t},ne=function(){__privateMethod(this,ee,ae).call(this);const e=tn(this.options.staleTime,__privateGet(this,H));if(Xt||__privateGet(this,U).isStale||!Zt(e))return;const t=en(__privateGet(this,U).dataUpdatedAt,e);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,U).isStale||this.updateResult()}),t+1))},re=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,H)):this.options.refetchInterval)??!1},ie=function(e){__privateMethod(this,ee,se).call(this),__privateSet(this,J,e),!Xt&&!1!==nn(this.options.enabled,__privateGet(this,H))&&Zt(__privateGet(this,J))&&0!==__privateGet(this,J)&&__privateSet(this,X,setInterval((()=>{(this.options.refetchIntervalInBackground||_n.isFocused())&&__privateMethod(this,ee,te).call(this)}),__privateGet(this,J)))},oe=function(){__privateMethod(this,ee,ne).call(this),__privateMethod(this,ee,ie).call(this,__privateMethod(this,ee,re).call(this))},ae=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},se=function(){__privateGet(this,X)&&(clearInterval(__privateGet(this,X)),__privateSet(this,X,void 0))},le=function(){const e=__privateGet(this,$).getQueryCache().build(__privateGet(this,$),this.options);if(e===__privateGet(this,H))return;const t=__privateGet(this,H);__privateSet(this,H,e),__privateSet(this,W,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){Tn.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,U))})),__privateGet(this,$).getQueryCache().notify({query:__privateGet(this,H),type:"observerResultsUpdated"})}))},ue);function Hn(e,t){return function(e,t){return!1!==nn(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Wn(e,t,t.refetchOnMount)}function Wn(e,t,n){if(!1!==nn(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&jn(e,t)}return!1}function Un(e,t,n,r){return(e!==t||!1===nn(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&jn(e,n)}function jn(e,t){return!1!==nn(t.enabled,e)&&e.isStaleByTime(tn(t.staleTime,e))}var Bn=(ye=class extends Yt{constructor(e,t){super(),__privateAdd(this,ve),__privateAdd(this,de),__privateAdd(this,pe),__privateAdd(this,he),__privateAdd(this,fe),__privateSet(this,de,e),this.setOptions(t),this.bindMethods(),__privateMethod(this,ve,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=__privateGet(this,de).defaultMutationOptions(e),un(this.options,n)||__privateGet(this,de).getMutationCache().notify({type:"observerOptionsUpdated",mutation:__privateGet(this,he),observer:this}),(null==n?void 0:n.mutationKey)&&this.options.mutationKey&&sn(n.mutationKey)!==sn(this.options.mutationKey)?this.reset():"pending"===(null==(t=__privateGet(this,he))?void 0:t.state.status)&&__privateGet(this,he).setOptions(this.options)}onUnsubscribe(){var e;this.hasListeners()||null==(e=__privateGet(this,he))||e.removeObserver(this)}onMutationUpdate(e){__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this,e)}getCurrentResult(){return __privateGet(this,pe)}reset(){var e;null==(e=__privateGet(this,he))||e.removeObserver(this),__privateSet(this,he,void 0),__privateMethod(this,ve,me).call(this),__privateMethod(this,ve,ge).call(this)}mutate(e,t){var n;return __privateSet(this,fe,t),null==(n=__privateGet(this,he))||n.removeObserver(this),__privateSet(this,he,__privateGet(this,de).getMutationCache().build(__privateGet(this,de),this.options)),__privateGet(this,he).addObserver(this),__privateGet(this,he).execute(e)}},de=new WeakMap,pe=new WeakMap,he=new WeakMap,fe=new WeakMap,ve=new WeakSet,me=function(){var e;const t=(null==(e=__privateGet(this,he))?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};__privateSet(this,pe,{...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){Tn.batch((()=>{var t,n,r,i,o,a,s,l;if(__privateGet(this,fe)&&this.hasListeners()){const c=__privateGet(this,pe).variables,u=__privateGet(this,pe).context;"success"===(null==e?void 0:e.type)?(null==(n=(t=__privateGet(this,fe)).onSuccess)||n.call(t,e.data,c,u),null==(i=(r=__privateGet(this,fe)).onSettled)||i.call(r,e.data,null,c,u)):"error"===(null==e?void 0:e.type)&&(null==(a=(o=__privateGet(this,fe)).onError)||a.call(o,e.error,c,u),null==(l=(s=__privateGet(this,fe)).onSettled)||l.call(s,void 0,e.error,c,u))}this.listeners.forEach((e=>{e(__privateGet(this,pe))}))}))},ye);function zn(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 qn(e,t){this.props=e,this.context=t}function Kn(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:zn(this.props,e)}function r(t){return this.shouldComponentUpdate=n,De(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(qn.prototype=new He).isPureReactComponent=!0,qn.prototype.shouldComponentUpdate=function(e,t){return zn(this.props,e)||zn(this.state,t)};var Vn=we.__b;we.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Vn&&Vn(e)};var Qn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Yn(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=Qn,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Xn=function(e,t){return null==e?null:Ke(Ke(e).map(t))},Jn={map:Xn,forEach:Xn,count:function(e){return e?Ke(e).length:0},only:function(e){var t=Ke(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ke},Zn=we.__e;we.__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);Zn(e,t,n,r)};var er=we.unmount;function tr(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=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return tr(e,t,n)}))),e}function nr(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return nr(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 rr(){this.__u=0,this.t=null,this.__b=null}function ir(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function or(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 De(n,i)}return i.displayName="Lazy",i.__f=!0,i}function ar(){this.u=null,this.o=null}we.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),er&&er(e)},(rr.prototype=new He).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=ir(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]=nr(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)},rr.prototype.componentWillUnmount=function(){this.t=[]},rr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=tr(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&De($e,null,e.fallback);return i&&(i.__u&=-33),[De($e,null,t.__a?null:e.children),i]};var sr=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 lr(e){return this.getChildContext=function(){return e.context},e.children}function cr(e){var t=this,n=e.i;t.componentWillUnmount=function(){rt(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)}}),rt(De(lr,{context:t.context},e.__v),t.l)}function ur(e,t){var n=De(cr,{__v:e,i:t});return n.containerInfo=t,n}(ar.prototype=new He).__a=function(e){var t=this,n=ir(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),sr(t,e,r)):i()};n?n(o):o()}},ar.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ke(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},ar.prototype.componentDidUpdate=ar.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){sr(e,n,t)}))};var dr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,pr=/^(?: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]/,hr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,fr=/[A-Z0-9]/g,vr="undefined"!=typeof document,mr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function gr(e,t,n){return null==t.__k&&(t.textContent=""),rt(e,t),"function"==typeof n&&n(),e?e.__c:null}function yr(e,t,n){return it(e,t),"function"==typeof n&&n(),e?e.__c:null}He.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(He.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var _r=we.event;function wr(){}function br(){return this.cancelBubble}function xr(){return this.defaultPrevented}we.event=function(e){return _r&&(e=_r(e)),e.persist=wr,e.isPropagationStopped=br,e.isDefaultPrevented=xr,e.nativeEvent=e};var kr,Sr={enumerable:!1,configurable:!0,get:function(){return this.class}},Er=we.vnode;we.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||vr&&"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||mr(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":hr.test(o)&&(o=s):s=o="oninput":i&&pr.test(o)?o=o.replace(fr,"-$&").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=Ke(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=Ke(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",Sr)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=dr,Er&&Er(e)};var Cr=we.__r;we.__r=function(e){Cr&&Cr(e),kr=e.__c};var Tr=we.diffed;we.diffed=function(e){Tr&&Tr(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),kr=null};var Pr={ReactCurrentDispatcher:{current:{readContext:function(e){return kr.__n[e.__c].props.value},useCallback:Dt,useContext:Gt,useDebugValue:Nt,useDeferredValue:Hr,useEffect:Ot,useId:$t,useImperativeHandle:Ft,useInsertionEffect:Ur,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Rt,useSyncExternalStore:Br,useTransition:Wr}}};function Rr(e){return De.bind(null,e)}function Ar(e){return!!e&&e.$$typeof===dr}function Or(e){return Ar(e)&&e.type===$e}function Lr(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Mr(e){return Ar(e)?ot.apply(null,arguments):e}function Fr(e){return!!e.__k&&(rt(null,e),!0)}function Ir(e){return e&&(e.base||1===e.nodeType&&e)||null}var Dr=function(e,t){return e(t)},Gr=function(e,t){return e(t)},Nr=$e;function $r(e){e()}function Hr(e){return e}function Wr(){return[!1,$r]}var Ur=Lt,jr=Ar;function Br(e,t){var n=t(),r=Rt({h:{__:n,v:t}}),i=r[0].h,o=r[1];return Lt((function(){i.__=n,i.v=t,zr(i)&&o({h:i})}),[e,n,t]),Ot((function(){return zr(i)&&o({h:i}),e((function(){zr(i)&&o({h:i})}))}),[e]),n}function zr(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 qr={useState:Rt,useId:$t,useReducer:At,useEffect:Ot,useLayoutEffect:Lt,useInsertionEffect:Ur,useTransition:Wr,useDeferredValue:Hr,useSyncExternalStore:Br,startTransition:$r,useRef:Mt,useImperativeHandle:Ft,useMemo:It,useCallback:Dt,useContext:Gt,useDebugValue:Nt,version:"18.3.1",Children:Jn,render:gr,hydrate:yr,unmountComponentAtNode:Fr,createPortal:ur,createElement:De,createContext:at,createFactory:Rr,cloneElement:Mr,createRef:Ne,Fragment:$e,isValidElement:Ar,isElement:jr,isFragment:Or,isMemo:Lr,findDOMNode:Ir,Component:He,PureComponent:qn,memo:Kn,forwardRef:Yn,flushSync:Gr,unstable_batchedUpdates:Dr,StrictMode:Nr,Suspense:rr,SuspenseList:ar,lazy:or,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pr};const Kr=Object.freeze(Object.defineProperty({__proto__:null,Children:Jn,Component:He,Fragment:$e,PureComponent:qn,StrictMode:Nr,Suspense:rr,SuspenseList:ar,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pr,cloneElement:Mr,createContext:at,createElement:De,createFactory:Rr,createPortal:ur,createRef:Ne,default:qr,findDOMNode:Ir,flushSync:Gr,forwardRef:Yn,hydrate:yr,isElement:jr,isFragment:Or,isMemo:Lr,isValidElement:Ar,lazy:or,memo:Kn,render:gr,startTransition:$r,unmountComponentAtNode:Fr,unstable_batchedUpdates:Dr,useCallback:Dt,useContext:Gt,useDebugValue:Nt,useDeferredValue:Hr,useEffect:Ot,useErrorBoundary:function(e){var t=Pt(vt++,10),n=Rt();return t.__=e,mt.componentDidCatch||(mt.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:$t,useImperativeHandle:Ft,useInsertionEffect:Ur,useLayoutEffect:Lt,useMemo:It,useReducer:At,useRef:Mt,useState:Rt,useSyncExternalStore:Br,useTransition:Wr,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));var Vr=0;function Qr(e,t,n,r,i,o){t||(t={});var a,s,l=t;"ref"in t&&(a=t.ref,delete t.ref);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:--Vr,__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 we.vnode&&we.vnode(c),c}var Yr=at(void 0),Xr=e=>{const t=Gt(Yr);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Jr=({client:e,children:t})=>(Ot((()=>(e.mount(),()=>{e.unmount()})),[e]),Qr(Yr.Provider,{value:e,children:t})),Zr=at(!1);Zr.Provider;var ei=at(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function ti(e,t){return"function"==typeof e?e(...t):!!e}function ni(){}var ri=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function ii(e,t,n){var r,i,o,a,s;const l=Xr(),c=Gt(Zr),u=Gt(ei),d=l.defaultQueryOptions(e);null==(i=null==(r=l.getDefaultOptions().queries)?void 0:r._experimental_beforeQuery)||i.call(r,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,u),(e=>{Ot((()=>{e.clearReset()}),[e])})(u);const p=!l.getQueryCache().get(d.queryHash),[h]=Rt((()=>new t(l,d))),f=h.getOptimisticResult(d);if(Br(Dt((e=>{const t=c?ni:h.subscribe(Tn.batchCalls(e));return h.updateResult(),t}),[h,c]),(()=>h.getCurrentResult())),Ot((()=>{h.setOptions(d,{listeners:!1})}),[d,h]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(d,f))throw ri(d,h,u);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ti(n,[e.error,r]))({result:f,errorResetBoundary:u,throwOnError:d.throwOnError,query:l.getQueryCache().get(d.queryHash)}))throw f.error;if(null==(a=null==(o=l.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||a.call(o,d,f),d.experimental_prefetchInRender&&!Xt&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,c)){const e=p?ri(d,h,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch(ni).finally((()=>{h.updateResult()}))}return d.notifyOnChangeProps?f:h.trackResult(f)}function oi(e,t){return ii(e,$n)}const ai=at({account:{accountId:""},backend:{url:"",accessToken:""}}),si=()=>Gt(ai);class li extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,li.prototype)}get response(){return this._response}}const ci=async(e,t,n,r)=>{const i=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.1082",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!i.ok)throw new li(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},ui=async(e,t,n,r)=>{const i=await ci(e,t,n,r);return await i.json()},di=e=>{const t=si();return It((()=>e(t)),[e,t])};let pi;const hi=()=>{if(pi)return pi;return pi=new Nn({defaultOptions:{queries:{retry:(e,t)=>{var n;return t instanceof li&&![401,403].includes((null==(n=t.response)?void 0:n.status)||0)}}}}),pi},fi="linkedAccount",vi="linkedProfilesForAccount",mi="salaryPackagedItem",gi="checkProfileSearchAuthorization",yi="payrollAdvice",_i="invoices",wi="/salary-packaging/admin/v1.0",bi=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/auth`);return ui(t,e.backend.accessToken,"GET")},xi=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profile-search?search=${t}`);return ui(n,e.backend.accessToken,"GET")},ki=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const n=new Date;n.setUTCDate((new Date).getUTCDate()+2);const r=new URL(`${e.backend.url}${wi}/ingest/clients`);await ci(r,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]})},Si=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}`);return ui(t,e.backend.accessToken,"GET")},Ei=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles`);return ui(t,e.backend.accessToken,"GET")},Ci=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/unlink`);await ci(n,e.backend.accessToken,"POST")},Ti=e=>async(t,n)=>{const r=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/items/${n}`);return ui(r,e.backend.accessToken,"GET")},Pi=e=>async t=>{const n=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`);return ui(n,e.backend.accessToken,"GET")},Ri=e=>async()=>{const t=new URL(`${e.backend.url}${wi}/accounts/${e.account.accountId}/invoices`);return ui(t,e.backend.accessToken,"GET")},Ai=()=>({checkProfileSearchAuthorization:di(bi),searchProfilesForAccount:di(xi),ingestClient:di(ki),linkedAccount:di(Si),linkedProfilesForAccount:di(Ei),unlinkProfile:di(Ci),salaryPackagedItem:di(Ti),payrollAdvice:di(Pi),invoices:di(Ri)});var Oi={};Object.defineProperty(Oi,"__esModule",{value:!0}),Oi.parse=function(e,t){const n=new Gi,r=e.length;if(r<2)return n;const i=(null==t?void 0:t.decode)||Hi;let o=0;do{const t=e.indexOf("=",o);if(-1===t)break;const a=e.indexOf(";",o),s=-1===a?r:a;if(t>s){o=e.lastIndexOf(";",t-1)+1;continue}const l=Ni(e,o,t),c=$i(e,t,l),u=e.slice(l,c);if(void 0===n[u]){let r=Ni(e,t+1,s),o=$i(e,s,r);const a=i(e.slice(r,o));n[u]=a}o=s+1}while(o<r);return n},Oi.serialize=function(e,t,n){const r=(null==n?void 0:n.encode)||encodeURIComponent;if(!Li.test(e))throw new TypeError(`argument name is invalid: ${e}`);const i=r(t);if(!Mi.test(i))throw new TypeError(`argument val is invalid: ${t}`);let o=e+"="+i;if(!n)return o;if(void 0!==n.maxAge){if(!Number.isInteger(n.maxAge))throw new TypeError(`option maxAge is invalid: ${n.maxAge}`);o+="; Max-Age="+n.maxAge}if(n.domain){if(!Fi.test(n.domain))throw new TypeError(`option domain is invalid: ${n.domain}`);o+="; Domain="+n.domain}if(n.path){if(!Ii.test(n.path))throw new TypeError(`option path is invalid: ${n.path}`);o+="; Path="+n.path}if(n.expires){if(!function(e){return"[object Date]"===Di.call(e)}(n.expires)||!Number.isFinite(n.expires.valueOf()))throw new TypeError(`option expires is invalid: ${n.expires}`);o+="; Expires="+n.expires.toUTCString()}n.httpOnly&&(o+="; HttpOnly");n.secure&&(o+="; Secure");n.partitioned&&(o+="; Partitioned");if(n.priority){switch("string"==typeof n.priority?n.priority.toLowerCase():void 0){case"low":o+="; Priority=Low";break;case"medium":o+="; Priority=Medium";break;case"high":o+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${n.priority}`)}}if(n.sameSite){switch("string"==typeof n.sameSite?n.sameSite.toLowerCase():n.sameSite){case!0:case"strict":o+="; SameSite=Strict";break;case"lax":o+="; SameSite=Lax";break;case"none":o+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${n.sameSite}`)}}return o};const Li=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,Mi=/^[\u0021-\u003A\u003C-\u007E]*$/,Fi=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,Ii=/^[\u0020-\u003A\u003D-\u007E]*$/,Di=Object.prototype.toString,Gi=(()=>{const e=function(){};return e.prototype=Object.create(null),e})();function Ni(e,t,n){do{const n=e.charCodeAt(t);if(32!==n&&9!==n)return t}while(++t<n);return n}function $i(e,t,n){for(;t>n;){const n=e.charCodeAt(--t);if(32!==n&&9!==n)return t+1}return n}function Hi(e){if(-1===e.indexOf("%"))return e;try{return decodeURIComponent(e)}catch(Ic){return e}}var Wi="popstate";function Ui(e={}){return function(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,a=i.history,s="POP",l=null,c=u();null==c&&(c=0,a.replaceState({...a.state,idx:c},""));function u(){return(a.state||{idx:null}).idx}function d(){s="POP";let e=u(),t=null==e?null:e-c;c=e,l&&l({action:s,location:v.location,delta:t})}function p(e,t){s="PUSH";let r=qi(v.location,e,t);n&&n(r,e),c=u()+1;let d=zi(r,c),p=v.createHref(r);try{a.pushState(d,"",p)}catch(h){if(h instanceof DOMException&&"DataCloneError"===h.name)throw h;i.location.assign(p)}o&&l&&l({action:s,location:v.location,delta:1})}function h(e,t){s="REPLACE";let r=qi(v.location,e,t);n&&n(r,e),c=u();let i=zi(r,c),d=v.createHref(r);a.replaceState(i,"",d),o&&l&&l({action:s,location:v.location,delta:0})}function f(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"==typeof e?e:Ki(e);return n=n.replace(/ $/,"%20"),ji(t,`No window.location.(origin|href) available to create URL for href: ${n}`),new URL(n,t)}let v={get action(){return s},get location(){return e(i,a)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Wi,d),l=e,()=>{i.removeEventListener(Wi,d),l=null}},createHref:e=>t(i,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:p,replace:h,go:e=>a.go(e)};return v}((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=Vi(e.location.hash.substring(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),qi("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"==typeof t?t:Ki(t))}),(function(e,t){Bi("/"===e.pathname.charAt(0),`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}),e)}function ji(e,t){if(!1===e||null==e)throw new Error(t)}function Bi(e,t){if(!e){"undefined"!=typeof console&&console.warn(t);try{throw new Error(t)}catch(Ic){}}}function zi(e,t){return{usr:e.state,key:e.key,idx:t}}function qi(e,t,n=null,r){return{pathname:"string"==typeof e?e:e.pathname,search:"",hash:"",..."string"==typeof t?Vi(t):t,state:n,key:t&&t.key||r||Math.random().toString(36).substring(2,10)}}function Ki({pathname:e="/",search:t="",hash:n=""}){return t&&"?"!==t&&(e+="?"===t.charAt(0)?t:"?"+t),n&&"#"!==n&&(e+="#"===n.charAt(0)?n:"#"+n),e}function Vi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Qi(e,t,n="/"){return function(e,t,n,r){let i="string"==typeof t?Vi(t):t,o=co(i.pathname||"/",n);if(null==o)return null;let a=Yi(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=lo(o);s=ao(a[l],e,r)}return s}(e,t,n,!1)}function Yi(e,t=[],n=[],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("/")&&(ji(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=fo([r,a.relativePath]),l=n.concat(a);e.children&&e.children.length>0&&(ji(!0!==e.index,`Index routes must not have child routes. Please remove all child routes from route path "${s}".`),Yi(e.children,t,l,s)),(null!=e.path||e.index)&&t.push({path:s,score:oo(s,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&(null==(n=e.path)?void 0:n.includes("?")))for(let r of Xi(e.path))i(e,t,r);else i(e,t)})),t}function Xi(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=Xi(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))}var Ji=/^:[\w-]+$/,Zi=3,eo=2,to=1,no=10,ro=-2,io=e=>"*"===e;function oo(e,t){let n=e.split("/"),r=n.length;return n.some(io)&&(r+=ro),t&&(r+=eo),n.filter((e=>!io(e))).reduce(((e,t)=>e+(Ji.test(t)?Zi:""===t?to:no)),r)}function ao(e,t,n=!1){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=so({path:e.relativePath,caseSensitive:e.caseSensitive,end:l},c),d=e.route;if(!u&&l&&n&&!r[r.length-1].route.index&&(u=so({path:e.relativePath,caseSensitive:e.caseSensitive,end:!1},c)),!u)return null;Object.assign(i,u.params),a.push({params:i,pathname:fo([o,u.pathname]),pathnameBase:vo(fo([o,u.pathnameBase])),route:d}),"/"!==u.pathnameBase&&(o=fo([o,u.pathnameBase]))}return a}function so(e,t){"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=function(e,t=!1,n=!0){Bi("*"===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,{paramName:t,isOptional:n},r)=>{if("*"===t){let e=s[r]||"";a=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const i=s[r];return e[t]=n&&!i?void 0:(i||"").replace(/%2F/g,"/"),e}),{}),pathname:o,pathnameBase:a,pattern:e}}function lo(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return Bi(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function co(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 uo(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 po(e){let t=function(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}(e);return t.map(((e,n)=>n===t.length-1?e.pathname:e.pathnameBase))}function ho(e,t,n,r=!1){let i;"string"==typeof e?i=Vi(e):(i={...e},ji(!i.pathname||!i.pathname.includes("?"),uo("?","pathname","search",i)),ji(!i.pathname||!i.pathname.includes("#"),uo("#","pathname","hash",i)),ji(!i.search||!i.search.includes("#"),uo("#","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="/"){let{pathname:n,search:r="",hash:i=""}="string"==typeof e?Vi(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:mo(r),hash:go(i)}}(i,o),c=s&&"/"!==s&&s.endsWith("/"),u=(a||"."===s)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}var fo=e=>e.join("/").replace(/\/\/+/g,"/"),vo=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mo=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",go=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";var yo=["POST","PUT","PATCH","DELETE"];new Set(yo);var _o=["GET",...yo];new Set(_o);var wo=at(null);wo.displayName="DataRouter";var bo=at(null);bo.displayName="DataRouterState";var xo=at({isTransitioning:!1});xo.displayName="ViewTransition",at(new Map).displayName="Fetchers",at(null).displayName="Await";var ko=at(null);ko.displayName="Navigation";var So=at(null);So.displayName="Location";var Eo=at({outlet:null,matches:[],isDataRoute:!1});Eo.displayName="Route";var Co=at(null);function To(){return null!=Gt(So)}function Po(){return ji(To(),"useLocation() may be used only in the context of a <Router> component."),Gt(So).location}Co.displayName="RouteError";var Ro="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Ao(e){Gt(ko).static||Lt(e)}function Oo(){let{isDataRoute:e}=Gt(Eo);return e?function(){let{router:e}=function(e){let t=Gt(wo);return ji(t,Ho(e)),t}("useNavigate"),t=Wo("useNavigate"),n=Mt(!1);return Ao((()=>{n.current=!0})),Dt((async(r,i={})=>{Bi(n.current,Ro),n.current&&("number"==typeof r?e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))}),[e,t])}():function(){ji(To(),"useNavigate() may be used only in the context of a <Router> component.");let e=Gt(wo),{basename:t,navigator:n}=Gt(ko),{matches:r}=Gt(Eo),{pathname:i}=Po(),o=JSON.stringify(po(r)),a=Mt(!1);return Ao((()=>{a.current=!0})),Dt(((r,s={})=>{if(Bi(a.current,Ro),!a.current)return;if("number"==typeof r)return void n.go(r);let l=ho(r,JSON.parse(o),i,"path"===s.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:fo([t,l.pathname])),(s.replace?n.replace:n.push)(l,s.state,s)}),[t,n,o,i,e])}()}var Lo=at(null);function Mo(e){let t=Gt(Eo).outlet;return t?De(Lo.Provider,{value:e},t):t}function Fo(e,{relative:t}={}){let{matches:n}=Gt(Eo),{pathname:r}=Po(),i=JSON.stringify(po(n));return It((()=>ho(e,JSON.parse(i),r,"path"===t)),[e,i,r,t])}function Io(e,t,n,r){var i;ji(To(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:a}=Gt(ko),{matches:s}=Gt(Eo),l=s[s.length-1],c=l?l.params:{},u=l?l.pathname:"/",d=l?l.pathnameBase:"/",p=l&&l.route;{let e=p&&p.path||"";jo(u,!p||e.endsWith("*")||e.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.\n\nPlease change the parent <Route path="${e}"> to <Route path="${"/"===e?"*":`${e}/*`}">.`)}let h,f=Po();if(t){let e="string"==typeof t?Vi(t):t;ji("/"===d||(null==(i=e.pathname)?void 0:i.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${e.pathname}" was given in the \`location\` prop.`),h=e}else h=f;let v=h.pathname||"/",m=v;if("/"!==d){let e=d.replace(/^\//,"").split("/");m="/"+v.replace(/^\//,"").split("/").slice(e.length).join("/")}let g=!a&&n&&n.matches&&n.matches.length>0?n.matches:Qi(e,{pathname:m});Bi(p||null!=g,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),Bi(null==g||void 0!==g[g.length-1].route.element||void 0!==g[g.length-1].route.Component||void 0!==g[g.length-1].route.lazy,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=function(e,t=[],n=null){if(null==e){if(!n)return null;if(n.errors)e=n.matches;else{if(0!==t.length||n.initialized||!(n.matches.length>0))return null;e=n.matches}}let r=e,i=null==n?void 0:n.errors;if(null!=i){let e=r.findIndex((e=>e.route.id&&void 0!==(null==i?void 0:i[e.route.id])));ji(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),r=r.slice(0,Math.min(r.length,e+1))}let o=!1,a=-1;if(n)for(let s=0;s<r.length;s++){let e=r[s];if((e.route.HydrateFallback||e.route.hydrateFallbackElement)&&(a=s),e.route.id){let{loaderData:t,errors:i}=n,s=e.route.loader&&!t.hasOwnProperty(e.route.id)&&(!i||void 0===i[e.route.id]);if(e.route.lazy||s){o=!0,r=a>=0?r.slice(0,a+1):[r[0]];break}}}return r.reduceRight(((e,s,l)=>{let c,u=!1,d=null,p=null;n&&(c=i&&s.route.id?i[s.route.id]:void 0,d=s.route.errorElement||Go,o&&(a<0&&0===l?(jo("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,p=null):a===l&&(u=!0,p=s.route.hydrateFallbackElement||null)));let h=t.concat(r.slice(0,l+1)),f=()=>{let t;return t=c?d:u?p:s.route.Component?De(s.route.Component,null):s.route.element?s.route.element:e,De($o,{match:s,routeContext:{outlet:e,matches:h,isDataRoute:null!=n},children:t})};return n&&(s.route.ErrorBoundary||s.route.errorElement||0===l)?De(No,{location:n.location,revalidation:n.revalidation,component:d,error:c,children:f(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):f()}),null)}(g&&g.map((e=>Object.assign({},e,{params:Object.assign({},c,e.params),pathname:fo([d,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?d:fo([d,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),s,n,r);return t&&y?De(So.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},y):y}function Do(){let e=function(){var e;let t=Gt(Co),n=function(e){let t=Gt(bo);return ji(t,Ho(e)),t}("useRouteError"),r=Wo("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="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r},o={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=De($e,null,De("p",null,"💿 Hey developer 👋"),De("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",De("code",{style:o},"ErrorBoundary")," or"," ",De("code",{style:o},"errorElement")," prop on your route.")),De($e,null,De("h2",null,"Unexpected Application Error!"),De("h3",{style:{fontStyle:"italic"}},t),n?De("pre",{style:i},n):null,a)}var Go=De(Do,null),No=class extends He{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?De(Eo.Provider,{value:this.props.routeContext},De(Co.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $o({routeContext:e,match:t,children:n}){let r=Gt(wo);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),De(Eo.Provider,{value:e},n)}function Ho(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Wo(e){let t=function(e){let t=Gt(Eo);return ji(t,Ho(e)),t}(e),n=t.matches[t.matches.length-1];return ji(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}var Uo={};function jo(e,t,n){t||Uo[e]||(Uo[e]=!0,Bi(!1,n))}function Bo({to:e,replace:t,state:n,relative:r}){ji(To(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=Gt(ko);Bi(!i,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:o}=Gt(Eo),{pathname:a}=Po(),s=Oo(),l=ho(e,po(o),a,"path"===r),c=JSON.stringify(l);return Ot((()=>{s(JSON.parse(c),{replace:t,state:n,relative:r})}),[s,c,r,t,n]),null}function zo(e){return Mo(e.context)}function qo(e){ji(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Ko({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){ji(!To(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),s=It((()=>({basename:a,navigator:i,static:o,future:{}})),[a,i,o]);"string"==typeof n&&(n=Vi(n));let{pathname:l="/",search:c="",hash:u="",state:d=null,key:p="default"}=n,h=It((()=>{let e=co(l,a);return null==e?null:{location:{pathname:e,search:c,hash:u,state:d,key:p},navigationType:r}}),[a,l,c,u,d,p,r]);return Bi(null!=h,`<Router basename="${a}"> is not able to match the URL "${l}${c}${u}" because it does not start with the basename, so the <Router> won't render anything.`),null==h?null:De(ko.Provider,{value:s},De(So.Provider,{children:t,value:h}))}function Vo({children:e,location:t}){return Io(Qo(e),t)}function Qo(e,t=[]){let n=[];return Jn.forEach(e,((e,r)=>{if(!Ar(e))return;let i=[...t,r];if(e.type===$e)return void n.push.apply(n,Qo(e.props.children,i));ji(e.type===qo,`[${"string"==typeof e.type?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ji(!e.props.index||!e.props.children,"An index route cannot have child routes.");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,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:!0===e.props.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=Qo(e.props.children,i)),n.push(o)})),n}Kn((function({routes:e,future:t,state:n}){return Io(e,void 0,n,t)}));var Yo="get",Xo="application/x-www-form-urlencoded";function Jo(e){return null!=e&&"string"==typeof e.tagName}var Zo=null;var ea=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ta(e){return null==e||ea.has(e)?e:(Bi(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Xo}"`),null)}function na(e,t){let n,r,i,o,a;if(Jo(s=e)&&"form"===s.tagName.toLowerCase()){let a=e.getAttribute("action");r=a?co(a,t):null,n=e.getAttribute("method")||Yo,i=ta(e.getAttribute("enctype"))||Xo,o=new FormData(e)}else if(function(e){return Jo(e)&&"button"===e.tagName.toLowerCase()}(e)||function(e){return Jo(e)&&"input"===e.tagName.toLowerCase()}(e)&&("submit"===e.type||"image"===e.type)){let a=e.form;if(null==a)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||a.getAttribute("action");if(r=s?co(s,t):null,n=e.getAttribute("formmethod")||a.getAttribute("method")||Yo,i=ta(e.getAttribute("formenctype"))||ta(a.getAttribute("enctype"))||Xo,o=new FormData(a,e),!function(){if(null===Zo)try{new FormData(document.createElement("form"),0),Zo=!1}catch(Ic){Zo=!0}return Zo}()){let{name:t,type:n,value:r}=e;if("image"===n){let e=t?`${t}.`:"";o.append(`${e}x`,"0"),o.append(`${e}y`,"0")}else t&&o.append(t,r)}}else{if(Jo(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Yo,r=null,i=Xo,a=e}var s;return o&&"text/plain"===i&&(a=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:a}}function ra(e,t){if(!1===e||null==e)throw new Error(t)}function ia(e){return null!=e&&(null==e.href?"preload"===e.rel&&"string"==typeof e.imageSrcSet&&"string"==typeof e.imageSizes:"string"==typeof e.rel&&"string"==typeof e.href)}async function oa(e,t,n){return function(e,t){let n=new Set;return new Set(t),e.reduce(((e,t)=>{let r=JSON.stringify(function(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}(t));return n.has(r)||(n.add(r),e.push({key:r,link:t})),e}),[])}((await Promise.all(e.map((async e=>{let r=t.routes[e.route.id];if(r){let e=await async function(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise((()=>{}))}}(r,n);return e.links?e.links():[]}return[]})))).flat(1).filter(ia).filter((e=>"stylesheet"===e.rel||"preload"===e.rel)).map((e=>"stylesheet"===e.rel?{...e,rel:"prefetch",as:"style"}:{...e,rel:"prefetch"})))}function aa(e,t,n,r,i,o){let a=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>{var r;return n[t].pathname!==e.pathname||(null==(r=n[t].route.path)?void 0:r.endsWith("*"))&&n[t].params["*"]!==e.params["*"]};return"assets"===o?t.filter(((e,t)=>a(e,t)||s(e,t))):"data"===o?t.filter(((t,o)=>{var l;let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(a(t,o)||s(t,o))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:(null==(l=n[0])?void 0:l.params)||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if("boolean"==typeof r)return r}return!0})):[]}function sa(e,t,{includeHydrateFallback:n}={}){return r=e.map((e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i})).flat(1),[...new Set(r)];var r}function la(){let e=Gt(wo);return ra(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}var ca=at(void 0);function ua(){let e=Gt(ca);return ra(e,"You must render this element inside a <HydratedRouter> element"),e}function da(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function pa({page:e,...t}){let{router:n}=la(),r=It((()=>Qi(n.routes,e,n.basename)),[n.routes,e,n.basename]);return r?De(ha,{page:e,matches:r,...t}):null}function ha({page:e,matches:t,...n}){let r=Po(),{manifest:i,routeModules:o}=ua(),{basename:a}=la(),{loaderData:s,matches:l}=function(){let e=Gt(bo);return ra(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}(),c=It((()=>aa(e,t,l,i,r,"data")),[e,t,l,i,r]),u=It((()=>aa(e,t,l,i,r,"assets")),[e,t,l,i,r]),d=It((()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach((e=>{var t;let r=i.routes[e.route.id];r&&r.hasLoader&&(!c.some((t=>t.route.id===e.route.id))&&e.route.id in s&&(null==(t=o[e.route.id])?void 0:t.shouldRevalidate)||r.hasClientLoader?l=!0:n.add(e.route.id))})),0===n.size)return[];let u=function(e,t){let n="string"==typeof e?new URL(e,"undefined"==typeof window?"server://singlefetch/":window.location.origin):e;return"/"===n.pathname?n.pathname="_root.data":t&&"/"===co(n.pathname,t)?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}(e,a);return l&&n.size>0&&u.searchParams.set("_routes",t.filter((e=>n.has(e.route.id))).map((e=>e.route.id)).join(",")),[u.pathname+u.search]}),[a,s,r,i,c,t,e,o]),p=It((()=>sa(u,i)),[u,i]),h=function(e){let{manifest:t,routeModules:n}=ua(),[r,i]=Rt([]);return Ot((()=>{let r=!1;return oa(e,t,n).then((e=>{r||i(e)})),()=>{r=!0}}),[e,t,n]),r}(u);return De($e,null,d.map((e=>De("link",{key:e,rel:"prefetch",as:"fetch",href:e,...n}))),p.map((e=>De("link",{key:e,rel:"modulepreload",href:e,...n}))),h.map((({key:e,link:t})=>De("link",{key:e,...t}))))}function fa(...e){return t=>{e.forEach((e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)}))}}ca.displayName="FrameworkContext";var va="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;try{va&&(window.__reactRouterVersion="7.5.3")}catch(Ic){}function ma({basename:e,children:t,window:n}){let r=Mt();null==r.current&&(r.current=Ui({window:n,v5Compat:!0}));let i=r.current,[o,a]=Rt({action:i.action,location:i.location}),s=Dt((e=>{$r((()=>a(e)))}),[a]);return Lt((()=>i.listen(s)),[i,s]),De(Ko,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var ga=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ya=Yn((function({onClick:e,discover:t="render",prefetch:n="none",relative:r,reloadDocument:i,replace:o,state:a,target:s,to:l,preventScrollReset:c,viewTransition:u,...d},p){let h,{basename:f}=Gt(ko),v="string"==typeof l&&ga.test(l),m=!1;if("string"==typeof l&&v&&(h=l,va))try{let e=new URL(window.location.href),t=l.startsWith("//")?new URL(e.protocol+l):new URL(l),n=co(t.pathname,f);t.origin===e.origin&&null!=n?l=n+t.search+t.hash:m=!0}catch(Ic){Bi(!1,`<Link to="${l}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let g=function(e,{relative:t}={}){ji(To(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=Gt(ko),{hash:i,pathname:o,search:a}=Fo(e,{relative:t}),s=o;return"/"!==n&&(s="/"===o?n:fo([n,o])),r.createHref({pathname:s,search:a,hash:i})}(l,{relative:r}),[y,_,w]=function(e,t){let n=Gt(ca),[r,i]=Rt(!1),[o,a]=Rt(!1),{onFocus:s,onBlur:l,onMouseEnter:c,onMouseLeave:u,onTouchStart:d}=t,p=Mt(null);Ot((()=>{if("render"===e&&a(!0),"viewport"===e){let e=new IntersectionObserver((e=>{e.forEach((e=>{a(e.isIntersecting)}))}),{threshold:.5});return p.current&&e.observe(p.current),()=>{e.disconnect()}}}),[e]),Ot((()=>{if(r){let e=setTimeout((()=>{a(!0)}),100);return()=>{clearTimeout(e)}}}),[r]);let h=()=>{i(!0)},f=()=>{i(!1),a(!1)};return n?"intent"!==e?[o,p,{}]:[o,p,{onFocus:da(s,h),onBlur:da(l,f),onMouseEnter:da(c,h),onMouseLeave:da(u,f),onTouchStart:da(d,h)}]:[!1,p,{}]}(n,d),b=function(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:a}={}){let s=Oo(),l=Po(),c=Fo(e,{relative:o});return Dt((u=>{if(function(e,t){return!(0!==e.button||t&&"_self"!==t||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e))}(u,t)){u.preventDefault();let t=void 0!==n?n:Ki(l)===Ki(c);s(e,{replace:t,state:r,preventScrollReset:i,relative:o,viewTransition:a})}}),[l,s,c,n,r,t,e,i,o,a])}(l,{replace:o,state:a,target:s,preventScrollReset:c,relative:r,viewTransition:u});let x=De("a",{...d,...w,href:h||g,onClick:m||i?e:function(t){e&&e(t),t.defaultPrevented||b(t)},ref:fa(p,_),target:s,"data-discover":v||"render"!==t?void 0:"true"});return y&&!v?De($e,null,x,De(pa,{page:g})):x}));ya.displayName="Link";var _a=Yn((function({"aria-current":e="page",caseSensitive:t=!1,className:n="",end:r=!1,style:i,to:o,viewTransition:a,children:s,...l},c){let u=Fo(o,{relative:l.relative}),d=Po(),p=Gt(bo),{navigator:h,basename:f}=Gt(ko),v=null!=p&&function(e,t={}){let n=Gt(xo);ji(null!=n,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=wa("useViewTransitionState"),i=Fo(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=co(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=co(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=so(i.pathname,a)||null!=so(i.pathname,o)}(u)&&!0===a,m=h.encodeLocation?h.encodeLocation(u).pathname:u.pathname,g=d.pathname,y=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(g=g.toLowerCase(),y=y?y.toLowerCase():null,m=m.toLowerCase()),y&&f&&(y=co(y,f)||y);const _="/"!==m&&m.endsWith("/")?m.length-1:m.length;let w,b=g===m||!r&&g.startsWith(m)&&"/"===g.charAt(_),x=null!=y&&(y===m||!r&&y.startsWith(m)&&"/"===y.charAt(m.length)),k={isActive:b,isPending:x,isTransitioning:v},S=b?e:void 0;w="function"==typeof n?n(k):[n,b?"active":null,x?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let E="function"==typeof i?i(k):i;return De(ya,{...l,"aria-current":S,className:w,ref:c,style:E,to:o,viewTransition:a},"function"==typeof s?s(k):s)}));function wa(e){let t=Gt(wo);return ji(t,function(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}(e)),t}_a.displayName="NavLink",Yn((({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:a=Yo,action:s,onSubmit:l,relative:c,preventScrollReset:u,viewTransition:d,...p},h)=>{let f=function(){let{router:e}=wa("useSubmit"),{basename:t}=Gt(ko),n=Wo("useRouteId");return Dt((async(r,i={})=>{let{action:o,method:a,encType:s,formData:l,body:c}=na(r,t);if(!1===i.navigate){let t=i.fetcherKey||xa();await e.fetch(t,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||a,formEncType:i.encType||s,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:l,body:c,formMethod:i.method||a,formEncType:i.encType||s,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})}),[e,t,n])}(),v=function(e,{relative:t}={}){let{basename:n}=Gt(ko),r=Gt(Eo);ji(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Fo(e||".",{relative:t})},a=Po();if(null==e){o.search=a.search;let e=new URLSearchParams(o.search),t=e.getAll("index");if(t.some((e=>""===e))){e.delete("index"),t.filter((e=>e)).forEach((t=>e.append("index",t)));let n=e.toString();o.search=n?`?${n}`:""}}e&&"."!==e||!i.route.index||(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index");"/"!==n&&(o.pathname="/"===o.pathname?n:fo([n,o.pathname]));return Ki(o)}(s,{relative:c}),m="get"===a.toLowerCase()?"get":"post",g="string"==typeof s&&ga.test(s);return De("form",{ref:h,method:m,action:v,onSubmit:r?l:e=>{if(l&&l(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=(null==r?void 0:r.getAttribute("formmethod"))||a;f(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:o,relative:c,preventScrollReset:u,viewTransition:d})},...p,"data-discover":g||"render"!==e?void 0:"true"})})).displayName="Form";var ba=0,xa=()=>`__${String(++ba)}__`;function ka(){return ka=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},ka.apply(null,arguments)}new TextEncoder;var Sa=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(Ic){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ea="-ms-",Ca="-moz-",Ta="-webkit-",Pa="comm",Ra="rule",Aa="decl",Oa="@keyframes",La=Math.abs,Ma=String.fromCharCode,Fa=Object.assign;function Ia(e){return e.trim()}function Da(e,t,n){return e.replace(t,n)}function Ga(e,t){return e.indexOf(t)}function Na(e,t){return 0|e.charCodeAt(t)}function $a(e,t,n){return e.slice(t,n)}function Ha(e){return e.length}function Wa(e){return e.length}function Ua(e,t){return t.push(e),e}var ja=1,Ba=1,za=0,qa=0,Ka=0,Va="";function Qa(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:ja,column:Ba,length:a,return:""}}function Ya(e,t){return Fa(Qa("",null,null,"",null,null,0),e,{length:-e.length},t)}function Xa(){return Ka=qa<za?Na(Va,qa++):0,Ba++,10===Ka&&(Ba=1,ja++),Ka}function Ja(){return Na(Va,qa)}function Za(){return qa}function es(e,t){return $a(Va,e,t)}function ts(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ns(e){return ja=Ba=1,za=Ha(Va=e),qa=0,[]}function rs(e){return Va="",e}function is(e){return Ia(es(qa-1,ss(91===e?e+2:40===e?e+1:e)))}function os(e){for(;(Ka=Ja())&&Ka<33;)Xa();return ts(e)>2||ts(Ka)>3?"":" "}function as(e,t){for(;--t&&Xa()&&!(Ka<48||Ka>102||Ka>57&&Ka<65||Ka>70&&Ka<97););return es(e,Za()+(t<6&&32==Ja()&&32==Xa()))}function ss(e){for(;Xa();)switch(Ka){case e:return qa;case 34:case 39:34!==e&&39!==e&&ss(Ka);break;case 40:41===e&&ss(e);break;case 92:Xa()}return qa}function ls(e,t){for(;Xa()&&e+Ka!==57&&(e+Ka!==84||47!==Ja()););return"/*"+es(t,qa-1)+"*"+Ma(47===e?e:Xa())}function cs(e){for(;!ts(Ja());)Xa();return es(e,qa)}function us(e){return rs(ds("",null,null,null,[""],e=ns(e),0,[0],e))}function ds(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,h=0,f=0,v=1,m=1,g=1,y=0,_="",w=i,b=o,x=r,k=_;m;)switch(f=y,y=Xa()){case 40:if(108!=f&&58==Na(k,d-1)){-1!=Ga(k+=Da(is(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:k+=is(y);break;case 9:case 10:case 13:case 32:k+=os(f);break;case 92:k+=as(Za()-1,7);continue;case 47:switch(Ja()){case 42:case 47:Ua(hs(ls(Xa(),Za()),t,n),l);break;default:k+="/"}break;case 123*v:s[c++]=Ha(k)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+u:-1==g&&(k=Da(k,/\f/g,"")),h>0&&Ha(k)-d&&Ua(h>32?fs(k+";",r,n,d-1):fs(Da(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(Ua(x=ps(k,t,n,c,u,i,s,_,w=[],b=[],d),o),123===y)if(0===u)ds(k,t,x,x,w,o,d,s,b);else switch(99===p&&110===Na(k,3)?100:p){case 100:case 108:case 109:case 115:ds(e,x,x,r&&Ua(ps(e,x,x,0,0,i,s,_,i,w=[],d),b),i,b,d,s,r?w:b);break;default:ds(k,x,x,x,[""],b,0,s,b)}}c=u=h=0,v=g=1,_=k="",d=a;break;case 58:d=1+Ha(k),h=f;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==(Ka=qa>0?Na(Va,--qa):0,Ba--,10===Ka&&(Ba=1,ja--),Ka))continue;switch(k+=Ma(y),y*v){case 38:g=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ha(k)-1)*g,g=1;break;case 64:45===Ja()&&(k+=is(Xa())),p=Ja(),u=d=Ha(_=k+=cs(Za())),y++;break;case 45:45===f&&2==Ha(k)&&(v=0)}}return o}function ps(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],h=Wa(p),f=0,v=0,m=0;f<r;++f)for(var g=0,y=$a(e,d+1,d=La(v=a[f])),_=e;g<h;++g)(_=Ia(v>0?p[g]+" "+y:Da(y,/&\f/g,p[g])))&&(l[m++]=_);return Qa(e,t,n,0===i?Ra:s,l,c,u)}function hs(e,t,n){return Qa(e,t,n,Pa,Ma(Ka),$a(e,2,-2),0)}function fs(e,t,n,r){return Qa(e,t,n,Aa,$a(e,0,r),$a(e,r+1,-1),r)}function vs(e,t){for(var n="",r=Wa(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ms(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Aa:return e.return=e.return||e.value;case Pa:return"";case Oa:return e.return=e.value+"{"+vs(e.children,r)+"}";case Ra:e.value=e.props.join(",")}return Ha(n=vs(e.children,r))?e.return=e.value+"{"+n+"}":""}function gs(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var ys=function(e,t,n){for(var r=0,i=0;r=i,i=Ja(),38===r&&12===i&&(t[n]=1),!ts(i);)Xa();return es(e,qa)},_s=function(e,t){return rs(function(e,t){var n=-1,r=44;do{switch(ts(r)){case 0:38===r&&12===Ja()&&(t[n]=1),e[n]+=ys(qa-1,t,n);break;case 2:e[n]+=is(r);break;case 4:if(44===r){e[++n]=58===Ja()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ma(r)}}while(r=Xa());return e}(ns(e),t))},ws=new WeakMap,bs=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||ws.get(n))&&!r){ws.set(e,!0);for(var i=[],o=_s(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},xs=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ks(e,t){switch(function(e,t){return 45^Na(e,0)?(((t<<2^Na(e,0))<<2^Na(e,1))<<2^Na(e,2))<<2^Na(e,3):0}(e,t)){case 5103:return Ta+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ta+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ta+e+Ca+e+Ea+e+e;case 6828:case 4268:return Ta+e+Ea+e+e;case 6165:return Ta+e+Ea+"flex-"+e+e;case 5187:return Ta+e+Da(e,/(\w+).+(:[^]+)/,Ta+"box-$1$2"+Ea+"flex-$1$2")+e;case 5443:return Ta+e+Ea+"flex-item-"+Da(e,/flex-|-self/,"")+e;case 4675:return Ta+e+Ea+"flex-line-pack"+Da(e,/align-content|flex-|-self/,"")+e;case 5548:return Ta+e+Ea+Da(e,"shrink","negative")+e;case 5292:return Ta+e+Ea+Da(e,"basis","preferred-size")+e;case 6060:return Ta+"box-"+Da(e,"-grow","")+Ta+e+Ea+Da(e,"grow","positive")+e;case 4554:return Ta+Da(e,/([^-])(transform)/g,"$1"+Ta+"$2")+e;case 6187:return Da(Da(Da(e,/(zoom-|grab)/,Ta+"$1"),/(image-set)/,Ta+"$1"),e,"")+e;case 5495:case 3959:return Da(e,/(image-set\([^]*)/,Ta+"$1$`$1");case 4968:return Da(Da(e,/(.+:)(flex-)?(.*)/,Ta+"box-pack:$3"+Ea+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ta+e+e;case 4095:case 3583:case 4068:case 2532:return Da(e,/(.+)-inline(.+)/,Ta+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ha(e)-1-t>6)switch(Na(e,t+1)){case 109:if(45!==Na(e,t+4))break;case 102:return Da(e,/(.+:)(.+)-([^]+)/,"$1"+Ta+"$2-$3$1"+Ca+(108==Na(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ga(e,"stretch")?ks(Da(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Na(e,t+1))break;case 6444:switch(Na(e,Ha(e)-3-(~Ga(e,"!important")&&10))){case 107:return Da(e,":",":"+Ta)+e;case 101:return Da(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ta+(45===Na(e,14)?"inline-":"")+"box$3$1"+Ta+"$2$3$1"+Ea+"$2box$3")+e}break;case 5936:switch(Na(e,t+11)){case 114:return Ta+e+Ea+Da(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ta+e+Ea+Da(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ta+e+Ea+Da(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ta+e+Ea+e+e}return e}var Ss=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Aa:e.return=ks(e.value,e.length);break;case Oa:return vs([Ya(e,{value:Da(e.value,"@","@"+Ta)})],r);case Ra:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vs([Ya(e,{props:[Da(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return vs([Ya(e,{props:[Da(t,/:(plac\w+)/,":"+Ta+"input-$1")]}),Ya(e,{props:[Da(t,/:(plac\w+)/,":-moz-$1")]}),Ya(e,{props:[Da(t,/:(plac\w+)/,Ea+"input-$1")]})],r)}return""}))}}],Es=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||Ss,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[ms,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[bs,xs].concat(o,p),u=Wa(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,vs(us(e?e+"{"+t.styles+"}":t.styles),h),r&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new Sa({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return f.sheet.hydrate(s),f},Cs={exports:{}},Ts={},Ps="function"==typeof Symbol&&Symbol.for,Rs=Ps?Symbol.for("react.element"):60103,As=Ps?Symbol.for("react.portal"):60106,Os=Ps?Symbol.for("react.fragment"):60107,Ls=Ps?Symbol.for("react.strict_mode"):60108,Ms=Ps?Symbol.for("react.profiler"):60114,Fs=Ps?Symbol.for("react.provider"):60109,Is=Ps?Symbol.for("react.context"):60110,Ds=Ps?Symbol.for("react.async_mode"):60111,Gs=Ps?Symbol.for("react.concurrent_mode"):60111,Ns=Ps?Symbol.for("react.forward_ref"):60112,$s=Ps?Symbol.for("react.suspense"):60113,Hs=Ps?Symbol.for("react.suspense_list"):60120,Ws=Ps?Symbol.for("react.memo"):60115,Us=Ps?Symbol.for("react.lazy"):60116,js=Ps?Symbol.for("react.block"):60121,Bs=Ps?Symbol.for("react.fundamental"):60117,zs=Ps?Symbol.for("react.responder"):60118,qs=Ps?Symbol.for("react.scope"):60119;function Ks(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case Rs:switch(e=e.type){case Ds:case Gs:case Os:case Ms:case Ls:case $s:return e;default:switch(e=e&&e.$$typeof){case Is:case Ns:case Us:case Ws:case Fs:return e;default:return t}}case As:return t}}}function Vs(e){return Ks(e)===Gs}Ts.AsyncMode=Ds,Ts.ConcurrentMode=Gs,Ts.ContextConsumer=Is,Ts.ContextProvider=Fs,Ts.Element=Rs,Ts.ForwardRef=Ns,Ts.Fragment=Os,Ts.Lazy=Us,Ts.Memo=Ws,Ts.Portal=As,Ts.Profiler=Ms,Ts.StrictMode=Ls,Ts.Suspense=$s,Ts.isAsyncMode=function(e){return Vs(e)||Ks(e)===Ds},Ts.isConcurrentMode=Vs,Ts.isContextConsumer=function(e){return Ks(e)===Is},Ts.isContextProvider=function(e){return Ks(e)===Fs},Ts.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===Rs},Ts.isForwardRef=function(e){return Ks(e)===Ns},Ts.isFragment=function(e){return Ks(e)===Os},Ts.isLazy=function(e){return Ks(e)===Us},Ts.isMemo=function(e){return Ks(e)===Ws},Ts.isPortal=function(e){return Ks(e)===As},Ts.isProfiler=function(e){return Ks(e)===Ms},Ts.isStrictMode=function(e){return Ks(e)===Ls},Ts.isSuspense=function(e){return Ks(e)===$s},Ts.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===Os||e===Gs||e===Ms||e===Ls||e===$s||e===Hs||"object"==typeof e&&null!==e&&(e.$$typeof===Us||e.$$typeof===Ws||e.$$typeof===Fs||e.$$typeof===Is||e.$$typeof===Ns||e.$$typeof===Bs||e.$$typeof===zs||e.$$typeof===qs||e.$$typeof===js)},Ts.typeOf=Ks,Cs.exports=Ts;var Qs=Cs.exports,Ys={};Ys[Qs.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ys[Qs.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Xs(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Js=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Zs=function(e,t,n){Js(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var el={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},tl=/[A-Z]|^ms/g,nl=/_EMO_([^_]+?)_([^]*?)_EMO_/g,rl=function(e){return 45===e.charCodeAt(1)},il=function(e){return null!=e&&"boolean"!=typeof e},ol=gs((function(e){return rl(e)?e:e.replace(tl,"-$&").toLowerCase()})),al=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(nl,(function(e,t,n){return ll={name:t,styles:n,next:ll},t}))}return 1===el[e]||rl(e)||"number"!=typeof t||0===t?t:t+"px"};function sl(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return ll={name:i.name,styles:i.styles,next:ll},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)ll={name:a.name,styles:a.styles,next:ll},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=sl(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":il(s)&&(r+=ol(o)+":"+al(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=sl(e,t,a);switch(o){case"animation":case"animationName":r+=ol(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)il(a[c])&&(r+=ol(o)+":"+al(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=ll,l=n(e);return ll=s,sl(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var ll,cl=/label:\s*([^\s;{]+)\s*(;|$)/g;function ul(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";ll=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=sl(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=sl(n,t,e[a]),r)i+=o[a]}cl.lastIndex=0;for(var s,l="";null!==(s=cl.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:ll}}var dl,pl,hl=!!Kr.useInsertionEffect&&Kr.useInsertionEffect,fl=hl||function(e){return e()},vl=hl||Lt,ml=at("undefined"!=typeof HTMLElement?Es({key:"css"}):null),gl=ml.Provider,yl=function(e){return Yn((function(t,n){var r=Gt(ml);return e(t,r,n)}))},_l=at({}),wl={}.hasOwnProperty,bl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",xl=function(e,t){var n={};for(var r in t)wl.call(t,r)&&(n[r]=t[r]);return n[bl]=e,n},kl=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Js(t,n,r),fl((function(){return Zs(t,n,r)})),null},Sl=yl((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[bl],o=[r],a="";"string"==typeof e.className?a=Xs(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=ul(o,void 0,Gt(_l));a+=t.key+"-"+s.name;var l={};for(var c in e)wl.call(e,c)&&"css"!==c&&c!==bl&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),De($e,null,De(kl,{cache:t,serialized:s,isStringTag:"string"==typeof i}),De(i,l))})),El=function(e,t){var n=arguments;if(null==t||!wl.call(t,"css"))return De.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=Sl,i[1]=xl(e,t);for(var o=2;o<r;o++)i[o]=n[o];return De.apply(null,i)};dl=El||(El={}),pl||(pl=dl.JSX||(dl.JSX={}));var Cl=yl((function(e,t){var n=ul([e.styles],void 0,Gt(_l)),r=Mt();return vl((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),vl((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Zs(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function Tl(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return ul(t)}var Pl=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Rl=gs((function(e){return Pl.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Al=function(e){return"theme"!==e},Ol=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Rl:Al},Ll=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},Ml=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Js(t,n,r),fl((function(){return Zs(t,n,r)})),null},Fl=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=Ll(t,n,o),l=s||Ol(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var p=u[0];d.push(p[0]);for(var h=u.length,f=1;f<h;f++)d.push(u[f],p[f])}var v=yl((function(e,t,n){var r=c&&e.as||a,o="",u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=Gt(_l)}"string"==typeof e.className?o=Xs(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var f=ul(d.concat(u),t.registered,p);o+=t.key+"-"+f.name,void 0!==i&&(o+=" "+i);var v=c&&void 0===s?Ol(r):l,m={};for(var g in e)c&&"as"===g||v(g)&&(m[g]=e[g]);return m.className=o,n&&(m.ref=n),De($e,null,De(Ml,{cache:t,serialized:f,isStringTag:"string"==typeof r}),De(r,m))}));return v.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=a,v.__emotion_styles=d,v.__emotion_forwardProp=s,Object.defineProperty(v,"toString",{value:function(){return"."+i}}),v.withComponent=function(t,r){return e(t,ka({},n,r,{shouldForwardProp:Ll(v,r,!0)})).apply(void 0,d)},v}}.bind(null);["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){Fl[e]=Fl(e)}));const Il=Fl.span({whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isActive:e})=>e?{cursor:"default","--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:{cursor:"pointer",borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"}})),Dl=Fl.span({marginLeft:"0.25rem",display:"inline-flex",width:"1.25rem",alignItems:"center",justifyContent:"center",borderRadius:"9999px",fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontWeight:"700","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},(({isActive:e})=>e?{"--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))",".group:hover &":{"--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity))"}}));var Gl=$e,Nl=function(e,t,n){return wl.call(t,"css")?Qr(Sl,xl(e,t),n):Qr(e,t,n)},$l=function(e,t,n){return wl.call(t,"css")?Qr(Sl,xl(e,t),n):Qr(e,t,n)};const Hl=({tabs:e})=>Nl("div",{css:{display:"block"},children:Nl("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))",paddingBottom:"1rem"},children:Nl("nav",{"aria-label":"Tabs",css:{marginBottom:"-2px",display:"flex","> :not([hidden]) ~ :not([hidden])":{"--tw-space-x-reverse":"0",marginRight:"calc(2rem * var(--tw-space-x-reverse))",marginLeft:"calc(2rem * calc(1 - var(--tw-space-x-reverse)))"},paddingTop:"1rem"},children:e.map((e=>Nl(_a,{to:e.id,children:({isActive:t})=>$l(Il,{className:"group",isActive:t,children:[e.displayName,void 0!==e.count&&Nl(Dl,{isActive:t,children:e.count})]})},e.id)))})})}),Wl=e=>{var t,n;const{linkedProfilesForAccount:r,checkProfileSearchAuthorization:i,linkedAccount:o}=Ai(),a=oi({queryKey:[fi],queryFn:o}),s=oi({queryKey:[vi],queryFn:r}),l=oi({queryKey:[gi],queryFn:i});Ot((()=>{l.error&&e.onError(l.error.message),s.error&&e.onError(s.error.message)}),[l.error,s.error,e]);const c=It((()=>{var e;return[{id:"search",displayName:"Search"},{id:"profiles",displayName:"Linked Profiles",count:null==(e=s.data)?void 0:e.length},{id:"invoices",displayName:"Invoices"}]}),[s.data]);return l.isSuccess&&"Linked"!==l.data.status?Nl(Bo,{to:"unlinked",replace:!0}):l.isSuccess?$l("div",{children:[$l("dl",{css:{marginLeft:"0.25rem",paddingTop:"1rem"},children:[$l("div",{css:{display:"flex",gap:"0.5rem"},children:[Nl("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Account"}),Nl("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:null==(t=a.data)?void 0:t.id})]}),$l("div",{css:{display:"flex",gap:"0.5rem"},children:[Nl("dt",{css:{width:"5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:"Client"}),Nl("dd",{css:{marginLeft:"-1px",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:null==(n=a.data)?void 0:n.catchEClientId})]})]}),Nl(Hl,{tabs:c}),Nl("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:Nl(zo,{})})]}):Nl("div",{children:"Loading..."})},Ul=e=>Nl(jh,{children:Nl("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),jl=e=>Nl(Uh,{children:Nl("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((t=>Nl("li",{children:e.navTo?Nl(_a,{css:{"--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))",textDecorationLine:"underline"},to:e.navTo,children:t}):t},t)))})}),Bl="undefined"!=typeof document?qr.useLayoutEffect:()=>{};const zl=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},ql=e=>{if(e&&"window"in e&&e.window===e)return e;return zl(e).defaultView||window};function Kl(e){let t=null;return()=>(null==t&&(t=e()),t)}const Vl=Kl((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})),Ql=Kl((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 Yl{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 Xl(e){let t=Mt({isFocused:!1,observer:null});Bl((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=Mt(null);return Bl((()=>{t.current=e}),[e]),Dt(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Dt((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 Yl("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 Jl=null,Zl=new Set,ec=new Map,tc=!1,nc=!1;const rc={Tab:!0,Escape:!0};function ic(e,t){for(let n of Zl)n(e,t)}function oc(e){tc=!0,function(e){return!(e.metaKey||!Vl()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Jl="keyboard",ic("keyboard",e))}function ac(e){Jl="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(tc=!0,ic("pointer",e))}function sc(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Ql()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(tc=!0,Jl="virtual")}function lc(e){e.target!==window&&e.target!==document&&(tc||nc||(Jl="virtual",ic("virtual",e)),tc=!1,nc=!1)}function cc(){tc=!1,nc=!0}function uc(e){if("undefined"==typeof window||ec.get(ql(e)))return;const t=ql(e),n=zl(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){tc=!0,r.apply(this,arguments)},n.addEventListener("keydown",oc,!0),n.addEventListener("keyup",oc,!0),n.addEventListener("click",sc,!0),t.addEventListener("focus",lc,!0),t.addEventListener("blur",cc,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",ac,!0),n.addEventListener("pointermove",ac,!0),n.addEventListener("pointerup",ac,!0)):(n.addEventListener("mousedown",ac,!0),n.addEventListener("mousemove",ac,!0),n.addEventListener("mouseup",ac,!0)),t.addEventListener("beforeunload",(()=>{dc(e)}),{once:!0}),ec.set(t,{focus:r})}const dc=(e,t)=>{const n=ql(e),r=zl(e);t&&r.removeEventListener("DOMContentLoaded",t),ec.has(n)&&(n.HTMLElement.prototype.focus=ec.get(n).focus,r.removeEventListener("keydown",oc,!0),r.removeEventListener("keyup",oc,!0),r.removeEventListener("click",sc,!0),n.removeEventListener("focus",lc,!0),n.removeEventListener("blur",cc,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",ac,!0),r.removeEventListener("pointermove",ac,!0),r.removeEventListener("pointerup",ac,!0)):(r.removeEventListener("mousedown",ac,!0),r.removeEventListener("mousemove",ac,!0),r.removeEventListener("mouseup",ac,!0)),ec.delete(n))};function pc(){return"pointer"!==Jl}"undefined"!=typeof document&&function(e){const t=zl(e);let n;"loading"!==t.readyState?uc(e):(n=()=>{uc(e)},t.addEventListener("DOMContentLoaded",n))}();const hc=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function fc(e,t,n){uc(),Ot((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?ql(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?ql(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?ql(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?ql(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!hc.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&&!rc[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(pc())};return Zl.add(t),()=>{Zl.delete(t)}}),t)}let vc=!1,mc=0;function gc(){vc=!0,setTimeout((()=>{vc=!1}),50)}function yc(e){"touch"===e.pointerType&&gc()}function _c(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",yc):document.addEventListener("touchend",gc),mc++,()=>{mc--,mc>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",yc):document.removeEventListener("touchend",gc))}}function wc(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Mt({isFocused:!1,isFocusVisible:t||pc()}),[o,a]=Rt(!1),[s,l]=Rt((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Dt((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Dt((e=>{i.current.isFocused=e,a(e),c()}),[c]);fc((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=Dt((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Xl(o),s=Dt((e=>{const t=zl(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:p}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Mt({isFocusWithin:!1}),a=Dt((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Xl(a),l=Dt((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?p:d}}var bc=Object.defineProperty,xc=(e,t,n)=>(((e,t,n)=>{t in e?bc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let kc=new class{constructor(){xc(this,"current",this.detect()),xc(this,"handoffState","pending"),xc(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 Sc(e){return kc.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Ec(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function Cc(){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 Ec((()=>{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=Cc();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 Tc(){let[e]=Rt(Cc);return Ot((()=>()=>e.dispose()),[e]),e}let Pc=(e,t)=>{kc.isServer?Ot(e,t):Lt(e,t)};function Rc(e){let t=Mt(e);return Pc((()=>{t.current=e}),[e]),t}let Ac=function(e){let t=Rc(e);return qr.useCallback(((...e)=>t.current(...e)),[t])};let Oc=at(void 0);function Lc(){return Gt(Oc)}function Mc(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function Fc(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,Fc),r}var Ic,Dc,Gc=((Dc=Gc||{})[Dc.None=0]="None",Dc[Dc.RenderStrategy=1]="RenderStrategy",Dc[Dc.Static=2]="Static",Dc),Nc=((Ic=Nc||{})[Ic.Unmount=0]="Unmount",Ic[Ic.Hidden=1]="Hidden",Ic);function $c(){let e=function(){let e=Mt([]),t=Dt((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return Dt((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:Wc;let l=Uc(t,e);if(o)return Hc(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return Hc(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Fc(e?0:1,{0:()=>null,1:()=>Hc({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return Hc(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function Hc(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=qc(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===$e&&(Object.keys(zc(l)).length>0||Object.keys(zc(d)).length>0)){if(Ar(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>Mc(t(...e),l.className):Mc(t,l.className),r=n?{className:n}:{},o=Uc(u.props,zc(qc(l,["ref"])));for(let i in d)i in o&&delete d[i];return Mr(u,Object.assign({},o,d,c,{ref:i(Kc(u),c.ref)},r))}if(Object.keys(zc(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(zc(l)).concat(Object.keys(zc(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 De(o,Object.assign({},qc(l,["ref"]),o!==$e&&c,o!==$e&&d),u)}function Wc(...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 Uc(...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 jc(...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 Bc(e){var t;return Object.assign(Yn(e),{displayName:null!=(t=e.displayName)?t:e.name})}function zc(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function qc(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Kc(e){return qr.version.split(".")[0]>="19"?e.props.ref:e.ref}let Vc=at(void 0);function Qc(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 Yc=Symbol();function Xc(...e){let t=Mt(e);Ot((()=>{t.current=e}),[e]);let n=Ac((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[Yc])))?void 0:n}let Jc=at(null);function Zc(){let e=Gt(Jc);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,Zc),e}return e}Jc.displayName="DescriptionContext";let eu=Bc((function(e,t){let n=$t(),r=Lc(),{id:i=`headlessui-description-${n}`,...o}=e,a=Zc(),s=Xc(t);Pc((()=>a.register(i)),[i,a.register]);let l=r||!1,c=It((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return $c()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(eu,{});var tu,nu=((tu=nu||{}).Space=" ",tu.Enter="Enter",tu.Escape="Escape",tu.Backspace="Backspace",tu.Delete="Delete",tu.ArrowLeft="ArrowLeft",tu.ArrowUp="ArrowUp",tu.ArrowRight="ArrowRight",tu.ArrowDown="ArrowDown",tu.Home="Home",tu.End="End",tu.PageUp="PageUp",tu.PageDown="PageDown",tu.Tab="Tab",tu);let ru=at(null);function iu(){let e=Gt(ru);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,iu),e}return e}function ou({inherit:e=!1}={}){let t=function(){var e,t;let n=null!=(t=null==(e=Gt(ru))?void 0:e.value)?t:void 0;return n}(),[n,r]=Rt([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,It((()=>function(e){let t=Ac((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=It((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return qr.createElement(ru.Provider,{value:n},e.children)}),[r])]}ru.displayName="LabelContext";let au=Bc((function(e,t){var n;let r=$t(),i=iu(),o=Gt(Vc),a=Lc(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Xc(t);Pc((()=>i.register(s)),[s,i.register]);let p=Ac((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})}}})),h=a||!1,f=It((()=>({...i.slot,disabled:h})),[i.slot,h]),v={ref:d,...i.props,id:s,htmlFor:l,onClick:p};return c&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in u&&delete u.onClick),$c()({ourProps:v,theirProps:u,slot:f,defaultTag:l?"label":"div",name:i.name||"Label"})}));function su(e,t=!1){let[n,r]=At((()=>({})),{}),i=It((()=>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 Pc((()=>{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}Object.assign(au,{});let lu=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 cu(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 uu(e){return Br(e.subscribe,e.getSnapshot,e.getSnapshot)}let du=new lu((()=>cu((()=>[]),{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 pu(e,t){let n=du.get(t),r=$t(),i=uu(n);if(Pc((()=>{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 hu=new Map,fu=new Map;function vu(e){var t;let n=null!=(t=fu.get(e))?t:0;return fu.set(e,n+1),0!==n||(hu.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>mu(e)}function mu(e){var t;let n=null!=(t=fu.get(e))?t:1;if(1===n?fu.delete(e):fu.set(e,n-1),1!==n)return;let r=hu.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,hu.delete(e))}let gu=["[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(","),yu=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var _u,wu,bu,xu=((bu=xu||{})[bu.First=1]="First",bu[bu.Previous=2]="Previous",bu[bu.Next=4]="Next",bu[bu.Last=8]="Last",bu[bu.WrapAround=16]="WrapAround",bu[bu.NoScroll=32]="NoScroll",bu[bu.AutoFocus=64]="AutoFocus",bu),ku=((wu=ku||{})[wu.Error=0]="Error",wu[wu.Overflow=1]="Overflow",wu[wu.Success=2]="Success",wu[wu.Underflow=3]="Underflow",wu),Su=((_u=Su||{})[_u.Previous=-1]="Previous",_u[_u.Next=1]="Next",_u);function Eu(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(gu)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var Cu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Cu||{});function Tu(e,t=0){var n;return e!==(null==(n=Sc(e))?void 0:n.body)&&Fc(t,{0:()=>e.matches(gu),1(){let t=e;for(;null!==t;){if(t.matches(gu))return!0;t=t.parentElement}return!1}})}function Pu(e){let t=Sc(e);Cc().nextFrame((()=>{t&&!Tu(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var Ru=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Ru||{});"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 Au=["textarea","input"].join(",");function Ou(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 Lu(e,t){return function(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?Ou(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(yu)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):Eu(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,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==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,Au))&&n}(s)&&s.select(),2}(Eu(),t,{relativeTo:e})}function Mu(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Fu(){return Mu()||/Android/gi.test(window.navigator.userAgent)}function Iu(e,t,n,r){let i=Rc(n);Ot((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function Du(e,t,n){let r=pu(e,"outside-click"),i=Rc(n),o=Dt((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!Tu(r,Cu.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=Mt(null);Iu(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),Iu(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),Iu(r,"click",(e=>{Fu()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=Mt({x:0,y:0});Iu(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),Iu(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let i=Rc(n);Ot((()=>{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 Gu(...e){return It((()=>Sc(...e)),[...e])}function Nu(e,t){return It((()=>{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 $u(){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 Hu(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Wu=cu((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:Cc(),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:Hu(n)},i=[Mu()?{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=Cc();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)}))}))}}:{},$u(),{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 Uu(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=uu(Wu),i=t?r.get(t):void 0,o=!!i&&i.count>0;Pc((()=>{if(t&&e)return Wu.dispatch("PUSH",t,n),()=>Wu.dispatch("POP",t,n)}),[e,t])}(pu(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function ju(e){return[e.screenX,e.screenY]}Wu.subscribe((()=>{let e=Wu.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)&&Wu.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Wu.dispatch("TEARDOWN",n)}}));var Bu,zu;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Bu=null==process?void 0:{})?void 0:Bu.NODE_ENV)&&void 0===(null==(zu=null==Element?void 0:Element.prototype)?void 0:zu.getAnimations)&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join("\n")),[]});var qu=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(qu||{});function Ku(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Vu(e,t,n,r){let[i,o]=Rt(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=Rt(e),r=Dt((e=>n(e)),[t]),i=Dt((e=>n((t=>t|e))),[t]),o=Dt((e=>(t&e)===e),[t]),a=Dt((e=>n((t=>t&~e))),[n]),s=Dt((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(e&&i?3:0),c=Mt(!1),u=Mt(!1),d=Tc();return Pc((()=>{var i;if(e)return n&&o(!0),t?(null==(i=null==r?void 0:r.start)||i.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Cc();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((()=>{n(),o.requestAnimationFrame((()=>{o.add(function(e,t){var n,r;let i=Cc();if(!e)return i.dispose;let o=!1;i.add((()=>{o=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{o||t()})),i.dispose)}(e,r))}))})),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(){var e;u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==(e=null==r?void 0:r.end)||e.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 Qu(){return"undefined"!=typeof window}function Yu(e){return Zu(e)?(e.nodeName||"").toLowerCase():"#document"}function Xu(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ju(e){var t;return null==(t=(Zu(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Zu(e){return!!Qu()&&(e instanceof Node||e instanceof Xu(e).Node)}function ed(e){return!!Qu()&&(e instanceof Element||e instanceof Xu(e).Element)}function td(e){return!!Qu()&&(e instanceof HTMLElement||e instanceof Xu(e).HTMLElement)}function nd(e){return!(!Qu()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Xu(e).ShadowRoot)}function rd(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=cd(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function id(e){return["table","td","th"].includes(Yu(e))}function od(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(Ic){return!1}}))}function ad(e){const t=sd(),n=ed(e)?cd(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 sd(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ld(e){return["html","body","#document"].includes(Yu(e))}function cd(e){return Xu(e).getComputedStyle(e)}function ud(e){return ed(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function dd(e){if("html"===Yu(e))return e;const t=e.assignedSlot||e.parentNode||nd(e)&&e.host||Ju(e);return nd(t)?t.host:t}function pd(e){const t=dd(e);return ld(t)?e.ownerDocument?e.ownerDocument.body:e.body:td(t)&&rd(t)?t:pd(t)}function hd(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=pd(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Xu(i);if(o){const e=fd(a);return t.concat(a,a.visualViewport||[],rd(i)?i:[],e&&n?hd(e):[])}return t.concat(i,hd(i,[],n))}function fd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const vd=Math.min,md=Math.max,gd=Math.round,yd=Math.floor,_d=e=>({x:e,y:e}),wd={left:"right",right:"left",bottom:"top",top:"bottom"},bd={start:"end",end:"start"};function xd(e,t,n){return md(e,vd(t,n))}function kd(e,t){return"function"==typeof e?e(t):e}function Sd(e){return e.split("-")[0]}function Ed(e){return e.split("-")[1]}function Cd(e){return"x"===e?"y":"x"}function Td(e){return"y"===e?"height":"width"}function Pd(e){return["top","bottom"].includes(Sd(e))?"y":"x"}function Rd(e){return Cd(Pd(e))}function Ad(e){return e.replace(/start|end/g,(e=>bd[e]))}function Od(e){return e.replace(/left|right|bottom|top/g,(e=>wd[e]))}function Ld(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 Md(e,t,n){let{reference:r,floating:i}=e;const o=Pd(t),a=Rd(t),s=Td(a),l=Sd(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let h;switch(l){case"top":h={x:u,y:r.y-i.height};break;case"bottom":h={x:u,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(Ed(t)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1)}return h}async function Fd(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:p=!1,padding:h=0}=kd(t,e),f=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}}(h),v=s[p?"floating"===d?"reference":"floating":d],m=Ld(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="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)),_=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},w=Ld(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:y,strategy:l}):g);return{top:(m.top-w.top+f.top)/_.y,bottom:(w.bottom-m.bottom+f.bottom)/_.y,left:(m.left-w.left+f.left)/_.x,right:(w.right-m.right+f.right)/_.x}}function Id(e){const t=cd(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=td(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=gd(n)!==o||gd(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function Dd(e){return ed(e)?e:e.contextElement}function Gd(e){const t=Dd(e);if(!td(t))return _d(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Id(t);let a=(o?gd(n.width):n.width)/r,s=(o?gd(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Nd=_d(0);function $d(e){const t=Xu(e);return sd()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Nd}function Hd(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=Dd(e);let a=_d(1);t&&(r?ed(r)&&(a=Gd(r)):a=Gd(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Xu(e))&&t}(o,n,r)?$d(o):_d(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=Xu(o),t=r&&ed(r)?Xu(r):r;let n=e,i=fd(n);for(;i&&r&&t!==n;){const e=Gd(i),t=i.getBoundingClientRect(),r=cd(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=Xu(i),i=fd(n)}}return Ld({width:u,height:d,x:l,y:c})}function Wd(e,t){const n=ud(e).scrollLeft;return t?t.left+n:Hd(Ju(e)).left+n}function Ud(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Wd(e,r)),y:r.top+t.scrollTop}}function jd(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Xu(e),r=Ju(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=sd();(!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=Ju(e),n=ud(e),r=e.ownerDocument.body,i=md(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=md(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Wd(e);const s=-n.scrollTop;return"rtl"===cd(r).direction&&(a+=md(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Ju(e));else if(ed(t))r=function(e,t){const n=Hd(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=td(e)?Gd(e):_d(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=$d(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Ld(r)}function Bd(e,t){const n=dd(e);return!(n===t||!ed(n)||ld(n))&&("fixed"===cd(n).position||Bd(n,t))}function zd(e,t,n){const r=td(t),i=Ju(t),o="fixed"===n,a=Hd(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=_d(0);if(r||!r&&!o)if(("body"!==Yu(t)||rd(i))&&(s=ud(t)),r){const e=Hd(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Wd(i));const c=!i||r||o?_d(0):Ud(i,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function qd(e){return"static"===cd(e).position}function Kd(e,t){if(!td(e)||"fixed"===cd(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Ju(e)===n&&(n=n.ownerDocument.body),n}function Vd(e,t){const n=Xu(e);if(od(e))return n;if(!td(e)){let t=dd(e);for(;t&&!ld(t);){if(ed(t)&&!qd(t))return t;t=dd(t)}return n}let r=Kd(e,t);for(;r&&id(r)&&qd(r);)r=Kd(r,t);return r&&ld(r)&&qd(r)&&!ad(r)?n:r||function(e){let t=dd(e);for(;td(t)&&!ld(t);){if(ad(t))return t;if(od(t))return null;t=dd(t)}return null}(e)||n}const Qd={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=Ju(r),s=!!t&&od(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=_d(1);const u=_d(0),d=td(r);if((d||!d&&!o)&&(("body"!==Yu(r)||rd(a))&&(l=ud(r)),td(r))){const e=Hd(r);c=Gd(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||o?_d(0):Ud(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:Ju,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?od(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=hd(e,[],!1).filter((e=>ed(e)&&"body"!==Yu(e))),i=null;const o="fixed"===cd(e).position;let a=o?dd(e):e;for(;ed(a)&&!ld(a);){const t=cd(a),n=ad(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||rd(a)&&!n&&Bd(e,a))?r=r.filter((e=>e!==a)):i=t,a=dd(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=jd(t,n,i);return e.top=md(r.top,e.top),e.right=vd(r.right,e.right),e.bottom=vd(r.bottom,e.bottom),e.left=md(r.left,e.left),e}),jd(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Vd,getElementRects:async function(e){const t=this.getOffsetParent||Vd,n=this.getDimensions,r=await n(e.floating);return{reference:zd(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}=Id(e);return{width:t,height:n}},getScale:Gd,isElement:ed,isRTL:function(e){return"rtl"===cd(e).direction}};function Yd(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=Dd(e),u=i||o?[...c?hd(c):[],...hd(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=Ju(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:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const h={rootMargin:-yd(u)+"px "+-yd(i.clientWidth-(c+d))+"px "+-yd(i.clientHeight-(u+p))+"px "+-yd(c)+"px",threshold:md(0,vd(1,l))||1};let f=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!f)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}f=!1}try{r=new IntersectionObserver(v,{...h,root:i.ownerDocument})}catch(Ic){r=new IntersectionObserver(v,h)}r.observe(e)}(!0),o}(c,n):null;let p,h=-1,f=null;a&&(f=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&f&&(f.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame((()=>{var e;null==(e=f)||e.observe(t)}))),n()})),c&&!l&&f.observe(c),f.observe(t));let v=l?Hd(e):null;return l&&function t(){const r=Hd(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=f)||e.disconnect(),f=null,l&&cancelAnimationFrame(p)}}const Xd=Fd,Jd=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=Sd(n),s=Ed(n),l="y"===Pd(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=kd(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof f&&(h="end"===s?-1*f:f),l?{x:h*u,y:p*c}:{x:p*c,y:h*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}}}}},Zd=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}=kd(e,t),c={x:n,y:r},u=await Fd(t,l),d=Pd(Sd(i)),p=Cd(d);let h=c[p],f=c[d];if(o){const e="y"===p?"bottom":"right";h=xd(h+u["y"===p?"top":"left"],h,h-u[e])}if(a){const e="y"===d?"bottom":"right";f=xd(f+u["y"===d?"top":"left"],f,f-u[e])}const v=s.fn({...t,[p]:h,[d]:f});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:a}}}}}},ep=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:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:v=!0,...m}=kd(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const g=Sd(i),y=Pd(s),_=Sd(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(_||!v?[Od(s)]:function(e){const t=Od(e);return[Ad(e),t,Ad(t)]}(s)),x="none"!==f;!p&&x&&b.push(...function(e,t,n,r){const i=Ed(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[]}}(Sd(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(Ad)))),o}(s,v,f,w));const k=[s,...b],S=await Fd(t,m),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Ed(e),i=Rd(e),o=Td(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Od(a)),[a,Od(a)]}(i,a,w);E.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every((e=>e<=0))){var T,P;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(P=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(h){case"bestFit":{var R;const e=null==(R=C.filter((e=>{if(x){const t=Pd(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:R[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},tp=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=kd(e,t),u=await Fd(t,c),d=Sd(i),p=Ed(i),h="y"===Pd(i),{width:f,height:v}=o.floating;let m,g;"top"===d||"bottom"===d?(m=d,g=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,m="end"===p?"top":"bottom");const y=v-u.top-u.bottom,_=f-u.left-u.right,w=vd(v-u[m],y),b=vd(f-u[g],_),x=!t.middlewareData.shift;let k=w,S=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=_),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=y),x&&!p){const e=md(u.left,0),t=md(u.right,0),n=md(u.top,0),r=md(u.bottom,0);h?S=f-2*(0!==e||0!==t?e+t:md(u.left,u.right)):k=v-2*(0!==n||0!==r?n+r:md(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return f!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}},np=(e,t,n)=>{const r=new Map,i={platform:Qd,...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}=Md(c,r,l),p=r,h={},f=0;for(let v=0;v<s.length;v++){const{name:n,fn:o}=s[v],{x:m,y:g,data:y,reset:_}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=g?g:d,h={...h,[n]:{...h[n],...y}},_&&f<=50&&(f++,"object"==typeof _&&(_.placement&&(p=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),({x:u,y:d}=Md(c,p,l))),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};var rp="undefined"!=typeof document?Lt:Ot;function ip(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(!ip(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)&&!ip(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function op(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ap(e,t){const n=op(e);return Math.round(t*n)/n}function sp(e){const t=Mt(e);return rp((()=>{t.current=e})),t}const lp=(e,t)=>({...Jd(e),options:[e,t]}),cp=(e,t)=>({...ep(e),options:[e,t]}),up=(e,t)=>({...tp(e),options:[e,t]}),dp={...Kr},pp=dp.useInsertionEffect||(e=>e());function hp(e){const t=Mt((()=>{}));return pp((()=>{t.current=e})),Dt((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 fp="undefined"!=typeof document?Lt:Ot;let vp=!1,mp=0;const gp=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+mp++;const yp=dp.useId||function(){const[e,t]=Rt((()=>vp?gp():void 0));return fp((()=>{null==e&&t(gp())}),[]),Ot((()=>{vp=!0}),[]),e};const _p=at(null),wp=at(null),bp="data-floating-ui-focusable";function xp(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=yp(),o=Mt({}),[a]=Rt((()=>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!=((null==(l=Gt(_p))?void 0:l.id)||null);var l;const[c,u]=Rt(r.reference),d=hp(((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)})),p=It((()=>({setPositionReference:u})),[]),h=It((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return It((()=>({dataRef:o,open:t,onOpenChange:d,elements:h,events:a,floatingId:i,refs:p})),[t,d,h,a,i,p])}function kp(e){void 0===e&&(e={});const{nodeId:t}=e,n=xp({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=Rt(null),[s,l]=Rt(null),c=(null==i?void 0:i.domReference)||o,u=Mt(null),d=Gt(wp);fp((()=>{c&&(u.current=c)}),[c]);const p=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]=Rt({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=Rt(r);ip(p,r)||h(r);const[f,v]=Rt(null),[m,g]=Rt(null),y=Dt((e=>{e!==x.current&&(x.current=e,v(e))}),[]),_=Dt((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=o||f,b=a||m,x=Mt(null),k=Mt(null),S=Mt(u),E=null!=l,C=sp(l),T=sp(i),P=sp(c),R=Dt((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),np(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};A.current&&!ip(S.current,t)&&(S.current=t,Gr((()=>{d(t)})))}))}),[p,t,n,T,P]);rp((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const A=Mt(!1);rp((()=>(A.current=!0,()=>{A.current=!1})),[]),rp((()=>{if(w&&(x.current=w),b&&(k.current=b),w&&b){if(C.current)return C.current(w,b,R);R()}}),[w,b,R,C,E]);const O=It((()=>({reference:x,floating:k,setReference:y,setFloating:_})),[y,_]),L=It((()=>({reference:w,floating:b})),[w,b]),M=It((()=>{const e={position:n,left:0,top:0};if(!L.floating)return e;const t=ap(L.floating,u.x),r=ap(L.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...op(L.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,L.floating,u.x,u.y]);return It((()=>({...u,update:R,refs:O,elements:L,floatingStyles:M})),[u,R,O,L,M])}({...e,elements:{...i,...s&&{reference:s}}}),h=Dt((e=>{const t=ed(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),f=Dt((e=>{(ed(e)||null===e)&&(u.current=e,a(e)),(ed(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!ed(e))&&p.refs.setReference(e)}),[p.refs]),v=It((()=>({...p.refs,setReference:f,setPositionReference:h,domReference:u})),[p.refs,f,h]),m=It((()=>({...p.elements,domReference:c})),[p.elements,c]),g=It((()=>({...p,...r,refs:v,elements:m,nodeId:t})),[p,v,m,t,r]);return fp((()=>{r.dataRef.current.floatingContext=g;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=g)})),It((()=>({...p,context:g,refs:v,elements:m})),[p,v,m,g])}const Sp="active",Ep="selected";function Cp(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[Sp]:t,[Ep]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[bp]:""},...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&&[Sp,Ep].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 Tp(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function Pp(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=hp(s),c=Mt(!1),u=Mt(null),d=Mt(null);Ot((()=>{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(),Gr((()=>{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 p=It((()=>({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)&&Gr((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return It((()=>i?{floating:p}:{}),[i,p])}let Rp=at({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Rp.displayName="FloatingContext";let Ap=at(null);Ap.displayName="PlacementContext";function Op({children:e,enabled:t=!0}){let[n,r]=Rt(null),[i,o]=Rt(0),a=Mt(null),[s,l]=Rt(null);!function(e){Pc((()=>{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:p=0,padding:h=0,inner:f}=function(e,t){var n,r,i;let o=Lp(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=Lp(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=Lp(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[v,m="center"]=u.split(" ");Pc((()=>{c&&o(0)}),[c]);let{refs:g,floatingStyles:y,context:_}=kp({open:c,placement:"selection"===v?"center"===m?"bottom":`bottom-${m}`:"center"===m?`${v}`:`${v}-${m}`,strategy:"absolute",transform:!1,middleware:[lp({mainAxis:"selection"===v?0:d,crossAxis:p}),(k={padding:h},{...Zd(k),options:[k,S]}),"selection"!==v&&cp({padding:h}),"selection"===v&&f?(x={...f,padding:h,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:h,onFallbackChange(e){var t,n;if(!e)return;let r=_.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=_.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}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=kd(x,e),{rects:u,elements:{floating:d}}=e,p=t.current[o],h=(null==l?void 0:l.current)||d,f=d.clientTop||h.clientTop,v=0!==d.clientTop,m=0!==h.clientTop,g=d===h;if(!p)return{};const y={...e,...await lp(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-i).fn(e)},_=await Xd(Tp(y,h.scrollHeight+f+d.clientTop),c),w=await Xd(y,{...c,elementContext:"reference"}),b=md(0,_.top),k=y.y+b,S=h.scrollHeight>h.clientHeight,E=(S?e=>e:gd)(md(0,h.scrollHeight+(v&&g||m?2*f:0)-b-md(0,_.bottom)));if(h.style.maxHeight=E+"px",h.scrollTop=b,r){const e=S&&h.offsetHeight<p.offsetHeight*a-1||w.top>=-s||w.bottom>=-s;Gr((()=>r(e)))}return n&&(n.current=await Xd(Tp({...y,y:k},h.offsetHeight+f+d.clientTop),c)),{y:k}}}):null,up({padding:h,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:Yd}),[w=v,b=m]=_.placement.split("-");var x,k,S;"selection"===v&&(w="selection");let E=It((()=>({anchor:[w,b].filter(Boolean).join(" ")})),[w,b]),C=Pp(_,{overflowRef:a,onChange:o}),{getReferenceProps:T,getFloatingProps:P}=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=Dt((t=>Cp(t,e,"reference")),t),o=Dt((t=>Cp(t,e,"floating")),n),a=Dt((t=>Cp(t,e,"item")),r);return It((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([C]),R=Ac((e=>{l(e),g.setFloating(e)}));return De(Ap.Provider,{value:r},De(Rp.Provider,{value:{setFloating:R,setReference:g.setReference,styles:y,getReferenceProps:T,getFloatingProps:P,slot:E}},e))}function Lp(e,t,n=void 0){let r=Tc(),i=Ac(((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=Fp(e,t);return[i,n=>{let o=Mp(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=Fp(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=It((()=>i(e,t)[0]),[e,t]),[a=o,s]=Rt();return Pc((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function Mp(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,...Mp(r)]:[n]}return[]}function Fp(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 Ip=at(null);Ip.displayName="OpenClosedContext";var Dp=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Dp||{});function Gp(){return Gt(Ip)}function Np({value:e,children:t}){return qr.createElement(Ip.Provider,{value:e},t)}var $p,Hp=(($p=Hp||{})[$p.First=0]="First",$p[$p.Previous=1]="Previous",$p[$p.Next=2]="Next",$p[$p.Last=3]="Last",$p[$p.Specific=4]="Specific",$p[$p.Nothing=5]="Nothing",$p);function Wp(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 Up(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Kr&&(e=>e.useSyncExternalStore)(Kr)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=Rt(kc.isHandoffComplete);return t&&!1===kc.isHandoffComplete&&n(!1),Ot((()=>{!0!==t&&n(!0)}),[t]),Ot((()=>kc.handoff()),[]),!e&&t}let jp=at(!1);function Bp(e){let t=Gt(jp),n=Gt(Vp),r=Gu(e),[i,o]=Rt((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(kc.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 Ot((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),Ot((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}let zp=$e,qp=Bc((function(e,t){let n=e,r=Mt(null),i=Xc(function(e,t=!0){return Object.assign(e,{[Yc]:t})}((e=>{r.current=e})),t),o=Gu(r),a=Bp(r),[s]=Rt((()=>{var e;return kc.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=Gt(Qp),c=Up();Pc((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),Pc((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=Ac(e),n=Mt(!1);Ot((()=>(n.current=!1,()=>{n.current=!0,Ec((()=>{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)))}));let u=$c();return c&&a&&s?ur(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:zp,name:"Portal"}),s):null}));let Kp=$e,Vp=at(null);let Qp=at(null),Yp=Bc((function(e,t){let n=Xc(t),{enabled:r=!0,...i}=e,o=$c();return r?qr.createElement(qp,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:zp,name:"Portal"})})),Xp=Bc((function(e,t){let{target:n,...r}=e,i={ref:Xc(t)},o=$c();return qr.createElement(Vp.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Kp,name:"Popover.Group"}))})),Jp=Object.assign(Yp,{Group:Xp});function Zp(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||(null!=(t=e.as)?t:oh)!==$e||1===qr.Children.count(e.children)}let eh=at(null);eh.displayName="TransitionContext";var th=(e=>(e.Visible="visible",e.Hidden="hidden",e))(th||{});let nh=at(null);function rh(e){return"children"in e?rh(e.children):e.current.filter((({el:e})=>null!==e.current)).filter((({state:e})=>"visible"===e)).length>0}function ih(e,t){let n=Rc(e),r=Mt([]),i=function(){let e=Mt(!1);return Pc((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),o=Tc(),a=Ac(((e,t=Nc.Hidden)=>{let a=r.current.findIndex((({el:t})=>t===e));-1!==a&&(Fc(t,{[Nc.Unmount](){r.current.splice(a,1)},[Nc.Hidden](){r.current[a].state="hidden"}}),o.microTask((()=>{var e;!rh(r)&&i.current&&(null==(e=n.current)||e.call(n))})))})),s=Ac((e=>{let t=r.current.find((({el:t})=>t===e));return t?"visible"!==t.state&&(t.state="visible"):r.current.push({el:e,state:"visible"}),()=>a(e,Nc.Unmount)})),l=Mt([]),c=Mt(Promise.resolve()),u=Mt({enter:[],leave:[]}),d=Ac(((e,n,r)=>{l.current.splice(0),t&&(t.chains.current[n]=t.chains.current[n].filter((([t])=>t!==e))),null==t||t.chains.current[n].push([e,new Promise((e=>{l.current.push(e)}))]),null==t||t.chains.current[n].push([e,new Promise((e=>{Promise.all(u.current[n].map((([e,t])=>t))).then((()=>e()))}))]),"enter"===n?c.current=c.current.then((()=>null==t?void 0:t.wait.current)).then((()=>r(n))):r(n)})),p=Ac(((e,t,n)=>{Promise.all(u.current[t].splice(0).map((([e,t])=>t))).then((()=>{var e;null==(e=l.current.shift())||e()})).then((()=>n(t)))}));return It((()=>({children:r,register:s,unregister:a,onStart:d,onStop:p,wait:c,chains:u})),[s,a,r,d,p,u,c])}nh.displayName="NestingContext";let oh=$e,ah=Gc.RenderStrategy;let sh=Bc((function(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=Mt(null),s=Xc(...Zp(e)?[a,t]:null===t?[]:[t]);Up();let l=Gp();if(void 0===n&&null!==l&&(n=(l&Dp.Open)===Dp.Open),void 0===n)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=Rt(n?"visible":"hidden"),d=ih((()=>{n||u("hidden")})),[p,h]=Rt(!0),f=Mt([n]);Pc((()=>{!1!==p&&f.current[f.current.length-1]!==n&&(f.current.push(n),h(!1))}),[f,n]);let v=It((()=>({show:n,appear:r,initial:p})),[n,r,p]);Pc((()=>{n?u("visible"):!rh(d)&&null!==a.current&&u("hidden")}),[n,d]);let m={unmount:i},g=Ac((()=>{var t;p&&h(!1),null==(t=e.beforeEnter)||t.call(e)})),y=Ac((()=>{var t;p&&h(!1),null==(t=e.beforeLeave)||t.call(e)})),_=$c();return qr.createElement(nh.Provider,{value:d},qr.createElement(eh.Provider,{value:v},_({ourProps:{...m,as:$e,children:qr.createElement(lh,{ref:s,...m,...o,beforeEnter:g,beforeLeave:y})},theirProps:{},defaultTag:$e,features:ah,visible:"visible"===c,name:"Transition"})))})),lh=Bc((function(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:p,leave:h,leaveFrom:f,leaveTo:v,...m}=e,[g,y]=Rt(null),_=Mt(null),w=Zp(e),b=Xc(...w?[_,t,y]:null===t?[]:[t]),x=null==(n=m.unmount)||n?Nc.Unmount:Nc.Hidden,{show:k,appear:S,initial:E}=function(){let e=Gt(eh);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[C,T]=Rt(k?"visible":"hidden"),P=function(){let e=Gt(nh);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),{register:R,unregister:A}=P;Pc((()=>R(_)),[R,_]),Pc((()=>{if(x===Nc.Hidden&&_.current)return k&&"visible"!==C?void T("visible"):Fc(C,{hidden:()=>A(_),visible:()=>R(_)})}),[C,_,R,A,k,x]);let O=Up();Pc((()=>{if(w&&O&&"visible"===C&&null===_.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")}),[_,C,O,w]);let L=E&&!S,M=S&&k&&E,F=Mt(!1),I=ih((()=>{F.current||(T("hidden"),A(_))}),P),D=Ac((e=>{F.current=!0;let t=e?"enter":"leave";I.onStart(_,t,(e=>{"enter"===e?null==o||o():"leave"===e&&(null==s||s())}))})),G=Ac((e=>{let t=e?"enter":"leave";F.current=!1,I.onStop(_,t,(e=>{"enter"===e?null==a||a():"leave"===e&&(null==l||l())})),"leave"===t&&!rh(I)&&(T("hidden"),A(_))}));Ot((()=>{w&&i||(D(k),G(k))}),[k,w,i]);let N=(()=>!(!i||!w||!O||L))(),[,$]=Vu(N,g,k,{start:D,end:G}),H=zc({ref:b,className:(null==(r=Mc(m.className,M&&c,M&&u,$.enter&&c,$.enter&&$.closed&&u,$.enter&&!$.closed&&d,$.leave&&h,$.leave&&!$.closed&&f,$.leave&&$.closed&&v,!$.transition&&k&&p))?void 0:r.trim())||void 0,...Ku($)}),W=0;"visible"===C&&(W|=Dp.Open),"hidden"===C&&(W|=Dp.Closed),$.enter&&(W|=Dp.Opening),$.leave&&(W|=Dp.Closing);let U=$c();return qr.createElement(nh.Provider,{value:I},qr.createElement(Np,{value:W},U({ourProps:H,theirProps:m,defaultTag:oh,features:ah,visible:"visible"===C,name:"Transition.Child"})))})),ch=Bc((function(e,t){let n=null!==Gt(eh),r=null!==Gp();return qr.createElement(qr.Fragment,null,!n&&r?qr.createElement(sh,{ref:t,...e}):qr.createElement(lh,{ref:t,...e}))})),uh=Object.assign(sh,{Child:ch,Root:sh});let dh=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function ph(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 dh.test(a)&&(a=a.replace(dh,"")),a}function hh(e){let t=Mt(""),n=Mt("");return Ac((()=>{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():ph(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return ph(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var fh=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(fh||{}),vh=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(vh||{}),mh=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(mh||{});function gh(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=Ou(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}let yh={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===Hp.Nothing)return{...s,activeItemIndex:null};if(t.focus===Hp.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===Hp.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=Wp(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[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,activeItemIndex:a}}}}else if(t.focus===Hp.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=Wp(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[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,activeItemIndex:i}}}}let l=gh(e),c=Wp(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=gh(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=gh(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.itemsElement===t.element?e:{...e,itemsElement:t.element}},_h=at(null);function wh(e){let t=Gt(_h);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,wh),t}return t}function bh(e,t){return Fc(t.type,yh,e,t)}_h.displayName="MenuContext";let xh=$e;let kh=Gc.RenderStrategy|Gc.Static;let Sh=$e;let Eh=Bc((function(e,t){let{__demoMode:n=!1,...r}=e,i=At(bh,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:a,buttonElement:s},l]=i,c=Xc(t);Du(0===o,[s,a],((e,t)=>{l({type:1}),Tu(t,Cu.Loose)||(e.preventDefault(),null==s||s.focus())}));let u=Ac((()=>{l({type:1})})),d=It((()=>({open:0===o,close:u})),[o,u]),p={ref:c},h=$c();return qr.createElement(Op,null,qr.createElement(_h.Provider,{value:i},qr.createElement(Np,{value:Fc(o,{0:Dp.Open,1:Dp.Closed})},h({ourProps:p,theirProps:r,slot:d,defaultTag:xh,name:"Menu"}))))})),Ch=Bc((function(e,t){var n;let r=$t(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=wh("Menu.Button"),u=Gt(Rp).getReferenceProps,d=Xc(t,Gt(Rp).setReference,Ac((e=>c({type:7,element:e})))),p=Ac((e=>{switch(e.key){case nu.Space:case nu.Enter:case nu.ArrowDown:e.preventDefault(),e.stopPropagation(),Gr((()=>c({type:0}))),c({type:2,focus:Hp.First});break;case nu.ArrowUp:e.preventDefault(),e.stopPropagation(),Gr((()=>c({type:0}))),c({type:2,focus:Hp.Last})}})),h=Ac((e=>{if(e.key===nu.Space)e.preventDefault()})),f=Ac((e=>{var t;if(Qc(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(Gr((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:v,focusProps:m}=wc({autoFocus:a}),{isHovered:g,hoverProps:y}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=Rt(!1),s=Mt({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Ot(_c,[]);let{hoverProps:l,triggerHoverEnd:c}=It((()=>{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=>{vc&&"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||vc||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 Ot((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:_,pressProps:w}=function({disabled:e=!1}={}){let t=Mt(null),[n,r]=Rt(!1),i=Tc(),o=Ac((()=>{t.current=null,r(!1),i.dispose()})),a=Ac((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=Sc(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}}}({disabled:o}),b=It((()=>({open:0===l.menuState,active:_||0===l.menuState,disabled:o,hover:g,focus:v,autofocus:a})),[l,g,v,_,o,a]),x=jc(u(),{ref:d,id:i,type:Nu(e,l.buttonElement),"aria-haspopup":"menu","aria-controls":null==(n=l.itemsElement)?void 0:n.id,"aria-expanded":0===l.menuState,disabled:o||void 0,autoFocus:a,onKeyDown:p,onKeyUp:h,onClick:f},m,y,w);return $c()({ourProps:x,theirProps:s,slot:b,defaultTag:"button",name:"Menu.Button"})})),Th=Bc((function(e,t){var n,r;let i=$t(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return It((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[p,h]=wh("Menu.Items"),[f,v]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=Gt(Ap),n=It((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);Pc((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=Gt(Rp);return It((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),m=function(){let{getFloatingProps:e,slot:t}=Gt(Rp);return Dt(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[g,y]=Rt(null),_=Xc(t,d?f:null,Ac((e=>h({type:8,element:e}))),y),w=Gu(p.itemsElement);d&&(s=!0);let b=Gp(),[x,k]=Vu(c,g,null!==b?(b&Dp.Open)===Dp.Open:0===p.menuState);!function(e,t,n){let r=Rc((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));Ot((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=Cc();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])}(x,p.buttonElement,(()=>{h({type:1})})),Uu(!p.__demoMode&&(l&&0===p.menuState),w),function(e,{allowed:t,disallowed:n}={}){let r=pu(e,"inert-others");Pc((()=>{var e,i;if(!r)return;let o=Cc();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(vu(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=Sc(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(vu(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!p.__demoMode&&(l&&0===p.menuState),{allowed:Dt((()=>[p.buttonElement,p.itemsElement]),[p.buttonElement,p.itemsElement])});let S=!function(e,t){let n=Mt({left:0,top:0});if(Pc((()=>{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!==p.menuState,p.buttonElement)&&x;Ot((()=>{let e=p.itemsElement;e&&0===p.menuState&&e!==(null==w?void 0:w.activeElement)&&e.focus({preventScroll:!0})}),[p.menuState,p.itemsElement,w]),function(e,{container:t,accept:n,walk:r}){let i=Mt(n),o=Mt(r);Ot((()=>{i.current=n,o.current=r}),[n,r]),Pc((()=>{if(!t||!e)return;let n=Sc(t);if(!n)return;let r=i.current,a=o.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,i,o])}(0===p.menuState,{container:p.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let E=Tc(),C=Ac((e=>{var t,n,r;switch(E.dispose(),e.key){case nu.Space:if(""!==p.searchQuery)return e.preventDefault(),e.stopPropagation(),h({type:3,value:e.key});case nu.Enter:if(e.preventDefault(),e.stopPropagation(),h({type:1}),null!==p.activeItemIndex){let{dataRef:e}=p.items[p.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}Pu(p.buttonElement);break;case nu.ArrowDown:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Next});case nu.ArrowUp:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Previous});case nu.Home:case nu.PageUp:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.First});case nu.End:case nu.PageDown:return e.preventDefault(),e.stopPropagation(),h({type:2,focus:Hp.Last});case nu.Escape:e.preventDefault(),e.stopPropagation(),Gr((()=>h({type:1}))),null==(r=p.buttonElement)||r.focus({preventScroll:!0});break;case nu.Tab:e.preventDefault(),e.stopPropagation(),Gr((()=>h({type:1}))),Lu(p.buttonElement,e.shiftKey?xu.Previous:xu.Next);break;default:1===e.key.length&&(h({type:3,value:e.key}),E.setTimeout((()=>h({type:4})),350))}})),T=Ac((e=>{if(e.key===nu.Space)e.preventDefault()})),P=It((()=>({open:0===p.menuState})),[p.menuState]),R=jc(d?m():{},{"aria-activedescendant":null===p.activeItemIndex||null==(n=p.items[p.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=p.buttonElement)?void 0:r.id,id:o,onKeyDown:C,onKeyUp:T,role:"menu",tabIndex:0===p.menuState?0:void 0,ref:_,style:{...u.style,...v,"--button-width":su(p.buttonElement,!0).width},...Ku(k)}),A=$c();return qr.createElement(Jp,{enabled:!!s&&(e.static||x)},A({ourProps:R,theirProps:u,slot:P,defaultTag:"div",features:kh,visible:S,name:"Menu.Items"}))})),Ph=Bc((function(e,t){let n=$t(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=wh("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=Mt(null),u=Xc(t,c);Pc((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return Cc().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=hh(c),p=Mt({disabled:i,domRef:c,get textValue(){return d()}});Pc((()=>{p.current.disabled=i}),[p,i]),Pc((()=>(s({type:5,id:r,dataRef:p}),()=>s({type:6,id:r}))),[p,r]);let h=Ac((()=>{s({type:1})})),f=Ac((e=>{if(i)return e.preventDefault();s({type:1}),Pu(a.buttonElement)})),v=Ac((()=>{if(i)return s({type:2,focus:Hp.Nothing});s({type:2,focus:Hp.Specific,id:r})})),m=function(){let e=Mt([-1,-1]);return{wasMoved(t){let n=ju(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=ju(t)}}}(),g=Ac((e=>{m.update(e),!i&&(l||s({type:2,focus:Hp.Specific,id:r,trigger:0}))})),y=Ac((e=>{m.wasMoved(e)&&(i||l||s({type:2,focus:Hp.Specific,id:r,trigger:0}))})),_=Ac((e=>{m.wasMoved(e)&&(i||l&&s({type:2,focus:Hp.Nothing}))})),[w,b]=ou(),[x,k]=function(){let[e,t]=Rt([]);return[e.length>0?e.join(" "):void 0,It((()=>function(e){let n=Ac((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=It((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return qr.createElement(Jc.Provider,{value:r},e.children)}),[t])]}(),S=It((()=>({active:l,focus:l,disabled:i,close:h})),[l,i,h]),E={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":w,"aria-describedby":x,disabled:void 0,onClick:f,onFocus:v,onPointerEnter:g,onMouseEnter:g,onPointerMove:y,onMouseMove:y,onPointerLeave:_,onMouseLeave:_},C=$c();return qr.createElement(b,null,qr.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:Sh,name:"Menu.Item"})))})),Rh=Bc((function(e,t){let[n,r]=ou(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=$c();return qr.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),Ah=Bc((function(e,t){let n=$t(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=iu();Pc((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return $c()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),Oh=Bc((function(e,t){let n=e,r={ref:t,role:"separator"};return $c()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),Lh=Object.assign(Eh,{Button:Ch,Items:Th,Item:Ph,Section:Rh,Heading:Ah,Separator:Oh});function Mh({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const Fh=Yn(Mh);function Ih({title:e,titleId:t,...n},r){return De("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?De("title",{id:t},e):null,De("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const Dh=Yn(Ih),Gh=e=>Nl(Uh,{children:$l(Lh,{as:"div",children:[Nl("div",{children:$l(Ch,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[Nl("span",{css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Open options"}),Nl(Fh,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),Nl(Th,{transition:!0,className:"right-45 w-30",css:{position:"fixed",zIndex:"10",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--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)","--tw-ring-color":"rgb(0 0 0 / 0.05)",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed]":{"--tw-scale-x":".95","--tw-scale-y":".95",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"},"&[data-leave]":{transitionDuration:"75ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}},children:e.items.map(((t,n)=>Nl(Ph,{children:Nl("button",{type:"button",css:{display:"block",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},n)},n)))})]})}),Nh=e=>e&&new Date(e).toLocaleDateString("en-AU")||void 0,$h=e=>void 0!==e&&`$ ${Number(e).toLocaleString("en-US")}`||void 0,Hh=e=>$l(Uh,{children:[Nh(e.value),Nl("br",{}),Nh(e.value)]}),Wh=e=>{const[t,n]=Rt(!1);return $l(Uh,{css:{position:"relative"},children:[Nl(uh,{show:t,children:Nl("div",{css:{position:"absolute",bottom:"3rem",display:"flex",height:"2rem",width:"4.313rem",flexDirection:"row",alignItems:"flex-start",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(17 24 39 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",opacity:"0.9","--tw-shadow":"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",transitionProperty:"opacity",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","&[data-closed]":{opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"},"&[data-leave]":{transitionDuration:"500ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"}},children:Nl("p",{css:{order:"0",height:"1rem",width:"2.813rem",flex:"none",flexGrow:"0",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500",fontStyle:"normal","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))"},children:"Copied"})})}),Nl("button",{onClick:async()=>{await(async e=>{await navigator.clipboard.writeText(e)})(e.value),n(!0),setTimeout((()=>{n(!1)}),3e3)},type:"button",css:{display:"block",flexShrink:"1",borderRadius:"0.375rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity))"},"&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},children:e.value})]})},Uh=Fl.td`
2
2
  ${{whiteSpace:"nowrap",paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
3
3
  `,jh=Fl.td`
4
4
  ${{whiteSpace:"nowrap",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"1.25rem",paddingBottom:"1.25rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"}}