@flarehr/superhero-salpac-profile-admin 1.0.1349 → 1.0.1350
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
|
-
!function(){var e,t,r,n,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,w=Object.create,b=Object.defineProperty,_=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,k=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,C=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(Vu){throw r=[Vu],Vu}},T=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),E=(e,t)=>{let r={};for(var n in e)b(r,n,{get:e[n],enumerable:!0});return t||b(r,Symbol.toStringTag,{value:"Module"}),r},P=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=x(t),a=0,s=o.length;a<s;a++)i=o[a],S.call(e,i)||i===r||b(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(n=_(t,i))||n.enumerable});return e},R=(e,t,r)=>(r=null!=e?w(k(e)):{},P(!t&&e&&e.__esModule?r:b(r,"default",{value:e,enumerable:!0}),e));function O(e,t){for(var r in t)e[r]=t[r];return e}function I(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function A(t,r,n){var i,o,a,s={};for(a in r)"key"==a?i=r[a]:"ref"==a?o=r[a]:s[a]=r[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return F(t,s,i,o,null)}function F(e,n,i,o,a){var s={type:e,props:n,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(s),s}function L(){return{current:null}}function M(e){return e.children}function D(e,t){this.props=e,this.context=t}function N(e,t){if(null==t)return e.__?N(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?N(e):null}function H(e){if(e.__P&&e.__d){var r=e.__v,n=r.__e,i=[],o=[],a=O({},r);a.__v=r.__v+1,t.vnode&&t.vnode(a),G(e.__P,a,r,e.__n,e.__P.namespaceURI,32&r.__u?[n]:null,i,null==n?N(r):n,!!(32&r.__u),o),a.__v=r.__v,a.__.__k[a.__i]=a,X(i,a,o),r.__e=r.__=null,a.__e!=n&&j(a)}}function j(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),j(e)}function $(e){(!e.__d&&(e.__d=!0)&&n.push(e)&&!q.__r++||i!=t.debounceRendering)&&((i=t.debounceRendering)||o)(q)}function q(){try{for(var e,t=1;n.length;)n.length>t&&n.sort(a),e=n.shift(),t=n.length,H(e)}finally{n.length=q.__r=0}}function W(e,t,r,n,i,o,a,s,l,c,u){var d,f,p,h,v,w,b,_=n&&n.__k||g,x=t.length;for(l=function(e,t,r,n,i){var o,a,s,l,c,u=r.length,d=u,f=0;for(e.__k=new Array(i),o=0;o<i;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[o]=F(null,a,null,null,null):y(a)?a=e.__k[o]=F(M,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[o]=F(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[o]=a,l=o+f,a.__=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=z(a,r,l,d))&&(d--,(s=r[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(i>u?f--:i<u&&f++),"function"!=typeof a.type&&(a.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,a.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<u;o++)null!=(s=r[o])&&!(2&s.__u)&&(s.__e==n&&(n=N(s)),ee(s,s));return n}(r,t,_,l,x),d=0;d<x;d++)null!=(p=r.__k[d])&&(f=-1!=p.__i&&_[p.__i]||m,p.__i=d,w=G(e,p,f,i,o,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&J(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==v&&null!=h&&(v=h),(b=!!(4&p.__u))||f.__k===p.__k?(l=U(p,l,e,b),b&&f.__e&&(f.__e=null)):"function"==typeof p.type&&void 0!==w?l=w:h&&(l=h.nextSibling),p.__u&=-7);return r.__e=v,l}function U(e,t,r,n){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=U(i[o],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=N(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function B(e,t){return t=t||[],null==e||"boolean"==typeof e||(y(e)?e.some(function(e){B(e,t)}):t.push(e)),t}function z(e,t,r,n){var i,o,a,s=e.key,l=e.type,c=t[r],u=null!=c&&!(2&c.__u);if(null===c&&null==s||u&&s==c.key&&l==c.type)return r;if(n>(u?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;)if(null!=(c=t[a=i>=0?i--:o++])&&!(2&c.__u)&&s==c.key&&l==c.type)return a;return-1}function Q(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||v.test(t)?r:r+"px"}function K(e,t,r,n,i){var o,a;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Q(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Q(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(u,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r[c]=n[c]:(r[c]=d,e.addEventListener(t,o?p:f,o)):e.removeEventListener(t,o?p:f,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==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function V(e){return function(r){if(this.l){var n=this.l[r.type+e];if(null==r[l])r[l]=d++;else if(r[l]<n[c])return;return n(t.event?t.event(r):r)}}}function G(r,n,i,o,a,s,l,c,u,d){var f,p,h,v,w,b,_,x,k,S,C,T,E,P,R,A,F=n.type;if(void 0!==n.constructor)return null;128&i.__u&&(u=!!(32&i.__u),s=[c=n.__e=i.__e]),(f=t.__b)&&f(n);e:if("function"==typeof F){p=l.length;try{if(k=n.props,S=F.prototype&&F.prototype.render,C=(f=F.contextType)&&o[f.__c],T=f?C?C.props.value:f.__:o,i.__c?x=(h=n.__c=i.__c).__=h.__E:(S?n.__c=h=new F(k,T):(n.__c=h=new D(k,T),h.constructor=F,h.render=te),C&&C.sub(h),h.state||(h.state={}),h.__n=o,v=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=F.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=O({},h.__s)),O(h.__s,F.getDerivedStateFromProps(k,h.__s))),w=h.props,b=h.state,h.__v=n,v)S&&null==F.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==F.getDerivedStateFromProps&&k!==w&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,T),n.__v==i.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,T)){n.__v!=i.__v&&(h.props=k,h.state=h.__s,h.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(e){e&&(e.__=n)}),g.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&l.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,T),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(w,b,_)})}if(h.context=T,h.props=k,h.__P=r,h.__e=!1,E=t.__r,P=0,S)h.state=h.__s,h.__d=!1,E&&E(n),f=h.render(h.props,h.state,h.context),g.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,E&&E(n),f=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(o=O(O({},o),h.getChildContext())),S&&!v&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(w,b)),R=null!=f&&f.type===M&&null==f.key?Z(f.props.children):f,c=W(r,y(R)?R:[R],n,i,o,a,s,l,c,u,d),h.base=n.__e,n.__u&=-161,h.__h.length&&l.push(h),x&&(h.__E=h.__=null)}catch(r){if(l.length=p,n.__v=null,u||null!=s){if(r.then){for(n.__u|=u?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;null!=s&&(s[s.indexOf(c)]=null),n.__e=c}else if(null!=s)for(A=s.length;A--;)I(s[A])}else n.__e=i.__e;n.__k??=i.__k||[],r.then||Y(n),t.__e(r,n,i)}}else null==s&&n.__v==i.__v?(n.__k=i.__k,n.__e=i.__e):c=n.__e=function(r,n,i,o,a,s,l,c,u){var d,f,p,h,g,v,w,b=i.props||m,_=n.props,x=n.type;if("svg"==x?a="http://www.w3.org/2000/svg":"math"==x?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((g=s[d])&&"setAttribute"in g==!!x&&(x?g.localName==x:3==g.nodeType)){r=g,s[d]=null;break}if(null==r){if(null==x)return document.createTextNode(_);r=document.createElementNS(a,x,_.is&&_),c&&(t.__m&&t.__m(n,s),c=!1),s=null}if(null==x)b===_||c&&r.data==_||(r.data=_);else{if(s="textarea"==x&&null!=_.defaultValue?null:s&&e.call(r.childNodes),!c&&null!=s)for(b={},d=0;d<r.attributes.length;d++)b[(g=r.attributes[d]).name]=g.value;for(d in b)g=b[d],"dangerouslySetInnerHTML"==d?p=g:"children"==d||d in _||"value"==d&&"defaultValue"in _||"checked"==d&&"defaultChecked"in _||K(r,d,null,g,a);for(d in _)g=_[d],"children"==d?h=g:"dangerouslySetInnerHTML"==d?f=g:"value"==d?v=g:"checked"==d?w=g:c&&"function"!=typeof g||b[d]===g||K(r,d,g,b[d],a);if(f)c||p&&(f.__html==p.__html||f.__html==r.innerHTML)||(r.innerHTML=f.__html),n.__k=[];else if(p&&(r.innerHTML=""),W("template"==n.type?r.content:r,y(h)?h:[h],n,i,o,"foreignObject"==x?"http://www.w3.org/1999/xhtml":a,s,l,s?s[0]:i.__k&&N(i,0),c,u),null!=s)for(d=s.length;d--;)I(s[d]);c&&"textarea"!=x||(d="value","progress"==x&&null==v?r.removeAttribute("value"):null!=v&&(v!==r[d]||"progress"==x&&!v||"option"==x&&v!=b[d])&&K(r,d,v,b[d],a),d="checked",null!=w&&w!=r[d]&&K(r,d,w,b[d],a))}return r}(i.__e,n,i,o,a,s,l,u,d);return(f=t.diffed)&&f(n),128&n.__u?void 0:c}function Y(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Y))}function X(e,r,n){for(var i=0;i<n.length;i++)J(n[i],n[++i],n[++i]);t.__c&&t.__c(r,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(e){e.call(r)})}catch(e){t.__e(e,r.__v)}})}function Z(e){return"object"!=typeof e||null==e||e.__b>0?e:y(e)?e.map(Z):void 0!==e.constructor?null:O({},e)}function J(e,r,n){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==r||(e.__u=e(r))}else e.current=r}catch(e){t.__e(e,n)}}function ee(e,r,n){var i,o;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||J(i,null,r)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,r)}i.base=i.__P=i.__n=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&ee(i[o],r,n||"function"!=typeof e.type);n||I(e.__e),e.__c=e.__=e.__e=void 0}function te(e,t,r){return this.constructor(e,r)}function re(r,n,i){var o,a,s,l;n==document&&(n=document.documentElement),t.__&&t.__(r,n),a=(o="function"==typeof i)?null:i&&i.__k||n.__k,s=[],l=[],G(n,r=(!o&&i||n).__k=A(M,null,[r]),a||m,m,n.namespaceURI,!o&&i?[i]:a?null:n.firstChild?e.call(n.childNodes):null,s,!o&&i?i:a?a.__e:n.firstChild,o,l),X(s,r,l),r.props.children=null}function ne(e,t){re(e,t,ne)}function ie(t,r,n){var i,o,a,s,l=O({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),r)"key"==a?i=r[a]:"ref"==a?o=r[a]:l[a]=void 0===r[a]&&null!=s?s[a]:r[a];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):n),F(t.type,l,i||t.key,o||t.ref,null)}function oe(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,$(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+h++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}var ae=C(()=>{m={},g=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray,e=g.slice,t={__e:function(e,t,r,n){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,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},r=0,D.prototype.setState=function(e,t){var r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=O({},this.state);"function"==typeof e&&(e=e(O({},r),this.props)),e&&O(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),$(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$(this))},D.prototype.render=M,n=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},q.__r=0,s=Math.random().toString(8),l="__d"+s,c="__a"+s,u=/(PointerCapture)$|Capture$/i,d=0,f=V(!1),p=V(!0),h=0});function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(this,arguments)}function le(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}ae();var ce,ue,de,fe,pe,he,me,ge,ve,ye,we,be,_e,xe,ke=["context","children"],Se=["useFragment"];function Ce(e){return this.getChildContext=function(){return e.context},ie(e.children,le(e,ke))}function Te(e){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=A(Ce,se({},this._props,{context:t.detail.context}),Ie(this,this._vdomComponent,e)),(this.hasAttribute("hydrate")?ne:re)(this._vdom,this._root)}function Ee(e){return e.replace(/-(\w)/g,function(e,t){return t?t.toUpperCase():""})}function Pe(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[Ee(e)]=r,this._vdom=ie(this._vdom,n),re(this._vdom,this._root)}}function Re(){re(this._vdom=null,this._root)}function Oe(e,t){var r=this;return A(e.useFragment?M:"slot",se({},le(e,Se),{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function Ie(e,t,r){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var n=[],i={},o=0,a=e.attributes,s=e.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[Ee(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=Ie(s[o],null,r),c=s[o].slot;c?i[c]=A(Oe,{name:c},l):n[o]=l}var u=!(!r||!r.shadow),d=t?A(Oe,{useFragment:!u},n):n;return!u&&t&&(e.innerHTML=""),A(t||e.nodeName.toLowerCase(),i,d)}function Ae(e,t){me.__h&&me.__h(ue,e,pe||t),pe=0;var r=ue.__H||(ue.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Fe(e){return pe=1,Le(Ye,e)}function Le(e,t,r){var n=Ae(ce++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ye(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=ue,!ue.__f)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=!1,a=n.__c.props!==e;if(n.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),o){var s=o.call(this,e,t,r);return i?s||a:s}return!i||a};ue.__f=!0;var o=ue.shouldComponentUpdate,a=ue.componentWillUpdate;ue.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}a&&a.call(this,e,t,r)},ue.shouldComponentUpdate=i}return n.__N||n.__}function Me(e,t){var r=Ae(ce++,3);!me.__s&&Ge(r.__H,t)&&(r.__=e,r.u=t,ue.__H.__h.push(r))}function De(e,t){var r=Ae(ce++,4);!me.__s&&Ge(r.__H,t)&&(r.__=e,r.u=t,ue.__h.push(r))}function Ne(e){return pe=5,je(function(){return{current:e}},[])}function He(e,t,r){pe=6,De(function(){if("function"==typeof e){var r=e(t());return function(){e(null),r&&"function"==typeof r&&r()}}if(e)return e.current=t(),function(){return e.current=null}},null==r?r:r.concat(e))}function je(e,t){var r=Ae(ce++,7);return Ge(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function $e(e,t){return pe=8,je(function(){return e},t)}function qe(e){var t=ue.context[e.__c],r=Ae(ce++,9);return r.c=e,t?(r.__??(r.__=!0,t.sub(ue)),t.props.value):e.__}function We(e,t){me.useDebugValue&&me.useDebugValue(t?t(e):e)}function Ue(e){var t=Ae(ce++,10),r=Fe();return t.__=e,ue.componentDidCatch||(ue.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function Be(){var e=Ae(ce++,11);if(!e.__){for(var t=ue.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ze(){for(var e;e=he.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Ke),t.__h.some(Ve),t.__h=[]}catch(Ml){t.__h=[],me.__e(Ml,e.__v)}}}function Qe(e){var t,r=function(){clearTimeout(n),xe&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);xe&&(t=requestAnimationFrame(r))}function Ke(e){var t=ue,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),ue=t}function Ve(e){var t=ue;e.__c=e.__(),ue=t}function Ge(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function Ye(e,t){return"function"==typeof t?t(e):t}var Xe=C(()=>{ae(),pe=0,he=[],ge=(me=t).__b,ve=me.__r,ye=me.diffed,we=me.__c,be=me.unmount,_e=me.__,me.__b=function(e){ue=null,ge&&ge(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_e&&_e(e,t)},me.__r=function(e){ve&&ve(e),ce=0;var t=(ue=e.__c).__H;t&&(de===ue?(t.__h=[],ue.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Ke),t.__h.some(Ve),t.__h=[],ce=0)),de=ue},me.diffed=function(e){ye&&ye(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==he.push(t)&&fe===me.requestAnimationFrame||((fe=me.requestAnimationFrame)||Qe)(ze)),t.__H.__.some(function(e){e.u&&(e.__H=e.u,e.u=void 0)})),de=ue=null},me.__c=function(e,t){t.some(function(e){try{e.__h.some(Ke),e.__h=e.__h.filter(function(e){return!e.__||Ve(e)})}catch(Ml){t.some(function(e){e.__h&&(e.__h=[])}),t=[],me.__e(Ml,e.__v)}}),we&&we(e,t)},me.unmount=function(e){be&&be(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(e){try{Ke(e)}catch(e){t=e}}),r.__H=void 0,t&&me.__e(t,r.__v))},xe="function"==typeof requestAnimationFrame});Xe();var Ze=class extends Error{};function Je(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 r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(r){return atob(t)}}Ze.prototype.name="InvalidTokenError";var et=class e{roles;isAuthorized;constructor(e){this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(t){const r=t?function(e,t){if("string"!=typeof e)throw new Ze("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Ze(`Invalid token specified: missing part #${r+1}`);let i;try{i=Je(n)}catch(Vu){throw new Ze(`Invalid token specified: invalid base64 for part #${r+1} (${Vu.message})`)}try{return JSON.parse(i)}catch(Vu){throw new Ze(`Invalid token specified: invalid json for part #${r+1} (${Vu.message})`)}}(t):{roles:[]};return new e(r.roles)}},tt=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(){}},rt=new class extends tt{#e;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},nt={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},it=new class{#n=nt;#i=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}};var ot="undefined"==typeof window||"Deno"in globalThis;function at(){}function st(e){return"number"==typeof e&&e>=0&&e!==1/0}function lt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ct(e,t){return"function"==typeof e?e(t):e}function ut(e,t){return"function"==typeof e?e(t):e}function dt(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==pt(a,t.options))return!1}else if(!mt(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function ft(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ht(t.options.mutationKey)!==ht(o))return!1}else if(!mt(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&!(i&&!i(t))}function pt(e,t){return(t?.queryKeyHashFn||ht)(e)}function ht(e){return JSON.stringify(e,(e,t)=>bt(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function mt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<t.length;r++)if(!mt(e[r],t[r]))return!1;return!0}const r=Object.keys(t);for(const n of r)if(!mt(e[n],t[n]))return!1;return!0}return!1}var gt=Object.prototype.hasOwnProperty;function vt(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=wt(e)&&wt(t);if(!(n||bt(e)&&bt(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),a=o.length,s=n?new Array(a):{};let l=0;for(let c=0;c<a;c++){const a=n?c:o[c],u=e[a],d=t[a];if(u===d){s[a]=u,(n?c<i:gt.call(e,a))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){s[a]=d;continue}const f=vt(u,d,r+1);s[a]=f,f===u&&l++}return i===a&&l===i?e:s}function yt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function wt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bt(e){if(!_t(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!_t(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function _t(e){return"[object Object]"===Object.prototype.toString.call(e)}function xt(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?vt(e,t):t}function kt(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function St(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Ct=Symbol();function Tt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Ct?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Et(e,t){return"function"==typeof e?e(...t):!!e}var Pt=(()=>{let e=()=>ot;return{isServer:()=>e(),setIsServer(t){e=t}}})();function Rt(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var Ot=function(e){setTimeout(e,0)};var It=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=Ot;const o=n=>{t?e.push(n):i(()=>{r(n)})};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}(),At=new class extends tt{#o=!0;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#o!==e&&(this.#o=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#o}};function Ft(e){return Math.min(1e3*2**e,3e4)}function Lt(e){return"online"!==(e??"online")||At.isOnline()}var Mt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Dt(e){let t,r=!1,n=0;const i=Rt(),o=()=>"pending"!==i.status,a=()=>rt.isFocused()&&("always"===e.networkMode||At.isOnline())&&e.canRun(),s=()=>Lt(e.networkMode)&&e.canRun(),l=e=>{o()||(t?.(),i.resolve(e))},c=e=>{o()||(t?.(),i.reject(e))},u=()=>new Promise(r=>{t=e=>{(o()||a())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,o()||e.onContinue?.()}),d=()=>{if(o())return;let t;const i=0===n?e.initialPromise:void 0;try{t=i??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch(t=>{if(o())return;const i=e.retry??(Pt.isServer()?0:3),s=e.retryDelay??Ft,l="function"==typeof s?s(n,t):s,f=!0===i||"number"==typeof i&&n<i||"function"==typeof i&&i(n,t);!r&&f?(n++,e.onFail?.(n,t),function(e){return new Promise(t=>{it.setTimeout(t,e)})}(l).then(()=>a()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:i,status:()=>i.status,cancel:t=>{if(!o()){const r=new Mt(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),i),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),i)}}var Nt=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),st(this.gcTime)&&(this.#a=it.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pt.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(it.clearTimeout(this.#a),this.#a=void 0)}};function Ht(e){return{onFetch:(t,r)=>{const n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=e=>{!function(e,t,r){let n,i=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),i||(i=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)})}(e,()=>t.signal,()=>r=!0)},u=Tt(t.options,t.fetchOptions),d=async(e,n,i)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const o=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};return c(e),e})(),a=await u(o),{maxPages:s}=t.options,l=i?St:kt;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,n,s)}};if(i&&o.length){const e="backward"===i,t=e?$t:jt,r={pages:o,pageParams:a};s=await d(r,t(n,r),e)}else{const t=e??o.length;do{const e=0===l?a[0]??n.initialPageParam:jt(n,s);if(l>0&&null==e)break;s=await d(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function jt(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function $t(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var qt=class extends Nt{#s;#l;#c;#u;#d;#f;#p;#h;constructor(e){super(),this.#h=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#u=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=Bt(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#s}get promise(){return this.#f?.promise}setOptions(e){if(this.options={...this.#p,...e},e?._type&&(this.#s=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=Bt(this.options);void 0!==e.data&&(this.setState(Ut(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,t){const r=xt(this.state.data,e,this.options);return this.#m({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#m({type:"setState",state:e})}cancel(e){const t=this.#f?.promise;return this.#f?.cancel(e),t?t.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==ut(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ct||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===ct(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!lt(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#f?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#f?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#f&&(this.#h||this.#g()?this.#f.cancel({revert:!0}):this.#f.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#g(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#m({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#f?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#f)return this.#f.continueRetry(),this.#f.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,r.signal)})},i=()=>{const e=Tt(this.options,t),r=(()=>{const e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#h=!1,this.options.persister?this.options.persister(e,r,this):e(r)},o=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:i};return n(e),e})();("infinite"===this.#s?Ht(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#c=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||this.#m({type:"fetch",meta:o.fetchOptions?.meta}),this.#f=Dt({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof Mt&&e.revert&&this.setState({...this.#c,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const e=await this.#f.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(a){if(a instanceof Mt){if(a.silent)return this.#f.promise;if(a.revert){if(void 0===this.state.data)throw a;return this.state.data}}throw this.#m({type:"error",error:a}),this.#u.config.onError?.(a,this),this.#u.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#m(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,...Wt(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...Ut(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),It.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function Wt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function Ut(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Bt(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var zt=class extends tt{constructor(e,t){super(),this.options=t,this.#d=e,this.#v=null,this.#y=Rt(),this.bindMethods(),this.setOptions(t)}#d;#w=void 0;#b=void 0;#_=void 0;#x;#k;#y;#v;#S;#C;#T;#E;#P;#R;#O=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#w.addObserver(this),Qt(this.#w,this.options)?this.#I():this.updateResult(),this.#A())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kt(this.#w,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kt(this.#w,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#F(),this.#L(),this.#w.removeObserver(this)}setOptions(e){const t=this.options,r=this.#w;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof ut(this.options.enabled,this.#w))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#M(),this.#w.setOptions(this.options),t._defaulted&&!yt(this.options,t)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#w,observer:this});const n=this.hasListeners();n&&Vt(this.#w,r,this.options,t)&&this.#I(),this.updateResult(),!n||this.#w===r&&ut(this.options.enabled,this.#w)===ut(t.enabled,this.#w)&&ct(this.options.staleTime,this.#w)===ct(t.staleTime,this.#w)||this.#D();const i=this.#N();!n||this.#w===r&&ut(this.options.enabled,this.#w)===ut(t.enabled,this.#w)&&i===this.#R||this.#H(i)}getOptimisticResult(e){const t=this.#d.getQueryCache().build(this.#d,e),r=this.createResult(t,e);var n;return n=r,yt(this.getCurrentResult(),n)||(this.#_=r,this.#k=this.options,this.#x=this.#w.state),r}getCurrentResult(){return this.#_}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#y.status||this.#y.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#O.add(e)}getCurrentQuery(){return this.#w}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#d.defaultQueryOptions(e),r=this.#d.getQueryCache().build(this.#d,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#_))}#I(e){this.#M();let t=this.#w.fetch(this.options,e);return e?.throwOnError||(t=t.catch(at)),t}#D(){this.#F();const e=ct(this.options.staleTime,this.#w);if(Pt.isServer()||this.#_.isStale||!st(e))return;const t=lt(this.#_.dataUpdatedAt,e)+1;this.#E=it.setTimeout(()=>{this.#_.isStale||this.updateResult()},t)}#N(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#w):this.options.refetchInterval)??!1}#H(e){this.#L(),this.#R=e,!Pt.isServer()&&!1!==ut(this.options.enabled,this.#w)&&st(this.#R)&&0!==this.#R&&(this.#P=it.setInterval(()=>{(this.options.refetchIntervalInBackground||rt.isFocused())&&this.#I()},this.#R))}#A(){this.#D(),this.#H(this.#N())}#F(){void 0!==this.#E&&(it.clearTimeout(this.#E),this.#E=void 0)}#L(){void 0!==this.#P&&(it.clearInterval(this.#P),this.#P=void 0)}createResult(e,t){const r=this.#w,n=this.options,i=this.#_,o=this.#x,a=this.#k,s=e!==r?e.state:this.#b,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Qt(e,t),a=i&&Vt(e,r,t,n);(o||a)&&(u={...u,...Wt(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=u;c=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===h){let e;i?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=i.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#T?.state.data,this.#T):t.placeholderData,void 0!==e&&(h="success",c=xt(i?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!m)if(i&&c===o?.data&&t.select===this.#S)c=this.#C;else try{this.#S=t.select,c=t.select(c),c=xt(i?.data,c,t),this.#C=c,this.#v=null}catch(x){this.#v=x}this.#v&&(f=this.#v,c=this.#C,p=Date.now(),h="error");const g="fetching"===u.fetchStatus,v="pending"===h,y="error"===h,w=v&&g,b=void 0!==c,_={status:h,fetchStatus:u.fetchStatus,isPending:v,isSuccess:"success"===h,isError:y,isInitialLoading:w,isLoading:w,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:y&&!b,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&b,isStale:Gt(e,t),refetch:this.refetch,promise:this.#y,isEnabled:!1!==ut(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==_.data,n="error"===_.status&&!t,i=e=>{n?e.reject(_.error):t&&e.resolve(_.data)},o=()=>{const e=this.#y=_.promise=Rt();i(e)},a=this.#y;switch(a.status){case"pending":e.queryHash===r.queryHash&&i(a);break;case"fulfilled":(n||_.data!==a.value)&&o();break;case"rejected":n&&_.error===a.reason||o()}}return _}updateResult(){const e=this.#_,t=this.createResult(this.#w,this.options);if(this.#x=this.#w.state,this.#k=this.options,void 0!==this.#x.data&&(this.#T=this.#w),yt(t,e))return;this.#_=t;this.#j({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#O.size)return!0;const n=new Set(r??this.#O);return this.options.throwOnError&&n.add("error"),Object.keys(this.#_).some(t=>{const r=t;return this.#_[r]!==e[r]&&n.has(r)})})()})}#M(){const e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#w)return;const t=this.#w;this.#w=e,this.#b=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#A()}#j(e){It.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#_)}),this.#d.getQueryCache().notify({query:this.#w,type:"observerResultsUpdated"})})}};function Qt(e,t){return function(e,t){return!1!==ut(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===ut(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&Kt(e,t,t.refetchOnMount)}function Kt(e,t,r){if(!1!==ut(t.enabled,e)&&"static"!==ct(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Gt(e,t)}return!1}function Vt(e,t,r,n){return(e!==t||!1===ut(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Gt(e,r)}function Gt(e,t){return!1!==ut(t.enabled,e)&&e.isStaleByTime(ct(t.staleTime,e))}var Yt=class extends Nt{#d;#$;#q;#f;constructor(e){super(),this.#d=e.client,this.mutationId=e.mutationId,this.#q=e.mutationCache,this.#$=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#$.includes(e)||(this.#$.push(e),this.clearGcTimeout(),this.#q.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#$=this.#$.filter(t=>t!==e),this.scheduleGc(),this.#q.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#$.length||("pending"===this.state.status?this.scheduleGc():this.#q.remove(this))}continue(){return this.#f?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#m({type:"continue"})},r={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#f=Dt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#q.canRun(this)});const n="pending"===this.state.status,i=!this.#f.canStart();try{if(n)t();else{this.#m({type:"pending",variables:e,isPaused:i}),this.#q.config.onMutate&&await this.#q.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#m({type:"pending",context:t,variables:e,isPaused:i})}const o=await this.#f.start();return await(this.#q.config.onSuccess?.(o,e,this.state.context,this,r)),await(this.options.onSuccess?.(o,e,this.state.context,r)),await(this.#q.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(o,null,e,this.state.context,r)),this.#m({type:"success",data:o}),o}catch(o){try{await(this.#q.config.onError?.(o,e,this.state.context,this,r))}catch(Vu){Promise.reject(Vu)}try{await(this.options.onError?.(o,e,this.state.context,r))}catch(Vu){Promise.reject(Vu)}try{await(this.#q.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,r))}catch(Vu){Promise.reject(Vu)}try{await(this.options.onSettled?.(void 0,o,e,this.state.context,r))}catch(Vu){Promise.reject(Vu)}throw this.#m({type:"error",error:o}),o}finally{this.#q.runNext(this)}}#m(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),It.batch(()=>{this.#$.forEach(t=>{t.onMutationUpdate(e)}),this.#q.notify({mutation:this,type:"updated",action:e})})}};var Xt=class extends tt{constructor(e={}){super(),this.config=e,this.#W=new Set,this.#U=new Map,this.#B=0}#W;#U;#B;build(e,t,r){const n=new Yt({client:e,mutationCache:this,mutationId:++this.#B,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#W.add(e);const t=Zt(e);if("string"==typeof t){const r=this.#U.get(t);r?r.push(e):this.#U.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#W.delete(e)){const t=Zt(e);if("string"==typeof t){const r=this.#U.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#U.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Zt(e);if("string"==typeof t){const r=this.#U.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=Zt(e);return"string"==typeof t?(this.#U.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){It.batch(()=>{this.#W.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#W.clear(),this.#U.clear()})}getAll(){return Array.from(this.#W)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>ft(t,e))}findAll(e={}){return this.getAll().filter(t=>ft(e,t))}notify(e){It.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return It.batch(()=>Promise.all(e.map(e=>e.continue().catch(at))))}};function Zt(e){return e.options.scope?.id}var Jt,er,tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,fr,pr,hr,mr,gr,vr,yr,wr,br,_r,xr,kr,Sr,Cr=class extends tt{#d;#_=void 0;#z;#Q;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#d.defaultMutationOptions(e),yt(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#z,observer:this}),t?.mutationKey&&this.options.mutationKey&&ht(t.mutationKey)!==ht(this.options.mutationKey)?this.reset():"pending"===this.#z?.state.status&&this.#z.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#z?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#j(e)}getCurrentResult(){return this.#_}reset(){this.#z?.removeObserver(this),this.#z=void 0,this.#K(),this.#j()}mutate(e,t){return this.#Q=t,this.#z?.removeObserver(this),this.#z=this.#d.getMutationCache().build(this.#d,this.options),this.#z.addObserver(this),this.#z.execute(e)}#K(){const e=this.#z?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#_={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#j(e){It.batch(()=>{if(this.#Q&&this.hasListeners()){const t=this.#_.variables,r=this.#_.context,n={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#Q.onSuccess?.(e.data,t,r,n)}catch(Vu){Promise.reject(Vu)}try{this.#Q.onSettled?.(e.data,null,t,r,n)}catch(Vu){Promise.reject(Vu)}}else if("error"===e?.type){try{this.#Q.onError?.(e.error,t,r,n)}catch(Vu){Promise.reject(Vu)}try{this.#Q.onSettled?.(void 0,e.error,t,r,n)}catch(Vu){Promise.reject(Vu)}}}this.listeners.forEach(e=>{e(this.#_)})})}},Tr=class extends tt{constructor(e={}){super(),this.config=e,this.#V=new Map}#V;build(e,t,r){const n=t.queryKey,i=t.queryHash??pt(n,t);let o=this.get(i);return o||(o=new qt({client:e,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#V.has(e.queryHash)||(this.#V.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#V.get(e.queryHash);t&&(e.destroy(),t===e&&this.#V.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){It.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#V.get(e)}getAll(){return[...this.#V.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>dt(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>dt(e,t)):t}notify(e){It.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){It.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){It.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Er=class{#G;#q;#p;#Y;#X;#Z;#J;#ee;constructor(e={}){this.#G=e.queryCache||new Tr,this.#q=e.mutationCache||new Xt,this.#p=e.defaultOptions||{},this.#Y=new Map,this.#X=new Map,this.#Z=0}mount(){this.#Z++,1===this.#Z&&(this.#J=rt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#G.onFocus())}),this.#ee=At.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#G.onOnline())}))}unmount(){this.#Z--,0===this.#Z&&(this.#J?.(),this.#J=void 0,this.#ee?.(),this.#ee=void 0)}isFetching(e){return this.#G.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#q.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#G.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ct(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#G.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#G.get(n.queryHash)?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==o)return this.#G.build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return It.batch(()=>this.#G.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state}removeQueries(e){const t=this.#G;It.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#G;return It.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=It.batch(()=>this.#G.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(at).catch(at)}invalidateQueries(e,t={}){return It.batch(()=>(this.#G.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=It.batch(()=>this.#G.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(at)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(at)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#G.build(this,t);return r.isStaleByTime(ct(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(at).catch(at)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(at).catch(at)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return At.isOnline()?this.#q.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#G}getMutationCache(){return this.#q}getDefaultOptions(){return this.#p}setDefaultOptions(e){this.#p=e}setQueryDefaults(e,t){this.#Y.set(ht(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#Y.values()],r={};return t.forEach(t=>{mt(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#X.set(ht(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#X.values()],r={};return t.forEach(t=>{mt(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#p.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pt(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"),t.queryFn===Ct&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#p.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#G.clear(),this.#q.clear()}},Pr=E({Children:()=>nr,Component:()=>D,Fragment:()=>M,PureComponent:()=>Dr,StrictMode:()=>M,Suspense:()=>qr,SuspenseList:()=>Br,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>wr,cloneElement:()=>en,createContext:()=>oe,createElement:()=>A,createFactory:()=>Yr,createPortal:()=>Kr,createRef:()=>L,default:()=>Sr,findDOMNode:()=>rn,flushSync:()=>xr,forwardRef:()=>Hr,hydrate:()=>Gr,isElement:()=>kr,isFragment:()=>Zr,isMemo:()=>Jr,isValidElement:()=>Xr,lazy:()=>Ur,memo:()=>Nr,render:()=>Vr,startTransition:()=>Fr,unmountComponentAtNode:()=>tn,unstable_batchedUpdates:()=>_r,useCallback:()=>$e,useContext:()=>qe,useDebugValue:()=>We,useDeferredValue:()=>Lr,useEffect:()=>Me,useErrorBoundary:()=>Ue,useId:()=>Be,useImperativeHandle:()=>He,useInsertionEffect:()=>Jt,useLayoutEffect:()=>De,useMemo:()=>je,useReducer:()=>Le,useRef:()=>Ne,useState:()=>Fe,useSyncExternalStore:()=>Ir,useTransition:()=>Mr,version:()=>br});function Rr(e,t){for(var r in t)e[r]=t[r];return e}function Or(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function Ir(e,t){var r=t(),n=Fe({t:{__:r,u:t}}),i=n[0].t,o=n[1];return De(function(){i.__=r,i.u=t,Ar(i)&&o({t:i})},[e,r,t]),Me(function(){return Ar(i)&&o({t:i}),e(function(){Ar(i)&&o({t:i})})},[e]),r}function Ar(e){try{return!((t=e.__)===(r=e.u())&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(e){return!0}var t,r}function Fr(e){e()}function Lr(e){return e}function Mr(){return[!1,Fr]}function Dr(e,t){this.props=e,this.context=t}function Nr(e,t){function r(e){var r=this.props.ref;return r!=e.ref&&r&&("function"==typeof r?r(null):r.current=null),t?!t(this.props,e)||r!=e.ref:Or(this.props,e)}function n(t){return this.shouldComponentUpdate=r,A(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.__f=n.prototype.isReactComponent=!0,n.type=e,n}function Hr(e){function t(t){var r=Rr({},t);return delete r.ref,e(r,t.ref||null)}return t.$$typeof=tr,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function jr(e,t,r){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=Rr({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return jr(e,t,r)})),e}function $r(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return $r(e,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function qr(){this.__u=0,this.o=null,this.__b=null}function Wr(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Ur(e){var t,r,n,i=null;function o(o){if(t||(t=e()).then(function(e){e&&(i=e.default||e),n=!0},function(e){r=e,n=!0}),r)throw r;if(!n)throw t;return i?A(i,o):null}return o.displayName="Lazy",o.__f=!0,o}function Br(){this.i=null,this.l=null}function zr(e){return this.getChildContext=function(){return e.context},e.children}function Qr(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){re(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(e,r){this.childNodes.push(e),t.h.insertBefore(e,r)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}re(A(zr,{context:t.context},e.__v),t.v)}function Kr(e,t){var r=A(Qr,{__v:e,h:t});return r.containerInfo=t,r}function Vr(e,t,r){return t.__k??(t.textContent=""),re(e,t),"function"==typeof r&&r(),e?e.__c:null}function Gr(e,t,r){return ne(e,t),"function"==typeof r&&r(),e?e.__c:null}function Yr(e){return A.bind(null,e)}function Xr(e){return!!e&&e.$$typeof===sr}function Zr(e){return Xr(e)&&e.type===M}function Jr(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")}function en(e){return Xr(e)?ie.apply(null,arguments):e}function tn(e){return!!e.__k&&(re(null,e),!0)}function rn(e){return e&&(e.base||1===e.nodeType&&e)||null}var nn=C(()=>{ae(),Xe(),Jt=De,(Dr.prototype=new D).isPureReactComponent=!0,Dr.prototype.shouldComponentUpdate=function(e,t){return Or(this.props,e)||Or(this.state,t)},er=t.__b,t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),er&&er(e)},tr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,rr=function(e,t){return null==e?null:B(B(e).map(t))},nr={map:rr,forEach:rr,count:function(e){return e?B(e).length:0},only:function(e){var t=B(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:B},ir=t.__e,t.__e=function(e,t,r,n){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e??(t.__e=r.__e,t.__k=r.__k||[]),i.__c(e,t);ir(e,t,r,n)},or=t.unmount,t.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),or&&or(e)},(qr.prototype=new D).__c=function(e,t){var r=t.__c,n=this;n.o??=[],n.o.push(r);var i=Wr(n.__v),o=!1,a=function(){o||n.__z||(o=!0,r.__R=null,i?i(l):l())};r.__R=a;var s=r.__P;r.__P=null;var l=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=$r(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.__P=s,t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},qr.prototype.componentWillUnmount=function(){this.o=[]},qr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=jr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&A(M,null,e.fallback);return i&&(i.__u&=-33),[A(M,null,t.__a?null:e.children),i]},ar=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}},(Br.prototype=new D).__a=function(e){var t=this,r=Wr(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),ar(t,e,n)):i()};r?r(o):o()}},Br.prototype.render=function(e){this.i=null,this.l=new Map;var t=B(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Br.prototype.componentDidUpdate=Br.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){ar(e,r,t)})},sr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,lr=/^(?: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]/,cr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ur=/[A-Z0-9]/g,dr="undefined"!=typeof document,fr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)},D.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(D.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}),pr=t.event,t.event=function(e){return pr&&(e=pr(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e},mr={configurable:!0,get:function(){return this.class}},gr=t.vnode,t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},i=-1==r.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||dr&&"children"===o&&"noscript"===r||"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"!==r&&"textarea"!==r||fr(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":cr.test(o)&&(o=s):s=o="oninput":i&&lr.test(o)?o=o.replace(ur,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&n[o=s]&&(o="oninputCapture"),n[o]=a}}"select"==r&&(n.multiple&&Array.isArray(n.value)&&(n.value=B(t.children).forEach(function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)})),null!=n.defaultValue&&(n.value=B(t.children).forEach(function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",mr)):t.className&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=sr,gr&&gr(e)},vr=t.__r,t.__r=function(e){vr&&vr(e),hr=e.__c},yr=t.diffed,t.diffed=function(e){yr&&yr(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),hr=null},wr={ReactCurrentDispatcher:{current:{readContext:function(e){return hr.__n[e.__c].props.value},useCallback:$e,useContext:qe,useDebugValue:We,useDeferredValue:Lr,useEffect:Me,useId:Be,useImperativeHandle:He,useInsertionEffect:Jt,useLayoutEffect:De,useMemo:je,useReducer:Le,useRef:Ne,useState:Fe,useSyncExternalStore:Ir,useTransition:Mr}}},br="18.3.1",_r=function(e,t){return e(t)},xr=function(e,r){var n=t.debounceRendering;t.debounceRendering=function(e){return e()};var i=e(r);return t.debounceRendering=n,i},Sr={useState:Fe,useId:Be,useReducer:Le,useEffect:Me,useLayoutEffect:De,useInsertionEffect:Jt,useTransition:Mr,useDeferredValue:Lr,useSyncExternalStore:Ir,startTransition:Fr,useRef:Ne,useImperativeHandle:He,useMemo:je,useCallback:$e,useContext:qe,useDebugValue:We,version:"18.3.1",Children:nr,render:Vr,hydrate:Gr,unmountComponentAtNode:tn,createPortal:Kr,createElement:A,createContext:oe,createFactory:Yr,cloneElement:en,createRef:L,Fragment:M,isValidElement:Xr,isElement:kr=Xr,isFragment:Zr,isMemo:Jr,findDOMNode:rn,Component:D,PureComponent:Dr,memo:Nr,forwardRef:Hr,flushSync:xr,unstable_batchedUpdates:_r,StrictMode:M,Suspense:qr,SuspenseList:Br,lazy:Ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wr}});nn(),ae();var on=0;Array.isArray;function an(e,r,n,i,o,a){r||(r={});var s,l,c=r;if("ref"in c)for(l in c={},r)"ref"==l?s=r[l]:c[l]=r[l];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--on,__i:-1,__u:0,__source:o,__self:a};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return t.vnode&&t.vnode(u),u}var sn=oe(void 0),ln=e=>{const t=qe(sn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},cn=({client:e,children:t})=>(Me(()=>(e.mount(),()=>{e.unmount()}),[e]),an(sn.Provider,{value:e,children:t}));nn();var un=oe(!1);un.Provider;nn();var dn=oe(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());nn();var fn=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function pn(e,t,r){const n=qe(un),i=qe(dn),o=ln(r),a=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const s=o.getQueryCache().get(a.queryHash),l=!1!==e.subscribed;a._optimisticResults=n?"isRestoring":l?"optimistic":void 0,(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(a),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?Et(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(a,i,s),(e=>{Me(()=>{e.clearReset()},[e])})(i);const c=!o.getQueryCache().get(a.queryHash),[u]=Fe(()=>new t(o,a)),d=u.getOptimisticResult(a),f=!n&&l;if(Ir($e(e=>{const t=f?u.subscribe(It.batchCalls(e)):at;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult()),Me(()=>{u.setOptions(a)},[a,u]),((e,t)=>e?.suspense&&t.isPending)(a,d))throw fn(a,u,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||Et(r,[e.error,n])))({result:d,errorResetBoundary:i,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(a,d),a.experimental_prefetchInRender&&!Pt.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(d,n)&&(c?fn(a,u,i):s?.promise)?.catch(at).finally(()=>{u.updateResult()}),a.notifyOnChangeProps?d:u.trackResult(d)}function hn(e,t){return pn(e,zt,t)}function mn(e,t){const r=ln(t),[n]=Fe(()=>new Cr(r,e));Me(()=>{n.setOptions(e)},[n,e]);const i=Ir($e(e=>n.subscribe(It.batchCalls(e)),[n]),()=>n.getCurrentResult()),o=$e((e,t)=>{n.mutate(e,t).catch(at)},[n]);if(i.error&&Et(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}nn(),nn(),ae(),Xe();var gn=oe({account:{accountId:""},backend:{url:"",accessToken:""}}),vn=()=>qe(gn);Xe();var yn,wn=class e extends Error{_response;get response(){return this._response}constructor(t,r){super(t),this._response=r,Object.setPrototypeOf(this,e.prototype)}},bn=async(e,t,r,n)=>{const i=await fetch(e,{method:r,body:n?JSON.stringify(n):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.1349",authorization:`Bearer ${t}`},signal:AbortSignal?.timeout&&AbortSignal.timeout(15e3)});if(!i.ok)throw new wn(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},_n=async(e,t,r,n)=>await(await bn(e,t,r,n)).json(),xn=e=>{const t=vn();return je(()=>e(t),[e,t])},kn="linkedAccount",Sn="linkedProfilesForAccount",Cn="salaryPackagedItem",Tn="checkProfileSearchAuthorization",En="payrollAdvice",Pn="invoices",Rn="/salary-packaging/admin/v1.0",On=e=>async()=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/auth`),e.backend.accessToken,"GET"),In=e=>async t=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profile-search?search=${t}`),e.backend.accessToken,"GET"),An=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2),await bn(new URL(`${e.backend.url}${Rn}/ingest/clients`),e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]})},Fn=e=>async()=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}`),e.backend.accessToken,"GET"),Ln=e=>async()=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profiles`),e.backend.accessToken,"GET"),Mn=e=>async t=>{await bn(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profiles/${t}/unlink`),e.backend.accessToken,"POST")},Dn=e=>async(t,r)=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profiles/${t}/items/${r}`),e.backend.accessToken,"GET"),Nn=e=>async t=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`),e.backend.accessToken,"GET"),Hn=e=>async()=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/invoices`),e.backend.accessToken,"GET"),jn=()=>({checkProfileSearchAuthorization:xn(On),searchProfilesForAccount:xn(In),ingestClient:xn(An),linkedAccount:xn(Fn),linkedProfilesForAccount:xn(Ln),unlinkProfile:xn(Mn),salaryPackagedItem:xn(Dn),payrollAdvice:xn(Nn),invoices:xn(Hn)});function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$n.apply(null,arguments)}var qn=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=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{r.insertRule(e,r.cssRules.length)}catch(Vu){}}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}(),Wn="-ms-",Un="-moz-",Bn="-webkit-",zn="comm",Qn="rule",Kn="decl",Vn="@keyframes",Gn=Math.abs,Yn=String.fromCharCode,Xn=Object.assign;function Zn(e){return e.trim()}function Jn(e,t,r){return e.replace(t,r)}function ei(e,t){return e.indexOf(t)}function ti(e,t){return 0|e.charCodeAt(t)}function ri(e,t,r){return e.slice(t,r)}function ni(e){return e.length}function ii(e){return e.length}function oi(e,t){return t.push(e),e}var ai=1,si=1,li=0,ci=0,ui=0,di="";function fi(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ai,column:si,length:a,return:""}}function pi(e,t){return Xn(fi("",null,null,"",null,null,0),e,{length:-e.length},t)}function hi(){return ui=ci>0?ti(di,--ci):0,si--,10===ui&&(si=1,ai--),ui}function mi(){return ui=ci<li?ti(di,ci++):0,si++,10===ui&&(si=1,ai++),ui}function gi(){return ti(di,ci)}function vi(){return ci}function yi(e,t){return ri(di,e,t)}function wi(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 bi(e){return ai=si=1,li=ni(di=e),ci=0,[]}function _i(e){return di="",e}function xi(e){return Zn(yi(ci-1,Ci(91===e?e+2:40===e?e+1:e)))}function ki(e){for(;(ui=gi())&&ui<33;)mi();return wi(e)>2||wi(ui)>3?"":" "}function Si(e,t){for(;--t&&mi()&&!(ui<48||ui>102||ui>57&&ui<65||ui>70&&ui<97););return yi(e,vi()+(t<6&&32==gi()&&32==mi()))}function Ci(e){for(;mi();)switch(ui){case e:return ci;case 34:case 39:34!==e&&39!==e&&Ci(ui);break;case 40:41===e&&Ci(e);break;case 92:mi()}return ci}function Ti(e,t){for(;mi()&&e+ui!==57&&(e+ui!==84||47!==gi()););return"/*"+yi(t,ci-1)+"*"+Yn(47===e?e:mi())}function Ei(e){for(;!wi(gi());)mi();return yi(e,ci)}function Pi(e){return _i(Ri("",null,null,null,[""],e=bi(e),0,[0],e))}function Ri(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,w="",b=i,_=o,x=n,k=w;g;)switch(h=y,y=mi()){case 40:if(108!=h&&58==ti(k,d-1)){-1!=ei(k+=Jn(xi(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=xi(y);break;case 9:case 10:case 13:case 32:k+=ki(h);break;case 92:k+=Si(vi()-1,7);continue;case 47:switch(gi()){case 42:case 47:oi(Ii(Ti(mi(),vi()),t,r),l);break;default:k+="/"}break;case 123*m:s[c++]=ni(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=Jn(k,/\f/g,"")),p>0&&ni(k)-d&&oi(p>32?Ai(k+";",n,r,d-1):Ai(Jn(k," ","")+";",n,r,d-2),l);break;case 59:k+=";";default:if(oi(x=Oi(k,t,r,c,u,i,s,w,b=[],_=[],d),o),123===y)if(0===u)Ri(k,t,x,x,b,o,d,s,_);else switch(99===f&&110===ti(k,3)?100:f){case 100:case 108:case 109:case 115:Ri(e,x,x,n&&oi(Oi(e,x,x,0,0,i,s,w,i,b=[],d),_),i,_,d,s,n?b:_);break;default:Ri(k,x,x,x,[""],_,0,s,_)}}c=u=p=0,m=v=1,w=k="",d=a;break;case 58:d=1+ni(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==hi())continue;switch(k+=Yn(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ni(k)-1)*v,v=1;break;case 64:45===gi()&&(k+=xi(mi())),f=gi(),u=d=ni(w=k+=Ei(vi())),y++;break;case 45:45===h&&2==ni(k)&&(m=0)}}return o}function Oi(e,t,r,n,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],p=ii(f),h=0,m=0,g=0;h<n;++h)for(var v=0,y=ri(e,d+1,d=Gn(m=a[h])),w=e;v<p;++v)(w=Zn(m>0?f[v]+" "+y:Jn(y,/&\f/g,f[v])))&&(l[g++]=w);return fi(e,t,r,0===i?Qn:s,l,c,u)}function Ii(e,t,r){return fi(e,t,r,zn,Yn(ui),ri(e,2,-2),0)}function Ai(e,t,r,n){return fi(e,t,r,Kn,ri(e,0,n),ri(e,n+1,-1),n)}function Fi(e,t){for(var r="",n=ii(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Li(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Kn:return e.return=e.return||e.value;case zn:return"";case Vn:return e.return=e.value+"{"+Fi(e.children,n)+"}";case Qn:e.value=e.props.join(",")}return ni(r=Fi(e.children,n))?e.return=e.value+"{"+r+"}":""}function Mi(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Di=function(e,t,r){for(var n=0,i=0;n=i,i=gi(),38===n&&12===i&&(t[r]=1),!wi(i);)mi();return yi(e,ci)},Ni=function(e,t){return _i(function(e,t){var r=-1,n=44;do{switch(wi(n)){case 0:38===n&&12===gi()&&(t[r]=1),e[r]+=Di(ci-1,t,r);break;case 2:e[r]+=xi(n);break;case 4:if(44===n){e[++r]=58===gi()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Yn(n)}}while(n=mi());return e}(bi(e),t))},Hi=new WeakMap,ji=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Hi.get(r))&&!n){Hi.set(e,!0);for(var i=[],o=Ni(t,i),a=r.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]}}},$i=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function qi(e,t){switch(function(e,t){return 45^ti(e,0)?(((t<<2^ti(e,0))<<2^ti(e,1))<<2^ti(e,2))<<2^ti(e,3):0}(e,t)){case 5103:return Bn+"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 Bn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Bn+e+Un+e+Wn+e+e;case 6828:case 4268:return Bn+e+Wn+e+e;case 6165:return Bn+e+Wn+"flex-"+e+e;case 5187:return Bn+e+Jn(e,/(\w+).+(:[^]+)/,Bn+"box-$1$2"+Wn+"flex-$1$2")+e;case 5443:return Bn+e+Wn+"flex-item-"+Jn(e,/flex-|-self/,"")+e;case 4675:return Bn+e+Wn+"flex-line-pack"+Jn(e,/align-content|flex-|-self/,"")+e;case 5548:return Bn+e+Wn+Jn(e,"shrink","negative")+e;case 5292:return Bn+e+Wn+Jn(e,"basis","preferred-size")+e;case 6060:return Bn+"box-"+Jn(e,"-grow","")+Bn+e+Wn+Jn(e,"grow","positive")+e;case 4554:return Bn+Jn(e,/([^-])(transform)/g,"$1"+Bn+"$2")+e;case 6187:return Jn(Jn(Jn(e,/(zoom-|grab)/,Bn+"$1"),/(image-set)/,Bn+"$1"),e,"")+e;case 5495:case 3959:return Jn(e,/(image-set\([^]*)/,Bn+"$1$`$1");case 4968:return Jn(Jn(e,/(.+:)(flex-)?(.*)/,Bn+"box-pack:$3"+Wn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bn+e+e;case 4095:case 3583:case 4068:case 2532:return Jn(e,/(.+)-inline(.+)/,Bn+"$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(ni(e)-1-t>6)switch(ti(e,t+1)){case 109:if(45!==ti(e,t+4))break;case 102:return Jn(e,/(.+:)(.+)-([^]+)/,"$1"+Bn+"$2-$3$1"+Un+(108==ti(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ei(e,"stretch")?qi(Jn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ti(e,t+1))break;case 6444:switch(ti(e,ni(e)-3-(~ei(e,"!important")&&10))){case 107:return Jn(e,":",":"+Bn)+e;case 101:return Jn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bn+(45===ti(e,14)?"inline-":"")+"box$3$1"+Bn+"$2$3$1"+Wn+"$2box$3")+e}break;case 5936:switch(ti(e,t+11)){case 114:return Bn+e+Wn+Jn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Bn+e+Wn+Jn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Bn+e+Wn+Jn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Bn+e+Wn+e+e}return e}var Wi=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kn:e.return=qi(e.value,e.length);break;case Vn:return Fi([pi(e,{value:Jn(e.value,"@","@"+Bn)})],n);case Qn: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 Fi([pi(e,{props:[Jn(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Fi([pi(e,{props:[Jn(t,/:(plac\w+)/,":"+Bn+"input-$1")]}),pi(e,{props:[Jn(t,/:(plac\w+)/,":-moz-$1")]}),pi(e,{props:[Jn(t,/:(plac\w+)/,Wn+"input-$1")]})],n)}return""})}}],Ui=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,i,o=e.stylisPlugins||Wi,a={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)});var l,c,u=[Li,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=ii(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}([ji,$i].concat(o,u));i=function(e,t,r,n){l=r,Fi(Pi(e?e+"{"+t.styles+"}":t.styles),d),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new qn({key:t,container:n,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},Bi=T(e=>{var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case u:case i:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case h:case s:return e;default:return t}}case n:return t}}}function _(e){return b(e)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=s,e.Element=r,e.ForwardRef=d,e.Fragment=i,e.Lazy=m,e.Memo=h,e.Portal=n,e.Profiler=a,e.StrictMode=o,e.Suspense=f,e.isAsyncMode=function(e){return _(e)||b(e)===c},e.isConcurrentMode=_,e.isContextConsumer=function(e){return b(e)===l},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===m},e.isMemo=function(e){return b(e)===h},e.isPortal=function(e){return b(e)===n},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===o},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},e.typeOf=b}),zi=T((e,t)=>{t.exports=Bi()}),Qi=T((e,t)=>{var r=zi(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return r.isMemo(e)?o:a[e.$$typeof]||n}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,r,n){if("string"!=typeof r){if(p){var o=f(r);o&&o!==p&&e(t,o,n)}var a=c(r);u&&(a=a.concat(u(r)));for(var h=s(t),m=s(r),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||n&&n[v]||m&&m[v]||h&&h[v])){var y=d(r,v);try{l(t,v,y)}catch(Vu){}}}}return t}});function Ki(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var Vi=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Gi=function(e,t,r){Vi(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};function Yi(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}var Xi={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},Zi=/[A-Z]|^ms/g,Ji=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eo=function(e){return 45===e.charCodeAt(1)},to=function(e){return null!=e&&"boolean"!=typeof e},ro=Mi(function(e){return eo(e)?e:e.replace(Zi,"-$&").toLowerCase()}),no=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ji,function(e,t,r){return oo={name:t,styles:r,next:oo},t})}return 1===Xi[e]||eo(e)||"number"!=typeof t||0===t?t:t+"px"};function io(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return oo={name:i.name,styles:i.styles,next:oo},i.name;var o=r;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)oo={name:a.name,styles:a.styles,next:oo},a=a.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=io(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":to(s)&&(n+=ro(o)+":"+no(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=io(e,t,a);switch(o){case"animation":case"animationName":n+=ro(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)to(a[c])&&(n+=ro(o)+":"+no(o,a[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=oo,l=r(e);return oo=s,io(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var oo,ao=/label:\s*([^\s;{]+)\s*(;|$)/g;function so(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";oo=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=io(r,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=io(r,t,e[a]),n&&(i+=o[a]);ao.lastIndex=0;for(var s,l="";null!==(s=ao.exec(i));)l+="-"+s[1];return{name:Yi(i)+l,styles:i,next:oo}}nn();var lo=Jt||!1,co=lo||function(e){return e()},uo=lo||De;nn();var fo=oe("undefined"!=typeof HTMLElement?Ui({key:"css"}):null),po=fo.Provider,ho=function(e){return Hr(function(t,r){return e(t,qe(fo),r)})},mo=oe({}),go={}.hasOwnProperty,vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yo=function(e,t){var r={};for(var n in t)go.call(t,n)&&(r[n]=t[n]);return r[vo]=e,r},wo=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Vi(t,r,n),co(function(){return Gi(t,r,n)}),null},bo=ho(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[vo],o=[n],a="";"string"==typeof e.className?a=Ki(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=so(o,void 0,qe(mo));a+=t.key+"-"+s.name;var l={};for(var c in e)go.call(e,c)&&"css"!==c&&c!==vo&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),A(M,null,A(wo,{cache:t,serialized:s,isStringTag:"string"==typeof i}),A(i,l))});nn();Qi();var _o,xo,ko=function(e,t){var r=arguments;if(null==t||!go.call(t,"css"))return A.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=bo,i[1]=yo(e,t);for(var o=2;o<n;o++)i[o]=r[o];return A.apply(null,i)};_o=ko||(ko={}),xo||(xo=_o.JSX||(_o.JSX={}));var So=ho(function(e,t){var r=so([e.styles],void 0,qe(mo)),n=Ne();return uo(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+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),n.current=[i,o],function(){i.flush()}},[t]),uo(function(){var e=n.current,i=e[0];e[1]?e[1]=!1:(void 0!==r.next&&Gi(t,r.next,!0),i.tags.length&&(i.before=i.tags[i.tags.length-1].nextElementSibling,i.flush()),t.insert("",r,i,!1))},[t,r.name]),null});function Co(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return so(t)}var To=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Eo=Mi(function(e){return To.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});nn();var Po=Eo,Ro=function(e){return"theme"!==e},Oo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Po:Ro},Io=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Ao=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Vi(t,r,n),co(function(){return Gi(t,r,n)}),null};nn();var Fo=function e(t,r){var n,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var s=Io(t,r,o),l=s||Oo(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=ho(function(e,t,r){var n=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=qe(mo)}"string"==typeof e.className?o=Ki(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var h=so(d.concat(u),t.registered,f);o+=t.key+"-"+h.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?Oo(n):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=o,r&&(g.ref=r),A(M,null,A(Ao,{cache:t,serialized:h,isStringTag:"string"==typeof n}),A(n,g))});return m.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,n){return e(t,$n({},r,n,{shouldForwardProp:Io(m,n,!0)})).apply(void 0,d)},m}}.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){Fo[e]=Fo(e)});var Lo=Fo.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, 1))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity, 1))"}:{cursor:"pointer",borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity, 1))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}}),Mo=Fo.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, 1))"},({isActive:e})=>e?{"--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity, 1))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity, 1))",".group:hover &":{"--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity, 1))"}});ae(),Xe();var Do=oe(null),No=()=>{const e=qe(Do);if(!e)throw new Error("useRoute must be used within RouteContext.Provider");return e};nn();var Ho=M,jo=function(e,t,r){return go.call(t,"css")?an(bo,yo(e,t),r):an(e,t,r)},$o=function(e,t,r){return go.call(t,"css")?an(bo,yo(e,t),r):an(e,t,r)},qo=({tabs:e})=>{const{route:t,goToTab:r}=No(),n="main"===t.view?t.tab:void 0;return jo("div",{css:{display:"block"},children:jo("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity, 1))",paddingBottom:"1rem"},children:jo("nav",{"aria-label":"Tabs",role:"tablist",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=>{const t=e.id===n;return jo("button",{type:"button",role:"tab","aria-selected":t,onClick:()=>r(e.id),children:$o(Lo,{className:"group",isActive:t,children:[e.displayName,void 0!==e.count&&jo(Mo,{isActive:t,children:e.count})]})},e.id)})})})})},Wo=e=>jo(Jd,{children:jo("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})}),Uo=e=>jo(Zd,{children:jo("ul",{css:{listStyleType:"none"},children:e.value.split(",").map(t=>jo("li",{children:e.onSelect?jo("button",{type:"button",css:{"--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity, 1))",textDecorationLine:"underline"},onClick:()=>e.onSelect?.(t),children:t}):t},t))})}),Bo=e=>e?.ownerDocument??document,zo=e=>e&&"window"in e&&e.window===e?e:Bo(e).defaultView||window;function Qo(e,t){return!(!t||!e)&&e.contains(t)}var Ko=(e=document)=>e.activeElement;function Vo(e){return e.target}function Go(e){if(function(){if(null==Yo){Yo=!1;try{document.createElement("div").focus({get preventScroll(){return Yo=!0,!0}})}catch{}}return Yo}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft});return r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}var Yo=null;nn();var Xo="undefined"!=typeof document?Sr.useLayoutEffect:()=>{};function Zo(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Jo(e){let t=Ne({isFocused:!1,observer:null});return Xo(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),$e(r=>{let n=Vo(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n,i=n=>{if(t.current.isFocused=!1,r.disabled){let t=Zo(n);e?.(t)}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){t.current.observer?.disconnect();let e=r===Ko()?null:Ko();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}nn();function ea(e){if("undefined"==typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function ta(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function ra(e){let t=null;return()=>(null==t&&(t=e()),t)}var na=ra(function(){return ta(/^Mac/i)}),ia=ra(function(){return ta(/^iPhone/i)}),oa=ra(function(){return ta(/^iPad/i)||na()&&navigator.maxTouchPoints>1}),aa=ra(function(){return ia()||oa()}),sa=(ra(function(){return na()||aa()}),ra(function(){return ea(/AppleWebKit/i)&&!la()})),la=ra(function(){return ea(/Chrome/i)}),ca=ra(function(){return ea(/Android/i)}),ua=ra(function(){return ea(/Firefox/i)});function da(e,t,r=!0){let{metaKey:n,ctrlKey:i,altKey:o,shiftKey:a}=t;ua()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(na()?n=!0:i=!0);let s=sa()&&na()&&!oa()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:i,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:n,ctrlKey:i,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});da.isOpening=r,Go(e),e.dispatchEvent(s),da.isOpening=!1}nn(),da.isOpening=!1,nn();var fa=null,pa=new Set,ha=new Map,ma=!1,ga=!1,va={Tab:!0,Escape:!0};function ya(e,t){for(let r of pa)r(e,t)}function wa(e){ma=!0,!da.isOpening&&function(e){return!(e.metaKey||!na()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(fa="keyboard",ya("keyboard",e))}function ba(e){fa="pointer","pointerType"in e?e.pointerType:"mouse","mousedown"!==e.type&&"pointerdown"!==e.type||(ma=!0,ya("pointer",e))}function _a(e){var t;!da.isOpening&&(""===(t=e).pointerType&&t.isTrusted||(ca()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(ma=!0,fa="virtual","virtual")}function xa(e){let t=zo(Vo(e)),r=Bo(Vo(e));Vo(e)!==t&&Vo(e)!==r&&e.isTrusted&&(ma||ga||(fa="virtual",ya("virtual",e)),ma=!1,ga=!1)}function ka(){ma=!1,ga=!0}function Sa(e){if("undefined"==typeof window||"undefined"==typeof document)return;const t=zo(e),r=Bo(e);if(ha.get(t))return;let n=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){ma=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",wa,!0),r.addEventListener("keyup",wa,!0),r.addEventListener("click",_a,!0),t.addEventListener("focus",xa,!0),t.addEventListener("blur",ka,!1),"undefined"!=typeof PointerEvent&&(r.addEventListener("pointerdown",ba,!0),r.addEventListener("pointermove",ba,!0),r.addEventListener("pointerup",ba,!0)),t.addEventListener("beforeunload",()=>{Ca(e)},{once:!0}),ha.set(t,{focus:n})}var Ca=(e,t)=>{const r=zo(e),n=Bo(e);t&&n.removeEventListener("DOMContentLoaded",t),ha.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:ha.get(r).focus}),n.removeEventListener("keydown",wa,!0),n.removeEventListener("keyup",wa,!0),n.removeEventListener("click",_a,!0),r.removeEventListener("focus",xa,!0),r.removeEventListener("blur",ka,!1),"undefined"!=typeof PointerEvent&&(n.removeEventListener("pointerdown",ba,!0),n.removeEventListener("pointermove",ba,!0),n.removeEventListener("pointerup",ba,!0)),ha.delete(r))};function Ta(){return"pointer"!==fa}"undefined"!=typeof document&&function(e){const t=Bo(e);let r;"loading"!==t.readyState?Sa(e):(r=()=>{Sa(e)},t.addEventListener("DOMContentLoaded",r))}();var Ea=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Pa(e,t,r){Sa(),Me(()=>{if(!1===r?.enabled)return;let t=(t,n)=>{(function(e,t,r){let n=r?Vo(r):void 0,i=Bo(n),o=zo(n);const a=void 0!==o?o.HTMLInputElement:HTMLInputElement,s=void 0!==o?o.HTMLTextAreaElement:HTMLTextAreaElement,l=void 0!==o?o.HTMLElement:HTMLElement,c=void 0!==o?o.KeyboardEvent:KeyboardEvent;let u=Ko(i);return!((e=e||u instanceof a&&!Ea.has(u.type)||u instanceof s||u instanceof l&&u.isContentEditable)&&"keyboard"===t&&r instanceof c&&!va[r.key])})(!!r?.isTextInput,t,n)&&e(Ta())};return pa.add(t),()=>{pa.delete(t)}},t)}function Ra(){let e=Ne(new Map),t=$e((t,r,n,i)=>{let o=i?.once?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:i}),t.addEventListener(r,o,i)},[]),r=$e((t,r,n,i)=>{let o=e.current.get(n)?.fn||n;t.removeEventListener(r,o,i),e.current.delete(n)},[]),n=$e(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return Me(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Oa(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,o=Ne({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=Ra(),l=$e(e=>{Qo(e.currentTarget,Vo(e))&&o.current.isFocusWithin&&!Qo(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),r&&r(e),i&&i(!1))},[r,i,o,s]),c=Jo(l),u=$e(e=>{if(!Qo(e.currentTarget,Vo(e)))return;let t=Vo(e);const r=Bo(t),s=Ko(r);if(!o.current.isFocusWithin&&s===t){n&&n(e),i&&i(!0),o.current.isFocusWithin=!0,c(e);let t=e.currentTarget;a(r,"focus",e=>{let n=Vo(e);if(o.current.isFocusWithin&&!Qo(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(e,t);let i=Zo(e);l(i)}},{capture:!0})}},[n,i,c,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}function Ia(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,i=Ne({isFocused:!1,isFocusVisible:t||Ta()}),[o,a]=Fe(!1),[s,l]=Fe(()=>i.current.isFocused&&i.current.isFocusVisible),c=$e(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),u=$e(e=>{i.current.isFocused=e,i.current.isFocusVisible=Ta(),a(e),c()},[c]);Pa(e=>{i.current.isFocusVisible=e,c()},[r,o],{enabled:o,isTextInput:r});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e;const o=$e(e=>{if(Vo(e)===e.currentTarget)return n&&n(e),i&&i(!1),!0},[n,i]),a=Jo(o),s=$e(e=>{let t=Vo(e);const n=Bo(t),o=n?Ko(n):Ko();t===e.currentTarget&&t===o&&(r&&r(e),i&&i(!0),a(e))},[i,r,a]);return{focusProps:{onFocus:!t&&(r||i||n)?s:void 0,onBlur:t||!n&&!i?void 0:o}}}({isDisabled:n,onFocusChange:u}),{focusWithinProps:f}=Oa({isDisabled:!n,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:n?f:d}}nn(),nn(),nn(),nn(),nn();var Aa=!1,Fa=0;function La(e){"touch"===e.pointerType&&(Aa=!0,setTimeout(()=>{Aa=!1},500))}function Ma(){let e=Bo(null);if(void 0!==e)return 0===Fa&&"undefined"!=typeof PointerEvent&&e.addEventListener("pointerup",La),Fa++,()=>{--Fa>0||"undefined"!=typeof PointerEvent&&e.removeEventListener("pointerup",La)}}function Da(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[o,a]=Fe(!1),s=Ne({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Me(Ma,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Ra(),{hoverProps:u,triggerHoverEnd:d}=je(()=>{let e=(e,t)=>{let i=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&i&&(s.isHovered=!1,c(),n&&n({type:"hoverend",target:i,pointerType:t}),r&&r(!1),a(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=n=>{Aa&&"mouse"===n.pointerType||((n,o)=>{if(s.pointerType=o,i||"touch"===o||s.isHovered||!Qo(n.currentTarget,Vo(n)))return;s.isHovered=!0;let c=n.currentTarget;s.target=c,l(Bo(Vo(n)),"pointerover",t=>{s.isHovered&&s.target&&!Qo(s.target,Vo(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:o}),r&&r(!0),a(!0)})(n,n.pointerType)},o.onPointerLeave=t=>{!i&&Qo(t.currentTarget,Vo(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,r,n,i,s,l,c]);return Me(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:o}}var Na=Object.defineProperty,Ha=(e,t,r)=>(((e,t,r)=>{t in e?Na(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),ja=new class{constructor(){Ha(this,"current",this.detect()),Ha(this,"handoffState","pending"),Ha(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 $a(e){var t;return ja.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function qa(e){var t,r;return ja.isServer?null:null==e?document:null!=(r=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?r:document}function Wa(e){var t,r;return null!=(r=null==(t=qa(e))?void 0:t.activeElement)?r:null}function Ua(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function Ba(){let e=[],t={addEventListener:(e,r,n,i)=>(e.addEventListener(r,n,i),t.add(()=>e.removeEventListener(r,n,i))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(r))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let r=setTimeout(...e);return t.add(()=>clearTimeout(r))},microTask(...e){let r={current:!0};return Ua(()=>{r.current&&e[0]()}),t.add(()=>{r.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(e){let t=Ba();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function za(){let[e]=Fe(Ba);return Me(()=>()=>e.dispose(),[e]),e}nn(),nn();var Qa=(e,t)=>{ja.isServer?Me(e,t):De(e,t)};function Ka(e){let t=Ne(e);return Qa(()=>{t.current=e},[e]),t}nn(),nn();var Va=function(e){let t=Ka(e);return Sr.useCallback((...e)=>t.current(...e),[t])};function Ga(e){return je(()=>e,Object.values(e))}nn(),nn(),nn();var Ya=oe(void 0);function Xa(){return qe(Ya)}function Za(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function Ja(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=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(n,Ja),n}nn();var es=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(es||{}),ts=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ts||{});function rs(){let e=function(){let e=Ne([]),t=$e(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return(...r)=>{if(!r.every(e=>null==e))return e.current=r,t}}();return $e(t=>function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:is;let l=os(t,e);if(o)return ns(l,r,n,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ns(t,r,n,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Ja(e?0:1,{0:()=>null,1:()=>ns({...t,hidden:!0,style:{display:"none"}},r,n,a,s)})}return ns(l,r,n,a,s)}({mergeRefs:e,...t}),[e])}function ns(e,t={},r,n,i){let{as:o=r,children:a,refName:s="ref",...l}=cs(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;u=ds(u),"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,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){d["data-headlessui-state"]=r.join(" ");for(let e of r)d[`data-${e}`]=""}}if(fs(o)&&(Object.keys(ls(l)).length>0||Object.keys(ls(d)).length>0)){if(!(!Xr(u)||Array.isArray(u)&&u.length>1||function(e){return fs(e.type)}(u))){let e=u.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>Za(t(...e),l.className):Za(t,l.className),n=r?{className:r}:{},o=os(u.props,ls(cs(l,["ref"])));for(let i in d)i in o&&delete d[i];return en(u,Object.assign({},o,d,c,{ref:i(us(u),c.ref)},n))}if(Object.keys(ls(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ls(l)).concat(Object.keys(ls(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 A(o,Object.assign({},cs(l,["ref"]),!fs(o)&&c,!fs(o)&&d),u)}function is(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function os(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(r[e]??(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let n in r)Object.assign(t,{[n](e,...t){let i=r[n];for(let r of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;r(e,...t)}}});return t}function as(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(r[e]??(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let n in r)Object.assign(t,{[n](...e){let t=r[n];for(let r of t)r?.(...e)}});return t}function ss(e){var t;return Object.assign(Hr(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ls(e){let t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}function cs(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function us(e){return Sr.version.split(".")[0]>="19"?e.props.ref:e.ref}function ds(e){if(null!=e&&e.$$typeof===Symbol.for("react.lazy")){let t=e._payload;if(null!=t&&"fulfilled"===t.status)return ds(t.value)}return e}function fs(e){return e===M||e===Symbol.for("react.fragment")}nn();var ps=oe(void 0);function hs(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function ms(e){return hs(e)&&"tagName"in e}function gs(e){return ms(e)&&"accessKey"in e}function vs(e){return ms(e)&&"tabIndex"in e}function ys(e){return gs(e)&&"INPUT"===e.nodeName}function ws(e){return gs(e)&&"LABEL"===e.nodeName}function bs(e){return gs(e)&&"FIELDSET"===e.nodeName}function _s(e){return gs(e)&&"LEGEND"===e.nodeName}function xs(e){let t=e.parentElement,r=null;for(;t&&!bs(t);)_s(t)&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(_s(t))return!1;t=t.previousElementSibling}return!0}(r))&&n}nn();var ks=Symbol();function Ss(...e){let t=Ne(e);Me(()=>{t.current=e},[e]);let r=Va(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[ks]))?void 0:r}nn(),Xe();var Cs=oe(null);function Ts(){let e=qe(Cs);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,Ts),e}return e}Cs.displayName="DescriptionContext";var Es=ss(function(e,t){let r=Be(),n=Xa(),{id:i=`headlessui-description-${r}`,...o}=e,a=Ts(),s=Ss(t);Qa(()=>a.register(i),[i,a.register]);let l=Ga({...a.slot,disabled:n||!1}),c={ref:s,...a.props,id:i};return rs()({ourProps:c,theirProps:o,slot:l,defaultTag:"p",name:a.name||"Description"})}),Ps=(Object.assign(Es,{}),(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ps||{}));nn(),Xe();var Rs=oe(null);function Os(){let e=qe(Rs);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,Os),e}return e}function Is({inherit:e=!1}={}){let t=function(e){var t,r,n;let i=null!=(r=null==(t=qe(Rs))?void 0:t.value)?r:void 0;return(null!=(n=null==e?void 0:e.length)?n:0)>0?[i,...e].filter(Boolean).join(" "):i}(),[r,n]=Fe([]),i=e?[t,...r].filter(Boolean):r;return[i.length>0?i.join(" "):void 0,je(()=>function(e){let t=Va(e=>(n(t=>[...t,e]),()=>n(t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))),r=je(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return Sr.createElement(Rs.Provider,{value:r},e.children)},[n])]}Rs.displayName="LabelContext";var As=ss(function(e,t){var r;let n=Be(),i=Os(),o=qe(ps),a=Xa(),{id:s=`headlessui-label-${n}`,htmlFor:l=(null!=o?o:null==(r=i.props)?void 0:r.htmlFor),passive:c=!1,...u}=e,d=Ss(t);Qa(()=>i.register(s),[s,i.register]);let f=Va(e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!ms(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(ws(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),ws(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(ys(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=Ga({...i.slot,disabled:a||!1}),h={ref:d,...i.props,id:s,htmlFor:l,onClick:f};return c&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in u&&delete u.onClick),rs()({ourProps:h,theirProps:u,slot:p,defaultTag:l?"label":"div",name:i.name||"Label"})});Object.assign(As,{});function Fs(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function Ls(e,t,r=!1){let[n,i]=Fe(()=>Fs(t));return Qa(()=>{if(!t||!e)return;let r=Ba();return r.requestAnimationFrame(function e(){r.requestAnimationFrame(e),i(e=>{let r=Fs(t);return r.width===e.width&&r.height===e.height?e:r})}),()=>{r.dispose()}},[t,e]),r?{width:`${n.width}px`,height:`${n.height}px`}:n}nn();var Ms=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Ms||{});nn();var Ds,Ns,Hs,js=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}},$s=Object.defineProperty,qs=(e,t,r)=>(((e,t,r)=>{t in e?$s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),Ws=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Us=(e,t,r)=>(Ws(e,t,"read from private field"),r?r.call(e):t.get(e)),Bs=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},zs=(e,t,r,n)=>(Ws(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Qs=class{constructor(e){Bs(this,Ds,{}),Bs(this,Ns,new js(()=>new Set)),Bs(this,Hs,new Set),qs(this,"disposables",Ba()),zs(this,Ds,e),ja.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Us(this,Ds)}subscribe(e,t){if(ja.isServer)return()=>{};let r={selector:e,callback:t,current:e(Us(this,Ds))};return Us(this,Hs).add(r),this.disposables.add(()=>{Us(this,Hs).delete(r)})}on(e,t){return ja.isServer?()=>{}:(Us(this,Ns).get(e).add(t),this.disposables.add(()=>{Us(this,Ns).get(e).delete(t)}))}send(e){let t=this.reduce(Us(this,Ds),e);if(t!==Us(this,Ds)){zs(this,Ds,t);for(let e of Us(this,Hs)){let t=e.selector(Us(this,Ds));Ks(e.current,t)||(e.current=t,e.callback(t))}for(let t of Us(this,Ns).get(e.type))t(Us(this,Ds),e)}}};function Ks(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&Vs(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&Vs(e.entries(),t.entries()):!(!Gs(e)||!Gs(t))&&Vs(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function Vs(e,t){for(;;){let r=e.next(),n=t.next();if(r.done&&n.done)return!0;if(r.done||n.done||!Object.is(r.value,n.value))return!1}}function Gs(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function Ys(e){let[t,r]=e(),n=Ba();return(...e)=>{t(...e),n.dispose(),n.microTask(r)}}Ds=new WeakMap,Ns=new WeakMap,Hs=new WeakMap;var Xs=Object.defineProperty,Zs=(e,t,r)=>(((e,t,r)=>{t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),Js=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Js||{}),el={0(e,t){let r=t.id,n=e.stack,i=e.stack.indexOf(r);if(-1!==i){let t=e.stack.slice();return t.splice(i,1),t.push(r),n=t,{...e,stack:n}}return{...e,stack:[...e.stack,r]}},1(e,t){let r=t.id,n=e.stack.indexOf(r);if(-1===n)return e;let i=e.stack.slice();return i.splice(n,1),{...e,stack:i}}},tl=class e extends Qs{constructor(){super(...arguments),Zs(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Zs(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new e({stack:[]})}reduce(e,t){return Ja(t.type,el,e,t)}},rl=new js(()=>tl.new()),nl=T(e=>{var t,r=(nn(),t=Pr,S.call(t,"module.exports")?t["module.exports"]:P(b({},"__esModule",{value:!0}),t));var n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,o=r.useRef,a=r.useEffect,s=r.useMemo,l=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,r,c,u){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!a){if(a=!0,i=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,n(i,e))return t;var r=c(e);return void 0!==u&&u(t,r)?(i=e,t):(i=e,o=r)}var i,o,a=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,r,c,u]);var p=i(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}}),il=T((e,t)=>{t.exports=nl()})();function ol(e,t,r=Ks){return(0,il.useSyncExternalStoreWithSelector)(Va(t=>e.subscribe(al,t)),Va(()=>e.state),Va(()=>e.state),Va(t),r)}function al(e){return e}function sl(e,t){let r=Be(),n=rl.get(t),[i,o]=ol(n,$e(e=>[n.selectors.isTop(e,r),n.selectors.inStack(e,r)],[n,r]));return Qa(()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)},[n,e,r]),!!e&&(!o||i)}nn();var ll=new Map,cl=new Map;function ul(e){var t;let r=null!=(t=cl.get(e))?t:0;return cl.set(e,r+1),0!==r||(ll.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>dl(e)}function dl(e){var t;let r=null!=(t=cl.get(e))?t:1;if(1===r?cl.delete(e):cl.set(e,r-1),1!==r)return;let n=ll.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,ll.delete(e))}nn();var fl=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),pl=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(","),hl=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(hl||{}),ml=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ml||{}),gl=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(gl||{});function vl(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(fl)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var yl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(yl||{});function wl(e,t=0){var r;return e!==(null==(r=$a(e))?void 0:r.body)&&Ja(t,{0:()=>e.matches(fl),1(){let t=e;for(;null!==t;){if(t.matches(fl))return!0;t=t.parentElement}return!1}})}function bl(e){Ba().nextFrame(()=>{let t=Wa(e);t&&vs(t)&&!wl(t,0)&&function(e){e?.focus({preventScroll:!0})}(e)})}var _l=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_l||{});"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));var xl=["textarea","input"].join(",");function kl(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Sl(e,t,r=(null===e?document.body:qa(e))){return function(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?qa(e[0]):document:qa(e),a=Array.isArray(e)?r?kl(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(pl)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):vl(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))),n=null!=n?n:null==o?void 0: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(n))-1;if(4&t)return Math.max(0,a.indexOf(n))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],s?.focus(u),d+=l}while(s!==Wa(s));return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,xl))&&r}(s)&&s.select(),2}(vl(r),t,{relativeTo:e})}function Cl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Tl(){return Cl()||/Android/gi.test(window.navigator.userAgent)}function El(e,t,r,n){let i=Ka(r);Me(()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){i.current(e)}},[e,t,n])}nn(),nn(),nn();function Pl(e,t,r){let n=Ka(r),i=$e(function(e,r){if(e.defaultPrevented)return;let i=r(e);if(null===i||!i.getRootNode().contains(i)||!i.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(i)||e.composed&&e.composedPath().includes(t)))return;return!wl(i,yl.Loose)&&-1!==i.tabIndex&&e.preventDefault(),n.current(e,i)},[n,t]),o=Ne(null);El(e,"pointerdown",e=>{var t,r;Tl()||(o.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),El(e,"pointerup",e=>{if(Tl()||!o.current)return;let t=o.current;return o.current=null,i(e,()=>t)},!0);let a=Ne({x:0,y:0});El(e,"touchstart",e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY},!0),El(e,"touchend",e=>{let t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(r-a.current.y)>=30))return i(e,()=>vs(e.target)?e.target:null)},!0),function(e,t,r,n){let i=Ka(r);Me(()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){i.current(e)}},[e,t,n])}(e,"blur",e=>i(e,()=>function(e){return gs(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null),!0)}function Rl(...e){return je(()=>$a(...e),[...e])}nn(),nn();var Ol=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(Ol||{}),Il={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function Al(e,t){return je(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";return"string"==typeof n&&"button"===n.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0},[e.type,e.as,t])}function Fl(){let e;return{before({doc:t}){var r;let n=t.documentElement,i=null!=(r=t.defaultView)?r:window;e=Math.max(0,i.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,i=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,e-i);r.style(n,"paddingRight",`${o}px`)}}}function Ll(){return Cl()?{before({doc:e,d:t,meta:r}){function n(e){for(let t of r().containers)for(let r of t())if(r.contains(e))return!0;return!1}t.microTask(()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=Ba();r.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>r.dispose()))}let i=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(vs(t.target))try{let r=t.target.closest("a");if(!r)return;let{hash:i}=new URL(r.href),a=e.querySelector(i);vs(a)&&!n(a)&&(o=a)}catch{}},!0),t.group(r=>{t.addEventListener(e,"touchstart",e=>{if(r.dispose(),vs(e.target)&&function(e){return ms(e)&&"style"in e}(e.target))if(n(e.target)){let t=e.target;for(;t.parentElement&&n(t.parentElement);)t=t.parentElement;r.style(t,"overscrollBehavior","contain")}else r.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(vs(e.target)){if(ys(e.target))return;if(n(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)})})}}:{}}function Ml(e){let t={};for(let r of e)Object.assign(t,r(t));return t}nn(),nn();var Dl,Nl,Hl=function(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...i){let o=t[e].call(r,...i);o&&(r=o,n.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:Ba(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(t),n.computedMeta=Ml(n.meta),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t),r.computedMeta=Ml(r.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[Ll(),Fl(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];r.forEach(({before:e})=>null==e?void 0:e(t)),r.forEach(({after:e})=>null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function jl(e,t,r=()=>({containers:[]})){let n=function(e){return Ir(e.subscribe,e.getSnapshot,e.getSnapshot)}(Hl),i=t?n.get(t):void 0,o=!!i&&i.count>0;return Qa(()=>{if(t&&e)return Hl.dispatch("PUSH",t,r),()=>Hl.dispatch("POP",t,r)},[e,t]),o}function $l(e){return[e.screenX,e.screenY]}Hl.subscribe(()=>{let e=Hl.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&Hl.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&Hl.dispatch("TEARDOWN",r)}}),nn(),nn(),nn(),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Dl=null==process?void 0:{})?void 0:Dl.NODE_ENV)&&void 0===(null==(Nl=null==Element?void 0:Element.prototype)?void 0:Nl.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 ql=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ql||{});function Wl(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function Ul(e,t,r,n){let[i,o]=Fe(r),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,r]=Fe(e);return{flags:t,setFlag:$e(e=>r(e),[]),addFlag:$e(e=>r(t=>t|e),[]),hasFlag:$e(e=>(t&e)===e,[t]),removeFlag:$e(e=>r(t=>t&~e),[]),toggleFlag:$e(e=>r(t=>t^e),[])}}(e&&i?3:0),c=Ne(!1),u=Ne(!1);return Qa(()=>{var i;if(e)return r&&o(!0),t?(null==(i=null==n?void 0:n.start)||i.call(n,r),function(e,{prepare:t,run:r,done:n,inFlight:i}){let o=Ba();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return void r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{r(),o.requestAnimationFrame(()=>{o.add(function(e,t){var r,n;let i=Ba();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?n:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map(e=>e.finished)).then(()=>{o||t()}),i.dispose)}(e,n))})}),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(r?(s(3),l(4)):(s(4),l(2)))},run(){u.current?r?(l(3),s(4)):(l(4),s(3)):r?l(1):s(1)},done(){var e;u.current&&function(e){var t,r;return(null!=(r=null==(t=e.getAnimations)?void 0:t.call(e))?r:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}(t)||(c.current=!1,l(7),r||o(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})):void(r&&s(3))},[e,r,t,za()]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Bl(){return"undefined"!=typeof window}function zl(e){return Vl(e)?(e.nodeName||"").toLowerCase():"#document"}function Ql(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Kl(e){var t;return null==(t=(Vl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Vl(e){return!!Bl()&&(e instanceof Node||e instanceof Ql(e).Node)}function Gl(e){return!!Bl()&&(e instanceof Element||e instanceof Ql(e).Element)}function Yl(e){return!!Bl()&&(e instanceof HTMLElement||e instanceof Ql(e).HTMLElement)}function Xl(e){return!(!Bl()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ql(e).ShadowRoot)}function Zl(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=lc(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function Jl(e){return/^(table|td|th)$/.test(zl(e))}function ec(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}nn();var tc,rc=/transform|translate|scale|rotate|perspective|filter/,nc=/paint|layout|strict|content/,ic=e=>!!e&&"none"!==e;function oc(e){const t=Gl(e)?lc(e):e;return ic(t.transform)||ic(t.translate)||ic(t.scale)||ic(t.rotate)||ic(t.perspective)||!ac()&&(ic(t.backdropFilter)||ic(t.filter))||rc.test(t.willChange||"")||nc.test(t.contain||"")}function ac(){return null==tc&&(tc="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tc}function sc(e){return/^(html|body|#document)$/.test(zl(e))}function lc(e){return Ql(e).getComputedStyle(e)}function cc(e){return Gl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function uc(e){if("html"===zl(e))return e;const t=e.assignedSlot||e.parentNode||Xl(e)&&e.host||Kl(e);return Xl(t)?t.host:t}function dc(e){const t=uc(e);return sc(t)?(e.ownerDocument||e).body:Yl(t)&&Zl(t)?t:dc(t)}function fc(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const i=dc(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=Ql(i);if(o){const e=pc(a);return t.concat(a,a.visualViewport||[],Zl(i)?i:[],e&&r?fc(e):[])}return t.concat(i,fc(i,[],r))}function pc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var hc=Math.min,mc=Math.max,gc=Math.round,vc=Math.floor,yc=e=>({x:e,y:e}),wc={left:"right",right:"left",bottom:"top",top:"bottom"};function bc(e,t){return"function"==typeof e?e(t):e}function _c(e){return e.split("-")[0]}function xc(e){return e.split("-")[1]}function kc(e){return"x"===e?"y":"x"}function Sc(e){return"y"===e?"height":"width"}function Cc(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Tc(e){return kc(Cc(e))}function Ec(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Pc=["left","right"],Rc=["right","left"],Oc=["top","bottom"],Ic=["bottom","top"];function Ac(e,t,r,n){const i=xc(e);let o=function(e,t,r){switch(e){case"top":case"bottom":return r?t?Rc:Pc:t?Pc:Rc;case"left":case"right":return t?Oc:Ic;default:return[]}}(_c(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(Ec)))),o}function Fc(e){const t=_c(e);return wc[t]+e.slice(t.length)}function Lc(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Mc(e,t,r){let{reference:n,floating:i}=e;const o=Cc(t),a=Tc(t),s=Sc(a),l=_c(t),c="y"===o,u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}const h=xc(t);return h&&(p[a]+=f*("end"===h?1:-1)*(r&&c?-1:1)),p}async function Dc(e,t){var r;void 0===t&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=bc(t,e),h=function(e){return"number"!=typeof e?function(e){var t,r,n,i;return{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(i=e.left)?i:0}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[f?"floating"===d?"reference":"floating":d],g=Lc(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=Lc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}var Nc=new Set(["left","top"]);function Hc(e){const t=lc(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Yl(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=gc(r)!==o||gc(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function jc(e){return Gl(e)?e:e.contextElement}function $c(e){const t=jc(e);if(!Yl(t))return yc(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Hc(t);let a=(o?gc(r.width):r.width)/n,s=(o?gc(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var qc=yc(0);function Wc(e){const t=Ql(e);return ac()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qc}function Uc(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const i=e.getBoundingClientRect(),o=jc(e);let a=yc(1);t&&(n?Gl(n)&&(a=$c(n)):a=$c(e));const s=function(e,t,r){return void 0===t&&(t=!1),!!r&&t&&r===Ql(e)}(o,r,n)?Wc(o):yc(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&&n){const e=Ql(o),t=Gl(n)?Ql(n):n;let r=e,i=pc(r);for(;i&&t!==r;){const e=$c(i),t=i.getBoundingClientRect(),n=lc(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,r=Ql(i),i=pc(r)}}return Lc({width:u,height:d,x:l,y:c})}function Bc(e,t){const r=cc(e).scrollLeft;return t?t.left+r:Uc(Kl(e)).left+r}function zc(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Bc(e,r),y:r.top+t.scrollTop}}function Qc(e,t,r){let n;if("viewport"===t||"layoutViewport"===t)n=function(e,t,r){void 0===r&&(r="viewport");const n="layoutViewport"===r,i=Ql(e),o=Kl(e),a=i.visualViewport;let s=o.clientWidth,l=o.clientHeight,c=0,u=0;if(a){const e=!ac()||"fixed"===t;n?e||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,e&&(c=a.offsetLeft,u=a.offsetTop))}if(Bc(o)<=0){const e=o.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-n),a="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;a<=25&&(s-=a)}return{width:s,height:l,x:c,y:u}}(e,r,t);else if("document"===t)n=function(e){const t=cc(e),r=e.ownerDocument.body,n=mc(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=mc(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-t.scrollLeft+Bc(e);const a=-t.scrollTop;return"rtl"===lc(r).direction&&(o+=mc(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:a}}(Kl(e));else if(Gl(t))n=function(e,t){const r=Uc(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=$c(e);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}(t,r);else{const r=Wc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lc(n)}function Kc(e,t){const r=t.get(e);if(r)return r;let n=fc(e,[],!1).filter(e=>Gl(e)&&"body"!==zl(e)),i=null;const o="fixed"===lc(e).position;let a=o?uc(e):e;for(;Gl(a)&&!sc(a);){const e=lc(a),t=oc(a),r=i?i.position:o?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?i=e:n=n.filter(e=>e!==a),a=uc(a)}return t.set(e,n),n}function Vc(e,t,r){const n=Yl(t),i=Kl(t),o="fixed"===r,a=Uc(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=yc(0);if((n||!o)&&(("body"!==zl(t)||Zl(i))&&(s=cc(t)),n)){const e=Uc(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!n&&i&&(l.x=Bc(i));const c=!i||n||o?yc(0):zc(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 Gc(e){return"static"===lc(e).position}function Yc(e,t){if(!Yl(e)||"fixed"===lc(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Kl(e)===r&&(r=r.ownerDocument.body),r}function Xc(e,t){const r=Ql(e);if(ec(e))return r;if(!Yl(e)){let t=uc(e);for(;t&&!sc(t);){if(Gl(t)&&!Gc(t))return t;t=uc(t)}return r}let n=Yc(e,t);for(;n&&Jl(n)&&Gc(n);)n=Yc(n,t);return n&&sc(n)&&Gc(n)&&!oc(n)?r:n||function(e){let t=uc(e);for(;Yl(t)&&!sc(t);){if(oc(t))return t;if(ec(t))return null;t=uc(t)}return null}(e)||r}var Zc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o="fixed"===i,a=Kl(n),s=!!t&&ec(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},c=yc(1);const u=yc(0),d=Yl(n);if((d||!o)&&(("body"!==zl(n)||Zl(a))&&(l=cc(n)),d)){const e=Uc(n);c=$c(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!a||d||o?yc(0):zc(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Kl,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[..."clippingAncestors"===r?ec(t)?[]:Kc(t,this._c):[].concat(r),n],a=Qc(t,o[0],i);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let d=1;d<o.length;d++){const e=Qc(t,o[d],i);s=mc(e.top,s),l=hc(e.right,l),c=hc(e.bottom,c),u=mc(e.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:Xc,getElementRects:async function(e){const t=this.getOffsetParent||Xc,r=this.getDimensions,n=await r(e.floating);return{reference:Vc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:r}=Hc(e);return{width:t,height:r}},getScale:$c,isElement:Gl,isRTL:function(e){return"rtl"===lc(e).direction}};function Jc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eu(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=jc(e),u=i||o?[...c?fc(c):[],...t?fc(t):[]]:[];u.forEach(e=>{i&&e.addEventListener("scroll",r),o&&e.addEventListener("resize",r)});const d=c&&s?function(e,t,r){let n,i=null;const o=Kl(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(r||t(),!f||!p)return;const h={rootMargin:-vc(d)+"px "+-vc(o.clientWidth-(u+f))+"px "+-vc(o.clientHeight-(d+p))+"px "+-vc(u)+"px",threshold:mc(0,hc(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(!Jc(c,e.getBoundingClientRect()))return s();if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(v){i=new IntersectionObserver(g,h)}i.observe(e)}const l=Ql(e),c=()=>s(r);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}(c,r,o):null;let f,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!l&&h.observe(c),t&&h.observe(t));let m=l?Uc(e):null;return l&&function t(){const n=Uc(e);m&&!Jc(m,n)&&r();m=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),d?.(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var tu=Dc,ru=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:i}=e,o=await(null==n.isRTL?void 0:n.isRTL(i.floating)),a=_c(r),s=xc(r),l="y"===Cc(r),c=Nc.has(a)?-1:1,u=o&&l?-1:1,d=bc(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},nu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=bc(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),f=Cc(i),p=kc(f);let h=u[p],m=u[f];const g=(e,t)=>{return r=t+d["y"===e?"top":"left"],n=t,i=t-d["y"===e?"bottom":"right"],mc(r,hc(n,i));var r,n,i};a&&(h=g(p,h)),s&&(m=g(f,m));const v=l.fn({...t,[p]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:a,[f]:s}}}}}},iu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=bc(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const v=_c(i),y=Cc(s),w=_c(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),_=f||(w||!m?[Fc(s)]:function(e){const t=Fc(e);return[Ec(e),t,Ec(t)]}(s)),x="none"!==h;!f&&x&&_.push(...Ac(s,m,h,b));const k=[s,..._],S=await l.detectOverflow(t,g),C=[];let T=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&C.push(S[v]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=xc(e),i=Tc(e),o=Sc(i);let a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Fc(a)),[a,Fc(a)]}(i,a,b);C.push(S[e[0]],S[e[1]])}if(T=[...T,{placement:i,overflows:C}],!C.every(e=>e<=0)){var E,P;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=k[e];if(t&&("alignment"!==d||y===Cc(t)||T.every(e=>Cc(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let r=null==(P=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!r)switch(p){case"bestFit":{var R;const e=null==(R=T.filter(e=>{if(x){const t=Cc(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&&(r=e);break}case"initialPlacement":r=s}if(i!==r)return{reset:{placement:r}}}return{}}}},ou=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:o}=t,{apply:a=()=>{},...s}=bc(e,t),l=await i.detectOverflow(t,s),c=_c(r),u=xc(r),d="y"===Cc(r),{width:f,height:p}=n.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=p-l.top-l.bottom,v=f-l.left-l.right,y=hc(p-l[h],g),w=hc(f-l[m],v),b=t.middlewareData.shift,_=!b;let x=y,k=w;null!=b&&b.enabled.x&&(k=v),null!=b&&b.enabled.y&&(x=g),_&&!u&&(d?k=f-2*mc(l.left,l.right):x=p-2*mc(l.top,l.bottom)),await a({...t,availableWidth:k,availableHeight:x});const S=await i.getDimensions(o.floating);return f!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},au=(e,t,r)=>{const n=new Map,i=null!=r?r:{},o={...Zc,...i.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:Dc},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}=Mc(c,n,l),f=n,p=0;const h={};for(let m=0;m<o.length;m++){const r=o[m];if(!r)continue;const{name:g,fn:v}=r,{x:y,y:w,data:b,reset:_}=await v({x:u,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=w?w:d,h[g]={...h[g],...b},_&&p<50&&(p++,"object"==typeof _&&(_.placement&&(f=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),({x:u,y:d}=Mc(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};nn();var su="undefined"!=typeof document?De:function(){};function lu(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 r,n,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!lu(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!==n--;){const r=i[n];if(("_owner"!==r||!e.$$typeof)&&!lu(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function cu(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uu(e,t){const r=cu(e);return Math.round(t*r)/r}function du(e){const t=Ne(e);return su(()=>{t.current=e}),t}var fu=(e,t)=>{const r=ru(e);return{name:r.name,fn:r.fn,options:[e,t]}},pu=(e,t)=>{const r=nu(e);return{name:r.name,fn:r.fn,options:[e,t]}},hu=(e,t)=>{const r=iu(e);return{name:r.name,fn:r.fn,options:[e,t]}},mu=(e,t)=>{const r=ou(e);return{name:r.name,fn:r.fn,options:[e,t]}};nn();var gu={...Pr},vu=gu.useInsertionEffect||(e=>e());function yu(e){const t=Ne(()=>{});return vu(()=>{t.current=e}),$e(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}var wu="undefined"!=typeof document?De:Me,bu=!1,_u=0,xu=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+_u++;var ku=gu.useId||function(){const[e,t]=Fe(()=>bu?xu():void 0);return wu(()=>{null==e&&t(xu())},[]),Me(()=>{bu=!0},[]),e};var Su=oe(null),Cu=oe(null),Tu="data-floating-ui-focusable";function Eu(e){const{open:t=!1,onOpenChange:r,elements:n}=e,i=ku(),o=Ne({}),[a]=Fe(()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}}()),s=null!=((null==(l=qe(Su))?void 0:l.id)||null);var l;const[c,u]=Fe(n.reference),d=yu((e,t,n)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:s}),r?.(e,t,n)}),f=je(()=>({setPositionReference:u}),[]),p=je(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return je(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f}),[t,d,p,a,i,f])}function Pu(e){void 0===e&&(e={});const{nodeId:t}=e,r=Eu({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,i=n.elements,[o,a]=Fe(null),[s,l]=Fe(null),c=(null==i?void 0:i.domReference)||o,u=Ne(null),d=qe(Cu);wu(()=>{c&&(u.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Fe({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Fe(n);lu(f,n)||p(n);const[h,m]=Fe(null),[g,v]=Fe(null),y=$e(e=>{e!==x.current&&(x.current=e,m(e))},[]),w=$e(e=>{e!==k.current&&(k.current=e,v(e))},[]),b=o||h,_=a||g,x=Ne(null),k=Ne(null),S=Ne(u),C=null!=l,T=du(l),E=du(i),P=du(c),R=$e(()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:r,middleware:f};E.current&&(e.platform=E.current),au(x.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};O.current&&!lu(S.current,t)&&(S.current=t,xr(()=>{d(t)}))})},[f,t,r,E,P]);su(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const O=Ne(!1);su(()=>(O.current=!0,()=>{O.current=!1}),[]),su(()=>{if(b&&(x.current=b),_&&(k.current=_),b&&_){if(T.current)return T.current(b,_,R);R()}},[b,_,R,T,C]);const I=je(()=>({reference:x,floating:k,setReference:y,setFloating:w}),[y,w]),A=je(()=>({reference:b,floating:_}),[b,_]),F=je(()=>{const e={position:r,left:0,top:0};if(!A.floating)return e;const t=uu(A.floating,u.x),n=uu(A.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...cu(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,A.floating,u.x,u.y]);return je(()=>({...u,update:R,refs:I,elements:A,floatingStyles:F}),[u,R,I,A,F])}({...e,elements:{...i,...s&&{reference:s}}}),p=$e(e=>{const t=Gl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),h=$e(e=>{(Gl(e)||null===e)&&(u.current=e,a(e)),(Gl(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Gl(e))&&f.refs.setReference(e)},[f.refs]),m=je(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u}),[f.refs,h,p]),g=je(()=>({...f.elements,domReference:c}),[f.elements,c]),v=je(()=>({...f,...n,refs:m,elements:g,nodeId:t}),[f,m,g,t,n]);return wu(()=>{n.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),je(()=>({...f,context:v,refs:m,elements:g}),[f,m,g,v])}var Ru="active",Ou="selected";function Iu(e,t,r){const n=new Map,i="item"===r;let o=e;if(i&&e){const{[Ru]:t,[Ou]:r,...n}=e;o=n}return{..."floating"===r&&{tabIndex:-1,[Tu]:""},...o,...t.map(t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[r,o]=t;var a;i&&[Ru,Ou].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof o&&(null==(a=n.get(r))||a.push(o),e[r]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=n.get(r))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)})):e[r]=o)}),e):e,{})}}function Au(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function Fu(e,t){const{open:r,elements:n}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=yu(s),c=Ne(!1),u=Ne(null),d=Ne(null);Me(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const r=e.deltaY,n=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=r<0?-1:1,c=r<0?"max":"min";t.scrollHeight<=t.clientHeight||(!n&&r>0||!i&&r<0?(e.preventDefault(),xr(()=>{l(e=>e+Math[c](r,a*s))})):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}())&&(t.scrollTop+=r))}const t=(null==a?void 0:a.current)||n.floating;return r&&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,r,n.floating,o,a,l]);const f=je(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||n.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)&&xr(()=>l(e=>e+t))}requestAnimationFrame(()=>{u.current=e.scrollTop})}}}),[n.floating,l,o,a]);return je(()=>i?{floating:f}:{},[i,f])}nn();var Lu=oe({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Lu.displayName="FloatingContext";var Mu=oe(null);Mu.displayName="PlacementContext";function Du({children:e,enabled:t=!0}){let[r,n]=Fe(null),[i,o]=Fe(0),a=Ne(null),[s,l]=Fe(null);!function(e){Qa(()=>{if(!e)return;let t=new MutationObserver(()=>{let t=window.getComputedStyle(e).maxHeight,r=parseFloat(t);if(isNaN(r))return;let n=parseInt(t);isNaN(n)||r!==n&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}(s);let c=t&&null!==r&&null!==s,{to:u="bottom",gap:d=0,offset:f=0,padding:p=0,inner:h}=function(e,t){var r,n,i;let o=Nu(null!=(r=null==e?void 0:e.gap)?r:"var(--anchor-gap, 0)",t),a=Nu(null!=(n=null==e?void 0:e.offset)?n:"var(--anchor-offset, 0)",t),s=Nu(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(r,s),[m,g="center"]=u.split(" ");Qa(()=>{c&&o(0)},[c]);let{refs:v,floatingStyles:y,context:w}=Pu({open:c,placement:"selection"===m?"center"===g?"bottom":`bottom-${g}`:"center"===g?`${m}`:`${m}-${g}`,strategy:"absolute",transform:!1,middleware:[fu({mainAxis:"selection"===m?0:d,crossAxis:f}),pu({padding:p}),"selection"!==m&&hu({padding:p}),"selection"===m&&h?(x={...h,padding:p,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:p,onFallbackChange(e){var t,r;if(!e)return;let n=w.elements.floating;if(!n)return;let i=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,a=Math.min(4,n.childElementCount),s=0,l=0;for(let o of null!=(r=null==(t=w.elements.floating)?void 0:t.childNodes)?r:[])if(gs(o)){let e=o.offsetTop,t=e+o.clientHeight+i,r=n.scrollTop,c=r+n.clientHeight;if(!(e>=r&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,r)),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:r,onFallbackChange:n,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=bc(x,e),{rects:u,elements:{floating:d}}=e,f=t.current[o],p=(null==l?void 0:l.current)||d,h=d.clientTop||p.clientTop,m=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};const y={...e,...await fu(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-i).fn(e)},w=await tu(Au(y,p.scrollHeight+h+d.clientTop),c),b=await tu(y,{...c,elementContext:"reference"}),_=mc(0,w.top),k=y.y+_,S=(p.scrollHeight>p.clientHeight?e=>e:gc)(mc(0,p.scrollHeight+(m&&v||g?2*h:0)-_-mc(0,w.bottom)));if(p.style.maxHeight=S+"px",p.scrollTop=_,n){const e=p.offsetHeight<f.offsetHeight*hc(a,t.current.length)-1||b.top>=-s||b.bottom>=-s;xr(()=>n(e))}return r&&(r.current=await tu(Au({...y,y:k},p.offsetHeight+h+d.clientTop),c)),{y:k}}}):null,mu({padding:p,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:eu}),[b=m,_=g]=w.placement.split("-");var x;"selection"===m&&(b="selection");let k=je(()=>({anchor:[b,_].filter(Boolean).join(" ")}),[b,_]),{getReferenceProps:S,getFloatingProps:C}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),r=e.map(e=>null==e?void 0:e.floating),n=e.map(e=>null==e?void 0:e.item),i=$e(t=>Iu(t,e,"reference"),t),o=$e(t=>Iu(t,e,"floating"),r),a=$e(t=>Iu(t,e,"item"),n);return je(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}([Fu(w,{overflowRef:a,onChange:o})]),T=Va(e=>{l(e),v.setFloating(e)});return A(Mu.Provider,{value:n},A(Lu.Provider,{value:{setFloating:T,setReference:v.setReference,styles:y,getReferenceProps:S,getFloatingProps:C,slot:k}},e))}function Nu(e,t,r=void 0){let n=za(),i=Va((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let i=ju(e,t);return[i,r=>{let o=Hu(e);{let a=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));n.requestAnimationFrame(function s(){n.nextFrame(s);let l=!1;for(let[e,r]of o.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(a[e]!==n){a[e]=n,l=!0;break}}if(!l)return;let c=ju(e,t);i!==c&&(r(c),i=c)})}return n.dispose}]}return[r,null]}),o=je(()=>i(e,t)[0],[e,t]),[a=o,s]=Fe();return Qa(()=>{let[r,n]=i(e,t);if(s(r),n)return n(s)},[e,t]),a}function Hu(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let r=t[1].slice(0,e).trim(),n=t[1].slice(e+1).trim();return n?[r,...Hu(n)]:[r]}return[]}function ju(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}nn();var $u=oe(null);$u.displayName="OpenClosedContext";var qu=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qu||{});function Wu(){return qe($u)}function Uu({value:e,children:t}){return Sr.createElement($u.Provider,{value:e},t)}var Bu=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Bu||{});function zu(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===i&&(i=r.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=i+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function Qu(e){let t=Va(e),r=Ne(!1);Me(()=>(r.current=!1,()=>{r.current=!0,Ua(()=>{r.current&&t()})}),[t])}function Ku(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Pr&&(e=>e.useSyncExternalStore)(Pr)(()=>()=>{},()=>!1,()=>!e)}(),[t,r]=Fe(ja.isHandoffComplete);return t&&!1===ja.isHandoffComplete&&r(!1),Me(()=>{!0!==t&&r(!0)},[t]),Me(()=>ja.handoff(),[]),!e&&t}nn(),nn(),nn();var Vu=oe(!1);function Gu(){return qe(Vu)}nn();var Yu=M,Xu=ss(function(e,t){let{ownerDocument:r=null,...n}=e,i=Ne(null),o=Ss(function(e,t=!0){return Object.assign(e,{[ks]:t})}(e=>{i.current=e}),t),a=Rl(i.current),s=function(e){let t=Gu(),r=qe(Ju),[n,i]=Fe(()=>{var n;if(!t&&null!==r)return null!=(n=r.current)?n:null;if(ja.isServer)return null;let i=null==e?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return Me(()=>{null!==n&&(null!=e&&e.body.contains(n)||null==e||e.body.appendChild(n))},[n,e]),Me(()=>{t||null!==r&&i(r.current)},[r,i,t]),n}(null!=r?r:a),l=qe(ed),c=za(),u=Ku(),d=rs();return Qu(()=>{var e;s&&s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s))}),s&&u?Kr(Sr.createElement("div",{"data-headlessui-portal":"",ref:e=>{c.dispose(),l&&e&&c.add(l.register(e))}},d({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:Yu,name:"Portal"})),s):null});var Zu=M,Ju=oe(null);var ed=oe(null),td=ss(function(e,t){let r=Ss(t),{enabled:n=!0,ownerDocument:i,...o}=e,a=rs();return n?Sr.createElement(Xu,{...o,ownerDocument:i,ref:r}):a({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:Yu,name:"Portal"})}),rd=ss(function(e,t){let{target:r,...n}=e,i={ref:Ss(t)},o=rs();return Sr.createElement(Ju.Provider,{value:r},o({ourProps:i,theirProps:n,defaultTag:Zu,name:"Popover.Group"}))}),nd=Object.assign(td,{Group:rd}),id={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function od(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function ad(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!fs(null!=(t=e.as)?t:fd)||1===Sr.Children.count(e.children)}nn(),nn();var sd=oe(null);sd.displayName="TransitionContext";var ld=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ld||{});var cd=oe(null);function ud(e){return"children"in e?ud(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function dd(e,t){let r=Ka(e),n=Ne([]),i=function(){let e=Ne(!1);return Qa(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),o=za(),a=Va((e,t=ts.Hidden)=>{let a=n.current.findIndex(({el:t})=>t===e);-1!==a&&(Ja(t,{[ts.Unmount](){n.current.splice(a,1)},[ts.Hidden](){n.current[a].state="hidden"}}),o.microTask(()=>{var e;!ud(n)&&i.current&&(null==(e=r.current)||e.call(r))}))}),s=Va(e=>{let t=n.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>a(e,ts.Unmount)}),l=Ne([]),c=Ne(Promise.resolve()),u=Ne({enter:[],leave:[]}),d=Va((e,r,n)=>{l.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),t?.chains.current[r].push([e,new Promise(e=>{l.current.push(e)})]),t?.chains.current[r].push([e,new Promise(e=>{Promise.all(u.current[r].map(([e,t])=>t)).then(()=>e())})]),"enter"===r?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),f=Va((e,t,r)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>r(t))});return je(()=>({children:n,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u}),[s,a,n,d,f,u,c])}cd.displayName="NestingContext";var fd=M,pd=es.RenderStrategy;var hd=ss(function(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,a=Ne(null),s=Ss(...ad(e)?[a,t]:null===t?[]:[t]);Ku();let l=Wu();if(void 0===r&&null!==l&&(r=(l&qu.Open)===qu.Open),void 0===r)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=Fe(r?"visible":"hidden"),d=dd(()=>{r||u("hidden")}),[f,p]=Fe(!0),h=Ne([r]);Qa(()=>{!1!==f&&h.current[h.current.length-1]!==r&&(h.current.push(r),p(!1))},[h,r]);let m=je(()=>({show:r,appear:n,initial:f}),[r,n,f]);Qa(()=>{r?u("visible"):!ud(d)&&null!==a.current&&u("hidden")},[r,d]);let g={unmount:i},v=Va(()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),y=Va(()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)}),w=rs();return Sr.createElement(cd.Provider,{value:d},Sr.createElement(sd.Provider,{value:m},w({ourProps:{...g,as:M,children:Sr.createElement(md,{ref:s,...g,...o,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:M,features:pd,visible:"visible"===c,name:"Transition"})))}),md=ss(function(e,t){var r,n;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:f,leave:p,leaveFrom:h,leaveTo:m,...g}=e,[v,y]=Fe(null),w=Ne(null),b=ad(e),_=Ss(...b?[w,t,y]:null===t?[]:[t]),x=null==(r=g.unmount)||r?ts.Unmount:ts.Hidden,{show:k,appear:S,initial:C}=function(){let e=qe(sd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[T,E]=Fe(k?"visible":"hidden"),P=function(){let e=qe(cd);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:O}=P;Qa(()=>R(w),[R,w]),Qa(()=>{if(x===ts.Hidden&&w.current)return k&&"visible"!==T?void E("visible"):Ja(T,{hidden:()=>O(w),visible:()=>R(w)})},[T,w,R,O,k,x]);let I=Ku();Qa(()=>{if(b&&I&&"visible"===T&&null===w.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,T,I,b]);let A=C&&!S,F=S&&k&&C,L=Ne(!1),M=dd(()=>{L.current||(E("hidden"),O(w))},P),D=Va(e=>{L.current=!0;let t=e?"enter":"leave";M.onStart(w,t,e=>{"enter"===e?o?.():"leave"===e&&s?.()})}),N=Va(e=>{let t=e?"enter":"leave";L.current=!1,M.onStop(w,t,e=>{"enter"===e?a?.():"leave"===e&&l?.()}),"leave"===t&&!ud(M)&&(E("hidden"),O(w))});Me(()=>{b&&i||(D(k),N(k))},[k,b,i]);let[,H]=Ul(!(!i||!b||!I||A),v,k,{start:D,end:N}),j=ls({ref:_,className:(null==(n=Za(g.className,F&&c,F&&u,H.enter&&c,H.enter&&H.closed&&u,H.enter&&!H.closed&&d,H.leave&&p,H.leave&&!H.closed&&h,H.leave&&H.closed&&m,!H.transition&&k&&f))?void 0:n.trim())||void 0,...Wl(H)}),$=0;"visible"===T&&($|=qu.Open),"hidden"===T&&($|=qu.Closed),k&&"hidden"===T&&($|=qu.Opening),!k&&"visible"===T&&($|=qu.Closing);let q=rs();return Sr.createElement(cd.Provider,{value:M},Sr.createElement(Uu,{value:$},q({ourProps:j,theirProps:g,defaultTag:fd,features:pd,visible:"visible"===T,name:"Transition.Child"})))}),gd=ss(function(e,t){let r=null!==qe(sd),n=null!==Wu();return Sr.createElement(Sr.Fragment,null,!r&&n?Sr.createElement(hd,{ref:t,...e}):Sr.createElement(md,{ref:t,...e}))}),vd=Object.assign(hd,{Child:gd,Root:hd}),yd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function wd(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!gs(i))return n;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(r=i.innerText)?r:"":n;return yd.test(a)&&(a=a.replace(yd,"")),a}function bd(e){let t=Ne(""),r=Ne("");return Va(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():wd(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return wd(e).trim()}(n).trim().toLowerCase();return t.current=i,r.current=o,o})}nn();var _d=Object.defineProperty,xd=(e,t,r)=>(((e,t,r)=>{t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),kd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kd||{}),Sd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Sd||{}),Cd=(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.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e[e.MarkButtonAsMoved=10]="MarkButtonAsMoved",e))(Cd||{});function Td(e,t=e=>e){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=kl(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return-1===i&&(i=null),{items:n,activeItemIndex:i}}var Ed={1(e){if(1===e.menuState)return e;let t=e.buttonElement?id.Tracked(od(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:Bu.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:id.Idle},2:(e,t)=>{var r,n,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===Bu.Nothing)return{...s,activeItemIndex:null};if(t.focus===Bu.Specific)return{...s,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===Bu.Previous){let r=e.activeItemIndex;if(null!==r){let o=e.items[r].dataRef.current.domRef,a=zu(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==(n=o.current)?void 0:n.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeItemIndex:a}}}}else if(t.focus===Bu.Next){let r=e.activeItemIndex;if(null!==r){let n=e.items[r].dataRef.current.domRef,i=zu(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=n.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeItemIndex:i}}}}let l=Td(e),c=zu(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 r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=e.items.concat(t.items.map(e=>e)),n=e.activeItemIndex;return e.pendingFocus.focus!==Bu.Nothing&&(n=zu(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:r,activeItemIndex:n,pendingFocus:{focus:Bu.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let r=e.items,n=[],i=new Set(t.items);for(let[o,a]of r.entries())if(i.has(a.id)&&(n.push(o),i.delete(a.id),0===i.size))break;if(n.length>0){r=r.slice();for(let e of n.reverse())r.splice(e,1)}return{...e,items:r,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},9:e=>e.pendingShouldSort?{...e,...Td(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:id.Moved}},Pd=class e extends Qs{constructor(e){super(e),xd(this,"actions",{registerItem:Ys(()=>{let e=[],t=new Set;return[(r,n)=>{t.has(n)||(t.add(n),e.push({id:r,dataRef:n}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:Ys(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),xd(this,"selectors",{activeDescendantId(e){var t;let r=e.activeItemIndex,n=e.items;return null===r||null==(t=n[r])?void 0:t.id},isActive(e,t){var r;let n=e.activeItemIndex,i=e.items;return null!==n&&(null==(r=i[n])?void 0:r.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=rl.get(null);this.disposables.add(t.on(Js.Push,r=>{!t.selectors.isTop(r,e)&&0===this.state.menuState&&this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,r){let n=Ba();if("Tracked"===t.kind){let i=function(){o!==od(e)&&(n.dispose(),r())},{position:o}=t,a=new ResizeObserver(i);a.observe(e),n.add(()=>a.disconnect()),n.addEventListener(window,"scroll",i,{passive:!0}),n.addEventListener(window,"resize",i)}return()=>n.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:t,__demoMode:r=!1}){return new e({id:t,__demoMode:r,menuState:r?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:Bu.Nothing},buttonPositionState:id.Idle})}reduce(e,t){return Ja(t.type,Ed,e,t)}};nn();var Rd=oe(null);function Od(e){let t=qe(Rd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Id),t}return t}function Id({id:e,__demoMode:t=!1}){let r=je(()=>Pd.new({id:e,__demoMode:t}),[]);return Qu(()=>r.dispose()),r}nn(),Xe();var Ad=M;var Fd=es.RenderStrategy|es.Static;var Ld=M;var Md=ss(function(e,t){let r=Be(),{__demoMode:n=!1,...i}=e,o=Id({id:r,__demoMode:n}),[a,s,l]=ol(o,e=>[e.menuState,e.itemsElement,e.buttonElement]),c=Ss(t),u=rl.get(null);Pl(ol(u,$e(e=>u.selectors.isTop(e,r),[u,r])),[l,s],(e,t)=>{var r;o.send({type:Cd.CloseMenu}),wl(t,yl.Loose)||(e.preventDefault(),null==(r=o.state.buttonElement)||r.focus())});let d=Va(()=>{o.send({type:Cd.CloseMenu})}),f=Ga({open:a===kd.Open,close:d}),p={ref:c},h=rs();return Sr.createElement(Du,null,Sr.createElement(Rd.Provider,{value:o},Sr.createElement(Uu,{value:Ja(a,{[kd.Open]:qu.Open,[kd.Closed]:qu.Closed})},h({ourProps:p,theirProps:i,slot:f,defaultTag:Ad,name:"Menu"}))))}),Dd=ss(function(e,t){let r=Od("Menu.Button"),n=Be(),{id:i=`headlessui-menu-button-${n}`,disabled:o=!1,autoFocus:a=!1,...s}=e,l=Ne(null),c=qe(Lu).getReferenceProps,u=Ss(t,l,qe(Lu).setReference,Va(e=>r.send({type:Cd.SetButtonElement,element:e}))),d=Va(e=>{switch(e.key){case Ps.Space:case Ps.Enter:case Ps.ArrowDown:e.preventDefault(),e.stopPropagation(),r.send({type:Cd.OpenMenu,focus:{focus:Bu.First}});break;case Ps.ArrowUp:e.preventDefault(),e.stopPropagation(),r.send({type:Cd.OpenMenu,focus:{focus:Bu.Last}})}}),f=Va(e=>{if(e.key===Ps.Space)e.preventDefault()}),[p,h,m]=ol(r,e=>[e.menuState,e.buttonElement,e.itemsElement]);!function(e,{trigger:t,action:r,close:n,select:i}){let o=Ne(null),a=Ne(null),s=Ne(null);El(e&&null!==t,"pointerdown",e=>{hs(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(a.current=e.x,s.current=e.y,o.current=e.timeStamp)}),El(e&&null!==t,"pointerup",e=>{var t,l;let c=o.current;if(null===c||(o.current=null,!vs(e.target))||Math.abs(e.x-(null!=(t=a.current)?t:e.x))<5&&Math.abs(e.y-(null!=(l=s.current)?l:e.y))<5)return;let u=r(e);switch(u.kind){case 0:return;case 1:e.timeStamp-c>200&&(i(u.target),n());break;case 2:n()}},{capture:!0})}(p===kd.Open,{trigger:h,action:$e(e=>{if(null!=h&&h.contains(e.target))return Il.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return gs(t)?Il.Select(t):null!=m&&m.contains(e.target)?Il.Ignore:Il.Close},[h,m]),close:$e(()=>r.send({type:Cd.CloseMenu}),[]),select:$e(e=>e.click(),[])});let g=function(e){let t=Ne(null);return{onPointerDown:Va(r=>{t.current=r.pointerType,!xs(r.currentTarget)&&"mouse"===r.pointerType&&r.button===Ms.Left&&(r.preventDefault(),e(r))}),onClick:Va(r=>{"mouse"!==t.current&&(xs(r.currentTarget)||e(r))})}}(e=>{var t;o||(p===kd.Open?(xr(()=>r.send({type:Cd.CloseMenu})),null==(t=l.current)||t.focus({preventScroll:!0})):(e.preventDefault(),r.send({type:Cd.OpenMenu,focus:{focus:Bu.Nothing},trigger:Sd.Pointer})))}),{isFocusVisible:v,focusProps:y}=Ia({autoFocus:a}),{isHovered:w,hoverProps:b}=Da({isDisabled:o}),{pressed:_,pressProps:x}=function({disabled:e=!1}={}){let t=Ne(null),[r,n]=Fe(!1),i=za(),o=Va(()=>{t.current=null,n(!1),i.dispose()}),a=Va(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=$a(e.currentTarget);i.addEventListener(r,"pointerup",o,!1),i.addEventListener(r,"pointermove",e=>{if(t.current){let r=function(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);n(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(r,t.current.getBoundingClientRect()))}},!1),i.addEventListener(r,"pointercancel",o,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),k=Ga({open:p===kd.Open,active:_||p===kd.Open,disabled:o,hover:w,focus:v,autofocus:a}),S=as(c(),{ref:u,id:i,type:Al(e,l.current),"aria-haspopup":"menu","aria-controls":null==m?void 0:m.id,"aria-expanded":p===kd.Open,disabled:o||void 0,autoFocus:a,onKeyDown:d,onKeyUp:f},g,y,b,x);return rs()({ourProps:S,theirProps:s,slot:k,defaultTag:"button",name:"Menu.Button"})}),Nd=ss(function(e,t){let r=Be(),{id:n=`headlessui-menu-items-${r}`,anchor:i,portal:o=!1,modal:a=!0,transition:s=!1,...l}=e,c=function(e){return je(()=>e?"string"==typeof e?{to:e}:e:null,[e])}(i),u=Od("Menu.Items"),[d,f]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=qe(Mu),r=je(()=>e,[JSON.stringify(e,(e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t})]);Qa(()=>{t?.(null!=r?r:null)},[t,r]);let n=qe(Lu);return je(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}(c),p=function(){let{getFloatingProps:e,slot:t}=qe(Lu);return $e((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}(),[h,m]=Fe(null),g=Ss(t,c?d:null,Va(e=>u.send({type:Cd.SetItemsElement,element:e})),m),[v,y]=ol(u,e=>[e.menuState,e.buttonElement]),w=Rl(y),b=Rl(h);c&&(o=!0);let _=Wu(),[x,k]=Ul(s,h,null!==_?(_&qu.Open)===qu.Open:v===kd.Open);!function(e,t,r){let n=Ka(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()});Me(()=>{if(!e)return;let r=null===t?null:gs(t)?t:t.current;if(!r)return;let i=Ba();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>n.current(r));e.observe(r),i.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>n.current(r));e.observe(r),i.add(()=>e.disconnect())}return()=>i.dispose()},[t,n,e])}(x,y,()=>{u.send({type:Cd.CloseMenu})});let S=ol(u,e=>e.__demoMode);!function(e,t,r=()=>[document.body]){jl(sl(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}})}(!S&&(a&&v===kd.Open),b),function(e,{allowed:t,disallowed:r}={}){let n=sl(e,"inert-others");Qa(()=>{var e,i;if(!n)return;let o=Ba();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&o.add(ul(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=$a(t);if(!e)continue;let r=t.parentElement;for(;r&&r!==e.body;){for(let e of r.children)a.some(t=>e.contains(t))||o.add(ul(e));r=r.parentElement}}return o.dispose},[n,t,r])}(!S&&(a&&v===kd.Open),{allowed:$e(()=>[y,h],[y,h])});let C=!ol(u,u.selectors.didButtonMove)&&x;Me(()=>{let e=h;e&&v===kd.Open&&(function(e){return Wa(e)===e}(e)||e.focus({preventScroll:!0}))},[v,h]),function(e,{container:t,accept:r,walk:n}){let i=Ne(r),o=Ne(n);Me(()=>{i.current=r,o.current=n},[r,n]),Qa(()=>{if(!t||!e)return;let r=$a(t);if(!r)return;let n=i.current,a=o.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)},[t,e,i,o])}(v===kd.Open,{container:h,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 T=za(),E=Va(e=>{var t,r,n;switch(T.dispose(),e.key){case Ps.Space:if(""!==u.state.searchQuery)return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.Search,value:e.key});case Ps.Enter:if(e.preventDefault(),e.stopPropagation(),null!==u.state.activeItemIndex){let{dataRef:e}=u.state.items[u.state.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}u.send({type:Cd.CloseMenu}),bl(u.state.buttonElement);break;case Ps.ArrowDown:return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.GoToItem,focus:Bu.Next});case Ps.ArrowUp:return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.GoToItem,focus:Bu.Previous});case Ps.Home:case Ps.PageUp:return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.GoToItem,focus:Bu.First});case Ps.End:case Ps.PageDown:return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.GoToItem,focus:Bu.Last});case Ps.Escape:e.preventDefault(),e.stopPropagation(),xr(()=>u.send({type:Cd.CloseMenu})),null==(n=u.state.buttonElement)||n.focus({preventScroll:!0});break;case Ps.Tab:e.preventDefault(),e.stopPropagation(),xr(()=>u.send({type:Cd.CloseMenu})),Sl(u.state.buttonElement,e.shiftKey?hl.Previous:hl.Next);break;default:1===e.key.length&&(u.send({type:Cd.Search,value:e.key}),T.setTimeout(()=>u.send({type:Cd.ClearSearch}),350))}}),P=Va(e=>{if(e.key===Ps.Space)e.preventDefault()}),R=Ga({open:v===kd.Open}),O=as(c?p():{},{"aria-activedescendant":ol(u,u.selectors.activeDescendantId),"aria-labelledby":ol(u,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:n,onKeyDown:E,onKeyUp:P,role:"menu",tabIndex:v===kd.Open?0:void 0,ref:g,style:{...l.style,...f,"--button-width":Ls(x,y,!0).width},...Wl(k)}),I=rs();return Sr.createElement(nd,{enabled:!!o&&(e.static||x),ownerDocument:w},I({ourProps:O,theirProps:l,slot:R,defaultTag:"div",features:Fd,visible:C,name:"Menu.Items"}))}),Hd=ss(function(e,t){let r=Be(),{id:n=`headlessui-menu-item-${r}`,disabled:i=!1,...o}=e,a=Od("Menu.Item"),s=ol(a,e=>a.selectors.isActive(e,n)),l=Ne(null),c=Ss(t,l),u=ol(a,e=>a.selectors.shouldScrollIntoView(e,n));Qa(()=>{if(u)return Ba().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=l.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[u,l]);let d=bd(l),f=Ne({disabled:i,domRef:l,get textValue(){return d()}});Qa(()=>{f.current.disabled=i},[f,i]),Qa(()=>(a.actions.registerItem(n,f),()=>a.actions.unregisterItem(n)),[f,n]);let p=Va(()=>{a.send({type:Cd.CloseMenu})}),h=Va(e=>{if(i)return e.preventDefault();a.send({type:Cd.CloseMenu}),bl(a.state.buttonElement)}),m=Va(()=>{if(i)return a.send({type:Cd.GoToItem,focus:Bu.Nothing});a.send({type:Cd.GoToItem,focus:Bu.Specific,id:n})}),g=function(){let e=Ne([-1,-1]);return{wasMoved(t){let r=$l(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=$l(t)}}}(),v=Va(e=>g.update(e)),y=Va(e=>{g.wasMoved(e)&&(i||s||a.send({type:Cd.GoToItem,focus:Bu.Specific,id:n,trigger:Sd.Pointer}))}),w=Va(e=>{g.wasMoved(e)&&(i||s&&a.state.activationTrigger===Sd.Pointer&&a.send({type:Cd.GoToItem,focus:Bu.Nothing}))}),[b,_]=Is(),[x,k]=function(){let[e,t]=Fe([]);return[e.length>0?e.join(" "):void 0,je(()=>function(e){let r=Va(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))),n=je(()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value}),[r,e.slot,e.name,e.props,e.value]);return Sr.createElement(Cs.Provider,{value:n},e.children)},[t])]}(),S=Ga({active:s,focus:s,disabled:i,close:p}),C={id:n,ref:c,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":b,"aria-describedby":x,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:w,onMouseLeave:w},T=rs();return Sr.createElement(_,null,Sr.createElement(k,null,T({ourProps:C,theirProps:o,slot:S,defaultTag:Ld,name:"Menu.Item"})))}),jd=ss(function(e,t){let[r,n]=Is(),i=e,o={ref:t,"aria-labelledby":r,role:"group"},a=rs();return Sr.createElement(n,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))}),$d=ss(function(e,t){let r=Be(),{id:n=`headlessui-menu-heading-${r}`,...i}=e,o=Os();Qa(()=>o.register(n),[n,o.register]);let a={id:n,ref:t,role:"presentation",...o.props};return rs()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})}),qd=ss(function(e,t){let r=e,n={ref:t,role:"separator"};return rs()({ourProps:n,theirProps:r,slot:{},defaultTag:"div",name:"Menu.Separator"})}),Wd=Object.assign(Md,{Button:Dd,Items:Nd,Item:Hd,Section:jd,Heading:$d,Separator:qd});function Ud({title:e,titleId:t,...r},n){return A("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:n,"aria-labelledby":t},r),e?A("title",{id:t},e):null,A("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"}))}nn();var Bd=Hr(Ud);function zd({title:e,titleId:t,...r},n){return A("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:n,"aria-labelledby":t},r),e?A("title",{id:t},e):null,A("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"}))}nn();var Qd=Hr(zd),Kd=e=>jo(Zd,{children:$o(Wd,{as:"div",children:[jo("div",{children:$o(Dd,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity, 1))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity, 1))"},":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, 1))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[jo("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"}),jo(Bd,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),jo(Nd,{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, 1))","--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,r)=>jo(Hd,{children:jo("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, 1))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},r)},r))})]})}),Vd=e=>e&&new Date(e).toLocaleDateString("en-AU")||void 0,Gd=e=>void 0!==e&&`$ ${Number(e).toLocaleString("en-US")}`||void 0,Yd=e=>$o(Zd,{children:[Vd(e.value),jo("br",{}),Vd(e.value)]});Xe();var Xd=e=>{const[t,r]=Fe(!1);return $o(Zd,{css:{position:"relative"},children:[jo(vd,{show:t,children:jo("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, 1))",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:jo("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, 1))"},children:"Copied"})})}),jo("button",{onClick:async()=>{await(async e=>{await navigator.clipboard.writeText(e)})(e.value),r(!0),setTimeout(()=>{r(!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, 1))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity, 1))"},"&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))",outline:"2px solid transparent",outlineOffset:"2px"}},children:e.value})]})},Zd=Fo.td`
|
|
1
|
+
!function(){var e,t,r,n,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,w=Object.create,b=Object.defineProperty,_=Object.getOwnPropertyDescriptor,x=Object.getOwnPropertyNames,k=Object.getPrototypeOf,S=Object.prototype.hasOwnProperty,C=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(Vu){throw r=[Vu],Vu}},T=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),E=(e,t)=>{let r={};for(var n in e)b(r,n,{get:e[n],enumerable:!0});return t||b(r,Symbol.toStringTag,{value:"Module"}),r},P=(e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,o=x(t),a=0,s=o.length;a<s;a++)i=o[a],S.call(e,i)||i===r||b(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(n=_(t,i))||n.enumerable});return e},R=(e,t,r)=>(r=null!=e?w(k(e)):{},P(!t&&e&&e.__esModule?r:b(r,"default",{value:e,enumerable:!0}),e));function O(e,t){for(var r in t)e[r]=t[r];return e}function I(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function A(t,r,n){var i,o,a,s={};for(a in r)"key"==a?i=r[a]:"ref"==a?o=r[a]:s[a]=r[a];if(arguments.length>2&&(s.children=arguments.length>3?e.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return F(t,s,i,o,null)}function F(e,n,i,o,a){var s={type:e,props:n,key:i,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==a?++r:a,__i:-1,__u:0};return null==a&&null!=t.vnode&&t.vnode(s),s}function L(){return{current:null}}function M(e){return e.children}function D(e,t){this.props=e,this.context=t}function N(e,t){if(null==t)return e.__?N(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return"function"==typeof e.type?N(e):null}function H(e){if(e.__P&&e.__d){var r=e.__v,n=r.__e,i=[],o=[],a=O({},r);a.__v=r.__v+1,t.vnode&&t.vnode(a),G(e.__P,a,r,e.__n,e.__P.namespaceURI,32&r.__u?[n]:null,i,null==n?N(r):n,!!(32&r.__u),o),a.__v=r.__v,a.__.__k[a.__i]=a,X(i,a,o),r.__e=r.__=null,a.__e!=n&&j(a)}}function j(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),j(e)}function $(e){(!e.__d&&(e.__d=!0)&&n.push(e)&&!q.__r++||i!=t.debounceRendering)&&((i=t.debounceRendering)||o)(q)}function q(){try{for(var e,t=1;n.length;)n.length>t&&n.sort(a),e=n.shift(),t=n.length,H(e)}finally{n.length=q.__r=0}}function W(e,t,r,n,i,o,a,s,l,c,u){var d,f,p,h,v,w,b,_=n&&n.__k||g,x=t.length;for(l=function(e,t,r,n,i){var o,a,s,l,c,u=r.length,d=u,f=0;for(e.__k=new Array(i),o=0;o<i;o++)null!=(a=t[o])&&"boolean"!=typeof a&&"function"!=typeof a?("string"==typeof a||"number"==typeof a||"bigint"==typeof a||a.constructor==String?a=e.__k[o]=F(null,a,null,null,null):y(a)?a=e.__k[o]=F(M,{children:a},null,null,null):void 0===a.constructor&&a.__b>0?a=e.__k[o]=F(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):e.__k[o]=a,l=o+f,a.__=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=z(a,r,l,d))&&(d--,(s=r[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(i>u?f--:i<u&&f++),"function"!=typeof a.type&&(a.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,a.__u|=4))):e.__k[o]=null;if(d)for(o=0;o<u;o++)null!=(s=r[o])&&!(2&s.__u)&&(s.__e==n&&(n=N(s)),ee(s,s));return n}(r,t,_,l,x),d=0;d<x;d++)null!=(p=r.__k[d])&&(f=-1!=p.__i&&_[p.__i]||m,p.__i=d,w=G(e,p,f,i,o,a,s,l,c,u),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&J(f.ref,null,p),u.push(p.ref,p.__c||h,p)),null==v&&null!=h&&(v=h),(b=!!(4&p.__u))||f.__k===p.__k?(l=U(p,l,e,b),b&&f.__e&&(f.__e=null)):"function"==typeof p.type&&void 0!==w?l=w:h&&(l=h.nextSibling),p.__u&=-7);return r.__e=v,l}function U(e,t,r,n){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=U(i[o],t,r,n));return t}e.__e!=t&&(n&&(t&&e.type&&!t.parentNode&&(t=N(e)),r.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function B(e,t){return t=t||[],null==e||"boolean"==typeof e||(y(e)?e.some(function(e){B(e,t)}):t.push(e)),t}function z(e,t,r,n){var i,o,a,s=e.key,l=e.type,c=t[r],u=null!=c&&!(2&c.__u);if(null===c&&null==s||u&&s==c.key&&l==c.type)return r;if(n>(u?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;)if(null!=(c=t[a=i>=0?i--:o++])&&!(2&c.__u)&&s==c.key&&l==c.type)return a;return-1}function Q(e,t,r){"-"==t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||v.test(t)?r:r+"px"}function K(e,t,r,n,i){var o,a;e:if("style"==t)if("string"==typeof r)e.style.cssText=r;else{if("string"==typeof n&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Q(e.style,t,"");if(r)for(t in r)n&&r[t]==n[t]||Q(e.style,t,r[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(u,"$1")),a=t.toLowerCase(),t=a in e||"onFocusOut"==t||"onFocusIn"==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r[c]=n[c]:(r[c]=d,e.addEventListener(t,o?p:f,o)):e.removeEventListener(t,o?p:f,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==r?"":r;break e}catch(e){}"function"==typeof r||(null==r||!1===r&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function V(e){return function(r){if(this.l){var n=this.l[r.type+e];if(null==r[l])r[l]=d++;else if(r[l]<n[c])return;return n(t.event?t.event(r):r)}}}function G(r,n,i,o,a,s,l,c,u,d){var f,p,h,v,w,b,_,x,k,S,C,T,E,P,R,A,F=n.type;if(void 0!==n.constructor)return null;128&i.__u&&(u=!!(32&i.__u),s=[c=n.__e=i.__e]),(f=t.__b)&&f(n);e:if("function"==typeof F){p=l.length;try{if(k=n.props,S=F.prototype&&F.prototype.render,C=(f=F.contextType)&&o[f.__c],T=f?C?C.props.value:f.__:o,i.__c?x=(h=n.__c=i.__c).__=h.__E:(S?n.__c=h=new F(k,T):(n.__c=h=new D(k,T),h.constructor=F,h.render=te),C&&C.sub(h),h.state||(h.state={}),h.__n=o,v=h.__d=!0,h.__h=[],h._sb=[]),S&&null==h.__s&&(h.__s=h.state),S&&null!=F.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=O({},h.__s)),O(h.__s,F.getDerivedStateFromProps(k,h.__s))),w=h.props,b=h.state,h.__v=n,v)S&&null==F.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),S&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(S&&null==F.getDerivedStateFromProps&&k!==w&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(k,T),n.__v==i.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(k,h.__s,T)){n.__v!=i.__v&&(h.props=k,h.state=h.__s,h.__d=!1),n.__e=i.__e,n.__k=i.__k,n.__k.some(function(e){e&&(e.__=n)}),g.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&l.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(k,h.__s,T),S&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(w,b,_)})}if(h.context=T,h.props=k,h.__P=r,h.__e=!1,E=t.__r,P=0,S)h.state=h.__s,h.__d=!1,E&&E(n),f=h.render(h.props,h.state,h.context),g.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,E&&E(n),f=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++P<25);h.state=h.__s,null!=h.getChildContext&&(o=O(O({},o),h.getChildContext())),S&&!v&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(w,b)),R=null!=f&&f.type===M&&null==f.key?Z(f.props.children):f,c=W(r,y(R)?R:[R],n,i,o,a,s,l,c,u,d),h.base=n.__e,n.__u&=-161,h.__h.length&&l.push(h),x&&(h.__E=h.__=null)}catch(r){if(l.length=p,n.__v=null,u||null!=s){if(r.then){for(n.__u|=u?160:128;c&&8==c.nodeType&&c.nextSibling;)c=c.nextSibling;null!=s&&(s[s.indexOf(c)]=null),n.__e=c}else if(null!=s)for(A=s.length;A--;)I(s[A])}else n.__e=i.__e;n.__k??=i.__k||[],r.then||Y(n),t.__e(r,n,i)}}else null==s&&n.__v==i.__v?(n.__k=i.__k,n.__e=i.__e):c=n.__e=function(r,n,i,o,a,s,l,c,u){var d,f,p,h,g,v,w,b=i.props||m,_=n.props,x=n.type;if("svg"==x?a="http://www.w3.org/2000/svg":"math"==x?a="http://www.w3.org/1998/Math/MathML":a||(a="http://www.w3.org/1999/xhtml"),null!=s)for(d=0;d<s.length;d++)if((g=s[d])&&"setAttribute"in g==!!x&&(x?g.localName==x:3==g.nodeType)){r=g,s[d]=null;break}if(null==r){if(null==x)return document.createTextNode(_);r=document.createElementNS(a,x,_.is&&_),c&&(t.__m&&t.__m(n,s),c=!1),s=null}if(null==x)b===_||c&&r.data==_||(r.data=_);else{if(s="textarea"==x&&null!=_.defaultValue?null:s&&e.call(r.childNodes),!c&&null!=s)for(b={},d=0;d<r.attributes.length;d++)b[(g=r.attributes[d]).name]=g.value;for(d in b)g=b[d],"dangerouslySetInnerHTML"==d?p=g:"children"==d||d in _||"value"==d&&"defaultValue"in _||"checked"==d&&"defaultChecked"in _||K(r,d,null,g,a);for(d in _)g=_[d],"children"==d?h=g:"dangerouslySetInnerHTML"==d?f=g:"value"==d?v=g:"checked"==d?w=g:c&&"function"!=typeof g||b[d]===g||K(r,d,g,b[d],a);if(f)c||p&&(f.__html==p.__html||f.__html==r.innerHTML)||(r.innerHTML=f.__html),n.__k=[];else if(p&&(r.innerHTML=""),W("template"==n.type?r.content:r,y(h)?h:[h],n,i,o,"foreignObject"==x?"http://www.w3.org/1999/xhtml":a,s,l,s?s[0]:i.__k&&N(i,0),c,u),null!=s)for(d=s.length;d--;)I(s[d]);c&&"textarea"!=x||(d="value","progress"==x&&null==v?r.removeAttribute("value"):null!=v&&(v!==r[d]||"progress"==x&&!v||"option"==x&&v!=b[d])&&K(r,d,v,b[d],a),d="checked",null!=w&&w!=r[d]&&K(r,d,w,b[d],a))}return r}(i.__e,n,i,o,a,s,l,u,d);return(f=t.diffed)&&f(n),128&n.__u?void 0:c}function Y(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(Y))}function X(e,r,n){for(var i=0;i<n.length;i++)J(n[i],n[++i],n[++i]);t.__c&&t.__c(r,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(e){e.call(r)})}catch(e){t.__e(e,r.__v)}})}function Z(e){return"object"!=typeof e||null==e||e.__b>0?e:y(e)?e.map(Z):void 0!==e.constructor?null:O({},e)}function J(e,r,n){try{if("function"==typeof e){var i="function"==typeof e.__u;i&&e.__u(),i&&null==r||(e.__u=e(r))}else e.current=r}catch(e){t.__e(e,n)}}function ee(e,r,n){var i,o;if(t.unmount&&t.unmount(e),(i=e.ref)&&(i.current&&i.current!=e.__e||J(i,null,r)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t.__e(e,r)}i.base=i.__P=i.__n=null}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&ee(i[o],r,n||"function"!=typeof e.type);n||I(e.__e),e.__c=e.__=e.__e=void 0}function te(e,t,r){return this.constructor(e,r)}function re(r,n,i){var o,a,s,l;n==document&&(n=document.documentElement),t.__&&t.__(r,n),a=(o="function"==typeof i)?null:i&&i.__k||n.__k,s=[],l=[],G(n,r=(!o&&i||n).__k=A(M,null,[r]),a||m,m,n.namespaceURI,!o&&i?[i]:a?null:n.firstChild?e.call(n.childNodes):null,s,!o&&i?i:a?a.__e:n.firstChild,o,l),X(s,r,l),r.props.children=null}function ne(e,t){re(e,t,ne)}function ie(t,r,n){var i,o,a,s,l=O({},t.props);for(a in t.type&&t.type.defaultProps&&(s=t.type.defaultProps),r)"key"==a?i=r[a]:"ref"==a?o=r[a]:l[a]=void 0===r[a]&&null!=s?s[a]:r[a];return arguments.length>2&&(l.children=arguments.length>3?e.call(arguments,2):n),F(t.type,l,i||t.key,o||t.ref,null)}function oe(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=function(){return n},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach(function(e){e.__e=!0,$(e)})},this.sub=function(e){r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c="__cC"+h++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}var ae=C(()=>{m={},g=[],v=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,y=Array.isArray,e=g.slice,t={__e:function(e,t,r,n){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,n||{}),a=i.__d),a)return i.__E=i}catch(t){e=t}throw e}},r=0,D.prototype.setState=function(e,t){var r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=O({},this.state);"function"==typeof e&&(e=e(O({},r),this.props)),e&&O(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),$(this))},D.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$(this))},D.prototype.render=M,n=[],o="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,a=function(e,t){return e.__v.__b-t.__v.__b},q.__r=0,s=Math.random().toString(8),l="__d"+s,c="__a"+s,u=/(PointerCapture)$|Capture$/i,d=0,f=V(!1),p=V(!0),h=0});function se(){return se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},se.apply(this,arguments)}function le(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}ae();var ce,ue,de,fe,pe,he,me,ge,ve,ye,we,be,_e,xe,ke=["context","children"],Se=["useFragment"];function Ce(e){return this.getChildContext=function(){return e.context},ie(e.children,le(e,ke))}function Te(e){var t=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(t),this._vdom=A(Ce,se({},this._props,{context:t.detail.context}),Ie(this,this._vdomComponent,e)),(this.hasAttribute("hydrate")?ne:re)(this._vdom,this._root)}function Ee(e){return e.replace(/-(\w)/g,function(e,t){return t?t.toUpperCase():""})}function Pe(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[Ee(e)]=r,this._vdom=ie(this._vdom,n),re(this._vdom,this._root)}}function Re(){re(this._vdom=null,this._root)}function Oe(e,t){var r=this;return A(e.useFragment?M:"slot",se({},le(e,Se),{ref:function(e){e?(r.ref=e,r._listener||(r._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function Ie(e,t,r){if(3===e.nodeType)return e.data;if(1!==e.nodeType)return null;var n=[],i={},o=0,a=e.attributes,s=e.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[Ee(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=Ie(s[o],null,r),c=s[o].slot;c?i[c]=A(Oe,{name:c},l):n[o]=l}var u=!(!r||!r.shadow),d=t?A(Oe,{useFragment:!u},n):n;return!u&&t&&(e.innerHTML=""),A(t||e.nodeName.toLowerCase(),i,d)}function Ae(e,t){me.__h&&me.__h(ue,e,pe||t),pe=0;var r=ue.__H||(ue.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Fe(e){return pe=1,Le(Ye,e)}function Le(e,t,r){var n=Ae(ce++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ye(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=ue,!ue.__f)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=!1,a=n.__c.props!==e;if(n.__c.__H.__.some(function(e){if(e.__N){i=!0;var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}}),o){var s=o.call(this,e,t,r);return i?s||a:s}return!i||a};ue.__f=!0;var o=ue.shouldComponentUpdate,a=ue.componentWillUpdate;ue.componentWillUpdate=function(e,t,r){if(this.__e){var n=o;o=void 0,i(e,t,r),o=n}a&&a.call(this,e,t,r)},ue.shouldComponentUpdate=i}return n.__N||n.__}function Me(e,t){var r=Ae(ce++,3);!me.__s&&Ge(r.__H,t)&&(r.__=e,r.u=t,ue.__H.__h.push(r))}function De(e,t){var r=Ae(ce++,4);!me.__s&&Ge(r.__H,t)&&(r.__=e,r.u=t,ue.__h.push(r))}function Ne(e){return pe=5,je(function(){return{current:e}},[])}function He(e,t,r){pe=6,De(function(){if("function"==typeof e){var r=e(t());return function(){e(null),r&&"function"==typeof r&&r()}}if(e)return e.current=t(),function(){return e.current=null}},null==r?r:r.concat(e))}function je(e,t){var r=Ae(ce++,7);return Ge(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function $e(e,t){return pe=8,je(function(){return e},t)}function qe(e){var t=ue.context[e.__c],r=Ae(ce++,9);return r.c=e,t?(r.__??(r.__=!0,t.sub(ue)),t.props.value):e.__}function We(e,t){me.useDebugValue&&me.useDebugValue(t?t(e):e)}function Ue(e){var t=Ae(ce++,10),r=Fe();return t.__=e,ue.componentDidCatch||(ue.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]}function Be(){var e=Ae(ce++,11);if(!e.__){for(var t=ue.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function ze(){for(var e;e=he.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(Ke),t.__h.some(Ve),t.__h=[]}catch(Ml){t.__h=[],me.__e(Ml,e.__v)}}}function Qe(e){var t,r=function(){clearTimeout(n),xe&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);xe&&(t=requestAnimationFrame(r))}function Ke(e){var t=ue,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),ue=t}function Ve(e){var t=ue;e.__c=e.__(),ue=t}function Ge(e,t){return!e||e.length!==t.length||t.some(function(t,r){return t!==e[r]})}function Ye(e,t){return"function"==typeof t?t(e):t}var Xe=C(()=>{ae(),pe=0,he=[],ge=(me=t).__b,ve=me.__r,ye=me.diffed,we=me.__c,be=me.unmount,_e=me.__,me.__b=function(e){ue=null,ge&&ge(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_e&&_e(e,t)},me.__r=function(e){ve&&ve(e),ce=0;var t=(ue=e.__c).__H;t&&(de===ue?(t.__h=[],ue.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(Ke),t.__h.some(Ve),t.__h=[],ce=0)),de=ue},me.diffed=function(e){ye&&ye(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==he.push(t)&&fe===me.requestAnimationFrame||((fe=me.requestAnimationFrame)||Qe)(ze)),t.__H.__.some(function(e){e.u&&(e.__H=e.u,e.u=void 0)})),de=ue=null},me.__c=function(e,t){t.some(function(e){try{e.__h.some(Ke),e.__h=e.__h.filter(function(e){return!e.__||Ve(e)})}catch(Ml){t.some(function(e){e.__h&&(e.__h=[])}),t=[],me.__e(Ml,e.__v)}}),we&&we(e,t)},me.unmount=function(e){be&&be(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.some(function(e){try{Ke(e)}catch(e){t=e}}),r.__H=void 0,t&&me.__e(t,r.__v))},xe="function"==typeof requestAnimationFrame});Xe();var Ze=class extends Error{};function Je(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 r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}(t)}catch(r){return atob(t)}}Ze.prototype.name="InvalidTokenError";var et=class e{roles;isAuthorized;constructor(e){this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(t){const r=t?function(e,t){if("string"!=typeof e)throw new Ze("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Ze(`Invalid token specified: missing part #${r+1}`);let i;try{i=Je(n)}catch(Vu){throw new Ze(`Invalid token specified: invalid base64 for part #${r+1} (${Vu.message})`)}try{return JSON.parse(i)}catch(Vu){throw new Ze(`Invalid token specified: invalid json for part #${r+1} (${Vu.message})`)}}(t):{roles:[]};return new e(r.roles)}},tt=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(){}},rt=new class extends tt{#e;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#e?this.#e:"hidden"!==globalThis.document?.visibilityState}},nt={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},it=new class{#n=nt;#i=!1;setTimeoutProvider(e){this.#n=e}setTimeout(e,t){return this.#n.setTimeout(e,t)}clearTimeout(e){this.#n.clearTimeout(e)}setInterval(e,t){return this.#n.setInterval(e,t)}clearInterval(e){this.#n.clearInterval(e)}};var ot="undefined"==typeof window||"Deno"in globalThis;function at(){}function st(e){return"number"==typeof e&&e>=0&&e!==1/0}function lt(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ct(e,t){return"function"==typeof e?e(t):e}function ut(e,t){return"function"==typeof e?e(t):e}function dt(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(n){if(t.queryHash!==pt(a,t.options))return!1}else if(!mt(t.queryKey,a))return!1;if("all"!==r){const e=t.isActive();if("active"===r&&!e)return!1;if("inactive"===r&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function ft(e,t){const{exact:r,status:n,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(r){if(ht(t.options.mutationKey)!==ht(o))return!1}else if(!mt(t.options.mutationKey,o))return!1}return(!n||t.state.status===n)&&!(i&&!i(t))}function pt(e,t){return(t?.queryKeyHashFn||ht)(e)}function ht(e){return JSON.stringify(e,(e,t)=>bt(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function mt(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&"object"==typeof e&&"object"==typeof t){if(Array.isArray(e)&&Array.isArray(t)){for(let r=0;r<t.length;r++)if(!mt(e[r],t[r]))return!1;return!0}const r=Object.keys(t);for(const n of r)if(!mt(e[n],t[n]))return!1;return!0}return!1}var gt=Object.prototype.hasOwnProperty;function vt(e,t,r=0){if(e===t)return e;if(r>500)return t;const n=wt(e)&&wt(t);if(!(n||bt(e)&&bt(t)))return t;const i=(n?e:Object.keys(e)).length,o=n?t:Object.keys(t),a=o.length,s=n?new Array(a):{};let l=0;for(let c=0;c<a;c++){const a=n?c:o[c],u=e[a],d=t[a];if(u===d){s[a]=u,(n?c<i:gt.call(e,a))&&l++;continue}if(null===u||null===d||"object"!=typeof u||"object"!=typeof d){s[a]=d;continue}const f=vt(u,d,r+1);s[a]=f,f===u&&l++}return i===a&&l===i?e:s}function yt(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function wt(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function bt(e){if(!_t(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!_t(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function _t(e){return"[object Object]"===Object.prototype.toString.call(e)}function xt(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?vt(e,t):t}function kt(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function St(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var Ct=Symbol();function Tt(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==Ct?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}function Et(e,t){return"function"==typeof e?e(...t):!!e}var Pt=(()=>{let e=()=>ot;return{isServer:()=>e(),setIsServer(t){e=t}}})();function Rt(){let e,t;const r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}var Ot=function(e){setTimeout(e,0)};var It=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=Ot;const o=n=>{t?e.push(n):i(()=>{r(n)})};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i(()=>{n(()=>{t.forEach(e=>{r(e)})})})})()}return a},batchCalls:e=>(...t)=>{o(()=>{e(...t)})},schedule:o,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}(),At=new class extends tt{#o=!0;#t;#r;constructor(){super(),this.#r=e=>{if("undefined"!=typeof window&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#r)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#r=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#o!==e&&(this.#o=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#o}};function Ft(e){return Math.min(1e3*2**e,3e4)}function Lt(e){return"online"!==(e??"online")||At.isOnline()}var Mt=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function Dt(e){let t,r=!1,n=0;const i=Rt(),o=()=>"pending"!==i.status,a=()=>rt.isFocused()&&("always"===e.networkMode||At.isOnline())&&e.canRun(),s=()=>Lt(e.networkMode)&&e.canRun(),l=e=>{o()||(t?.(),i.resolve(e))},c=e=>{o()||(t?.(),i.reject(e))},u=()=>new Promise(r=>{t=e=>{(o()||a())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,o()||e.onContinue?.()}),d=()=>{if(o())return;let t;const i=0===n?e.initialPromise:void 0;try{t=i??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch(t=>{if(o())return;const i=e.retry??(Pt.isServer()?0:3),s=e.retryDelay??Ft,l="function"==typeof s?s(n,t):s,f=!0===i||"number"==typeof i&&n<i||"function"==typeof i&&i(n,t);!r&&f?(n++,e.onFail?.(n,t),function(e){return new Promise(t=>{it.setTimeout(t,e)})}(l).then(()=>a()?void 0:u()).then(()=>{r?c(t):d()})):c(t)})};return{promise:i,status:()=>i.status,cancel:t=>{if(!o()){const r=new Mt(t);c(r),e.onCancel?.(r)}},continue:()=>(t?.(),i),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),i)}}var Nt=class{#a;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),st(this.gcTime)&&(this.#a=it.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pt.isServer()?1/0:3e5))}clearGcTimeout(){void 0!==this.#a&&(it.clearTimeout(this.#a),this.#a=void 0)}};function Ht(e){return{onFetch:(t,r)=>{const n=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,o=t.state.data?.pages||[],a=t.state.data?.pageParams||[];let s={pages:[],pageParams:[]},l=0;const c=async()=>{let r=!1;const c=e=>{!function(e,t,r){let n,i=!1;Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(n??=t(),i||(i=!0,n.aborted?r():n.addEventListener("abort",r,{once:!0})),n)})}(e,()=>t.signal,()=>r=!0)},u=Tt(t.options,t.fetchOptions),d=async(e,n,i)=>{if(r)return Promise.reject(t.signal.reason);if(null==n&&e.pages.length)return Promise.resolve(e);const o=(()=>{const e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:i?"backward":"forward",meta:t.options.meta};return c(e),e})(),a=await u(o),{maxPages:s}=t.options,l=i?St:kt;return{pages:l(e.pages,a,s),pageParams:l(e.pageParams,n,s)}};if(i&&o.length){const e="backward"===i,t=e?$t:jt,r={pages:o,pageParams:a};s=await d(r,t(n,r),e)}else{const t=e??o.length;do{const e=0===l?a[0]??n.initialPageParam:jt(n,s);if(l>0&&null==e)break;s=await d(s,e),l++}while(l<t)}return s};t.options.persister?t.fetchFn=()=>t.options.persister?.(c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r):t.fetchFn=c}}}function jt(e,{pages:t,pageParams:r}){const n=t.length-1;return t.length>0?e.getNextPageParam(t[n],t,r[n],r):void 0}function $t(e,{pages:t,pageParams:r}){return t.length>0?e.getPreviousPageParam?.(t[0],t,r[0],r):void 0}var qt=class extends Nt{#s;#l;#c;#u;#d;#f;#p;#h;constructor(e){super(),this.#h=!1,this.#p=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#d=e.client,this.#u=this.#d.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#l=Bt(this.options),this.state=e.state??this.#l,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#s}get promise(){return this.#f?.promise}setOptions(e){if(this.options={...this.#p,...e},e?._type&&(this.#s=e._type),this.updateGcTime(this.options.gcTime),this.state&&void 0===this.state.data){const e=Bt(this.options);void 0!==e.data&&(this.setState(Ut(e.data,e.dataUpdatedAt)),this.#l=e)}}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#u.remove(this)}setData(e,t){const r=xt(this.state.data,e,this.options);return this.#m({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e){this.#m({type:"setState",state:e})}cancel(e){const t=this.#f?.promise;return this.#f?.cancel(e),t?t.then(at).catch(at):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#l}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>!1!==ut(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Ct||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===ct(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!lt(this.state.dataUpdatedAt,e))}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#f?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#f?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#u.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#f&&(this.#h||this.#g()?this.#f.cancel({revert:!0}):this.#f.cancelRetry()),this.scheduleGc()),this.#u.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}#g(){return"paused"===this.state.fetchStatus&&"pending"===this.state.status}invalidate(){this.state.isInvalidated||this.#m({type:"invalidate"})}async fetch(e,t){if("idle"!==this.state.fetchStatus&&"rejected"!==this.#f?.status())if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#f)return this.#f.continueRetry(),this.#f.promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}const r=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#h=!0,r.signal)})},i=()=>{const e=Tt(this.options,t),r=(()=>{const e={client:this.#d,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return this.#h=!1,this.options.persister?this.options.persister(e,r,this):e(r)},o=(()=>{const e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#d,state:this.state,fetchFn:i};return n(e),e})();("infinite"===this.#s?Ht(this.options.pages):this.options.behavior)?.onFetch(o,this),this.#c=this.state,"idle"!==this.state.fetchStatus&&this.state.fetchMeta===o.fetchOptions?.meta||this.#m({type:"fetch",meta:o.fetchOptions?.meta}),this.#f=Dt({initialPromise:t?.initialPromise,fn:o.fetchFn,onCancel:e=>{e instanceof Mt&&e.revert&&this.setState({...this.#c,fetchStatus:"idle"}),r.abort()},onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:()=>{this.#m({type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0});try{const e=await this.#f.start();if(void 0===e)throw new Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#u.config.onSuccess?.(e,this),this.#u.config.onSettled?.(e,this.state.error,this),e}catch(a){if(a instanceof Mt){if(a.silent)return this.#f.promise;if(a.revert){if(void 0===this.state.data)throw a;return this.state.data}}throw this.#m({type:"error",error:a}),this.#u.config.onError?.(a,this),this.#u.config.onSettled?.(this.state.data,a,this),a}finally{this.scheduleGc()}}#m(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,...Wt(t.data,this.options),fetchMeta:e.meta??null};case"success":const r={...t,...Ut(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#c=e.manual?r:void 0,r;case"error":const n=e.error;return{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),It.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#u.notify({query:this,type:"updated",action:e})})}};function Wt(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Lt(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}function Ut(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function Bt(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var zt=class extends tt{constructor(e,t){super(),this.options=t,this.#d=e,this.#v=null,this.#y=Rt(),this.bindMethods(),this.setOptions(t)}#d;#w=void 0;#b=void 0;#_=void 0;#x;#k;#y;#v;#S;#C;#T;#E;#P;#R;#O=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#w.addObserver(this),Qt(this.#w,this.options)?this.#I():this.updateResult(),this.#A())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Kt(this.#w,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Kt(this.#w,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#F(),this.#L(),this.#w.removeObserver(this)}setOptions(e){const t=this.options,r=this.#w;if(this.options=this.#d.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof ut(this.options.enabled,this.#w))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#M(),this.#w.setOptions(this.options),t._defaulted&&!yt(this.options,t)&&this.#d.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#w,observer:this});const n=this.hasListeners();n&&Vt(this.#w,r,this.options,t)&&this.#I(),this.updateResult(),!n||this.#w===r&&ut(this.options.enabled,this.#w)===ut(t.enabled,this.#w)&&ct(this.options.staleTime,this.#w)===ct(t.staleTime,this.#w)||this.#D();const i=this.#N();!n||this.#w===r&&ut(this.options.enabled,this.#w)===ut(t.enabled,this.#w)&&i===this.#R||this.#H(i)}getOptimisticResult(e){const t=this.#d.getQueryCache().build(this.#d,e),r=this.createResult(t,e);var n;return n=r,yt(this.getCurrentResult(),n)||(this.#_=r,this.#k=this.options,this.#x=this.#w.state),r}getCurrentResult(){return this.#_}trackResult(e,t){return new Proxy(e,{get:(e,r)=>(this.trackProp(r),t?.(r),"promise"===r&&(this.trackProp("data"),this.options.experimental_prefetchInRender||"pending"!==this.#y.status||this.#y.reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(e,r))})}trackProp(e){this.#O.add(e)}getCurrentQuery(){return this.#w}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=this.#d.defaultQueryOptions(e),r=this.#d.getQueryCache().build(this.#d,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#I({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#_))}#I(e){this.#M();let t=this.#w.fetch(this.options,e);return e?.throwOnError||(t=t.catch(at)),t}#D(){this.#F();const e=ct(this.options.staleTime,this.#w);if(Pt.isServer()||this.#_.isStale||!st(e))return;const t=lt(this.#_.dataUpdatedAt,e)+1;this.#E=it.setTimeout(()=>{this.#_.isStale||this.updateResult()},t)}#N(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#w):this.options.refetchInterval)??!1}#H(e){this.#L(),this.#R=e,!Pt.isServer()&&!1!==ut(this.options.enabled,this.#w)&&st(this.#R)&&0!==this.#R&&(this.#P=it.setInterval(()=>{(this.options.refetchIntervalInBackground||rt.isFocused())&&this.#I()},this.#R))}#A(){this.#D(),this.#H(this.#N())}#F(){void 0!==this.#E&&(it.clearTimeout(this.#E),this.#E=void 0)}#L(){void 0!==this.#P&&(it.clearInterval(this.#P),this.#P=void 0)}createResult(e,t){const r=this.#w,n=this.options,i=this.#_,o=this.#x,a=this.#k,s=e!==r?e.state:this.#b,{state:l}=e;let c,u={...l},d=!1;if(t._optimisticResults){const i=this.hasListeners(),o=!i&&Qt(e,t),a=i&&Vt(e,r,t,n);(o||a)&&(u={...u,...Wt(l.data,e.options)}),"isRestoring"===t._optimisticResults&&(u.fetchStatus="idle")}let{error:f,errorUpdatedAt:p,status:h}=u;c=u.data;let m=!1;if(void 0!==t.placeholderData&&void 0===c&&"pending"===h){let e;i?.isPlaceholderData&&t.placeholderData===a?.placeholderData?(e=i.data,m=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#T?.state.data,this.#T):t.placeholderData,void 0!==e&&(h="success",c=xt(i?.data,e,t),d=!0)}if(t.select&&void 0!==c&&!m)if(i&&c===o?.data&&t.select===this.#S)c=this.#C;else try{this.#S=t.select,c=t.select(c),c=xt(i?.data,c,t),this.#C=c,this.#v=null}catch(x){this.#v=x}this.#v&&(f=this.#v,c=this.#C,p=Date.now(),h="error");const g="fetching"===u.fetchStatus,v="pending"===h,y="error"===h,w=v&&g,b=void 0!==c,_={status:h,fetchStatus:u.fetchStatus,isPending:v,isSuccess:"success"===h,isError:y,isInitialLoading:w,isLoading:w,data:c,dataUpdatedAt:u.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:u.fetchFailureCount,failureReason:u.fetchFailureReason,errorUpdateCount:u.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:u.dataUpdateCount>s.dataUpdateCount||u.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!v,isLoadingError:y&&!b,isPaused:"paused"===u.fetchStatus,isPlaceholderData:d,isRefetchError:y&&b,isStale:Gt(e,t),refetch:this.refetch,promise:this.#y,isEnabled:!1!==ut(t.enabled,e)};if(this.options.experimental_prefetchInRender){const t=void 0!==_.data,n="error"===_.status&&!t,i=e=>{n?e.reject(_.error):t&&e.resolve(_.data)},o=()=>{const e=this.#y=_.promise=Rt();i(e)},a=this.#y;switch(a.status){case"pending":e.queryHash===r.queryHash&&i(a);break;case"fulfilled":(n||_.data!==a.value)&&o();break;case"rejected":n&&_.error===a.reason||o()}}return _}updateResult(){const e=this.#_,t=this.createResult(this.#w,this.options);if(this.#x=this.#w.state,this.#k=this.options,void 0!==this.#x.data&&(this.#T=this.#w),yt(t,e))return;this.#_=t;this.#j({listeners:(()=>{if(!e)return!0;const{notifyOnChangeProps:t}=this.options,r="function"==typeof t?t():t;if("all"===r||!r&&!this.#O.size)return!0;const n=new Set(r??this.#O);return this.options.throwOnError&&n.add("error"),Object.keys(this.#_).some(t=>{const r=t;return this.#_[r]!==e[r]&&n.has(r)})})()})}#M(){const e=this.#d.getQueryCache().build(this.#d,this.options);if(e===this.#w)return;const t=this.#w;this.#w=e,this.#b=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#A()}#j(e){It.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#_)}),this.#d.getQueryCache().notify({query:this.#w,type:"observerResultsUpdated"})})}};function Qt(e,t){return function(e,t){return!1!==ut(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===ut(t.retryOnMount,e))}(e,t)||void 0!==e.state.data&&Kt(e,t,t.refetchOnMount)}function Kt(e,t,r){if(!1!==ut(t.enabled,e)&&"static"!==ct(t.staleTime,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Gt(e,t)}return!1}function Vt(e,t,r,n){return(e!==t||!1===ut(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Gt(e,r)}function Gt(e,t){return!1!==ut(t.enabled,e)&&e.isStaleByTime(ct(t.staleTime,e))}var Yt=class extends Nt{#d;#$;#q;#f;constructor(e){super(),this.#d=e.client,this.mutationId=e.mutationId,this.#q=e.mutationCache,this.#$=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#$.includes(e)||(this.#$.push(e),this.clearGcTimeout(),this.#q.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#$=this.#$.filter(t=>t!==e),this.scheduleGc(),this.#q.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#$.length||("pending"===this.state.status?this.scheduleGc():this.#q.remove(this))}continue(){return this.#f?.continue()??this.execute(this.state.variables)}async execute(e){const t=()=>{this.#m({type:"continue"})},r={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#f=Dt({fn:()=>this.options.mutationFn?this.options.mutationFn(e,r):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{this.#m({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#m({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#q.canRun(this)});const n="pending"===this.state.status,i=!this.#f.canStart();try{if(n)t();else{this.#m({type:"pending",variables:e,isPaused:i}),this.#q.config.onMutate&&await this.#q.config.onMutate(e,this,r);const t=await(this.options.onMutate?.(e,r));t!==this.state.context&&this.#m({type:"pending",context:t,variables:e,isPaused:i})}const o=await this.#f.start();return await(this.#q.config.onSuccess?.(o,e,this.state.context,this,r)),await(this.options.onSuccess?.(o,e,this.state.context,r)),await(this.#q.config.onSettled?.(o,null,this.state.variables,this.state.context,this,r)),await(this.options.onSettled?.(o,null,e,this.state.context,r)),this.#m({type:"success",data:o}),o}catch(o){try{await(this.#q.config.onError?.(o,e,this.state.context,this,r))}catch(Vu){Promise.reject(Vu)}try{await(this.options.onError?.(o,e,this.state.context,r))}catch(Vu){Promise.reject(Vu)}try{await(this.#q.config.onSettled?.(void 0,o,this.state.variables,this.state.context,this,r))}catch(Vu){Promise.reject(Vu)}try{await(this.options.onSettled?.(void 0,o,e,this.state.context,r))}catch(Vu){Promise.reject(Vu)}throw this.#m({type:"error",error:o}),o}finally{this.#q.runNext(this)}}#m(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),It.batch(()=>{this.#$.forEach(t=>{t.onMutationUpdate(e)}),this.#q.notify({mutation:this,type:"updated",action:e})})}};var Xt=class extends tt{constructor(e={}){super(),this.config=e,this.#W=new Set,this.#U=new Map,this.#B=0}#W;#U;#B;build(e,t,r){const n=new Yt({client:e,mutationCache:this,mutationId:++this.#B,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){this.#W.add(e);const t=Zt(e);if("string"==typeof t){const r=this.#U.get(t);r?r.push(e):this.#U.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#W.delete(e)){const t=Zt(e);if("string"==typeof t){const r=this.#U.get(t);if(r)if(r.length>1){const t=r.indexOf(e);-1!==t&&r.splice(t,1)}else r[0]===e&&this.#U.delete(t)}}this.notify({type:"removed",mutation:e})}canRun(e){const t=Zt(e);if("string"==typeof t){const r=this.#U.get(t)?.find(e=>"pending"===e.state.status);return!r||r===e}return!0}runNext(e){const t=Zt(e);return"string"==typeof t?(this.#U.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){It.batch(()=>{this.#W.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#W.clear(),this.#U.clear()})}getAll(){return Array.from(this.#W)}find(e){const t={exact:!0,...e};return this.getAll().find(e=>ft(t,e))}findAll(e={}){return this.getAll().filter(t=>ft(e,t))}notify(e){It.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){const e=this.getAll().filter(e=>e.state.isPaused);return It.batch(()=>Promise.all(e.map(e=>e.continue().catch(at))))}};function Zt(e){return e.options.scope?.id}var Jt,er,tr,rr,nr,ir,or,ar,sr,lr,cr,ur,dr,fr,pr,hr,mr,gr,vr,yr,wr,br,_r,xr,kr,Sr,Cr=class extends tt{#d;#_=void 0;#z;#Q;constructor(e,t){super(),this.#d=e,this.setOptions(t),this.bindMethods(),this.#K()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){const t=this.options;this.options=this.#d.defaultMutationOptions(e),yt(this.options,t)||this.#d.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#z,observer:this}),t?.mutationKey&&this.options.mutationKey&&ht(t.mutationKey)!==ht(this.options.mutationKey)?this.reset():"pending"===this.#z?.state.status&&this.#z.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#z?.removeObserver(this)}onMutationUpdate(e){this.#K(),this.#j(e)}getCurrentResult(){return this.#_}reset(){this.#z?.removeObserver(this),this.#z=void 0,this.#K(),this.#j()}mutate(e,t){return this.#Q=t,this.#z?.removeObserver(this),this.#z=this.#d.getMutationCache().build(this.#d,this.options),this.#z.addObserver(this),this.#z.execute(e)}#K(){const e=this.#z?.state??{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0};this.#_={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#j(e){It.batch(()=>{if(this.#Q&&this.hasListeners()){const t=this.#_.variables,r=this.#_.context,n={client:this.#d,meta:this.options.meta,mutationKey:this.options.mutationKey};if("success"===e?.type){try{this.#Q.onSuccess?.(e.data,t,r,n)}catch(Vu){Promise.reject(Vu)}try{this.#Q.onSettled?.(e.data,null,t,r,n)}catch(Vu){Promise.reject(Vu)}}else if("error"===e?.type){try{this.#Q.onError?.(e.error,t,r,n)}catch(Vu){Promise.reject(Vu)}try{this.#Q.onSettled?.(void 0,e.error,t,r,n)}catch(Vu){Promise.reject(Vu)}}}this.listeners.forEach(e=>{e(this.#_)})})}},Tr=class extends tt{constructor(e={}){super(),this.config=e,this.#V=new Map}#V;build(e,t,r){const n=t.queryKey,i=t.queryHash??pt(n,t);let o=this.get(i);return o||(o=new qt({client:e,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(o)),o}add(e){this.#V.has(e.queryHash)||(this.#V.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=this.#V.get(e.queryHash);t&&(e.destroy(),t===e&&this.#V.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){It.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#V.get(e)}getAll(){return[...this.#V.values()]}find(e){const t={exact:!0,...e};return this.getAll().find(e=>dt(t,e))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(t=>dt(e,t)):t}notify(e){It.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){It.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){It.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Er=class{#G;#q;#p;#Y;#X;#Z;#J;#ee;constructor(e={}){this.#G=e.queryCache||new Tr,this.#q=e.mutationCache||new Xt,this.#p=e.defaultOptions||{},this.#Y=new Map,this.#X=new Map,this.#Z=0}mount(){this.#Z++,1===this.#Z&&(this.#J=rt.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#G.onFocus())}),this.#ee=At.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#G.onOnline())}))}unmount(){this.#Z--,0===this.#Z&&(this.#J?.(),this.#J=void 0,this.#ee?.(),this.#ee=void 0)}isFetching(e){return this.#G.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#q.findAll({...e,status:"pending"}).length}getQueryData(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),r=this.#G.build(this,t),n=r.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&r.isStaleByTime(ct(t.staleTime,r))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#G.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=this.#G.get(n.queryHash)?.state.data,o=function(e,t){return"function"==typeof e?e(t):e}(t,i);if(void 0!==o)return this.#G.build(this,n).setData(o,{...r,manual:!0})}setQueriesData(e,t,r){return It.batch(()=>this.#G.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,r)]))}getQueryState(e){const t=this.defaultQueryOptions({queryKey:e});return this.#G.get(t.queryHash)?.state}removeQueries(e){const t=this.#G;It.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){const r=this.#G;return It.batch(()=>(r.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const r={revert:!0,...t},n=It.batch(()=>this.#G.findAll(e).map(e=>e.cancel(r)));return Promise.all(n).then(at).catch(at)}invalidateQueries(e,t={}){return It.batch(()=>(this.#G.findAll(e).forEach(e=>{e.invalidate()}),"none"===e?.refetchType?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t)))}refetchQueries(e,t={}){const r={...t,cancelRefetch:t.cancelRefetch??!0},n=It.batch(()=>this.#G.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(at)),"paused"===e.state.fetchStatus?Promise.resolve():t}));return Promise.all(n).then(at)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=this.#G.build(this,t);return r.isStaleByTime(ct(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(at).catch(at)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(at).catch(at)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return At.isOnline()?this.#q.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#G}getMutationCache(){return this.#q}getDefaultOptions(){return this.#p}setDefaultOptions(e){this.#p=e}setQueryDefaults(e,t){this.#Y.set(ht(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...this.#Y.values()],r={};return t.forEach(t=>{mt(e,t.queryKey)&&Object.assign(r,t.defaultOptions)}),r}setMutationDefaults(e,t){this.#X.set(ht(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...this.#X.values()],r={};return t.forEach(t=>{mt(e,t.mutationKey)&&Object.assign(r,t.defaultOptions)}),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...this.#p.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pt(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"),t.queryFn===Ct&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#p.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#G.clear(),this.#q.clear()}},Pr=E({Children:()=>nr,Component:()=>D,Fragment:()=>M,PureComponent:()=>Dr,StrictMode:()=>M,Suspense:()=>qr,SuspenseList:()=>Br,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>wr,cloneElement:()=>en,createContext:()=>oe,createElement:()=>A,createFactory:()=>Yr,createPortal:()=>Kr,createRef:()=>L,default:()=>Sr,findDOMNode:()=>rn,flushSync:()=>xr,forwardRef:()=>Hr,hydrate:()=>Gr,isElement:()=>kr,isFragment:()=>Zr,isMemo:()=>Jr,isValidElement:()=>Xr,lazy:()=>Ur,memo:()=>Nr,render:()=>Vr,startTransition:()=>Fr,unmountComponentAtNode:()=>tn,unstable_batchedUpdates:()=>_r,useCallback:()=>$e,useContext:()=>qe,useDebugValue:()=>We,useDeferredValue:()=>Lr,useEffect:()=>Me,useErrorBoundary:()=>Ue,useId:()=>Be,useImperativeHandle:()=>He,useInsertionEffect:()=>Jt,useLayoutEffect:()=>De,useMemo:()=>je,useReducer:()=>Le,useRef:()=>Ne,useState:()=>Fe,useSyncExternalStore:()=>Ir,useTransition:()=>Mr,version:()=>br});function Rr(e,t){for(var r in t)e[r]=t[r];return e}function Or(e,t){for(var r in e)if("__source"!==r&&!(r in t))return!0;for(var n in t)if("__source"!==n&&e[n]!==t[n])return!0;return!1}function Ir(e,t){var r=t(),n=Fe({t:{__:r,u:t}}),i=n[0].t,o=n[1];return De(function(){i.__=r,i.u=t,Ar(i)&&o({t:i})},[e,r,t]),Me(function(){return Ar(i)&&o({t:i}),e(function(){Ar(i)&&o({t:i})})},[e]),r}function Ar(e){try{return!((t=e.__)===(r=e.u())&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(e){return!0}var t,r}function Fr(e){e()}function Lr(e){return e}function Mr(){return[!1,Fr]}function Dr(e,t){this.props=e,this.context=t}function Nr(e,t){function r(e){var r=this.props.ref;return r!=e.ref&&r&&("function"==typeof r?r(null):r.current=null),t?!t(this.props,e)||r!=e.ref:Or(this.props,e)}function n(t){return this.shouldComponentUpdate=r,A(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.__f=n.prototype.isReactComponent=!0,n.type=e,n}function Hr(e){function t(t){var r=Rr({},t);return delete r.ref,e(r,t.ref||null)}return t.$$typeof=tr,t.render=e,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function jr(e,t,r){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=Rr({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return jr(e,t,r)})),e}function $r(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return $r(e,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function qr(){this.__u=0,this.o=null,this.__b=null}function Wr(e){var t=e.__&&e.__.__c;return t&&t.__a&&t.__a(e)}function Ur(e){var t,r,n,i=null;function o(o){if(t||(t=e()).then(function(e){e&&(i=e.default||e),n=!0},function(e){r=e,n=!0}),r)throw r;if(!n)throw t;return i?A(i,o):null}return o.displayName="Lazy",o.__f=!0,o}function Br(){this.i=null,this.l=null}function zr(e){return this.getChildContext=function(){return e.context},e.children}function Qr(e){var t=this,r=e.h;if(t.componentWillUnmount=function(){re(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:function(){return!0},namespaceURI:r.namespaceURI,insertBefore:function(e,r){this.childNodes.push(e),t.h.insertBefore(e,r)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}re(A(zr,{context:t.context},e.__v),t.v)}function Kr(e,t){var r=A(Qr,{__v:e,h:t});return r.containerInfo=t,r}function Vr(e,t,r){return t.__k??(t.textContent=""),re(e,t),"function"==typeof r&&r(),e?e.__c:null}function Gr(e,t,r){return ne(e,t),"function"==typeof r&&r(),e?e.__c:null}function Yr(e){return A.bind(null,e)}function Xr(e){return!!e&&e.$$typeof===sr}function Zr(e){return Xr(e)&&e.type===M}function Jr(e){return!!e&&"string"==typeof e.displayName&&0==e.displayName.indexOf("Memo(")}function en(e){return Xr(e)?ie.apply(null,arguments):e}function tn(e){return!!e.__k&&(re(null,e),!0)}function rn(e){return e&&(e.base||1===e.nodeType&&e)||null}var nn=C(()=>{ae(),Xe(),Jt=De,(Dr.prototype=new D).isPureReactComponent=!0,Dr.prototype.shouldComponentUpdate=function(e,t){return Or(this.props,e)||Or(this.state,t)},er=t.__b,t.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),er&&er(e)},tr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911,rr=function(e,t){return null==e?null:B(B(e).map(t))},nr={map:rr,forEach:rr,count:function(e){return e?B(e).length:0},only:function(e){var t=B(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:B},ir=t.__e,t.__e=function(e,t,r,n){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e??(t.__e=r.__e,t.__k=r.__k||[]),i.__c(e,t);ir(e,t,r,n)},or=t.unmount,t.unmount=function(e){var t=e.__c;t&&(t.__z=!0),t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),or&&or(e)},(qr.prototype=new D).__c=function(e,t){var r=t.__c,n=this;n.o??=[],n.o.push(r);var i=Wr(n.__v),o=!1,a=function(){o||n.__z||(o=!0,r.__R=null,i?i(l):l())};r.__R=a;var s=r.__P;r.__P=null;var l=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=$r(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.__P=s,t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},qr.prototype.componentWillUnmount=function(){this.o=[]},qr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=jr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&A(M,null,e.fallback);return i&&(i.__u&=-33),[A(M,null,t.__a?null:e.children),i]},ar=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}},(Br.prototype=new D).__a=function(e){var t=this,r=Wr(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),ar(t,e,n)):i()};r?r(o):o()}},Br.prototype.render=function(e){this.i=null,this.l=new Map;var t=B(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Br.prototype.componentDidUpdate=Br.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){ar(e,r,t)})},sr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,lr=/^(?: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]/,cr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ur=/[A-Z0-9]/g,dr="undefined"!=typeof document,fr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)},D.prototype.isReactComponent=!0,["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(D.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}),pr=t.event,t.event=function(e){return pr&&(e=pr(e)),e.persist=function(){},e.isPropagationStopped=function(){return this.cancelBubble},e.isDefaultPrevented=function(){return this.defaultPrevented},e.nativeEvent=e},mr={configurable:!0,get:function(){return this.class}},gr=t.vnode,t.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},i=-1==r.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||dr&&"children"===o&&"noscript"===r||"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"!==r&&"textarea"!==r||fr(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":cr.test(o)&&(o=s):s=o="oninput":i&&lr.test(o)?o=o.replace(ur,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&n[o=s]&&(o="oninputCapture"),n[o]=a}}"select"==r&&(n.multiple&&Array.isArray(n.value)&&(n.value=B(t.children).forEach(function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)})),null!=n.defaultValue&&(n.value=B(t.children).forEach(function(e){e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,"className",mr)):t.className&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=sr,gr&&gr(e)},vr=t.__r,t.__r=function(e){vr&&vr(e),hr=e.__c},yr=t.diffed,t.diffed=function(e){yr&&yr(e);var t=e.props,r=e.__e;null!=r&&"textarea"===e.type&&"value"in t&&t.value!==r.value&&(r.value=null==t.value?"":t.value),hr=null},wr={ReactCurrentDispatcher:{current:{readContext:function(e){return hr.__n[e.__c].props.value},useCallback:$e,useContext:qe,useDebugValue:We,useDeferredValue:Lr,useEffect:Me,useId:Be,useImperativeHandle:He,useInsertionEffect:Jt,useLayoutEffect:De,useMemo:je,useReducer:Le,useRef:Ne,useState:Fe,useSyncExternalStore:Ir,useTransition:Mr}}},br="18.3.1",_r=function(e,t){return e(t)},xr=function(e,r){var n=t.debounceRendering;t.debounceRendering=function(e){return e()};var i=e(r);return t.debounceRendering=n,i},Sr={useState:Fe,useId:Be,useReducer:Le,useEffect:Me,useLayoutEffect:De,useInsertionEffect:Jt,useTransition:Mr,useDeferredValue:Lr,useSyncExternalStore:Ir,startTransition:Fr,useRef:Ne,useImperativeHandle:He,useMemo:je,useCallback:$e,useContext:qe,useDebugValue:We,version:"18.3.1",Children:nr,render:Vr,hydrate:Gr,unmountComponentAtNode:tn,createPortal:Kr,createElement:A,createContext:oe,createFactory:Yr,cloneElement:en,createRef:L,Fragment:M,isValidElement:Xr,isElement:kr=Xr,isFragment:Zr,isMemo:Jr,findDOMNode:rn,Component:D,PureComponent:Dr,memo:Nr,forwardRef:Hr,flushSync:xr,unstable_batchedUpdates:_r,StrictMode:M,Suspense:qr,SuspenseList:Br,lazy:Ur,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wr}});nn(),ae();var on=0;Array.isArray;function an(e,r,n,i,o,a){r||(r={});var s,l,c=r;if("ref"in c)for(l in c={},r)"ref"==l?s=r[l]:c[l]=r[l];var u={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--on,__i:-1,__u:0,__source:o,__self:a};if("function"==typeof e&&(s=e.defaultProps))for(l in s)void 0===c[l]&&(c[l]=s[l]);return t.vnode&&t.vnode(u),u}var sn=oe(void 0),ln=e=>{const t=qe(sn);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},cn=({client:e,children:t})=>(Me(()=>(e.mount(),()=>{e.unmount()}),[e]),an(sn.Provider,{value:e,children:t}));nn();var un=oe(!1);un.Provider;nn();var dn=oe(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());nn();var fn=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function pn(e,t,r){const n=qe(un),i=qe(dn),o=ln(r),a=o.defaultQueryOptions(e);o.getDefaultOptions().queries?._experimental_beforeQuery?.(a);const s=o.getQueryCache().get(a.queryHash),l=!1!==e.subscribed;a._optimisticResults=n?"isRestoring":l?"optimistic":void 0,(e=>{if(e.suspense){const t=1e3,r=e=>"static"===e?e:Math.max(e??t,t),n=e.staleTime;e.staleTime="function"==typeof n?(...e)=>r(n(...e)):r(n),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,t))}})(a),((e,t,r)=>{const n=r?.state.error&&"function"==typeof e.throwOnError?Et(e.throwOnError,[r.state.error,r]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||n)&&(t.isReset()||(e.retryOnMount=!1))})(a,i,s),(e=>{Me(()=>{e.clearReset()},[e])})(i);const c=!o.getQueryCache().get(a.queryHash),[u]=Fe(()=>new t(o,a)),d=u.getOptimisticResult(a),f=!n&&l;if(Ir($e(e=>{const t=f?u.subscribe(It.batchCalls(e)):at;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult()),Me(()=>{u.setOptions(a)},[a,u]),((e,t)=>e?.suspense&&t.isPending)(a,d))throw fn(a,u,i);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&n&&(i&&void 0===e.data||Et(r,[e.error,n])))({result:d,errorResetBoundary:i,throwOnError:a.throwOnError,query:s,suspense:a.suspense}))throw d.error;return o.getDefaultOptions().queries?._experimental_afterQuery?.(a,d),a.experimental_prefetchInRender&&!Pt.isServer()&&((e,t)=>e.isLoading&&e.isFetching&&!t)(d,n)&&(c?fn(a,u,i):s?.promise)?.catch(at).finally(()=>{u.updateResult()}),a.notifyOnChangeProps?d:u.trackResult(d)}function hn(e,t){return pn(e,zt,t)}function mn(e,t){const r=ln(t),[n]=Fe(()=>new Cr(r,e));Me(()=>{n.setOptions(e)},[n,e]);const i=Ir($e(e=>n.subscribe(It.batchCalls(e)),[n]),()=>n.getCurrentResult()),o=$e((e,t)=>{n.mutate(e,t).catch(at)},[n]);if(i.error&&Et(n.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:o,mutateAsync:i.mutate}}nn(),nn(),ae(),Xe();var gn=oe({account:{accountId:""},backend:{url:"",accessToken:""}}),vn=()=>qe(gn);Xe();var yn,wn=class e extends Error{_response;get response(){return this._response}constructor(t,r){super(t),this._response=r,Object.setPrototypeOf(this,e.prototype)}},bn=async(e,t,r,n)=>{const i=await fetch(e,{method:r,body:n?JSON.stringify(n):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.1350",authorization:`Bearer ${t}`},signal:AbortSignal?.timeout&&AbortSignal.timeout(15e3)});if(!i.ok)throw new wn(`[API Error] Status: ${i.status}, ${i.statusText}`,i);return i},_n=async(e,t,r,n)=>await(await bn(e,t,r,n)).json(),xn=e=>{const t=vn();return je(()=>e(t),[e,t])},kn="linkedAccount",Sn="linkedProfilesForAccount",Cn="salaryPackagedItem",Tn="checkProfileSearchAuthorization",En="payrollAdvice",Pn="invoices",Rn="/salary-packaging/admin/v1.0",On=e=>async()=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/auth`),e.backend.accessToken,"GET"),In=e=>async t=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profile-search?search=${t}`),e.backend.accessToken,"GET"),An=e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2),await bn(new URL(`${e.backend.url}${Rn}/ingest/clients`),e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]})},Fn=e=>async()=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}`),e.backend.accessToken,"GET"),Ln=e=>async()=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profiles`),e.backend.accessToken,"GET"),Mn=e=>async t=>{await bn(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profiles/${t}/unlink`),e.backend.accessToken,"POST")},Dn=e=>async(t,r)=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profiles/${t}/items/${r}`),e.backend.accessToken,"GET"),Nn=e=>async t=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/profiles/${t}/payroll-advice`),e.backend.accessToken,"GET"),Hn=e=>async()=>_n(new URL(`${e.backend.url}${Rn}/accounts/${e.account.accountId}/invoices`),e.backend.accessToken,"GET"),jn=()=>({checkProfileSearchAuthorization:xn(On),searchProfilesForAccount:xn(In),ingestClient:xn(An),linkedAccount:xn(Fn),linkedProfilesForAccount:xn(Ln),unlinkProfile:xn(Mn),salaryPackagedItem:xn(Dn),payrollAdvice:xn(Nn),invoices:xn(Hn)});function $n(){return $n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$n.apply(null,arguments)}var qn=function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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 r=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{r.insertRule(e,r.cssRules.length)}catch(Vu){}}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}(),Wn="-ms-",Un="-moz-",Bn="-webkit-",zn="comm",Qn="rule",Kn="decl",Vn="@keyframes",Gn=Math.abs,Yn=String.fromCharCode,Xn=Object.assign;function Zn(e){return e.trim()}function Jn(e,t,r){return e.replace(t,r)}function ei(e,t){return e.indexOf(t)}function ti(e,t){return 0|e.charCodeAt(t)}function ri(e,t,r){return e.slice(t,r)}function ni(e){return e.length}function ii(e){return e.length}function oi(e,t){return t.push(e),e}var ai=1,si=1,li=0,ci=0,ui=0,di="";function fi(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ai,column:si,length:a,return:""}}function pi(e,t){return Xn(fi("",null,null,"",null,null,0),e,{length:-e.length},t)}function hi(){return ui=ci>0?ti(di,--ci):0,si--,10===ui&&(si=1,ai--),ui}function mi(){return ui=ci<li?ti(di,ci++):0,si++,10===ui&&(si=1,ai++),ui}function gi(){return ti(di,ci)}function vi(){return ci}function yi(e,t){return ri(di,e,t)}function wi(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 bi(e){return ai=si=1,li=ni(di=e),ci=0,[]}function _i(e){return di="",e}function xi(e){return Zn(yi(ci-1,Ci(91===e?e+2:40===e?e+1:e)))}function ki(e){for(;(ui=gi())&&ui<33;)mi();return wi(e)>2||wi(ui)>3?"":" "}function Si(e,t){for(;--t&&mi()&&!(ui<48||ui>102||ui>57&&ui<65||ui>70&&ui<97););return yi(e,vi()+(t<6&&32==gi()&&32==mi()))}function Ci(e){for(;mi();)switch(ui){case e:return ci;case 34:case 39:34!==e&&39!==e&&Ci(ui);break;case 40:41===e&&Ci(e);break;case 92:mi()}return ci}function Ti(e,t){for(;mi()&&e+ui!==57&&(e+ui!==84||47!==gi()););return"/*"+yi(t,ci-1)+"*"+Yn(47===e?e:mi())}function Ei(e){for(;!wi(gi());)mi();return yi(e,ci)}function Pi(e){return _i(Ri("",null,null,null,[""],e=bi(e),0,[0],e))}function Ri(e,t,r,n,i,o,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,y=0,w="",b=i,_=o,x=n,k=w;g;)switch(h=y,y=mi()){case 40:if(108!=h&&58==ti(k,d-1)){-1!=ei(k+=Jn(xi(y),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=xi(y);break;case 9:case 10:case 13:case 32:k+=ki(h);break;case 92:k+=Si(vi()-1,7);continue;case 47:switch(gi()){case 42:case 47:oi(Ii(Ti(mi(),vi()),t,r),l);break;default:k+="/"}break;case 123*m:s[c++]=ni(k)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+u:-1==v&&(k=Jn(k,/\f/g,"")),p>0&&ni(k)-d&&oi(p>32?Ai(k+";",n,r,d-1):Ai(Jn(k," ","")+";",n,r,d-2),l);break;case 59:k+=";";default:if(oi(x=Oi(k,t,r,c,u,i,s,w,b=[],_=[],d),o),123===y)if(0===u)Ri(k,t,x,x,b,o,d,s,_);else switch(99===f&&110===ti(k,3)?100:f){case 100:case 108:case 109:case 115:Ri(e,x,x,n&&oi(Oi(e,x,x,0,0,i,s,w,i,b=[],d),_),i,_,d,s,n?b:_);break;default:Ri(k,x,x,x,[""],_,0,s,_)}}c=u=p=0,m=v=1,w=k="",d=a;break;case 58:d=1+ni(k),p=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==hi())continue;switch(k+=Yn(y),y*m){case 38:v=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(ni(k)-1)*v,v=1;break;case 64:45===gi()&&(k+=xi(mi())),f=gi(),u=d=ni(w=k+=Ei(vi())),y++;break;case 45:45===h&&2==ni(k)&&(m=0)}}return o}function Oi(e,t,r,n,i,o,a,s,l,c,u){for(var d=i-1,f=0===i?o:[""],p=ii(f),h=0,m=0,g=0;h<n;++h)for(var v=0,y=ri(e,d+1,d=Gn(m=a[h])),w=e;v<p;++v)(w=Zn(m>0?f[v]+" "+y:Jn(y,/&\f/g,f[v])))&&(l[g++]=w);return fi(e,t,r,0===i?Qn:s,l,c,u)}function Ii(e,t,r){return fi(e,t,r,zn,Yn(ui),ri(e,2,-2),0)}function Ai(e,t,r,n){return fi(e,t,r,Kn,ri(e,0,n),ri(e,n+1,-1),n)}function Fi(e,t){for(var r="",n=ii(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Li(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case Kn:return e.return=e.return||e.value;case zn:return"";case Vn:return e.return=e.value+"{"+Fi(e.children,n)+"}";case Qn:e.value=e.props.join(",")}return ni(r=Fi(e.children,n))?e.return=e.value+"{"+r+"}":""}function Mi(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Di=function(e,t,r){for(var n=0,i=0;n=i,i=gi(),38===n&&12===i&&(t[r]=1),!wi(i);)mi();return yi(e,ci)},Ni=function(e,t){return _i(function(e,t){var r=-1,n=44;do{switch(wi(n)){case 0:38===n&&12===gi()&&(t[r]=1),e[r]+=Di(ci-1,t,r);break;case 2:e[r]+=xi(n);break;case 4:if(44===n){e[++r]=58===gi()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Yn(n)}}while(n=mi());return e}(bi(e),t))},Hi=new WeakMap,ji=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Hi.get(r))&&!n){Hi.set(e,!0);for(var i=[],o=Ni(t,i),a=r.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]}}},$i=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function qi(e,t){switch(function(e,t){return 45^ti(e,0)?(((t<<2^ti(e,0))<<2^ti(e,1))<<2^ti(e,2))<<2^ti(e,3):0}(e,t)){case 5103:return Bn+"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 Bn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Bn+e+Un+e+Wn+e+e;case 6828:case 4268:return Bn+e+Wn+e+e;case 6165:return Bn+e+Wn+"flex-"+e+e;case 5187:return Bn+e+Jn(e,/(\w+).+(:[^]+)/,Bn+"box-$1$2"+Wn+"flex-$1$2")+e;case 5443:return Bn+e+Wn+"flex-item-"+Jn(e,/flex-|-self/,"")+e;case 4675:return Bn+e+Wn+"flex-line-pack"+Jn(e,/align-content|flex-|-self/,"")+e;case 5548:return Bn+e+Wn+Jn(e,"shrink","negative")+e;case 5292:return Bn+e+Wn+Jn(e,"basis","preferred-size")+e;case 6060:return Bn+"box-"+Jn(e,"-grow","")+Bn+e+Wn+Jn(e,"grow","positive")+e;case 4554:return Bn+Jn(e,/([^-])(transform)/g,"$1"+Bn+"$2")+e;case 6187:return Jn(Jn(Jn(e,/(zoom-|grab)/,Bn+"$1"),/(image-set)/,Bn+"$1"),e,"")+e;case 5495:case 3959:return Jn(e,/(image-set\([^]*)/,Bn+"$1$`$1");case 4968:return Jn(Jn(e,/(.+:)(flex-)?(.*)/,Bn+"box-pack:$3"+Wn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Bn+e+e;case 4095:case 3583:case 4068:case 2532:return Jn(e,/(.+)-inline(.+)/,Bn+"$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(ni(e)-1-t>6)switch(ti(e,t+1)){case 109:if(45!==ti(e,t+4))break;case 102:return Jn(e,/(.+:)(.+)-([^]+)/,"$1"+Bn+"$2-$3$1"+Un+(108==ti(e,t+3)?"$3":"$2-$3"))+e;case 115:return~ei(e,"stretch")?qi(Jn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==ti(e,t+1))break;case 6444:switch(ti(e,ni(e)-3-(~ei(e,"!important")&&10))){case 107:return Jn(e,":",":"+Bn)+e;case 101:return Jn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Bn+(45===ti(e,14)?"inline-":"")+"box$3$1"+Bn+"$2$3$1"+Wn+"$2box$3")+e}break;case 5936:switch(ti(e,t+11)){case 114:return Bn+e+Wn+Jn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Bn+e+Wn+Jn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Bn+e+Wn+Jn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Bn+e+Wn+e+e}return e}var Wi=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Kn:e.return=qi(e.value,e.length);break;case Vn:return Fi([pi(e,{value:Jn(e.value,"@","@"+Bn)})],n);case Qn: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 Fi([pi(e,{props:[Jn(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Fi([pi(e,{props:[Jn(t,/:(plac\w+)/,":"+Bn+"input-$1")]}),pi(e,{props:[Jn(t,/:(plac\w+)/,":-moz-$1")]}),pi(e,{props:[Jn(t,/:(plac\w+)/,Wn+"input-$1")]})],n)}return""})}}],Ui=function(e){var t=e.key;if("css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var n,i,o=e.stylisPlugins||Wi,a={},s=[];n=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)a[t[r]]=!0;s.push(e)});var l,c,u=[Li,(c=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],d=function(e){var t=ii(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}([ji,$i].concat(o,u));i=function(e,t,r,n){l=r,Fi(Pi(e?e+"{"+t.styles+"}":t.styles),d),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new qn({key:t,container:n,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},Bi=T(e=>{var t="function"==typeof Symbol&&Symbol.for,r=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,l=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,u=t?Symbol.for("react.concurrent_mode"):60111,d=t?Symbol.for("react.forward_ref"):60112,f=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,g=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,y=t?Symbol.for("react.responder"):60118,w=t?Symbol.for("react.scope"):60119;function b(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case u:case i:case a:case o:case f:return e;default:switch(e=e&&e.$$typeof){case l:case d:case m:case h:case s:return e;default:return t}}case n:return t}}}function _(e){return b(e)===u}e.AsyncMode=c,e.ConcurrentMode=u,e.ContextConsumer=l,e.ContextProvider=s,e.Element=r,e.ForwardRef=d,e.Fragment=i,e.Lazy=m,e.Memo=h,e.Portal=n,e.Profiler=a,e.StrictMode=o,e.Suspense=f,e.isAsyncMode=function(e){return _(e)||b(e)===c},e.isConcurrentMode=_,e.isContextConsumer=function(e){return b(e)===l},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===m},e.isMemo=function(e){return b(e)===h},e.isPortal=function(e){return b(e)===n},e.isProfiler=function(e){return b(e)===a},e.isStrictMode=function(e){return b(e)===o},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===u||e===a||e===o||e===f||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===v||e.$$typeof===y||e.$$typeof===w||e.$$typeof===g)},e.typeOf=b}),zi=T((e,t)=>{t.exports=Bi()}),Qi=T((e,t)=>{var r=zi(),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return r.isMemo(e)?o:a[e.$$typeof]||n}a[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[r.Memo]=o;var l=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,r,n){if("string"!=typeof r){if(p){var o=f(r);o&&o!==p&&e(t,o,n)}var a=c(r);u&&(a=a.concat(u(r)));for(var h=s(t),m=s(r),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||n&&n[v]||m&&m[v]||h&&h[v])){var y=d(r,v);try{l(t,v,y)}catch(Vu){}}}}return t}});function Ki(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")}),n}var Vi=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Gi=function(e,t,r){Vi(e,t,r);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};function Yi(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),r=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&r)+(59797*(r>>>16)<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(n)))+(59797*(r>>>16)<<16)}return(((r=1540483477*(65535&(r^=r>>>13))+(59797*(r>>>16)<<16))^r>>>15)>>>0).toString(36)}var Xi={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},Zi=/[A-Z]|^ms/g,Ji=/_EMO_([^_]+?)_([^]*?)_EMO_/g,eo=function(e){return 45===e.charCodeAt(1)},to=function(e){return null!=e&&"boolean"!=typeof e},ro=Mi(function(e){return eo(e)?e:e.replace(Zi,"-$&").toLowerCase()}),no=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ji,function(e,t,r){return oo={name:t,styles:r,next:oo},t})}return 1===Xi[e]||eo(e)||"number"!=typeof t||0===t?t:t+"px"};function io(e,t,r){if(null==r)return"";var n=r;if(void 0!==n.__emotion_styles)return n;switch(typeof r){case"boolean":return"";case"object":var i=r;if(1===i.anim)return oo={name:i.name,styles:i.styles,next:oo},i.name;var o=r;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)oo={name:a.name,styles:a.styles,next:oo},a=a.next;return o.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=io(e,t,r[i])+";";else for(var o in r){var a=r[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?n+=o+"{"+t[s]+"}":to(s)&&(n+=ro(o)+":"+no(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=io(e,t,a);switch(o){case"animation":case"animationName":n+=ro(o)+":"+l+";";break;default:n+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)to(a[c])&&(n+=ro(o)+":"+no(o,a[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=oo,l=r(e);return oo=s,io(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var oo,ao=/label:\s*([^\s;{]+)\s*(;|$)/g;function so(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,i="";oo=void 0;var o=e[0];null==o||void 0===o.raw?(n=!1,i+=io(r,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=io(r,t,e[a]),n&&(i+=o[a]);ao.lastIndex=0;for(var s,l="";null!==(s=ao.exec(i));)l+="-"+s[1];return{name:Yi(i)+l,styles:i,next:oo}}nn();var lo=Jt||!1,co=lo||function(e){return e()},uo=lo||De;nn();var fo=oe("undefined"!=typeof HTMLElement?Ui({key:"css"}):null),po=fo.Provider,ho=function(e){return Hr(function(t,r){return e(t,qe(fo),r)})},mo=oe({}),go={}.hasOwnProperty,vo="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",yo=function(e,t){var r={};for(var n in t)go.call(t,n)&&(r[n]=t[n]);return r[vo]=e,r},wo=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Vi(t,r,n),co(function(){return Gi(t,r,n)}),null},bo=ho(function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[vo],o=[n],a="";"string"==typeof e.className?a=Ki(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=so(o,void 0,qe(mo));a+=t.key+"-"+s.name;var l={};for(var c in e)go.call(e,c)&&"css"!==c&&c!==vo&&(l[c]=e[c]);return l.className=a,r&&(l.ref=r),A(M,null,A(wo,{cache:t,serialized:s,isStringTag:"string"==typeof i}),A(i,l))});nn();Qi();var _o,xo,ko=function(e,t){var r=arguments;if(null==t||!go.call(t,"css"))return A.apply(void 0,r);var n=r.length,i=new Array(n);i[0]=bo,i[1]=yo(e,t);for(var o=2;o<n;o++)i[o]=r[o];return A.apply(null,i)};_o=ko||(ko={}),xo||(xo=_o.JSX||(_o.JSX={}));var So=ho(function(e,t){var r=so([e.styles],void 0,qe(mo)),n=Ne();return uo(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+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),n.current=[i,o],function(){i.flush()}},[t]),uo(function(){var e=n.current,i=e[0];e[1]?e[1]=!1:(void 0!==r.next&&Gi(t,r.next,!0),i.tags.length&&(i.before=i.tags[i.tags.length-1].nextElementSibling,i.flush()),t.insert("",r,i,!1))},[t,r.name]),null});function Co(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return so(t)}var To=/^((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|popover|popoverTarget|popoverTargetAction|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)-.*))$/,Eo=Mi(function(e){return To.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91});nn();var Po=Eo,Ro=function(e){return"theme"!==e},Oo=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Po:Ro},Io=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},Ao=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Vi(t,r,n),co(function(){return Gi(t,r,n)}),null};nn();var Fo=function e(t,r){var n,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var s=Io(t,r,o),l=s||Oo(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==n&&d.push("label:"+n+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],f[h])}var m=ho(function(e,t,r){var n=c&&e.as||a,o="",u=[],f=e;if(null==e.theme){for(var p in f={},e)f[p]=e[p];f.theme=qe(mo)}"string"==typeof e.className?o=Ki(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var h=so(d.concat(u),t.registered,f);o+=t.key+"-"+h.name,void 0!==i&&(o+=" "+i);var m=c&&void 0===s?Oo(n):l,g={};for(var v in e)c&&"as"===v||m(v)&&(g[v]=e[v]);return g.className=o,r&&(g.ref=r),A(M,null,A(Ao,{cache:t,serialized:h,isStringTag:"string"==typeof n}),A(n,g))});return m.displayName=void 0!==n?n:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=a,m.__emotion_styles=d,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,n){return e(t,$n({},r,n,{shouldForwardProp:Io(m,n,!0)})).apply(void 0,d)},m}}.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){Fo[e]=Fo(e)});var Lo=Fo.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, 1))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity, 1))"}:{cursor:"pointer",borderColor:"transparent","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity, 1))",":hover":{"--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity, 1))","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity, 1))"}}),Mo=Fo.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, 1))"},({isActive:e})=>e?{"--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity, 1))"}:{"--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity, 1))",".group:hover &":{"--tw-bg-opacity":"1",backgroundColor:"rgb(55 65 81 / var(--tw-bg-opacity, 1))"}});ae(),Xe();var Do=oe(null),No=()=>{const e=qe(Do);if(!e)throw new Error("useRoute must be used within RouteContext.Provider");return e};nn();var Ho=M,jo=function(e,t,r){return go.call(t,"css")?an(bo,yo(e,t),r):an(e,t,r)},$o=function(e,t,r){return go.call(t,"css")?an(bo,yo(e,t),r):an(e,t,r)},qo=({tabs:e})=>{const{route:t,goToTab:r}=No(),n="main"===t.view?t.tab:void 0;return jo("div",{css:{display:"block"},children:jo("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity, 1))",paddingBottom:"1rem"},children:jo("nav",{"aria-label":"Tabs",role:"tablist",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=>{const t=e.id===n;return jo("button",{type:"button",role:"tab","aria-selected":t,onClick:()=>r(e.id),children:$o(Lo,{className:"group",isActive:t,children:[e.displayName,void 0!==e.count&&jo(Mo,{isActive:t,children:e.count})]})},e.id)})})})})},Wo=e=>jo(Jd,{children:jo("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})}),Uo=e=>jo(Zd,{children:jo("ul",{css:{listStyleType:"none"},children:e.value.split(",").map(t=>jo("li",{children:e.onSelect?jo("button",{type:"button",css:{"--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity, 1))",textDecorationLine:"underline"},onClick:()=>e.onSelect?.(t),children:t}):t},t))})}),Bo=e=>e?.ownerDocument??document,zo=e=>e&&"window"in e&&e.window===e?e:Bo(e).defaultView||window;function Qo(e,t){return!(!t||!e)&&e.contains(t)}var Ko=(e=document)=>e.activeElement;function Vo(e){return e.target}function Go(e){if(function(){if(null==Yo){Yo=!1;try{document.createElement("div").focus({get preventScroll(){return Yo=!0,!0}})}catch{}}return Yo}())e.focus({preventScroll:!0});else{let t=function(e){let t=e.parentNode,r=[],n=document.scrollingElement||document.documentElement;for(;t instanceof HTMLElement&&t!==n;)(t.offsetHeight<t.scrollHeight||t.offsetWidth<t.scrollWidth)&&r.push({element:t,scrollTop:t.scrollTop,scrollLeft:t.scrollLeft}),t=t.parentNode;n instanceof HTMLElement&&r.push({element:n,scrollTop:n.scrollTop,scrollLeft:n.scrollLeft});return r}(e);e.focus(),function(e){for(let{element:t,scrollTop:r,scrollLeft:n}of e)t.scrollTop=r,t.scrollLeft=n}(t)}}var Yo=null;nn();var Xo="undefined"!=typeof document?Sr.useLayoutEffect:()=>{};function Zo(e){let t=e;return t.nativeEvent=e,t.isDefaultPrevented=()=>t.defaultPrevented,t.isPropagationStopped=()=>t.cancelBubble,t.persist=()=>{},t}function Jo(e){let t=Ne({isFocused:!1,observer:null});return Xo(()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}},[]),$e(r=>{let n=Vo(r);if(n instanceof HTMLButtonElement||n instanceof HTMLInputElement||n instanceof HTMLTextAreaElement||n instanceof HTMLSelectElement){t.current.isFocused=!0;let r=n,i=n=>{if(t.current.isFocused=!1,r.disabled){let t=Zo(n);e?.(t)}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){t.current.observer?.disconnect();let e=r===Ko()?null:Ko();r.dispatchEvent(new FocusEvent("blur",{relatedTarget:e})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:e}))}}),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}},[e])}nn();function ea(e){if("undefined"==typeof window||null==window.navigator)return!1;let t=window.navigator.userAgentData?.brands;return Array.isArray(t)&&t.some(t=>e.test(t.brand))||e.test(window.navigator.userAgent)}function ta(e){return"undefined"!=typeof window&&null!=window.navigator&&e.test(window.navigator.userAgentData?.platform||window.navigator.platform)}function ra(e){let t=null;return()=>(null==t&&(t=e()),t)}var na=ra(function(){return ta(/^Mac/i)}),ia=ra(function(){return ta(/^iPhone/i)}),oa=ra(function(){return ta(/^iPad/i)||na()&&navigator.maxTouchPoints>1}),aa=ra(function(){return ia()||oa()}),sa=(ra(function(){return na()||aa()}),ra(function(){return ea(/AppleWebKit/i)&&!la()})),la=ra(function(){return ea(/Chrome/i)}),ca=ra(function(){return ea(/Android/i)}),ua=ra(function(){return ea(/Firefox/i)});function da(e,t,r=!0){let{metaKey:n,ctrlKey:i,altKey:o,shiftKey:a}=t;ua()&&window.event?.type?.startsWith("key")&&"_blank"===e.target&&(na()?n=!0:i=!0);let s=sa()&&na()&&!oa()?new KeyboardEvent("keydown",{keyIdentifier:"Enter",metaKey:n,ctrlKey:i,altKey:o,shiftKey:a}):new MouseEvent("click",{metaKey:n,ctrlKey:i,altKey:o,shiftKey:a,detail:1,bubbles:!0,cancelable:!0});da.isOpening=r,Go(e),e.dispatchEvent(s),da.isOpening=!1}nn(),da.isOpening=!1,nn();var fa=null,pa=new Set,ha=new Map,ma=!1,ga=!1,va={Tab:!0,Escape:!0};function ya(e,t){for(let r of pa)r(e,t)}function wa(e){ma=!0,!da.isOpening&&function(e){return!(e.metaKey||!na()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(fa="keyboard",ya("keyboard",e))}function ba(e){fa="pointer","pointerType"in e?e.pointerType:"mouse","mousedown"!==e.type&&"pointerdown"!==e.type||(ma=!0,ya("pointer",e))}function _a(e){var t;!da.isOpening&&(""===(t=e).pointerType&&t.isTrusted||(ca()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(ma=!0,fa="virtual","virtual")}function xa(e){let t=zo(Vo(e)),r=Bo(Vo(e));Vo(e)!==t&&Vo(e)!==r&&e.isTrusted&&(ma||ga||(fa="virtual",ya("virtual",e)),ma=!1,ga=!1)}function ka(){ma=!1,ga=!0}function Sa(e){if("undefined"==typeof window||"undefined"==typeof document)return;const t=zo(e),r=Bo(e);if(ha.get(t))return;let n=t.HTMLElement.prototype.focus;Reflect.defineProperty(t.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:function(){ma=!0,n.apply(this,arguments)}}),r.addEventListener("keydown",wa,!0),r.addEventListener("keyup",wa,!0),r.addEventListener("click",_a,!0),t.addEventListener("focus",xa,!0),t.addEventListener("blur",ka,!1),"undefined"!=typeof PointerEvent&&(r.addEventListener("pointerdown",ba,!0),r.addEventListener("pointermove",ba,!0),r.addEventListener("pointerup",ba,!0)),t.addEventListener("beforeunload",()=>{Ca(e)},{once:!0}),ha.set(t,{focus:n})}var Ca=(e,t)=>{const r=zo(e),n=Bo(e);t&&n.removeEventListener("DOMContentLoaded",t),ha.has(r)&&(Reflect.defineProperty(r.HTMLElement.prototype,"focus",{configurable:!0,writable:!0,value:ha.get(r).focus}),n.removeEventListener("keydown",wa,!0),n.removeEventListener("keyup",wa,!0),n.removeEventListener("click",_a,!0),r.removeEventListener("focus",xa,!0),r.removeEventListener("blur",ka,!1),"undefined"!=typeof PointerEvent&&(n.removeEventListener("pointerdown",ba,!0),n.removeEventListener("pointermove",ba,!0),n.removeEventListener("pointerup",ba,!0)),ha.delete(r))};function Ta(){return"pointer"!==fa}"undefined"!=typeof document&&function(e){const t=Bo(e);let r;"loading"!==t.readyState?Sa(e):(r=()=>{Sa(e)},t.addEventListener("DOMContentLoaded",r))}();var Ea=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Pa(e,t,r){Sa(),Me(()=>{if(!1===r?.enabled)return;let t=(t,n)=>{(function(e,t,r){let n=r?Vo(r):void 0,i=Bo(n),o=zo(n);const a=void 0!==o?o.HTMLInputElement:HTMLInputElement,s=void 0!==o?o.HTMLTextAreaElement:HTMLTextAreaElement,l=void 0!==o?o.HTMLElement:HTMLElement,c=void 0!==o?o.KeyboardEvent:KeyboardEvent;let u=Ko(i);return!((e=e||u instanceof a&&!Ea.has(u.type)||u instanceof s||u instanceof l&&u.isContentEditable)&&"keyboard"===t&&r instanceof c&&!va[r.key])})(!!r?.isTextInput,t,n)&&e(Ta())};return pa.add(t),()=>{pa.delete(t)}},t)}function Ra(){let e=Ne(new Map),t=$e((t,r,n,i)=>{let o=i?.once?(...t)=>{e.current.delete(n),n(...t)}:n;e.current.set(n,{type:r,eventTarget:t,fn:o,options:i}),t.addEventListener(r,o,i)},[]),r=$e((t,r,n,i)=>{let o=e.current.get(n)?.fn||n;t.removeEventListener(r,o,i),e.current.delete(n)},[]),n=$e(()=>{e.current.forEach((e,t)=>{r(e.eventTarget,e.type,t,e.options)})},[r]);return Me(()=>n,[n]),{addGlobalListener:t,removeGlobalListener:r,removeAllGlobalListeners:n}}function Oa(e){let{isDisabled:t,onBlurWithin:r,onFocusWithin:n,onFocusWithinChange:i}=e,o=Ne({isFocusWithin:!1}),{addGlobalListener:a,removeAllGlobalListeners:s}=Ra(),l=$e(e=>{Qo(e.currentTarget,Vo(e))&&o.current.isFocusWithin&&!Qo(e.currentTarget,e.relatedTarget)&&(o.current.isFocusWithin=!1,s(),r&&r(e),i&&i(!1))},[r,i,o,s]),c=Jo(l),u=$e(e=>{if(!Qo(e.currentTarget,Vo(e)))return;let t=Vo(e);const r=Bo(t),s=Ko(r);if(!o.current.isFocusWithin&&s===t){n&&n(e),i&&i(!0),o.current.isFocusWithin=!0,c(e);let t=e.currentTarget;a(r,"focus",e=>{let n=Vo(e);if(o.current.isFocusWithin&&!Qo(t,n)){let e=new r.defaultView.FocusEvent("blur",{relatedTarget:n});!function(e,t){Object.defineProperty(e,"target",{value:t}),Object.defineProperty(e,"currentTarget",{value:t})}(e,t);let i=Zo(e);l(i)}},{capture:!0})}},[n,i,c,a,l]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:u,onBlur:l}}}function Ia(e={}){let{autoFocus:t=!1,isTextInput:r,within:n}=e,i=Ne({isFocused:!1,isFocusVisible:t||Ta()}),[o,a]=Fe(!1),[s,l]=Fe(()=>i.current.isFocused&&i.current.isFocusVisible),c=$e(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),u=$e(e=>{i.current.isFocused=e,i.current.isFocusVisible=Ta(),a(e),c()},[c]);Pa(e=>{i.current.isFocusVisible=e,c()},[r,o],{enabled:o,isTextInput:r});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:r,onBlur:n,onFocusChange:i}=e;const o=$e(e=>{if(Vo(e)===e.currentTarget)return n&&n(e),i&&i(!1),!0},[n,i]),a=Jo(o),s=$e(e=>{let t=Vo(e);const n=Bo(t),o=n?Ko(n):Ko();t===e.currentTarget&&t===o&&(r&&r(e),i&&i(!0),a(e))},[i,r,a]);return{focusProps:{onFocus:!t&&(r||i||n)?s:void 0,onBlur:t||!n&&!i?void 0:o}}}({isDisabled:n,onFocusChange:u}),{focusWithinProps:f}=Oa({isDisabled:!n,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:n?f:d}}nn(),nn(),nn(),nn(),nn();var Aa=!1,Fa=0;function La(e){"touch"===e.pointerType&&(Aa=!0,setTimeout(()=>{Aa=!1},500))}function Ma(){let e=Bo(null);if(void 0!==e)return 0===Fa&&"undefined"!=typeof PointerEvent&&e.addEventListener("pointerup",La),Fa++,()=>{--Fa>0||"undefined"!=typeof PointerEvent&&e.removeEventListener("pointerup",La)}}function Da(e){let{onHoverStart:t,onHoverChange:r,onHoverEnd:n,isDisabled:i}=e,[o,a]=Fe(!1),s=Ne({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Me(Ma,[]);let{addGlobalListener:l,removeAllGlobalListeners:c}=Ra(),{hoverProps:u,triggerHoverEnd:d}=je(()=>{let e=(e,t)=>{let i=s.target;s.pointerType="",s.target=null,"touch"!==t&&s.isHovered&&i&&(s.isHovered=!1,c(),n&&n({type:"hoverend",target:i,pointerType:t}),r&&r(!1),a(!1))},o={};return"undefined"!=typeof PointerEvent&&(o.onPointerEnter=n=>{Aa&&"mouse"===n.pointerType||((n,o)=>{if(s.pointerType=o,i||"touch"===o||s.isHovered||!Qo(n.currentTarget,Vo(n)))return;s.isHovered=!0;let c=n.currentTarget;s.target=c,l(Bo(Vo(n)),"pointerover",t=>{s.isHovered&&s.target&&!Qo(s.target,Vo(t))&&e(t,t.pointerType)},{capture:!0}),t&&t({type:"hoverstart",target:c,pointerType:o}),r&&r(!0),a(!0)})(n,n.pointerType)},o.onPointerLeave=t=>{!i&&Qo(t.currentTarget,Vo(t))&&e(t,t.pointerType)}),{hoverProps:o,triggerHoverEnd:e}},[t,r,n,i,s,l,c]);return Me(()=>{i&&d({currentTarget:s.target},s.pointerType)},[i]),{hoverProps:u,isHovered:o}}var Na=Object.defineProperty,Ha=(e,t,r)=>(((e,t,r)=>{t in e?Na(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),ja=new class{constructor(){Ha(this,"current",this.detect()),Ha(this,"handoffState","pending"),Ha(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 $a(e){var t;return ja.isServer?null:null==e?document:null!=(t=null==e?void 0:e.ownerDocument)?t:document}function qa(e){var t,r;return ja.isServer?null:null==e?document:null!=(r=null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))?r:document}function Wa(e){var t,r;return null!=(r=null==(t=qa(e))?void 0:t.activeElement)?r:null}function Ua(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch(e=>setTimeout(()=>{throw e}))}function Ba(){let e=[],t={addEventListener:(e,r,n,i)=>(e.addEventListener(r,n,i),t.add(()=>e.removeEventListener(r,n,i))),requestAnimationFrame(...e){let r=requestAnimationFrame(...e);return t.add(()=>cancelAnimationFrame(r))},nextFrame:(...e)=>t.requestAnimationFrame(()=>t.requestAnimationFrame(...e)),setTimeout(...e){let r=setTimeout(...e);return t.add(()=>clearTimeout(r))},microTask(...e){let r={current:!0};return Ua(()=>{r.current&&e[0]()}),t.add(()=>{r.current=!1})},style(e,t,r){let n=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:r}),this.add(()=>{Object.assign(e.style,{[t]:n})})},group(e){let t=Ba();return e(t),this.add(()=>t.dispose())},add:t=>(e.includes(t)||e.push(t),()=>{let r=e.indexOf(t);if(r>=0)for(let t of e.splice(r,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function za(){let[e]=Fe(Ba);return Me(()=>()=>e.dispose(),[e]),e}nn(),nn();var Qa=(e,t)=>{ja.isServer?Me(e,t):De(e,t)};function Ka(e){let t=Ne(e);return Qa(()=>{t.current=e},[e]),t}nn(),nn();var Va=function(e){let t=Ka(e);return Sr.useCallback((...e)=>t.current(...e),[t])};function Ga(e){return je(()=>e,Object.values(e))}nn(),nn(),nn();var Ya=oe(void 0);function Xa(){return qe(Ya)}function Za(...e){return Array.from(new Set(e.flatMap(e=>"string"==typeof e?e.split(" "):[]))).filter(Boolean).join(" ")}function Ja(e,t,...r){if(e in t){let n=t[e];return"function"==typeof n?n(...r):n}let n=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(n,Ja),n}nn();var es=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(es||{}),ts=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ts||{});function rs(){let e=function(){let e=Ne([]),t=$e(t=>{for(let r of e.current)null!=r&&("function"==typeof r?r(t):r.current=t)},[]);return(...r)=>{if(!r.every(e=>null==e))return e.current=r,t}}();return $e(t=>function({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:is;let l=os(t,e);if(o)return ns(l,r,n,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ns(t,r,n,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return Ja(e?0:1,{0:()=>null,1:()=>ns({...t,hidden:!0,style:{display:"none"}},r,n,a,s)})}return ns(l,r,n,a,s)}({mergeRefs:e,...t}),[e])}function ns(e,t={},r,n,i){let{as:o=r,children:a,refName:s="ref",...l}=cs(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;u=ds(u),"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,r=[];for(let[n,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&r.push(n.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`));if(e){d["data-headlessui-state"]=r.join(" ");for(let e of r)d[`data-${e}`]=""}}if(fs(o)&&(Object.keys(ls(l)).length>0||Object.keys(ls(d)).length>0)){if(!(!Xr(u)||Array.isArray(u)&&u.length>1||function(e){return fs(e.type)}(u))){let e=u.props,t=null==e?void 0:e.className,r="function"==typeof t?(...e)=>Za(t(...e),l.className):Za(t,l.className),n=r?{className:r}:{},o=os(u.props,ls(cs(l,["ref"])));for(let i in d)i in o&&delete d[i];return en(u,Object.assign({},o,d,c,{ref:i(us(u),c.ref)},n))}if(Object.keys(ls(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(ls(l)).concat(Object.keys(ls(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 A(o,Object.assign({},cs(l,["ref"]),!fs(o)&&c,!fs(o)&&d),u)}function is(...e){return e.every(e=>null==e)?void 0:t=>{for(let r of e)null!=r&&("function"==typeof r?r(t):r.current=t)}}function os(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(r[e]??(r[e]=[]),r[e].push(n[e])):t[e]=n[e];if(t.disabled||t["aria-disabled"])for(let n in r)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(n)&&(r[n]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let n in r)Object.assign(t,{[n](e,...t){let i=r[n];for(let r of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;r(e,...t)}}});return t}function as(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},r={};for(let n of e)for(let e in n)e.startsWith("on")&&"function"==typeof n[e]?(r[e]??(r[e]=[]),r[e].push(n[e])):t[e]=n[e];for(let n in r)Object.assign(t,{[n](...e){let t=r[n];for(let r of t)r?.(...e)}});return t}function ss(e){var t;return Object.assign(Hr(e),{displayName:null!=(t=e.displayName)?t:e.name})}function ls(e){let t=Object.assign({},e);for(let r in t)void 0===t[r]&&delete t[r];return t}function cs(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}function us(e){return Sr.version.split(".")[0]>="19"?e.props.ref:e.ref}function ds(e){if(null!=e&&e.$$typeof===Symbol.for("react.lazy")){let t=e._payload;if(null!=t&&"fulfilled"===t.status)return ds(t.value)}return e}function fs(e){return e===M||e===Symbol.for("react.fragment")}nn();var ps=oe(void 0);function hs(e){return"object"==typeof e&&null!==e&&"nodeType"in e}function ms(e){return hs(e)&&"tagName"in e}function gs(e){return ms(e)&&"accessKey"in e}function vs(e){return ms(e)&&"tabIndex"in e}function ys(e){return gs(e)&&"INPUT"===e.nodeName}function ws(e){return gs(e)&&"LABEL"===e.nodeName}function bs(e){return gs(e)&&"FIELDSET"===e.nodeName}function _s(e){return gs(e)&&"LEGEND"===e.nodeName}function xs(e){let t=e.parentElement,r=null;for(;t&&!bs(t);)_s(t)&&(r=t),t=t.parentElement;let n=""===(null==t?void 0:t.getAttribute("disabled"));return(!n||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(_s(t))return!1;t=t.previousElementSibling}return!0}(r))&&n}nn();var ks=Symbol();function Ss(...e){let t=Ne(e);Me(()=>{t.current=e},[e]);let r=Va(e=>{for(let r of t.current)null!=r&&("function"==typeof r?r(e):r.current=e)});return e.every(e=>null==e||(null==e?void 0:e[ks]))?void 0:r}nn(),Xe();var Cs=oe(null);function Ts(){let e=qe(Cs);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,Ts),e}return e}Cs.displayName="DescriptionContext";var Es=ss(function(e,t){let r=Be(),n=Xa(),{id:i=`headlessui-description-${r}`,...o}=e,a=Ts(),s=Ss(t);Qa(()=>a.register(i),[i,a.register]);let l=Ga({...a.slot,disabled:n||!1}),c={ref:s,...a.props,id:i};return rs()({ourProps:c,theirProps:o,slot:l,defaultTag:"p",name:a.name||"Description"})}),Ps=(Object.assign(Es,{}),(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ps||{}));nn(),Xe();var Rs=oe(null);function Os(){let e=qe(Rs);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,Os),e}return e}function Is({inherit:e=!1}={}){let t=function(e){var t,r,n;let i=null!=(r=null==(t=qe(Rs))?void 0:t.value)?r:void 0;return(null!=(n=null==e?void 0:e.length)?n:0)>0?[i,...e].filter(Boolean).join(" "):i}(),[r,n]=Fe([]),i=e?[t,...r].filter(Boolean):r;return[i.length>0?i.join(" "):void 0,je(()=>function(e){let t=Va(e=>(n(t=>[...t,e]),()=>n(t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))),r=je(()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value}),[t,e.slot,e.name,e.props,e.value]);return Sr.createElement(Rs.Provider,{value:r},e.children)},[n])]}Rs.displayName="LabelContext";var As=ss(function(e,t){var r;let n=Be(),i=Os(),o=qe(ps),a=Xa(),{id:s=`headlessui-label-${n}`,htmlFor:l=(null!=o?o:null==(r=i.props)?void 0:r.htmlFor),passive:c=!1,...u}=e,d=Ss(t);Qa(()=>i.register(s),[s,i.register]);let f=Va(e=>{let t=e.currentTarget;if((e.target===e.currentTarget||!function(e){return!!ms(e)&&e.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]')}(e.target))&&(ws(t)&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),ws(t))){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let r=e.getAttribute("aria-disabled");if("true"===r||""===r)return;(ys(e)&&("file"===e.type||"radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}}),p=Ga({...i.slot,disabled:a||!1}),h={ref:d,...i.props,id:s,htmlFor:l,onClick:f};return c&&("onClick"in h&&(delete h.htmlFor,delete h.onClick),"onClick"in u&&delete u.onClick),rs()({ourProps:h,theirProps:u,slot:p,defaultTag:l?"label":"div",name:i.name||"Label"})});Object.assign(As,{});function Fs(e){if(null===e)return{width:0,height:0};let{width:t,height:r}=e.getBoundingClientRect();return{width:t,height:r}}function Ls(e,t,r=!1){let[n,i]=Fe(()=>Fs(t));return Qa(()=>{if(!t||!e)return;let r=Ba();return r.requestAnimationFrame(function e(){r.requestAnimationFrame(e),i(e=>{let r=Fs(t);return r.width===e.width&&r.height===e.height?e:r})}),()=>{r.dispose()}},[t,e]),r?{width:`${n.width}px`,height:`${n.height}px`}:n}nn();var Ms=(e=>(e[e.Left=0]="Left",e[e.Right=2]="Right",e))(Ms||{});nn();var Ds,Ns,Hs,js=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}},$s=Object.defineProperty,qs=(e,t,r)=>(((e,t,r)=>{t in e?$s(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),Ws=(e,t,r)=>{if(!t.has(e))throw TypeError("Cannot "+r)},Us=(e,t,r)=>(Ws(e,t,"read from private field"),r?r.call(e):t.get(e)),Bs=(e,t,r)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,r)},zs=(e,t,r,n)=>(Ws(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Qs=class{constructor(e){Bs(this,Ds,{}),Bs(this,Ns,new js(()=>new Set)),Bs(this,Hs,new Set),qs(this,"disposables",Ba()),zs(this,Ds,e),ja.isServer&&this.disposables.microTask(()=>{this.dispose()})}dispose(){this.disposables.dispose()}get state(){return Us(this,Ds)}subscribe(e,t){if(ja.isServer)return()=>{};let r={selector:e,callback:t,current:e(Us(this,Ds))};return Us(this,Hs).add(r),this.disposables.add(()=>{Us(this,Hs).delete(r)})}on(e,t){return ja.isServer?()=>{}:(Us(this,Ns).get(e).add(t),this.disposables.add(()=>{Us(this,Ns).get(e).delete(t)}))}send(e){let t=this.reduce(Us(this,Ds),e);if(t!==Us(this,Ds)){zs(this,Ds,t);for(let e of Us(this,Hs)){let t=e.selector(Us(this,Ds));Ks(e.current,t)||(e.current=t,e.callback(t))}for(let t of Us(this,Ns).get(e.type))t(Us(this,Ds),e)}}};function Ks(e,t){return!!Object.is(e,t)||"object"==typeof e&&null!==e&&"object"==typeof t&&null!==t&&(Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&Vs(e[Symbol.iterator](),t[Symbol.iterator]()):e instanceof Map&&t instanceof Map||e instanceof Set&&t instanceof Set?e.size===t.size&&Vs(e.entries(),t.entries()):!(!Gs(e)||!Gs(t))&&Vs(Object.entries(e)[Symbol.iterator](),Object.entries(t)[Symbol.iterator]()))}function Vs(e,t){for(;;){let r=e.next(),n=t.next();if(r.done&&n.done)return!0;if(r.done||n.done||!Object.is(r.value,n.value))return!1}}function Gs(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||null===Object.getPrototypeOf(t)}function Ys(e){let[t,r]=e(),n=Ba();return(...e)=>{t(...e),n.dispose(),n.microTask(r)}}Ds=new WeakMap,Ns=new WeakMap,Hs=new WeakMap;var Xs=Object.defineProperty,Zs=(e,t,r)=>(((e,t,r)=>{t in e?Xs(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),Js=(e=>(e[e.Push=0]="Push",e[e.Pop=1]="Pop",e))(Js||{}),el={0(e,t){let r=t.id,n=e.stack,i=e.stack.indexOf(r);if(-1!==i){let t=e.stack.slice();return t.splice(i,1),t.push(r),n=t,{...e,stack:n}}return{...e,stack:[...e.stack,r]}},1(e,t){let r=t.id,n=e.stack.indexOf(r);if(-1===n)return e;let i=e.stack.slice();return i.splice(n,1),{...e,stack:i}}},tl=class e extends Qs{constructor(){super(...arguments),Zs(this,"actions",{push:e=>this.send({type:0,id:e}),pop:e=>this.send({type:1,id:e})}),Zs(this,"selectors",{isTop:(e,t)=>e.stack[e.stack.length-1]===t,inStack:(e,t)=>e.stack.includes(t)})}static new(){return new e({stack:[]})}reduce(e,t){return Ja(t.type,el,e,t)}},rl=new js(()=>tl.new()),nl=T(e=>{var t,r=(nn(),t=Pr,S.call(t,"module.exports")?t["module.exports"]:P(b({},"__esModule",{value:!0}),t));var n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=r.useSyncExternalStore,o=r.useRef,a=r.useEffect,s=r.useMemo,l=r.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,r,c,u){var d=o(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!a){if(a=!0,i=e,e=c(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,n(i,e))return t;var r=c(e);return void 0!==u&&u(t,r)?(i=e,t):(i=e,o=r)}var i,o,a=!1,s=void 0===r?null:r;return[function(){return e(t())},null===s?void 0:function(){return e(s())}]},[t,r,c,u]);var p=i(e,d[0],d[1]);return a(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}}),il=T((e,t)=>{t.exports=nl()})();function ol(e,t,r=Ks){return(0,il.useSyncExternalStoreWithSelector)(Va(t=>e.subscribe(al,t)),Va(()=>e.state),Va(()=>e.state),Va(t),r)}function al(e){return e}function sl(e,t){let r=Be(),n=rl.get(t),[i,o]=ol(n,$e(e=>[n.selectors.isTop(e,r),n.selectors.inStack(e,r)],[n,r]));return Qa(()=>{if(e)return n.actions.push(r),()=>n.actions.pop(r)},[n,e,r]),!!e&&(!o||i)}nn();var ll=new Map,cl=new Map;function ul(e){var t;let r=null!=(t=cl.get(e))?t:0;return cl.set(e,r+1),0!==r||(ll.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>dl(e)}function dl(e){var t;let r=null!=(t=cl.get(e))?t:1;if(1===r?cl.delete(e):cl.set(e,r-1),1!==r)return;let n=ll.get(e);n&&(null===n["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",n["aria-hidden"]),e.inert=n.inert,ll.delete(e))}nn();var fl=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","details>summary","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),pl=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(","),hl=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(hl||{}),ml=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ml||{}),gl=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(gl||{});function vl(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(fl)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}var yl=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(yl||{});function wl(e,t=0){var r;return e!==(null==(r=$a(e))?void 0:r.body)&&Ja(t,{0:()=>e.matches(fl),1(){let t=e;for(;null!==t;){if(t.matches(fl))return!0;t=t.parentElement}return!1}})}function bl(e){Ba().nextFrame(()=>{let t=Wa(e);t&&vs(t)&&!wl(t,0)&&function(e){e?.focus({preventScroll:!0})}(e)})}var _l=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(_l||{});"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));var xl=["textarea","input"].join(",");function kl(e,t=e=>e){return e.slice().sort((e,r)=>{let n=t(e),i=t(r);if(null===n||null===i)return 0;let o=n.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Sl(e,t,r=(null===e?document.body:qa(e))){return function(e,t,{sorted:r=!0,relativeTo:n=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?qa(e[0]):document:qa(e),a=Array.isArray(e)?r?kl(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(pl)).sort((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER)))}(e):vl(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))),n=null!=n?n:null==o?void 0: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(n))-1;if(4&t)return Math.max(0,a.indexOf(n))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,f=a.length;do{if(d>=f||d+f<=0)return 0;let e=c+d;if(16&t)e=(e+f)%f;else{if(e<0)return 3;if(e>=f)return 1}s=a[e],s?.focus(u),d+=l}while(s!==Wa(s));return 6&t&&function(e){var t,r;return null!=(r=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,xl))&&r}(s)&&s.select(),2}(vl(r),t,{relativeTo:e})}function Cl(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Tl(){return Cl()||/Android/gi.test(window.navigator.userAgent)}function El(e,t,r,n){let i=Ka(r);Me(()=>{if(e)return document.addEventListener(t,r,n),()=>document.removeEventListener(t,r,n);function r(e){i.current(e)}},[e,t,n])}nn(),nn(),nn();function Pl(e,t,r){let n=Ka(r),i=$e(function(e,r){if(e.defaultPrevented)return;let i=r(e);if(null===i||!i.getRootNode().contains(i)||!i.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(i)||e.composed&&e.composedPath().includes(t)))return;return!wl(i,yl.Loose)&&-1!==i.tabIndex&&e.preventDefault(),n.current(e,i)},[n,t]),o=Ne(null);El(e,"pointerdown",e=>{var t,r;Tl()||(o.current=(null==(r=null==(t=e.composedPath)?void 0:t.call(e))?void 0:r[0])||e.target)},!0),El(e,"pointerup",e=>{if(Tl()||!o.current)return;let t=o.current;return o.current=null,i(e,()=>t)},!0);let a=Ne({x:0,y:0});El(e,"touchstart",e=>{a.current.x=e.touches[0].clientX,a.current.y=e.touches[0].clientY},!0),El(e,"touchend",e=>{let t=e.changedTouches[0].clientX,r=e.changedTouches[0].clientY;if(!(Math.abs(t-a.current.x)>=30||Math.abs(r-a.current.y)>=30))return i(e,()=>vs(e.target)?e.target:null)},!0),function(e,t,r,n){let i=Ka(r);Me(()=>{if(e)return window.addEventListener(t,r,n),()=>window.removeEventListener(t,r,n);function r(e){i.current(e)}},[e,t,n])}(e,"blur",e=>i(e,()=>function(e){return gs(e)&&"IFRAME"===e.nodeName}(window.document.activeElement)?window.document.activeElement:null),!0)}function Rl(...e){return je(()=>$a(...e),[...e])}nn(),nn();var Ol=(e=>(e[e.Ignore=0]="Ignore",e[e.Select=1]="Select",e[e.Close=2]="Close",e))(Ol||{}),Il={Ignore:{kind:0},Select:e=>({kind:1,target:e}),Close:{kind:2}};function Al(e,t){return je(()=>{var r;if(e.type)return e.type;let n=null!=(r=e.as)?r:"button";return"string"==typeof n&&"button"===n.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0},[e.type,e.as,t])}function Fl(){let e;return{before({doc:t}){var r;let n=t.documentElement,i=null!=(r=t.defaultView)?r:window;e=Math.max(0,i.innerWidth-n.clientWidth)},after({doc:t,d:r}){let n=t.documentElement,i=Math.max(0,n.clientWidth-n.offsetWidth),o=Math.max(0,e-i);r.style(n,"paddingRight",`${o}px`)}}}function Ll(){return Cl()?{before({doc:e,d:t,meta:r}){function n(e){for(let t of r().containers)for(let r of t())if(r.contains(e))return!0;return!1}t.microTask(()=>{var r;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let r=Ba();r.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>r.dispose()))}let i=null!=(r=window.scrollY)?r:window.pageYOffset,o=null;t.addEventListener(e,"click",t=>{if(vs(t.target))try{let r=t.target.closest("a");if(!r)return;let{hash:i}=new URL(r.href),a=e.querySelector(i);vs(a)&&!n(a)&&(o=a)}catch{}},!0),t.group(r=>{t.addEventListener(e,"touchstart",e=>{if(r.dispose(),vs(e.target)&&function(e){return ms(e)&&"style"in e}(e.target))if(n(e.target)){let t=e.target;for(;t.parentElement&&n(t.parentElement);)t=t.parentElement;r.style(t,"overscrollBehavior","contain")}else r.style(e.target,"touchAction","none")})}),t.addEventListener(e,"touchmove",e=>{if(vs(e.target)){if(ys(e.target))return;if(n(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)})})}}:{}}function Ml(e){let t={};for(let r of e)Object.assign(t,r(t));return t}nn(),nn();var Dl,Nl,Hl=function(e,t){let r=e(),n=new Set;return{getSnapshot:()=>r,subscribe:e=>(n.add(e),()=>n.delete(e)),dispatch(e,...i){let o=t[e].call(r,...i);o&&(r=o,n.forEach(e=>e()))}}}(()=>new Map,{PUSH(e,t){var r;let n=null!=(r=this.get(e))?r:{doc:e,count:0,d:Ba(),meta:new Set,computedMeta:{}};return n.count++,n.meta.add(t),n.computedMeta=Ml(n.meta),this.set(e,n),this},POP(e,t){let r=this.get(e);return r&&(r.count--,r.meta.delete(t),r.computedMeta=Ml(r.meta)),this},SCROLL_PREVENT(e){let t={doc:e.doc,d:e.d,meta:()=>e.computedMeta},r=[Ll(),Fl(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];r.forEach(({before:e})=>null==e?void 0:e(t)),r.forEach(({after:e})=>null==e?void 0:e(t))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function jl(e,t,r=()=>({containers:[]})){let n=function(e){return Ir(e.subscribe,e.getSnapshot,e.getSnapshot)}(Hl),i=t?n.get(t):void 0,o=!!i&&i.count>0;return Qa(()=>{if(t&&e)return Hl.dispatch("PUSH",t,r),()=>Hl.dispatch("POP",t,r)},[e,t]),o}function $l(e){return[e.screenX,e.screenY]}Hl.subscribe(()=>{let e=Hl.getSnapshot(),t=new Map;for(let[r]of e)t.set(r,r.documentElement.style.overflow);for(let r of e.values()){let e="hidden"===t.get(r.doc),n=0!==r.count;(n&&!e||!n&&e)&&Hl.dispatch(r.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",r),0===r.count&&Hl.dispatch("TEARDOWN",r)}}),nn(),nn(),nn(),"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Dl=null==process?void 0:{})?void 0:Dl.NODE_ENV)&&void 0===(null==(Nl=null==Element?void 0:Element.prototype)?void 0:Nl.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 ql=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(ql||{});function Wl(e){let t={};for(let r in e)!0===e[r]&&(t[`data-${r}`]="");return t}function Ul(e,t,r,n){let[i,o]=Fe(r),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,r]=Fe(e);return{flags:t,setFlag:$e(e=>r(e),[]),addFlag:$e(e=>r(t=>t|e),[]),hasFlag:$e(e=>(t&e)===e,[t]),removeFlag:$e(e=>r(t=>t&~e),[]),toggleFlag:$e(e=>r(t=>t^e),[])}}(e&&i?3:0),c=Ne(!1),u=Ne(!1);return Qa(()=>{var i;if(e)return r&&o(!0),t?(null==(i=null==n?void 0:n.start)||i.call(n,r),function(e,{prepare:t,run:r,done:n,inFlight:i}){let o=Ba();return function(e,{inFlight:t,prepare:r}){if(null!=t&&t.current)return void r();let n=e.style.transition;e.style.transition="none",r(),e.offsetHeight,e.style.transition=n}(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{r(),o.requestAnimationFrame(()=>{o.add(function(e,t){var r,n;let i=Ba();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=null!=(n=null==(r=e.getAnimations)?void 0:r.call(e).filter(e=>e instanceof CSSTransition))?n:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map(e=>e.finished)).then(()=>{o||t()}),i.dispose)}(e,n))})}),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(r?(s(3),l(4)):(s(4),l(2)))},run(){u.current?r?(l(3),s(4)):(l(4),s(3)):r?l(1):s(1)},done(){var e;u.current&&function(e){var t,r;return(null!=(r=null==(t=e.getAnimations)?void 0:t.call(e))?r:[]).some(e=>e instanceof CSSTransition&&"finished"!==e.playState)}(t)||(c.current=!1,l(7),r||o(!1),null==(e=null==n?void 0:n.end)||e.call(n,r))}})):void(r&&s(3))},[e,r,t,za()]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[r,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Bl(){return"undefined"!=typeof window}function zl(e){return Vl(e)?(e.nodeName||"").toLowerCase():"#document"}function Ql(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Kl(e){var t;return null==(t=(Vl(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Vl(e){return!!Bl()&&(e instanceof Node||e instanceof Ql(e).Node)}function Gl(e){return!!Bl()&&(e instanceof Element||e instanceof Ql(e).Element)}function Yl(e){return!!Bl()&&(e instanceof HTMLElement||e instanceof Ql(e).HTMLElement)}function Xl(e){return!(!Bl()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ql(e).ShadowRoot)}function Zl(e){const{overflow:t,overflowX:r,overflowY:n,display:i}=lc(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&"inline"!==i&&"contents"!==i}function Jl(e){return/^(table|td|th)$/.test(zl(e))}function ec(e){try{if(e.matches(":popover-open"))return!0}catch(t){}try{return e.matches(":modal")}catch(t){return!1}}nn();var tc,rc=/transform|translate|scale|rotate|perspective|filter/,nc=/paint|layout|strict|content/,ic=e=>!!e&&"none"!==e;function oc(e){const t=Gl(e)?lc(e):e;return ic(t.transform)||ic(t.translate)||ic(t.scale)||ic(t.rotate)||ic(t.perspective)||!ac()&&(ic(t.backdropFilter)||ic(t.filter))||rc.test(t.willChange||"")||nc.test(t.contain||"")}function ac(){return null==tc&&(tc="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),tc}function sc(e){return/^(html|body|#document)$/.test(zl(e))}function lc(e){return Ql(e).getComputedStyle(e)}function cc(e){return Gl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function uc(e){if("html"===zl(e))return e;const t=e.assignedSlot||e.parentNode||Xl(e)&&e.host||Kl(e);return Xl(t)?t.host:t}function dc(e){const t=uc(e);return sc(t)?(e.ownerDocument||e).body:Yl(t)&&Zl(t)?t:dc(t)}function fc(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const i=dc(e),o=i===(null==(n=e.ownerDocument)?void 0:n.body),a=Ql(i);if(o){const e=pc(a);return t.concat(a,a.visualViewport||[],Zl(i)?i:[],e&&r?fc(e):[])}return t.concat(i,fc(i,[],r))}function pc(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var hc=Math.min,mc=Math.max,gc=Math.round,vc=Math.floor,yc=e=>({x:e,y:e}),wc={left:"right",right:"left",bottom:"top",top:"bottom"};function bc(e,t){return"function"==typeof e?e(t):e}function _c(e){return e.split("-")[0]}function xc(e){return e.split("-")[1]}function kc(e){return"x"===e?"y":"x"}function Sc(e){return"y"===e?"height":"width"}function Cc(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function Tc(e){return kc(Cc(e))}function Ec(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}var Pc=["left","right"],Rc=["right","left"],Oc=["top","bottom"],Ic=["bottom","top"];function Ac(e,t,r,n){const i=xc(e);let o=function(e,t,r){switch(e){case"top":case"bottom":return r?t?Rc:Pc:t?Pc:Rc;case"left":case"right":return t?Oc:Ic;default:return[]}}(_c(e),"start"===r,n);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(Ec)))),o}function Fc(e){const t=_c(e);return wc[t]+e.slice(t.length)}function Lc(e){const{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function Mc(e,t,r){let{reference:n,floating:i}=e;const o=Cc(t),a=Tc(t),s=Sc(a),l=_c(t),c="y"===o,u=n.x+n.width/2-i.width/2,d=n.y+n.height/2-i.height/2,f=n[s]/2-i[s]/2;let p;switch(l){case"top":p={x:u,y:n.y-i.height};break;case"bottom":p={x:u,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-i.width,y:d};break;default:p={x:n.x,y:n.y}}const h=xc(t);return h&&(p[a]+=f*("end"===h?1:-1)*(r&&c?-1:1)),p}async function Dc(e,t){var r;void 0===t&&(t={});const{x:n,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=bc(t,e),h=function(e){return"number"!=typeof e?function(e){var t,r,n,i;return{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(n=e.bottom)?n:0,left:null!=(i=e.left)?i:0}}(e):{top:e,right:e,bottom:e,left:e}}(p),m=s[f?"floating"===d?"reference":"floating":d],g=Lc(await o.getClippingRect({element:null==(r=await(null==o.isElement?void 0:o.isElement(m)))||r?m:m.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===d?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),w=await(null==o.isElement?void 0:o.isElement(y))&&await(null==o.getScale?void 0:o.getScale(y))||{x:1,y:1},b=Lc(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:y,strategy:l}):v);return{top:(g.top-b.top+h.top)/w.y,bottom:(b.bottom-g.bottom+h.bottom)/w.y,left:(g.left-b.left+h.left)/w.x,right:(b.right-g.right+h.right)/w.x}}var Nc=new Set(["left","top"]);function Hc(e){const t=lc(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const i=Yl(e),o=i?e.offsetWidth:r,a=i?e.offsetHeight:n,s=gc(r)!==o||gc(n)!==a;return s&&(r=o,n=a),{width:r,height:n,$:s}}function jc(e){return Gl(e)?e:e.contextElement}function $c(e){const t=jc(e);if(!Yl(t))return yc(1);const r=t.getBoundingClientRect(),{width:n,height:i,$:o}=Hc(t);let a=(o?gc(r.width):r.width)/n,s=(o?gc(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}var qc=yc(0);function Wc(e){const t=Ql(e);return ac()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:qc}function Uc(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const i=e.getBoundingClientRect(),o=jc(e);let a=yc(1);t&&(n?Gl(n)&&(a=$c(n)):a=$c(e));const s=function(e,t,r){return void 0===t&&(t=!1),!!r&&t&&r===Ql(e)}(o,r,n)?Wc(o):yc(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&&n){const e=Ql(o),t=Gl(n)?Ql(n):n;let r=e,i=pc(r);for(;i&&t!==r;){const e=$c(i),t=i.getBoundingClientRect(),n=lc(i),o=t.left+(i.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,r=Ql(i),i=pc(r)}}return Lc({width:u,height:d,x:l,y:c})}function Bc(e,t){const r=cc(e).scrollLeft;return t?t.left+r:Uc(Kl(e)).left+r}function zc(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-Bc(e,r),y:r.top+t.scrollTop}}function Qc(e,t,r){let n;if("viewport"===t||"layoutViewport"===t)n=function(e,t,r){void 0===r&&(r="viewport");const n="layoutViewport"===r,i=Ql(e),o=Kl(e),a=i.visualViewport;let s=o.clientWidth,l=o.clientHeight,c=0,u=0;if(a){const e=!ac()||"fixed"===t;n?e||(c=-a.offsetLeft,u=-a.offsetTop):(s=a.width,l=a.height,e&&(c=a.offsetLeft,u=a.offsetTop))}if(Bc(o)<=0){const e=o.ownerDocument,t=e.body,r=getComputedStyle(t),n="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(o.clientWidth-t.clientWidth-n),a="stable both-edges"===getComputedStyle(o).scrollbarGutter?i/2:i;a<=25&&(s-=a)}return{width:s,height:l,x:c,y:u}}(e,r,t);else if("document"===t)n=function(e){const t=cc(e),r=e.ownerDocument.body,n=mc(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=mc(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let o=-t.scrollLeft+Bc(e);const a=-t.scrollTop;return"rtl"===lc(r).direction&&(o+=mc(e.clientWidth,r.clientWidth)-n),{width:n,height:i,x:o,y:a}}(Kl(e));else if(Gl(t))n=function(e,t){const r=Uc(e,!0,"fixed"===t),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=$c(e);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:n*o.y}}(t,r);else{const r=Wc(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Lc(n)}function Kc(e,t){const r=t.get(e);if(r)return r;let n=fc(e,[],!1).filter(e=>Gl(e)&&"body"!==zl(e)),i=null;const o="fixed"===lc(e).position;let a=o?uc(e):e;for(;Gl(a)&&!sc(a);){const e=lc(a),t=oc(a),r=i?i.position:o?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?i=e:n=n.filter(e=>e!==a),a=uc(a)}return t.set(e,n),n}function Vc(e,t,r){const n=Yl(t),i=Kl(t),o="fixed"===r,a=Uc(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=yc(0);if((n||!o)&&(("body"!==zl(t)||Zl(i))&&(s=cc(t)),n)){const e=Uc(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!n&&i&&(l.x=Bc(i));const c=!i||n||o?yc(0):zc(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 Gc(e){return"static"===lc(e).position}function Yc(e,t){if(!Yl(e)||"fixed"===lc(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Kl(e)===r&&(r=r.ownerDocument.body),r}function Xc(e,t){const r=Ql(e);if(ec(e))return r;if(!Yl(e)){let t=uc(e);for(;t&&!sc(t);){if(Gl(t)&&!Gc(t))return t;t=uc(t)}return r}let n=Yc(e,t);for(;n&&Jl(n)&&Gc(n);)n=Yc(n,t);return n&&sc(n)&&Gc(n)&&!oc(n)?r:n||function(e){let t=uc(e);for(;Yl(t)&&!sc(t);){if(oc(t))return t;if(ec(t))return null;t=uc(t)}return null}(e)||r}var Zc={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e;const o="fixed"===i,a=Kl(n),s=!!t&&ec(t.floating);if(n===a||s&&o)return r;let l={scrollLeft:0,scrollTop:0},c=yc(1);const u=yc(0),d=Yl(n);if((d||!o)&&(("body"!==zl(n)||Zl(a))&&(l=cc(n)),d)){const e=Uc(n);c=$c(n),u.x=e.x+n.clientLeft,u.y=e.y+n.clientTop}const f=!a||d||o?yc(0):zc(a,l);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Kl,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e;const o=[..."clippingAncestors"===r?ec(t)?[]:Kc(t,this._c):[].concat(r),n],a=Qc(t,o[0],i);let s=a.top,l=a.right,c=a.bottom,u=a.left;for(let d=1;d<o.length;d++){const e=Qc(t,o[d],i);s=mc(e.top,s),l=hc(e.right,l),c=hc(e.bottom,c),u=mc(e.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:Xc,getElementRects:async function(e){const t=this.getOffsetParent||Xc,r=this.getDimensions,n=await r(e.floating);return{reference:Vc(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:r}=Hc(e);return{width:t,height:r}},getScale:$c,isElement:Gl,isRTL:function(e){return"rtl"===lc(e).direction}};function Jc(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function eu(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,c=jc(e),u=i||o?[...c?fc(c):[],...t?fc(t):[]]:[];u.forEach(e=>{i&&e.addEventListener("scroll",r),o&&e.addEventListener("resize",r)});const d=c&&s?function(e,t,r){let n,i=null;const o=Kl(e);function a(){var e;clearTimeout(n),null==(e=i)||e.disconnect(),i=null}function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(r||t(),!f||!p)return;const h={rootMargin:-vc(d)+"px "+-vc(o.clientWidth-(u+f))+"px "+-vc(o.clientHeight-(d+p))+"px "+-vc(u)+"px",threshold:mc(0,hc(1,l))||1};let m=!0;function g(t){const r=t[0].intersectionRatio;if(!Jc(c,e.getBoundingClientRect()))return s();if(r!==l){if(!m)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}m=!1}try{i=new IntersectionObserver(g,{...h,root:o.ownerDocument})}catch(v){i=new IntersectionObserver(g,h)}i.observe(e)}const l=Ql(e),c=()=>s(r);return l.addEventListener("resize",c),s(!0),()=>{l.removeEventListener("resize",c),a()}}(c,r,o):null;let f,p=-1,h=null;a&&(h=new ResizeObserver(e=>{let[n]=e;n&&n.target===c&&h&&t&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=h)||e.observe(t)})),r()}),c&&!l&&h.observe(c),t&&h.observe(t));let m=l?Uc(e):null;return l&&function t(){const n=Uc(e);m&&!Jc(m,n)&&r();m=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",r),o&&e.removeEventListener("resize",r)}),d?.(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(f)}}var tu=Dc,ru=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:i}=e,o=await(null==n.isRTL?void 0:n.isRTL(i.floating)),a=_c(r),s=xc(r),l="y"===Cc(r),c=Nc.has(a)?-1:1,u=o&&l?-1:1,d=bc(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:h}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof h&&(p="end"===s?-1*h:h),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},nu=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i,platform:o}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...c}=bc(e,t),u={x:r,y:n},d=await o.detectOverflow(t,c),f=Cc(i),p=kc(f);let h=u[p],m=u[f];const g=(e,t)=>{return r=t+d["y"===e?"top":"left"],n=t,i=t-d["y"===e?"bottom":"right"],mc(r,hc(n,i));var r,n,i};a&&(h=g(p,h)),s&&(m=g(f,m));const v=l.fn({...t,[p]:h,[f]:m});return{...v,data:{x:v.x-r,y:v.y-n,enabled:{[p]:a,[f]:s}}}}}},iu=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=bc(e,t);if(null!=(r=o.arrow)&&r.alignmentOffset)return{};const v=_c(i),y=Cc(s),w=_c(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),_=f||(w||!m?[Fc(s)]:function(e){const t=Fc(e);return[Ec(e),t,Ec(t)]}(s)),x="none"!==h;!f&&x&&_.push(...Ac(s,m,h,b));const k=[s,..._],S=await l.detectOverflow(t,g),C=[];let T=(null==(n=o.flip)?void 0:n.overflows)||[];if(u&&C.push(S[v]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=xc(e),i=Tc(e),o=Sc(i);let a="x"===i?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=Fc(a)),[a,Fc(a)]}(i,a,b);C.push(S[e[0]],S[e[1]])}if(T=[...T,{placement:i,overflows:C}],!C.every(e=>e<=0)){var E,P;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=k[e];if(t&&("alignment"!==d||y===Cc(t)||T.every(e=>Cc(e.placement)!==y||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let r=null==(P=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:P.placement;if(!r)switch(p){case"bestFit":{var R;const e=null==(R=T.filter(e=>{if(x){const t=Cc(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&&(r=e);break}case"initialPlacement":r=s}if(i!==r)return{reset:{placement:r}}}return{}}}},ou=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:n,platform:i,elements:o}=t,{apply:a=()=>{},...s}=bc(e,t),l=await i.detectOverflow(t,s),c=_c(r),u=xc(r),d="y"===Cc(r),{width:f,height:p}=n.floating;let h,m;"top"===c||"bottom"===c?(h=c,m=u===(await(null==i.isRTL?void 0:i.isRTL(o.floating))?"start":"end")?"left":"right"):(m=c,h="end"===u?"top":"bottom");const g=p-l.top-l.bottom,v=f-l.left-l.right,y=hc(p-l[h],g),w=hc(f-l[m],v),b=t.middlewareData.shift,_=!b;let x=y,k=w;null!=b&&b.enabled.x&&(k=v),null!=b&&b.enabled.y&&(x=g),_&&!u&&(d?k=f-2*mc(l.left,l.right):x=p-2*mc(l.top,l.bottom)),await a({...t,availableWidth:k,availableHeight:x});const S=await i.getDimensions(o.floating);return f!==S.width||p!==S.height?{reset:{rects:!0}}:{}}}},au=(e,t,r)=>{const n=new Map,i=null!=r?r:{},o={...Zc,...i.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:Dc},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}=Mc(c,n,l),f=n,p=0;const h={};for(let m=0;m<o.length;m++){const r=o[m];if(!r)continue;const{name:g,fn:v}=r,{x:y,y:w,data:b,reset:_}=await v({x:u,y:d,initialPlacement:n,placement:f,strategy:i,middlewareData:h,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=y?y:u,d=null!=w?w:d,h[g]={...h[g],...b},_&&p<50&&(p++,"object"==typeof _&&(_.placement&&(f=_.placement),_.rects&&(c=!0===_.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):_.rects),({x:u,y:d}=Mc(c,f,l))),m=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:h}})(e,t,{...i,platform:o})};nn();var su="undefined"!=typeof document?De:function(){};function lu(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 r,n,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!==n--;)if(!lu(e[n],t[n]))return!1;return!0}if(i=Object.keys(e),r=i.length,r!==Object.keys(t).length)return!1;for(n=r;0!==n--;)if(!{}.hasOwnProperty.call(t,i[n]))return!1;for(n=r;0!==n--;){const r=i[n];if(("_owner"!==r||!e.$$typeof)&&!lu(e[r],t[r]))return!1}return!0}return e!=e&&t!=t}function cu(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uu(e,t){const r=cu(e);return Math.round(t*r)/r}function du(e){const t=Ne(e);return su(()=>{t.current=e}),t}var fu=(e,t)=>{const r=ru(e);return{name:r.name,fn:r.fn,options:[e,t]}},pu=(e,t)=>{const r=nu(e);return{name:r.name,fn:r.fn,options:[e,t]}},hu=(e,t)=>{const r=iu(e);return{name:r.name,fn:r.fn,options:[e,t]}},mu=(e,t)=>{const r=ou(e);return{name:r.name,fn:r.fn,options:[e,t]}};nn();var gu={...Pr},vu=gu.useInsertionEffect||(e=>e());function yu(e){const t=Ne(()=>{});return vu(()=>{t.current=e}),$e(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)},[])}var wu="undefined"!=typeof document?De:Me,bu=!1,_u=0,xu=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+_u++;var ku=gu.useId||function(){const[e,t]=Fe(()=>bu?xu():void 0);return wu(()=>{null==e&&t(xu())},[]),Me(()=>{bu=!0},[]),e};var Su=oe(null),Cu=oe(null),Tu="data-floating-ui-focusable";function Eu(e){const{open:t=!1,onOpenChange:r,elements:n}=e,i=ku(),o=Ne({}),[a]=Fe(()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach(e=>e(r))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter(e=>e!==r))||[])}}}()),s=null!=((null==(l=qe(Su))?void 0:l.id)||null);var l;const[c,u]=Fe(n.reference),d=yu((e,t,n)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:s}),r?.(e,t,n)}),f=je(()=>({setPositionReference:u}),[]),p=je(()=>({reference:c||n.reference||null,floating:n.floating||null,domReference:n.reference}),[c,n.reference,n.floating]);return je(()=>({dataRef:o,open:t,onOpenChange:d,elements:p,events:a,floatingId:i,refs:f}),[t,d,p,a,i,f])}function Pu(e){void 0===e&&(e={});const{nodeId:t}=e,r=Eu({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,i=n.elements,[o,a]=Fe(null),[s,l]=Fe(null),c=(null==i?void 0:i.domReference)||o,u=Ne(null),d=qe(Cu);wu(()=>{c&&(u.current=c)},[c]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=Fe({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=Fe(n);lu(f,n)||p(n);const[h,m]=Fe(null),[g,v]=Fe(null),y=$e(e=>{e!==x.current&&(x.current=e,m(e))},[]),w=$e(e=>{e!==k.current&&(k.current=e,v(e))},[]),b=o||h,_=a||g,x=Ne(null),k=Ne(null),S=Ne(u),C=null!=l,T=du(l),E=du(i),P=du(c),R=$e(()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:r,middleware:f};E.current&&(e.platform=E.current),au(x.current,k.current,e).then(e=>{const t={...e,isPositioned:!1!==P.current};O.current&&!lu(S.current,t)&&(S.current=t,xr(()=>{d(t)}))})},[f,t,r,E,P]);su(()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[c]);const O=Ne(!1);su(()=>(O.current=!0,()=>{O.current=!1}),[]),su(()=>{if(b&&(x.current=b),_&&(k.current=_),b&&_){if(T.current)return T.current(b,_,R);R()}},[b,_,R,T,C]);const I=je(()=>({reference:x,floating:k,setReference:y,setFloating:w}),[y,w]),A=je(()=>({reference:b,floating:_}),[b,_]),F=je(()=>{const e={position:r,left:0,top:0};if(!A.floating)return e;const t=uu(A.floating,u.x),n=uu(A.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...cu(A.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}},[r,s,A.floating,u.x,u.y]);return je(()=>({...u,update:R,refs:I,elements:A,floatingStyles:F}),[u,R,I,A,F])}({...e,elements:{...i,...s&&{reference:s}}}),p=$e(e=>{const t=Gl(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)},[f.refs]),h=$e(e=>{(Gl(e)||null===e)&&(u.current=e,a(e)),(Gl(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!Gl(e))&&f.refs.setReference(e)},[f.refs]),m=je(()=>({...f.refs,setReference:h,setPositionReference:p,domReference:u}),[f.refs,h,p]),g=je(()=>({...f.elements,domReference:c}),[f.elements,c]),v=je(()=>({...f,...n,refs:m,elements:g,nodeId:t}),[f,m,g,t,n]);return wu(()=>{n.dataRef.current.floatingContext=v;const e=null==d?void 0:d.nodesRef.current.find(e=>e.id===t);e&&(e.context=v)}),je(()=>({...f,context:v,refs:m,elements:g}),[f,m,g,v])}var Ru="active",Ou="selected";function Iu(e,t,r){const n=new Map,i="item"===r;let o=e;if(i&&e){const{[Ru]:t,[Ou]:r,...n}=e;o=n}return{..."floating"===r&&{tabIndex:-1,[Tu]:""},...o,...t.map(t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n}).concat(e).reduce((e,t)=>t?(Object.entries(t).forEach(t=>{let[r,o]=t;var a;i&&[Ru,Ou].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof o&&(null==(a=n.get(r))||a.push(o),e[r]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=n.get(r))?void 0:e.map(e=>e(...i)).find(e=>void 0!==e)})):e[r]=o)}),e):e,{})}}function Au(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function Fu(e,t){const{open:r,elements:n}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=yu(s),c=Ne(!1),u=Ne(null),d=Ne(null);Me(()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const r=e.deltaY,n=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=r<0?-1:1,c=r<0?"max":"min";t.scrollHeight<=t.clientHeight||(!n&&r>0||!i&&r<0?(e.preventDefault(),xr(()=>{l(e=>e+Math[c](r,a*s))})):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}())&&(t.scrollTop+=r))}const t=(null==a?void 0:a.current)||n.floating;return r&&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,r,n.floating,o,a,l]);const f=je(()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||n.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)&&xr(()=>l(e=>e+t))}requestAnimationFrame(()=>{u.current=e.scrollTop})}}}),[n.floating,l,o,a]);return je(()=>i?{floating:f}:{},[i,f])}nn();var Lu=oe({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Lu.displayName="FloatingContext";var Mu=oe(null);Mu.displayName="PlacementContext";function Du({children:e,enabled:t=!0}){let[r,n]=Fe(null),[i,o]=Fe(0),a=Ne(null),[s,l]=Fe(null);!function(e){Qa(()=>{if(!e)return;let t=new MutationObserver(()=>{let t=window.getComputedStyle(e).maxHeight,r=parseFloat(t);if(isNaN(r))return;let n=parseInt(t);isNaN(n)||r!==n&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}(s);let c=t&&null!==r&&null!==s,{to:u="bottom",gap:d=0,offset:f=0,padding:p=0,inner:h}=function(e,t){var r,n,i;let o=Nu(null!=(r=null==e?void 0:e.gap)?r:"var(--anchor-gap, 0)",t),a=Nu(null!=(n=null==e?void 0:e.offset)?n:"var(--anchor-offset, 0)",t),s=Nu(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(r,s),[m,g="center"]=u.split(" ");Qa(()=>{c&&o(0)},[c]);let{refs:v,floatingStyles:y,context:w}=Pu({open:c,placement:"selection"===m?"center"===g?"bottom":`bottom-${g}`:"center"===g?`${m}`:`${m}-${g}`,strategy:"absolute",transform:!1,middleware:[fu({mainAxis:"selection"===m?0:d,crossAxis:f}),pu({padding:p}),"selection"!==m&&hu({padding:p}),"selection"===m&&h?(x={...h,padding:p,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:p,onFallbackChange(e){var t,r;if(!e)return;let n=w.elements.floating;if(!n)return;let i=parseFloat(getComputedStyle(n).scrollPaddingBottom)||0,a=Math.min(4,n.childElementCount),s=0,l=0;for(let o of null!=(r=null==(t=w.elements.floating)?void 0:t.childNodes)?r:[])if(gs(o)){let e=o.offsetTop,t=e+o.clientHeight+i,r=n.scrollTop,c=r+n.clientHeight;if(!(e>=r&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,r)),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:r,onFallbackChange:n,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=bc(x,e),{rects:u,elements:{floating:d}}=e,f=t.current[o],p=(null==l?void 0:l.current)||d,h=d.clientTop||p.clientTop,m=0!==d.clientTop,g=0!==p.clientTop,v=d===p;if(!f)return{};const y={...e,...await fu(-f.offsetTop-d.clientTop-u.reference.height/2-f.offsetHeight/2-i).fn(e)},w=await tu(Au(y,p.scrollHeight+h+d.clientTop),c),b=await tu(y,{...c,elementContext:"reference"}),_=mc(0,w.top),k=y.y+_,S=(p.scrollHeight>p.clientHeight?e=>e:gc)(mc(0,p.scrollHeight+(m&&v||g?2*h:0)-_-mc(0,w.bottom)));if(p.style.maxHeight=S+"px",p.scrollTop=_,n){const e=p.offsetHeight<f.offsetHeight*hc(a,t.current.length)-1||b.top>=-s||b.bottom>=-s;xr(()=>n(e))}return r&&(r.current=await tu(Au({...y,y:k},p.offsetHeight+h+d.clientTop),c)),{y:k}}}):null,mu({padding:p,apply({availableWidth:e,availableHeight:t,elements:r}){Object.assign(r.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:eu}),[b=m,_=g]=w.placement.split("-");var x;"selection"===m&&(b="selection");let k=je(()=>({anchor:[b,_].filter(Boolean).join(" ")}),[b,_]),{getReferenceProps:S,getFloatingProps:C}=function(e){void 0===e&&(e=[]);const t=e.map(e=>null==e?void 0:e.reference),r=e.map(e=>null==e?void 0:e.floating),n=e.map(e=>null==e?void 0:e.item),i=$e(t=>Iu(t,e,"reference"),t),o=$e(t=>Iu(t,e,"floating"),r),a=$e(t=>Iu(t,e,"item"),n);return je(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a}),[i,o,a])}([Fu(w,{overflowRef:a,onChange:o})]),T=Va(e=>{l(e),v.setFloating(e)});return A(Mu.Provider,{value:n},A(Lu.Provider,{value:{setFloating:T,setReference:v.setReference,styles:y,getReferenceProps:S,getFloatingProps:C,slot:k}},e))}function Nu(e,t,r=void 0){let n=za(),i=Va((e,t)=>{if(null==e)return[r,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[r,null];let i=ju(e,t);return[i,r=>{let o=Hu(e);{let a=o.map(e=>window.getComputedStyle(t).getPropertyValue(e));n.requestAnimationFrame(function s(){n.nextFrame(s);let l=!1;for(let[e,r]of o.entries()){let n=window.getComputedStyle(t).getPropertyValue(r);if(a[e]!==n){a[e]=n,l=!0;break}}if(!l)return;let c=ju(e,t);i!==c&&(r(c),i=c)})}return n.dispose}]}return[r,null]}),o=je(()=>i(e,t)[0],[e,t]),[a=o,s]=Fe();return Qa(()=>{let[r,n]=i(e,t);if(s(r),n)return n(s)},[e,t]),a}function Hu(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let r=t[1].slice(0,e).trim(),n=t[1].slice(e+1).trim();return n?[r,...Hu(n)]:[r]}return[]}function ju(e,t){let r=document.createElement("div");t.appendChild(r),r.style.setProperty("margin-top","0px","important"),r.style.setProperty("margin-top",e,"important");let n=parseFloat(window.getComputedStyle(r).marginTop)||0;return t.removeChild(r),n}nn();var $u=oe(null);$u.displayName="OpenClosedContext";var qu=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(qu||{});function Wu(){return qe($u)}function Uu({value:e,children:t}){return Sr.createElement($u.Provider,{value:e},t)}var Bu=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Bu||{});function zu(e,t){let r=t.resolveItems();if(r.length<=0)return null;let n=t.resolveActiveIndex(),i=null!=n?n:-1;switch(e.focus){case 0:for(let e=0;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 1:-1===i&&(i=r.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 2:for(let e=i+1;e<r.length;++e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 3:for(let e=r.length-1;e>=0;--e)if(!t.resolveDisabled(r[e],e,r))return e;return n;case 4:for(let n=0;n<r.length;++n)if(t.resolveId(r[n],n,r)===e.id)return n;return n;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function Qu(e){let t=Va(e),r=Ne(!1);Me(()=>(r.current=!1,()=>{r.current=!0,Ua(()=>{r.current&&t()})}),[t])}function Ku(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in Pr&&(e=>e.useSyncExternalStore)(Pr)(()=>()=>{},()=>!1,()=>!e)}(),[t,r]=Fe(ja.isHandoffComplete);return t&&!1===ja.isHandoffComplete&&r(!1),Me(()=>{!0!==t&&r(!0)},[t]),Me(()=>ja.handoff(),[]),!e&&t}nn(),nn(),nn();var Vu=oe(!1);function Gu(){return qe(Vu)}nn();var Yu=M,Xu=ss(function(e,t){let{ownerDocument:r=null,...n}=e,i=Ne(null),o=Ss(function(e,t=!0){return Object.assign(e,{[ks]:t})}(e=>{i.current=e}),t),a=Rl(i.current),s=function(e){let t=Gu(),r=qe(Ju),[n,i]=Fe(()=>{var n;if(!t&&null!==r)return null!=(n=r.current)?n:null;if(ja.isServer)return null;let i=null==e?void 0:e.getElementById("headlessui-portal-root");if(i)return i;if(null===e)return null;let o=e.createElement("div");return o.setAttribute("id","headlessui-portal-root"),e.body.appendChild(o)});return Me(()=>{null!==n&&(null!=e&&e.body.contains(n)||null==e||e.body.appendChild(n))},[n,e]),Me(()=>{t||null!==r&&i(r.current)},[r,i,t]),n}(null!=r?r:a),l=qe(ed),c=za(),u=Ku(),d=rs();return Qu(()=>{var e;s&&s.childNodes.length<=0&&(null==(e=s.parentElement)||e.removeChild(s))}),s&&u?Kr(Sr.createElement("div",{"data-headlessui-portal":"",ref:e=>{c.dispose(),l&&e&&c.add(l.register(e))}},d({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:Yu,name:"Portal"})),s):null});var Zu=M,Ju=oe(null);var ed=oe(null),td=ss(function(e,t){let r=Ss(t),{enabled:n=!0,ownerDocument:i,...o}=e,a=rs();return n?Sr.createElement(Xu,{...o,ownerDocument:i,ref:r}):a({ourProps:{ref:r},theirProps:o,slot:{},defaultTag:Yu,name:"Portal"})}),rd=ss(function(e,t){let{target:r,...n}=e,i={ref:Ss(t)},o=rs();return Sr.createElement(Ju.Provider,{value:r},o({ourProps:i,theirProps:n,defaultTag:Zu,name:"Popover.Group"}))}),nd=Object.assign(td,{Group:rd}),id={Idle:{kind:"Idle"},Tracked:e=>({kind:"Tracked",position:e}),Moved:{kind:"Moved"}};function od(e){let t=e.getBoundingClientRect();return`${t.x},${t.y}`}function ad(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||!fs(null!=(t=e.as)?t:fd)||1===Sr.Children.count(e.children)}nn(),nn();var sd=oe(null);sd.displayName="TransitionContext";var ld=(e=>(e.Visible="visible",e.Hidden="hidden",e))(ld||{});var cd=oe(null);function ud(e){return"children"in e?ud(e.children):e.current.filter(({el:e})=>null!==e.current).filter(({state:e})=>"visible"===e).length>0}function dd(e,t){let r=Ka(e),n=Ne([]),i=function(){let e=Ne(!1);return Qa(()=>(e.current=!0,()=>{e.current=!1}),[]),e}(),o=za(),a=Va((e,t=ts.Hidden)=>{let a=n.current.findIndex(({el:t})=>t===e);-1!==a&&(Ja(t,{[ts.Unmount](){n.current.splice(a,1)},[ts.Hidden](){n.current[a].state="hidden"}}),o.microTask(()=>{var e;!ud(n)&&i.current&&(null==(e=r.current)||e.call(r))}))}),s=Va(e=>{let t=n.current.find(({el:t})=>t===e);return t?"visible"!==t.state&&(t.state="visible"):n.current.push({el:e,state:"visible"}),()=>a(e,ts.Unmount)}),l=Ne([]),c=Ne(Promise.resolve()),u=Ne({enter:[],leave:[]}),d=Va((e,r,n)=>{l.current.splice(0),t&&(t.chains.current[r]=t.chains.current[r].filter(([t])=>t!==e)),t?.chains.current[r].push([e,new Promise(e=>{l.current.push(e)})]),t?.chains.current[r].push([e,new Promise(e=>{Promise.all(u.current[r].map(([e,t])=>t)).then(()=>e())})]),"enter"===r?c.current=c.current.then(()=>null==t?void 0:t.wait.current).then(()=>n(r)):n(r)}),f=Va((e,t,r)=>{Promise.all(u.current[t].splice(0).map(([e,t])=>t)).then(()=>{var e;null==(e=l.current.shift())||e()}).then(()=>r(t))});return je(()=>({children:n,register:s,unregister:a,onStart:d,onStop:f,wait:c,chains:u}),[s,a,n,d,f,u,c])}cd.displayName="NestingContext";var fd=M,pd=es.RenderStrategy;var hd=ss(function(e,t){let{show:r,appear:n=!1,unmount:i=!0,...o}=e,a=Ne(null),s=Ss(...ad(e)?[a,t]:null===t?[]:[t]);Ku();let l=Wu();if(void 0===r&&null!==l&&(r=(l&qu.Open)===qu.Open),void 0===r)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[c,u]=Fe(r?"visible":"hidden"),d=dd(()=>{r||u("hidden")}),[f,p]=Fe(!0),h=Ne([r]);Qa(()=>{!1!==f&&h.current[h.current.length-1]!==r&&(h.current.push(r),p(!1))},[h,r]);let m=je(()=>({show:r,appear:n,initial:f}),[r,n,f]);Qa(()=>{r?u("visible"):!ud(d)&&null!==a.current&&u("hidden")},[r,d]);let g={unmount:i},v=Va(()=>{var t;f&&p(!1),null==(t=e.beforeEnter)||t.call(e)}),y=Va(()=>{var t;f&&p(!1),null==(t=e.beforeLeave)||t.call(e)}),w=rs();return Sr.createElement(cd.Provider,{value:d},Sr.createElement(sd.Provider,{value:m},w({ourProps:{...g,as:M,children:Sr.createElement(md,{ref:s,...g,...o,beforeEnter:v,beforeLeave:y})},theirProps:{},defaultTag:M,features:pd,visible:"visible"===c,name:"Transition"})))}),md=ss(function(e,t){var r,n;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:c,enterFrom:u,enterTo:d,entered:f,leave:p,leaveFrom:h,leaveTo:m,...g}=e,[v,y]=Fe(null),w=Ne(null),b=ad(e),_=Ss(...b?[w,t,y]:null===t?[]:[t]),x=null==(r=g.unmount)||r?ts.Unmount:ts.Hidden,{show:k,appear:S,initial:C}=function(){let e=qe(sd);if(null===e)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}(),[T,E]=Fe(k?"visible":"hidden"),P=function(){let e=qe(cd);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:O}=P;Qa(()=>R(w),[R,w]),Qa(()=>{if(x===ts.Hidden&&w.current)return k&&"visible"!==T?void E("visible"):Ja(T,{hidden:()=>O(w),visible:()=>R(w)})},[T,w,R,O,k,x]);let I=Ku();Qa(()=>{if(b&&I&&"visible"===T&&null===w.current)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,T,I,b]);let A=C&&!S,F=S&&k&&C,L=Ne(!1),M=dd(()=>{L.current||(E("hidden"),O(w))},P),D=Va(e=>{L.current=!0;let t=e?"enter":"leave";M.onStart(w,t,e=>{"enter"===e?o?.():"leave"===e&&s?.()})}),N=Va(e=>{let t=e?"enter":"leave";L.current=!1,M.onStop(w,t,e=>{"enter"===e?a?.():"leave"===e&&l?.()}),"leave"===t&&!ud(M)&&(E("hidden"),O(w))});Me(()=>{b&&i||(D(k),N(k))},[k,b,i]);let[,H]=Ul(!(!i||!b||!I||A),v,k,{start:D,end:N}),j=ls({ref:_,className:(null==(n=Za(g.className,F&&c,F&&u,H.enter&&c,H.enter&&H.closed&&u,H.enter&&!H.closed&&d,H.leave&&p,H.leave&&!H.closed&&h,H.leave&&H.closed&&m,!H.transition&&k&&f))?void 0:n.trim())||void 0,...Wl(H)}),$=0;"visible"===T&&($|=qu.Open),"hidden"===T&&($|=qu.Closed),k&&"hidden"===T&&($|=qu.Opening),!k&&"visible"===T&&($|=qu.Closing);let q=rs();return Sr.createElement(cd.Provider,{value:M},Sr.createElement(Uu,{value:$},q({ourProps:j,theirProps:g,defaultTag:fd,features:pd,visible:"visible"===T,name:"Transition.Child"})))}),gd=ss(function(e,t){let r=null!==qe(sd),n=null!==Wu();return Sr.createElement(Sr.Fragment,null,!r&&n?Sr.createElement(hd,{ref:t,...e}):Sr.createElement(md,{ref:t,...e}))}),vd=Object.assign(hd,{Child:gd,Root:hd}),yd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function wd(e){var t,r;let n=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!gs(i))return n;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(r=i.innerText)?r:"":n;return yd.test(a)&&(a=a.replace(yd,"")),a}function bd(e){let t=Ne(""),r=Ne("");return Va(()=>{let n=e.current;if(!n)return"";let i=n.innerText;if(t.current===i)return r.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let r=e.getAttribute("aria-labelledby");if(r){let e=r.split(" ").map(e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():wd(t).trim()}return null}).filter(Boolean);if(e.length>0)return e.join(", ")}return wd(e).trim()}(n).trim().toLowerCase();return t.current=i,r.current=o,o})}nn();var _d=Object.defineProperty,xd=(e,t,r)=>(((e,t,r)=>{t in e?_d(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r),kd=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(kd||{}),Sd=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Sd||{}),Cd=(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.RegisterItems=5]="RegisterItems",e[e.UnregisterItems=6]="UnregisterItems",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e[e.SortItems=9]="SortItems",e[e.MarkButtonAsMoved=10]="MarkButtonAsMoved",e))(Cd||{});function Td(e,t=e=>e){let r=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,n=kl(t(e.items.slice()),e=>e.dataRef.current.domRef.current),i=r?n.indexOf(r):null;return-1===i&&(i=null),{items:n,activeItemIndex:i}}var Ed={1(e){if(1===e.menuState)return e;let t=e.buttonElement?id.Tracked(od(e.buttonElement)):e.buttonPositionState;return{...e,activeItemIndex:null,pendingFocus:{focus:Bu.Nothing},menuState:1,buttonPositionState:t}},0:(e,t)=>0===e.menuState?e:{...e,__demoMode:!1,pendingFocus:t.focus,menuState:0,buttonPositionState:id.Idle},2:(e,t)=>{var r,n,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(r=t.trigger)?r:1,__demoMode:!1};if(t.focus===Bu.Nothing)return{...s,activeItemIndex:null};if(t.focus===Bu.Specific)return{...s,activeItemIndex:e.items.findIndex(e=>e.id===t.id)};if(t.focus===Bu.Previous){let r=e.activeItemIndex;if(null!==r){let o=e.items[r].dataRef.current.domRef,a=zu(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==(n=o.current)?void 0:n.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeItemIndex:a}}}}else if(t.focus===Bu.Next){let r=e.activeItemIndex;if(null!==r){let n=e.items[r].dataRef.current.domRef,i=zu(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=n.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeItemIndex:i}}}}let l=Td(e),c=zu(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 r=""!==e.searchQuery?0:1,n=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+r).concat(e.items.slice(0,e.activeItemIndex+r)):e.items).find(e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(n))&&!e.dataRef.current.disabled}),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:n}:{...e,searchQuery:n,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let r=e.items.concat(t.items.map(e=>e)),n=e.activeItemIndex;return e.pendingFocus.focus!==Bu.Nothing&&(n=zu(e.pendingFocus,{resolveItems:()=>r,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled})),{...e,items:r,activeItemIndex:n,pendingFocus:{focus:Bu.Nothing},pendingShouldSort:!0}},6:(e,t)=>{let r=e.items,n=[],i=new Set(t.items);for(let[o,a]of r.entries())if(i.has(a.id)&&(n.push(o),i.delete(a.id),0===i.size))break;if(n.length>0){r=r.slice();for(let e of n.reverse())r.splice(e,1)}return{...e,items:r,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},9:e=>e.pendingShouldSort?{...e,...Td(e),pendingShouldSort:!1}:e,10:e=>"Tracked"!==e.buttonPositionState.kind?e:{...e,buttonPositionState:id.Moved}},Pd=class e extends Qs{constructor(e){super(e),xd(this,"actions",{registerItem:Ys(()=>{let e=[],t=new Set;return[(r,n)=>{t.has(n)||(t.add(n),e.push({id:r,dataRef:n}))},()=>(t.clear(),this.send({type:5,items:e.splice(0)}))]}),unregisterItem:Ys(()=>{let e=[];return[t=>e.push(t),()=>this.send({type:6,items:e.splice(0)})]})}),xd(this,"selectors",{activeDescendantId(e){var t;let r=e.activeItemIndex,n=e.items;return null===r||null==(t=n[r])?void 0:t.id},isActive(e,t){var r;let n=e.activeItemIndex,i=e.items;return null!==n&&(null==(r=i[n])?void 0:r.id)===t},shouldScrollIntoView(e,t){return!e.__demoMode&&0===e.menuState&&0!==e.activationTrigger&&this.isActive(e,t)},didButtonMove:e=>"Moved"===e.buttonPositionState.kind}),this.on(5,()=>{this.disposables.requestAnimationFrame(()=>{this.send({type:9})})});{let e=this.state.id,t=rl.get(null);this.disposables.add(t.on(Js.Push,r=>{!t.selectors.isTop(r,e)&&0===this.state.menuState&&this.send({type:1})})),this.on(0,()=>t.actions.push(e)),this.on(1,()=>t.actions.pop(e))}this.disposables.group(e=>{this.on(1,t=>{t.buttonElement&&(e.dispose(),e.add(function(e,t,r){let n=Ba();if("Tracked"===t.kind){let i=function(){o!==od(e)&&(n.dispose(),r())},{position:o}=t,a=new ResizeObserver(i);a.observe(e),n.add(()=>a.disconnect()),n.addEventListener(window,"scroll",i,{passive:!0}),n.addEventListener(window,"resize",i)}return()=>n.dispose()}(t.buttonElement,t.buttonPositionState,()=>{this.send({type:10})})))})})}static new({id:t,__demoMode:r=!1}){return new e({id:t,__demoMode:r,menuState:r?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1,pendingShouldSort:!1,pendingFocus:{focus:Bu.Nothing},buttonPositionState:id.Idle})}reduce(e,t){return Ja(t.type,Ed,e,t)}};nn();var Rd=oe(null);function Od(e){let t=qe(Rd);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Id),t}return t}function Id({id:e,__demoMode:t=!1}){let r=je(()=>Pd.new({id:e,__demoMode:t}),[]);return Qu(()=>r.dispose()),r}nn(),Xe();var Ad=M;var Fd=es.RenderStrategy|es.Static;var Ld=M;var Md=ss(function(e,t){let r=Be(),{__demoMode:n=!1,...i}=e,o=Id({id:r,__demoMode:n}),[a,s,l]=ol(o,e=>[e.menuState,e.itemsElement,e.buttonElement]),c=Ss(t),u=rl.get(null);Pl(ol(u,$e(e=>u.selectors.isTop(e,r),[u,r])),[l,s],(e,t)=>{var r;o.send({type:Cd.CloseMenu}),wl(t,yl.Loose)||(e.preventDefault(),null==(r=o.state.buttonElement)||r.focus())});let d=Va(()=>{o.send({type:Cd.CloseMenu})}),f=Ga({open:a===kd.Open,close:d}),p={ref:c},h=rs();return Sr.createElement(Du,null,Sr.createElement(Rd.Provider,{value:o},Sr.createElement(Uu,{value:Ja(a,{[kd.Open]:qu.Open,[kd.Closed]:qu.Closed})},h({ourProps:p,theirProps:i,slot:f,defaultTag:Ad,name:"Menu"}))))}),Dd=ss(function(e,t){let r=Od("Menu.Button"),n=Be(),{id:i=`headlessui-menu-button-${n}`,disabled:o=!1,autoFocus:a=!1,...s}=e,l=Ne(null),c=qe(Lu).getReferenceProps,u=Ss(t,l,qe(Lu).setReference,Va(e=>r.send({type:Cd.SetButtonElement,element:e}))),d=Va(e=>{switch(e.key){case Ps.Space:case Ps.Enter:case Ps.ArrowDown:e.preventDefault(),e.stopPropagation(),r.send({type:Cd.OpenMenu,focus:{focus:Bu.First}});break;case Ps.ArrowUp:e.preventDefault(),e.stopPropagation(),r.send({type:Cd.OpenMenu,focus:{focus:Bu.Last}})}}),f=Va(e=>{if(e.key===Ps.Space)e.preventDefault()}),[p,h,m]=ol(r,e=>[e.menuState,e.buttonElement,e.itemsElement]);!function(e,{trigger:t,action:r,close:n,select:i}){let o=Ne(null),a=Ne(null),s=Ne(null);El(e&&null!==t,"pointerdown",e=>{hs(null==e?void 0:e.target)&&null!=t&&t.contains(e.target)&&(a.current=e.x,s.current=e.y,o.current=e.timeStamp)}),El(e&&null!==t,"pointerup",e=>{var t,l;let c=o.current;if(null===c||(o.current=null,!vs(e.target))||Math.abs(e.x-(null!=(t=a.current)?t:e.x))<5&&Math.abs(e.y-(null!=(l=s.current)?l:e.y))<5)return;let u=r(e);switch(u.kind){case 0:return;case 1:e.timeStamp-c>200&&(i(u.target),n());break;case 2:n()}},{capture:!0})}(p===kd.Open,{trigger:h,action:$e(e=>{if(null!=h&&h.contains(e.target))return Il.Ignore;let t=e.target.closest('[role="menuitem"]:not([data-disabled])');return gs(t)?Il.Select(t):null!=m&&m.contains(e.target)?Il.Ignore:Il.Close},[h,m]),close:$e(()=>r.send({type:Cd.CloseMenu}),[]),select:$e(e=>e.click(),[])});let g=function(e){let t=Ne(null);return{onPointerDown:Va(r=>{t.current=r.pointerType,!xs(r.currentTarget)&&"mouse"===r.pointerType&&r.button===Ms.Left&&(r.preventDefault(),e(r))}),onClick:Va(r=>{"mouse"!==t.current&&(xs(r.currentTarget)||e(r))})}}(e=>{var t;o||(p===kd.Open?(xr(()=>r.send({type:Cd.CloseMenu})),null==(t=l.current)||t.focus({preventScroll:!0})):(e.preventDefault(),r.send({type:Cd.OpenMenu,focus:{focus:Bu.Nothing},trigger:Sd.Pointer})))}),{isFocusVisible:v,focusProps:y}=Ia({autoFocus:a}),{isHovered:w,hoverProps:b}=Da({isDisabled:o}),{pressed:_,pressProps:x}=function({disabled:e=!1}={}){let t=Ne(null),[r,n]=Fe(!1),i=za(),o=Va(()=>{t.current=null,n(!1),i.dispose()}),a=Va(e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,n(!0);{let r=$a(e.currentTarget);i.addEventListener(r,"pointerup",o,!1),i.addEventListener(r,"pointermove",e=>{if(t.current){let r=function(e){let t=e.width/2,r=e.height/2;return{top:e.clientY-r,right:e.clientX+t,bottom:e.clientY+r,left:e.clientX-t}}(e);n(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(r,t.current.getBoundingClientRect()))}},!1),i.addEventListener(r,"pointercancel",o,!1)}}});return{pressed:r,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),k=Ga({open:p===kd.Open,active:_||p===kd.Open,disabled:o,hover:w,focus:v,autofocus:a}),S=as(c(),{ref:u,id:i,type:Al(e,l.current),"aria-haspopup":"menu","aria-controls":null==m?void 0:m.id,"aria-expanded":p===kd.Open,disabled:o||void 0,autoFocus:a,onKeyDown:d,onKeyUp:f},g,y,b,x);return rs()({ourProps:S,theirProps:s,slot:k,defaultTag:"button",name:"Menu.Button"})}),Nd=ss(function(e,t){let r=Be(),{id:n=`headlessui-menu-items-${r}`,anchor:i,portal:o=!1,modal:a=!0,transition:s=!1,...l}=e,c=function(e){return je(()=>e?"string"==typeof e?{to:e}:e:null,[e])}(i),u=Od("Menu.Items"),[d,f]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=qe(Mu),r=je(()=>e,[JSON.stringify(e,(e,t)=>{var r;return null!=(r=null==t?void 0:t.outerHTML)?r:t})]);Qa(()=>{t?.(null!=r?r:null)},[t,r]);let n=qe(Lu);return je(()=>[n.setFloating,e?n.styles:{}],[n.setFloating,e,n.styles])}(c),p=function(){let{getFloatingProps:e,slot:t}=qe(Lu);return $e((...r)=>Object.assign({},e(...r),{"data-anchor":t.anchor}),[e,t])}(),[h,m]=Fe(null),g=Ss(t,c?d:null,Va(e=>u.send({type:Cd.SetItemsElement,element:e})),m),[v,y]=ol(u,e=>[e.menuState,e.buttonElement]),w=Rl(y),b=Rl(h);c&&(o=!0);let _=Wu(),[x,k]=Ul(s,h,null!==_?(_&qu.Open)===qu.Open:v===kd.Open);!function(e,t,r){let n=Ka(e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&r()});Me(()=>{if(!e)return;let r=null===t?null:gs(t)?t:t.current;if(!r)return;let i=Ba();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver(()=>n.current(r));e.observe(r),i.add(()=>e.disconnect())}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver(()=>n.current(r));e.observe(r),i.add(()=>e.disconnect())}return()=>i.dispose()},[t,n,e])}(x,y,()=>{u.send({type:Cd.CloseMenu})});let S=ol(u,e=>e.__demoMode);!function(e,t,r=()=>[document.body]){jl(sl(e,"scroll-lock"),t,e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],r]}})}(!S&&(a&&v===kd.Open),b),function(e,{allowed:t,disallowed:r}={}){let n=sl(e,"inert-others");Qa(()=>{var e,i;if(!n)return;let o=Ba();for(let t of null!=(e=null==r?void 0:r())?e:[])t&&o.add(ul(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=$a(t);if(!e)continue;let r=t.parentElement;for(;r&&r!==e.body;){for(let e of r.children)a.some(t=>e.contains(t))||o.add(ul(e));r=r.parentElement}}return o.dispose},[n,t,r])}(!S&&(a&&v===kd.Open),{allowed:$e(()=>[y,h],[y,h])});let C=!ol(u,u.selectors.didButtonMove)&&x;Me(()=>{let e=h;e&&v===kd.Open&&(function(e){return Wa(e)===e}(e)||e.focus({preventScroll:!0}))},[v,h]),function(e,{container:t,accept:r,walk:n}){let i=Ne(r),o=Ne(n);Me(()=>{i.current=r,o.current=n},[r,n]),Qa(()=>{if(!t||!e)return;let r=$a(t);if(!r)return;let n=i.current,a=o.current,s=Object.assign(e=>n(e),{acceptNode:n}),l=r.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)},[t,e,i,o])}(v===kd.Open,{container:h,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 T=za(),E=Va(e=>{var t,r,n;switch(T.dispose(),e.key){case Ps.Space:if(""!==u.state.searchQuery)return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.Search,value:e.key});case Ps.Enter:if(e.preventDefault(),e.stopPropagation(),null!==u.state.activeItemIndex){let{dataRef:e}=u.state.items[u.state.activeItemIndex];null==(r=null==(t=e.current)?void 0:t.domRef.current)||r.click()}u.send({type:Cd.CloseMenu}),bl(u.state.buttonElement);break;case Ps.ArrowDown:return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.GoToItem,focus:Bu.Next});case Ps.ArrowUp:return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.GoToItem,focus:Bu.Previous});case Ps.Home:case Ps.PageUp:return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.GoToItem,focus:Bu.First});case Ps.End:case Ps.PageDown:return e.preventDefault(),e.stopPropagation(),u.send({type:Cd.GoToItem,focus:Bu.Last});case Ps.Escape:e.preventDefault(),e.stopPropagation(),xr(()=>u.send({type:Cd.CloseMenu})),null==(n=u.state.buttonElement)||n.focus({preventScroll:!0});break;case Ps.Tab:e.preventDefault(),e.stopPropagation(),xr(()=>u.send({type:Cd.CloseMenu})),Sl(u.state.buttonElement,e.shiftKey?hl.Previous:hl.Next);break;default:1===e.key.length&&(u.send({type:Cd.Search,value:e.key}),T.setTimeout(()=>u.send({type:Cd.ClearSearch}),350))}}),P=Va(e=>{if(e.key===Ps.Space)e.preventDefault()}),R=Ga({open:v===kd.Open}),O=as(c?p():{},{"aria-activedescendant":ol(u,u.selectors.activeDescendantId),"aria-labelledby":ol(u,e=>{var t;return null==(t=e.buttonElement)?void 0:t.id}),id:n,onKeyDown:E,onKeyUp:P,role:"menu",tabIndex:v===kd.Open?0:void 0,ref:g,style:{...l.style,...f,"--button-width":Ls(x,y,!0).width},...Wl(k)}),I=rs();return Sr.createElement(nd,{enabled:!!o&&(e.static||x),ownerDocument:w},I({ourProps:O,theirProps:l,slot:R,defaultTag:"div",features:Fd,visible:C,name:"Menu.Items"}))}),Hd=ss(function(e,t){let r=Be(),{id:n=`headlessui-menu-item-${r}`,disabled:i=!1,...o}=e,a=Od("Menu.Item"),s=ol(a,e=>a.selectors.isActive(e,n)),l=Ne(null),c=Ss(t,l),u=ol(a,e=>a.selectors.shouldScrollIntoView(e,n));Qa(()=>{if(u)return Ba().requestAnimationFrame(()=>{var e,t;null==(t=null==(e=l.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})})},[u,l]);let d=bd(l),f=Ne({disabled:i,domRef:l,get textValue(){return d()}});Qa(()=>{f.current.disabled=i},[f,i]),Qa(()=>(a.actions.registerItem(n,f),()=>a.actions.unregisterItem(n)),[f,n]);let p=Va(()=>{a.send({type:Cd.CloseMenu})}),h=Va(e=>{if(i)return e.preventDefault();a.send({type:Cd.CloseMenu}),bl(a.state.buttonElement)}),m=Va(()=>{if(i)return a.send({type:Cd.GoToItem,focus:Bu.Nothing});a.send({type:Cd.GoToItem,focus:Bu.Specific,id:n})}),g=function(){let e=Ne([-1,-1]);return{wasMoved(t){let r=$l(t);return(e.current[0]!==r[0]||e.current[1]!==r[1])&&(e.current=r,!0)},update(t){e.current=$l(t)}}}(),v=Va(e=>g.update(e)),y=Va(e=>{g.wasMoved(e)&&(i||s||a.send({type:Cd.GoToItem,focus:Bu.Specific,id:n,trigger:Sd.Pointer}))}),w=Va(e=>{g.wasMoved(e)&&(i||s&&a.state.activationTrigger===Sd.Pointer&&a.send({type:Cd.GoToItem,focus:Bu.Nothing}))}),[b,_]=Is(),[x,k]=function(){let[e,t]=Fe([]);return[e.length>0?e.join(" "):void 0,je(()=>function(e){let r=Va(e=>(t(t=>[...t,e]),()=>t(t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))),n=je(()=>({register:r,slot:e.slot,name:e.name,props:e.props,value:e.value}),[r,e.slot,e.name,e.props,e.value]);return Sr.createElement(Cs.Provider,{value:n},e.children)},[t])]}(),S=Ga({active:s,focus:s,disabled:i,close:p}),C={id:n,ref:c,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":b,"aria-describedby":x,disabled:void 0,onClick:h,onFocus:m,onPointerEnter:v,onMouseEnter:v,onPointerMove:y,onMouseMove:y,onPointerLeave:w,onMouseLeave:w},T=rs();return Sr.createElement(_,null,Sr.createElement(k,null,T({ourProps:C,theirProps:o,slot:S,defaultTag:Ld,name:"Menu.Item"})))}),jd=ss(function(e,t){let[r,n]=Is(),i=e,o={ref:t,"aria-labelledby":r,role:"group"},a=rs();return Sr.createElement(n,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))}),$d=ss(function(e,t){let r=Be(),{id:n=`headlessui-menu-heading-${r}`,...i}=e,o=Os();Qa(()=>o.register(n),[n,o.register]);let a={id:n,ref:t,role:"presentation",...o.props};return rs()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})}),qd=ss(function(e,t){let r=e,n={ref:t,role:"separator"};return rs()({ourProps:n,theirProps:r,slot:{},defaultTag:"div",name:"Menu.Separator"})}),Wd=Object.assign(Md,{Button:Dd,Items:Nd,Item:Hd,Section:jd,Heading:$d,Separator:qd});function Ud({title:e,titleId:t,...r},n){return A("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:n,"aria-labelledby":t},r),e?A("title",{id:t},e):null,A("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"}))}nn();var Bd=Hr(Ud);function zd({title:e,titleId:t,...r},n){return A("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:n,"aria-labelledby":t},r),e?A("title",{id:t},e):null,A("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"}))}nn();var Qd=Hr(zd),Kd=e=>jo(Zd,{children:$o(Wd,{as:"div",children:[jo("div",{children:$o(Dd,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity, 1))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity, 1))"},":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, 1))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[jo("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"}),jo(Bd,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),jo(Nd,{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, 1))","--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,r)=>jo(Hd,{children:jo("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, 1))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},r)},r))})]})}),Vd=e=>e&&new Date(e).toLocaleDateString("en-AU")||void 0,Gd=e=>void 0!==e&&`$ ${Number(e).toLocaleString("en-US")}`||void 0,Yd=e=>$o(Zd,{children:[Vd(e.value),jo("br",{}),Vd(e.value)]});Xe();var Xd=e=>{const[t,r]=Fe(!1);return $o(Zd,{css:{position:"relative"},children:[jo(vd,{show:t,children:jo("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, 1))",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:jo("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, 1))"},children:"Copied"})})}),jo("button",{onClick:async()=>{await(async e=>{await navigator.clipboard.writeText(e)})(e.value),r(!0),setTimeout(()=>{r(!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, 1))",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(209 213 219 / var(--tw-bg-opacity, 1))"},"&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity, 1))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity, 1))",outline:"2px solid transparent",outlineOffset:"2px"}},children:e.value})]})},Zd=Fo.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, 1))"}}
|
|
3
3
|
`,Jd=Fo.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, 1))"}}
|