@flarehr/superhero-salpac-profile-admin 1.0.643 → 1.0.644

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,13 +1,13 @@
1
- var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,r)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,__publicField=(e,t,r)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,r),__accessCheck=(e,t,r)=>t.has(e)||__typeError("Cannot "+r),__privateGet=(e,t,r)=>(__accessCheck(e,t,"read from private field"),r?r.call(e):t.get(e)),__privateAdd=(e,t,r)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),__privateSet=(e,t,r,n)=>(__accessCheck(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),__privateMethod=(e,t,r)=>(__accessCheck(e,t,"access private method"),r),__privateWrapper=(e,t,r,n)=>({set _(n){__privateSet(e,t,n,r)},get _(){return __privateGet(e,t,n)}});!function(){"use strict";var e,t,r,n,i,a,o,s,l,c,u,d,p,h,f,_,v,m,g,y,w,b,k,x,S,C,A,G,P,O,R,M,E,T,L,I,F,W,D,U,$,N,H,q,j,z,B,Q,K,V,X,Y,Z,J,ee,te,re,ne,ie,ae,oe,se,le,ce,ue,de,pe,he,fe,_e,ve,me,ge,ye,we,be,ke={},xe=[],Se=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ce=Array.isArray;function Ae(e,t){for(var r in t)e[r]=t[r];return e}function Ge(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Pe(e,t,r){var n,i,a,o={};for(a in t)"key"==a?n=t[a]:"ref"==a?i=t[a]:o[a]=t[a];if(arguments.length>2&&(o.children=arguments.length>3?de.call(arguments,2):r),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===o[a]&&(o[a]=e.defaultProps[a]);return Oe(e,o,n,i,null)}function Oe(e,t,r,n,i){var a={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++he:i,__i:-1,__u:0};return null==i&&null!=pe.vnode&&pe.vnode(a),a}function Re(){return{current:null}}function Me(e){return e.children}function Ee(e,t){this.props=e,this.context=t}function Te(e,t){if(null==t)return e.__?Te(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?Te(e):null}function Le(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return Le(e)}}function Ie(e){(!e.__d&&(e.__d=!0)&&fe.push(e)&&!Fe.__r++||_e!==pe.debounceRendering)&&((_e=pe.debounceRendering)||ve)(Fe)}function Fe(){var e,t,r,n,i,a,o,s;for(fe.sort(me);e=fe.shift();)e.__d&&(t=fe.length,n=void 0,a=(i=(r=e).__v).__e,o=[],s=[],r.__P&&((n=Ae({},i)).__v=i.__v+1,pe.vnode&&pe.vnode(n),je(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[a]:null,o,null==a?Te(i):a,!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,ze(o,n,s),n.__e!=a&&Le(n)),fe.length>t&&fe.sort(me));Fe.__r=0}function We(e,t,r,n,i,a,o,s,l,c,u){var d,p,h,f,_,v=n&&n.__k||xe,m=t.length;for(r.__d=l,function(e,t,r){var n,i,a,o,s,l=t.length,c=r.length,u=c,d=0;for(e.__k=[],n=0;n<l;n++)null!=(i=t[n])&&"boolean"!=typeof i&&"function"!=typeof i?(o=n+d,(i=e.__k[n]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Oe(null,i,null,null,null):Ce(i)?Oe(Me,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Oe(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,a=null,-1!==(s=i.__i=$e(i,r,o,u))&&(u--,(a=r[s])&&(a.__u|=131072)),null==a||null===a.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==o&&(s==o-1?d--:s==o+1?d++:(s>o?d--:d++,i.__u|=65536))):i=e.__k[n]=null;if(u)for(n=0;n<c;n++)null!=(a=r[n])&&!(131072&a.__u)&&(a.__e==e.__d&&(e.__d=Te(a)),Qe(a,a))}(r,t,v),l=r.__d,d=0;d<m;d++)null!=(h=r.__k[d])&&(p=-1===h.__i?ke:v[h.__i]||ke,h.__i=d,je(e,h,p,i,a,o,s,l,c,u),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&Be(p.ref,null,h),u.push(h.ref,h.__c||f,h)),null==_&&null!=f&&(_=f),65536&h.__u||p.__k===h.__k?l=De(h,l,e):"function"==typeof h.type&&void 0!==h.__d?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);r.__d=l,r.__e=_}function De(e,t,r){var n,i;if("function"==typeof e.type){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=De(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Te(e)),r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function Ue(e,t){return t=t||[],null==e||"boolean"==typeof e||(Ce(e)?e.some((function(e){Ue(e,t)})):t.push(e)),t}function $e(e,t,r,n){var i=e.key,a=e.type,o=r-1,s=r+1,l=t[r];if(null===l||l&&i==l.key&&a===l.type&&!(131072&l.__u))return r;if(n>(null==l||131072&l.__u?0:1))for(;o>=0||s<t.length;){if(o>=0){if((l=t[o])&&!(131072&l.__u)&&i==l.key&&a===l.type)return o;o--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&a===l.type)return s;s++}}return-1}function Ne(e,t,r){"-"===t[0]?e.setProperty(t,null==r?"":r):e[t]=null==r?"":"number"!=typeof r||Se.test(t)?r:r+"px"}function He(e,t,r,n,i){var 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||Ne(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Ne(e.style,t,r[t])}else if("o"===t[0]&&"n"===t[1])a=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+a]=r,r?n?r.u=n.u:(r.u=ge,e.addEventListener(t,a?we:ye,a)):e.removeEventListener(t,a?we:ye,a);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==r?"":r;break e}catch(o){}"function"==typeof r||(null==r||!1===r&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==r?"":r))}}function qe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=ge++;else if(t.t<r.u)return;return r(pe.event?pe.event(t):t)}}}function je(e,t,r,n,i,a,o,s,l,c){var u,d,p,h,f,_,v,m,g,y,w,b,k,x,S,C,A=t.type;if(void 0!==t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),a=[s=t.__e=r.__e]),(u=pe.__b)&&u(t);e:if("function"==typeof A)try{if(m=t.props,g="prototype"in A&&A.prototype.render,y=(u=A.contextType)&&n[u.__c],w=u?y?y.props.value:u.__:n,r.__c?v=(d=t.__c=r.__c).__=d.__E:(g?t.__c=d=new A(m,w):(t.__c=d=new Ee(m,w),d.constructor=A,d.render=Ke),y&&y.sub(d),d.props=m,d.state||(d.state={}),d.context=w,d.__n=n,p=d.__d=!0,d.__h=[],d._sb=[]),g&&null==d.__s&&(d.__s=d.state),g&&null!=A.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Ae({},d.__s)),Ae(d.__s,A.getDerivedStateFromProps(m,d.__s))),h=d.props,f=d.state,d.__v=t,p)g&&null==A.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),g&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(g&&null==A.getDerivedStateFromProps&&m!==h&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(m,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(m,d.__s,w)||t.__v===r.__v)){for(t.__v!==r.__v&&(d.props=m,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&o.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(m,d.__s,w),g&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(h,f,_)}))}if(d.context=w,d.props=m,d.__P=e,d.__e=!1,k=pe.__r,x=0,g){for(d.state=d.__s,d.__d=!1,k&&k(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,k&&k(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++x<25);d.state=d.__s,null!=d.getChildContext&&(n=Ae(Ae({},n),d.getChildContext())),g&&!p&&null!=d.getSnapshotBeforeUpdate&&(_=d.getSnapshotBeforeUpdate(h,f)),We(e,Ce(C=null!=u&&u.type===Me&&null==u.key?u.props.children:u)?C:[C],t,r,n,i,a,o,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&o.push(d),v&&(d.__E=d.__=null)}catch(G){if(t.__v=null,l||null!=a){for(t.__u|=l?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__e=s}else t.__e=r.__e,t.__k=r.__k;pe.__e(G,t,r)}else null==a&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=function(e,t,r,n,i,a,o,s,l){var c,u,d,p,h,f,_,v=r.props,m=t.props,g=t.type;if("svg"===g?i="http://www.w3.org/2000/svg":"math"===g?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=a)for(c=0;c<a.length;c++)if((h=a[c])&&"setAttribute"in h==!!g&&(g?h.localName===g:3===h.nodeType)){e=h,a[c]=null;break}if(null==e){if(null===g)return document.createTextNode(m);e=document.createElementNS(i,g,m.is&&m),s&&(pe.__m&&pe.__m(t,a),s=!1),a=null}if(null===g)v===m||s&&e.data===m||(e.data=m);else{if(a=a&&de.call(e.childNodes),v=r.props||ke,!s&&null!=a)for(v={},c=0;c<e.attributes.length;c++)v[(h=e.attributes[c]).name]=h.value;for(c in v)if(h=v[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=h;else if(!(c in m)){if("value"==c&&"defaultValue"in m||"checked"==c&&"defaultChecked"in m)continue;He(e,c,null,h,i)}for(c in m)h=m[c],"children"==c?p=h:"dangerouslySetInnerHTML"==c?u=h:"value"==c?f=h:"checked"==c?_=h:s&&"function"!=typeof h||v[c]===h||He(e,c,h,v[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),We(e,Ce(p)?p:[p],t,r,n,"foreignObject"===g?"http://www.w3.org/1999/xhtml":i,a,o,a?a[0]:r.__k&&Te(r,0),s,l),null!=a)for(c=a.length;c--;)Ge(a[c]);s||(c="value","progress"===g&&null==f?e.removeAttribute("value"):void 0!==f&&(f!==e[c]||"progress"===g&&!f||"option"===g&&f!==v[c])&&He(e,c,f,v[c],i),c="checked",void 0!==_&&_!==e[c]&&He(e,c,_,v[c],i))}return e}(r.__e,t,r,n,i,a,o,l,c);(u=pe.diffed)&&u(t)}function ze(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)Be(r[n],r[++n],r[++n]);pe.__c&&pe.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(r){pe.__e(r,t.__v)}}))}function Be(e,t,r){try{if("function"==typeof e){var n="function"==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(i){pe.__e(i,r)}}function Qe(e,t,r){var n,i;if(pe.unmount&&pe.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Be(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(a){pe.__e(a,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Qe(n[i],t,r||"function"!=typeof e.type);r||Ge(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Ke(e,t,r){return this.constructor(e,r)}function Ve(e,t,r){var n,i,a,o;pe.__&&pe.__(e,t),i=(n="function"==typeof r)?null:r&&r.__k||t.__k,a=[],o=[],je(t,e=(!n&&r||t).__k=Pe(Me,null,[e]),i||ke,ke,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?de.call(t.childNodes):null,a,!n&&r?r:i?i.__e:t.firstChild,n,o),ze(a,e,o)}function Xe(e,t){Ve(e,t,Xe)}function Ye(e,t,r){var n,i,a,o,s=Ae({},e.props);for(a in e.type&&e.type.defaultProps&&(o=e.type.defaultProps),t)"key"==a?n=t[a]:"ref"==a?i=t[a]:s[a]=void 0===t[a]&&void 0!==o?o[a]:t[a];return arguments.length>2&&(s.children=arguments.length>3?de.call(arguments,2):r),Oe(e.type,s,n||e.key,i||e.ref,null)}function Ze(e,t){var r={__c:t="__cC"+be++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t]=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,Ie(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 r.Provider.__=r.Consumer.contextType=r}function Je(){return(Je=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}).apply(this,arguments)}de=xe.slice,pe={__e:function(e,t,r,n){for(var i,a,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((a=i.constructor)&&null!=a.getDerivedStateFromError&&(i.setState(a.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,n||{}),o=i.__d),o)return i.__E=i}catch(s){e=s}throw e}},he=0,Ee.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ae({},this.state),"function"==typeof e&&(e=e(Ae({},r),this.props)),e&&Ae(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),Ie(this))},Ee.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ie(this))},Ee.prototype.render=Me,fe=[],ve="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,me=function(e,t){return e.__v.__b-t.__v.__b},Fe.__r=0,ge=0,ye=qe(!1),we=qe(!0),be=0;var et=["context","children"];function tt(e){return this.getChildContext=function(){return e.context},Ye(e.children,function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)t.indexOf(r=a[n])>=0||(i[r]=e[r]);return i}(e,et))}function rt(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Pe(tt,Je({},this._props,{context:e.detail.context}),function e(t,r){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var n=[],i={},a=0,o=t.attributes,s=t.childNodes;for(a=o.length;a--;)"slot"!==o[a].name&&(i[o[a].name]=o[a].value,i[nt(o[a].name)]=o[a].value);for(a=s.length;a--;){var l=e(s[a],null),c=s[a].slot;c?i[c]=Pe(ot,{name:c},l):n[a]=l}var u=r?Pe(ot,null,n):n;return Pe(r||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Xe:Ve)(this._vdom,this._root)}function nt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function it(e,t,r){if(this._vdom){var n={};n[e]=r=null==r?void 0:r,n[nt(e)]=r,this._vdom=Ye(this._vdom,n),Ve(this._vdom,this._root)}}function at(){Ve(this._vdom=null,this._root)}function ot(e,t){var r=this;return Pe("slot",Je({},e,{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)}}))}var st,lt,ct,ut,dt=0,pt=[],ht=pe,ft=ht.__b,_t=ht.__r,vt=ht.diffed,mt=ht.__c,gt=ht.unmount,yt=ht.__;function wt(e,t){ht.__h&&ht.__h(lt,e,dt||t),dt=0;var r=lt.__H||(lt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function bt(e){return dt=1,kt(Dt,e)}function kt(e,t,r){var n=wt(st++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Dt(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=lt,!lt.u)){var i=function(e,t,r){if(!n.__c.__H)return!0;var i=n.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!a||a.call(this,e,t,r);var o=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}})),!(!o&&n.__c.props===e)&&(!a||a.call(this,e,t,r))};lt.u=!0;var a=lt.shouldComponentUpdate,o=lt.componentWillUpdate;lt.componentWillUpdate=function(e,t,r){if(this.__e){var n=a;a=void 0,i(e,t,r),a=n}o&&o.call(this,e,t,r)},lt.shouldComponentUpdate=i}return n.__N||n.__}function xt(e,t){var r=wt(st++,3);!ht.__s&&Wt(r.__H,t)&&(r.__=e,r.i=t,lt.__H.__h.push(r))}function St(e,t){var r=wt(st++,4);!ht.__s&&Wt(r.__H,t)&&(r.__=e,r.i=t,lt.__h.push(r))}function Ct(e){return dt=5,Gt((function(){return{current:e}}),[])}function At(e,t,r){dt=6,St((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==r?r:r.concat(e))}function Gt(e,t){var r=wt(st++,7);return Wt(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Pt(e,t){return dt=8,Gt((function(){return e}),t)}function Ot(e){var t=lt.context[e.__c],r=wt(st++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(lt)),t.props.value):e.__}function Rt(e,t){ht.useDebugValue&&ht.useDebugValue(t?t(e):e)}function Mt(){var e=wt(st++,11);if(!e.__){for(var t=lt.__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 Et(){for(var e;e=pt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(It),e.__H.__h.forEach(Ft),e.__H.__h=[]}catch(t){e.__H.__h=[],ht.__e(t,e.__v)}}ht.__b=function(e){lt=null,ft&&ft(e)},ht.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yt&&yt(e,t)},ht.__r=function(e){_t&&_t(e),st=0;var t=(lt=e.__c).__H;t&&(ct===lt?(t.__h=[],lt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(It),t.__h.forEach(Ft),t.__h=[],st=0)),ct=lt},ht.diffed=function(e){vt&&vt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pt.push(t)&&ut===ht.requestAnimationFrame||((ut=ht.requestAnimationFrame)||Lt)(Et)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),ct=lt=null},ht.__c=function(e,t){t.some((function(e){try{e.__h.forEach(It),e.__h=e.__h.filter((function(e){return!e.__||Ft(e)}))}catch(r){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ht.__e(r,e.__v)}})),mt&&mt(e,t)},ht.unmount=function(e){gt&&gt(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((function(e){try{It(e)}catch(r){t=r}})),r.__H=void 0,t&&ht.__e(t,r.__v))};var Tt="function"==typeof requestAnimationFrame;function Lt(e){var t,r=function(){clearTimeout(n),Tt&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Tt&&(t=requestAnimationFrame(r))}function It(e){var t=lt,r=e.__c;"function"==typeof r&&(e.__c=void 0,r()),lt=t}function Ft(e){var t=lt;e.__c=e.__(),lt=t}function Wt(e,t){return!e||e.length!==t.length||t.some((function(t,r){return t!==e[r]}))}function Dt(e,t){return"function"==typeof t?t(e):t}class Ut extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,Ut.prototype)}get response(){return this._response}}const $t=async(e,t,r,n,i)=>{const a=await fetch(e,{method:r,body:n?JSON.stringify(n):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.643",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!a.ok)throw new Ut(`[API Error] Status: ${a.statusText}`,a);return i?{}:await a.json()};let Nt;function Ht(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 qt(e,t){this.props=e,this.context=t}function jt(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:Ht(this.props,e)}function n(t){return this.shouldComponentUpdate=r,Pe(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(qt.prototype=new Ee).isPureReactComponent=!0,qt.prototype.shouldComponentUpdate=function(e,t){return Ht(this.props,e)||Ht(this.state,t)};var zt=pe.__b;pe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),zt&&zt(e)};var Bt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Qt(e){function t(t){if(!("ref"in t))return e(t,null);var r=t.ref;delete t.ref;var n=e(t,r);return t.ref=r,n}return t.$$typeof=Bt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Kt=function(e,t){return null==e?null:Ue(Ue(e).map(t))},Vt={map:Kt,forEach:Kt,count:function(e){return e?Ue(e).length:0},only:function(e){var t=Ue(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:Ue},Xt=pe.__e;pe.__e=function(e,t,r,n){if(e.then)for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t);Xt(e,t,r,n)};var Yt=pe.unmount;function Zt(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=function(e,t){for(var r in t)e[r]=t[r];return e}({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Zt(e,t,r)}))),e}function Jt(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Jt(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 er(){this.__u=0,this.t=null,this.__b=null}function tr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function rr(e){var t,r,n;function i(i){if(t||(t=e()).then((function(e){r=e.default||e}),(function(e){n=e})),n)throw n;if(!r)throw t;return Pe(r,i)}return i.displayName="Lazy",i.__f=!0,i}function nr(){this.u=null,this.o=null}pe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Yt&&Yt(e)},(er.prototype=new Ee).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=tr(n.__v),a=!1,o=function(){a||(a=!0,r.__R=null,i?i(s):s())};r.__R=o;var s=function(){if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=Jt(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.t.pop();)t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(o,o)},er.prototype.componentWillUnmount=function(){this.t=[]},er.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]=Zt(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Pe(Me,null,e.fallback);return i&&(i.__u&=-33),[Pe(Me,null,t.__a?null:e.children),i]};var ir=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function ar(e){return this.getChildContext=function(){return e.context},e.children}function or(e){var t=this,r=e.i;t.componentWillUnmount=function(){Ve(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,r){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Ve(Pe(ar,{context:t.context},e.__v),t.l)}function sr(e,t){var r=Pe(or,{__v:e,i:t});return r.containerInfo=t,r}(nr.prototype=new Ee).__a=function(e){var t=this,r=tr(t.__v),n=t.o.get(e);return n[0]++,function(i){var a=function(){t.props.revealOrder?(n.push(i),ir(t,e,n)):i()};r?r(a):a()}},nr.prototype.render=function(e){this.u=null,this.o=new Map;var t=Ue(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},nr.prototype.componentDidUpdate=nr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){ir(e,r,t)}))};var lr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,cr=/^(?: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]/,ur=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,dr=/[A-Z0-9]/g,pr="undefined"!=typeof document,hr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function fr(e,t,r){return null==t.__k&&(t.textContent=""),Ve(e,t),"function"==typeof r&&r(),e?e.__c:null}function _r(e,t,r){return Xe(e,t),"function"==typeof r&&r(),e?e.__c:null}Ee.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Ee.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var vr=pe.event;function mr(){}function gr(){return this.cancelBubble}function yr(){return this.defaultPrevented}pe.event=function(e){return vr&&(e=vr(e)),e.persist=mr,e.isPropagationStopped=gr,e.isDefaultPrevented=yr,e.nativeEvent=e};var wr,br={enumerable:!1,configurable:!0,get:function(){return this.class}},kr=pe.vnode;pe.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,r=e.type,n={},i=-1===r.indexOf("-");for(var a in t){var o=t[a];if(!("value"===a&&"defaultValue"in t&&null==o||pr&&"children"===a&&"noscript"===r||"class"===a||"className"===a)){var s=a.toLowerCase();"defaultValue"===a&&"value"in t&&null==t.value?a="value":"download"===a&&!0===o?o="":"translate"===s&&"no"===o?o=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?a="ondblclick":"onchange"!==s||"input"!==r&&"textarea"!==r||hr(t.type)?"onfocus"===s?a="onfocusin":"onblur"===s?a="onfocusout":ur.test(a)&&(a=s):s=a="oninput":i&&cr.test(a)?a=a.replace(dr,"-$&").toLowerCase():null===o&&(o=void 0),"oninput"===s&&n[a=s]&&(a="oninputCapture"),n[a]=o}}"select"==r&&n.multiple&&Array.isArray(n.value)&&(n.value=Ue(t.children).forEach((function(e){e.props.selected=-1!=n.value.indexOf(e.props.value)}))),"select"==r&&null!=n.defaultValue&&(n.value=Ue(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",br)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=lr,kr&&kr(e)};var xr=pe.__r;pe.__r=function(e){xr&&xr(e),wr=e.__c};var Sr=pe.diffed;pe.diffed=function(e){Sr&&Sr(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),wr=null};var Cr={ReactCurrentDispatcher:{current:{readContext:function(e){return wr.__n[e.__c].props.value},useCallback:Pt,useContext:Ot,useDebugValue:Rt,useDeferredValue:Wr,useEffect:xt,useId:Mt,useImperativeHandle:At,useInsertionEffect:Ur,useLayoutEffect:St,useMemo:Gt,useReducer:kt,useRef:Ct,useState:bt,useSyncExternalStore:Nr,useTransition:Dr}}};function Ar(e){return Pe.bind(null,e)}function Gr(e){return!!e&&e.$$typeof===lr}function Pr(e){return Gr(e)&&e.type===Me}function Or(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Rr(e){return Gr(e)?Ye.apply(null,arguments):e}function Mr(e){return!!e.__k&&(Ve(null,e),!0)}function Er(e){return e&&(e.base||1===e.nodeType&&e)||null}var Tr=function(e,t){return e(t)},Lr=function(e,t){return e(t)},Ir=Me;function Fr(e){e()}function Wr(e){return e}function Dr(){return[!1,Fr]}var Ur=St,$r=Gr;function Nr(e,t){var r=t(),n=bt({h:{__:r,v:t}}),i=n[0].h,a=n[1];return St((function(){i.__=r,i.v=t,Hr(i)&&a({h:i})}),[e,r,t]),xt((function(){return Hr(i)&&a({h:i}),e((function(){Hr(i)&&a({h:i})}))}),[e]),r}function Hr(e){var t,r,n=e.v,i=e.__;try{var a=n();return!((t=i)===(r=a)&&(0!==t||1/t==1/r)||t!=t&&r!=r)}catch(o){return!0}}var qr={useState:bt,useId:Mt,useReducer:kt,useEffect:xt,useLayoutEffect:St,useInsertionEffect:Ur,useTransition:Dr,useDeferredValue:Wr,useSyncExternalStore:Nr,startTransition:Fr,useRef:Ct,useImperativeHandle:At,useMemo:Gt,useCallback:Pt,useContext:Ot,useDebugValue:Rt,version:"18.3.1",Children:Vt,render:fr,hydrate:_r,unmountComponentAtNode:Mr,createPortal:sr,createElement:Pe,createContext:Ze,createFactory:Ar,cloneElement:Rr,createRef:Re,Fragment:Me,isValidElement:Gr,isElement:$r,isFragment:Pr,isMemo:Or,findDOMNode:Er,Component:Ee,PureComponent:qt,memo:jt,forwardRef:Qt,flushSync:Lr,unstable_batchedUpdates:Tr,StrictMode:Ir,Suspense:er,SuspenseList:nr,lazy:rr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cr};const jr=Object.freeze(Object.defineProperty({__proto__:null,Children:Vt,Component:Ee,Fragment:Me,PureComponent:qt,StrictMode:Ir,Suspense:er,SuspenseList:nr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cr,cloneElement:Rr,createContext:Ze,createElement:Pe,createFactory:Ar,createPortal:sr,createRef:Re,default:qr,findDOMNode:Er,flushSync:Lr,forwardRef:Qt,hydrate:_r,isElement:$r,isFragment:Pr,isMemo:Or,isValidElement:Gr,lazy:rr,memo:jt,render:fr,startTransition:Fr,unmountComponentAtNode:Mr,unstable_batchedUpdates:Tr,useCallback:Pt,useContext:Ot,useDebugValue:Rt,useDeferredValue:Wr,useEffect:xt,useErrorBoundary:function(e){var t=wt(st++,10),r=bt();return t.__=e,lt.componentDidCatch||(lt.componentDidCatch=function(e,n){t.__&&t.__(e,n),r[1](e)}),[r[0],function(){r[1](void 0)}]},useId:Mt,useImperativeHandle:At,useInsertionEffect:Ur,useLayoutEffect:St,useMemo:Gt,useReducer:kt,useRef:Ct,useState:bt,useSyncExternalStore:Nr,useTransition:Dr,version:"18.3.1"},Symbol.toStringTag,{value:"Module"})),zr="/salary-packaging/admin/v1.0",Br=()=>{const e=Ot(Nt);return{checkProfileSearchAuthorization:Gt((()=>(e=>async()=>{const t=new URL(`${e.backend.url}${zr}/accounts/${e.account.accountId}/auth`);return $t(t,e.backend.accessToken,"GET")})(e)),[e]),searchProfilesForAccount:Gt((()=>(e=>async t=>{const r=new URL(`${e.backend.url}${zr}/accounts/${e.account.accountId}/profile-search?search=${t}`);return $t(r,e.backend.accessToken,"GET")})(e)),[e]),ingestClient:Gt((()=>(e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const r=new Date;r.setUTCDate((new Date).getUTCDate()+2);const n=new URL(`${e.backend.url}${zr}/ingest/clients`);return $t(n,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]},!0)})(e)),[e]),linkedProfilesForAccount:Gt((()=>(e=>async()=>{const t=new URL(`${e.backend.url}${zr}/accounts/${e.account.accountId}/profiles`);return $t(t,e.backend.accessToken,"GET")})(e)),[e])}};class Qr extends Error{}function Kr(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)}}Qr.prototype.name="InvalidTokenError";class Vr{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Qr("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 Qr(`Invalid token specified: missing part #${r+1}`);let i;try{i=Kr(n)}catch(a){throw new Qr(`Invalid token specified: invalid base64 for part #${r+1} (${a.message})`)}try{return JSON.parse(i)}catch(a){throw new Qr(`Invalid token specified: invalid json for part #${r+1} (${a.message})`)}}(e):{roles:[]};return new Vr(t.roles)}}function Xr(){return Xr=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},Xr.apply(null,arguments)}function Yr(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var Zr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jr=Yr((function(e){return Zr.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var en=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(n){}}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}(),tn="-ms-",rn="-moz-",nn="-webkit-",an="comm",on="rule",sn="decl",ln="@keyframes",cn=Math.abs,un=String.fromCharCode,dn=Object.assign;function pn(e){return e.trim()}function hn(e,t,r){return e.replace(t,r)}function fn(e,t){return e.indexOf(t)}function _n(e,t){return 0|e.charCodeAt(t)}function vn(e,t,r){return e.slice(t,r)}function mn(e){return e.length}function gn(e){return e.length}function yn(e,t){return t.push(e),e}var wn=1,bn=1,kn=0,xn=0,Sn=0,Cn="";function An(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:wn,column:bn,length:o,return:""}}function Gn(e,t){return dn(An("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pn(){return Sn=xn<kn?_n(Cn,xn++):0,bn++,10===Sn&&(bn=1,wn++),Sn}function On(){return _n(Cn,xn)}function Rn(){return xn}function Mn(e,t){return vn(Cn,e,t)}function En(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 Tn(e){return wn=bn=1,kn=mn(Cn=e),xn=0,[]}function Ln(e){return Cn="",e}function In(e){return pn(Mn(xn-1,Dn(91===e?e+2:40===e?e+1:e)))}function Fn(e){for(;(Sn=On())&&Sn<33;)Pn();return En(e)>2||En(Sn)>3?"":" "}function Wn(e,t){for(;--t&&Pn()&&!(Sn<48||Sn>102||Sn>57&&Sn<65||Sn>70&&Sn<97););return Mn(e,Rn()+(t<6&&32==On()&&32==Pn()))}function Dn(e){for(;Pn();)switch(Sn){case e:return xn;case 34:case 39:34!==e&&39!==e&&Dn(Sn);break;case 40:41===e&&Dn(e);break;case 92:Pn()}return xn}function Un(e,t){for(;Pn()&&e+Sn!==57&&(e+Sn!==84||47!==On()););return"/*"+Mn(t,xn-1)+"*"+un(47===e?e:Pn())}function $n(e){for(;!En(On());)Pn();return Mn(e,xn)}function Nn(e){return Ln(Hn("",null,null,null,[""],e=Tn(e),0,[0],e))}function Hn(e,t,r,n,i,a,o,s,l){for(var c=0,u=0,d=o,p=0,h=0,f=0,_=1,v=1,m=1,g=0,y="",w=i,b=a,k=n,x=y;v;)switch(f=g,g=Pn()){case 40:if(108!=f&&58==_n(x,d-1)){-1!=fn(x+=hn(In(g),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:x+=In(g);break;case 9:case 10:case 13:case 32:x+=Fn(f);break;case 92:x+=Wn(Rn()-1,7);continue;case 47:switch(On()){case 42:case 47:yn(jn(Un(Pn(),Rn()),t,r),l);break;default:x+="/"}break;case 123*_:s[c++]=mn(x)*m;case 125*_:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:-1==m&&(x=hn(x,/\f/g,"")),h>0&&mn(x)-d&&yn(h>32?zn(x+";",n,r,d-1):zn(hn(x," ","")+";",n,r,d-2),l);break;case 59:x+=";";default:if(yn(k=qn(x,t,r,c,u,i,s,y,w=[],b=[],d),a),123===g)if(0===u)Hn(x,t,k,k,w,a,d,s,b);else switch(99===p&&110===_n(x,3)?100:p){case 100:case 108:case 109:case 115:Hn(e,k,k,n&&yn(qn(e,k,k,0,0,i,s,y,i,w=[],d),b),i,b,d,s,n?w:b);break;default:Hn(x,k,k,k,[""],b,0,s,b)}}c=u=h=0,_=m=1,y=x="",d=o;break;case 58:d=1+mn(x),h=f;default:if(_<1)if(123==g)--_;else if(125==g&&0==_++&&125==(Sn=xn>0?_n(Cn,--xn):0,bn--,10===Sn&&(bn=1,wn--),Sn))continue;switch(x+=un(g),g*_){case 38:m=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(mn(x)-1)*m,m=1;break;case 64:45===On()&&(x+=In(Pn())),p=On(),u=d=mn(y=x+=$n(Rn())),g++;break;case 45:45===f&&2==mn(x)&&(_=0)}}return a}function qn(e,t,r,n,i,a,o,s,l,c,u){for(var d=i-1,p=0===i?a:[""],h=gn(p),f=0,_=0,v=0;f<n;++f)for(var m=0,g=vn(e,d+1,d=cn(_=o[f])),y=e;m<h;++m)(y=pn(_>0?p[m]+" "+g:hn(g,/&\f/g,p[m])))&&(l[v++]=y);return An(e,t,r,0===i?on:s,l,c,u)}function jn(e,t,r){return An(e,t,r,an,un(Sn),vn(e,2,-2),0)}function zn(e,t,r,n){return An(e,t,r,sn,vn(e,0,n),vn(e,n+1,-1),n)}function Bn(e,t){for(var r="",n=gn(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Qn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case sn:return e.return=e.return||e.value;case an:return"";case ln:return e.return=e.value+"{"+Bn(e.children,n)+"}";case on:e.value=e.props.join(",")}return mn(r=Bn(e.children,n))?e.return=e.value+"{"+r+"}":""}var Kn=function(e,t,r){for(var n=0,i=0;n=i,i=On(),38===n&&12===i&&(t[r]=1),!En(i);)Pn();return Mn(e,xn)},Vn=function(e,t){return Ln(function(e,t){var r=-1,n=44;do{switch(En(n)){case 0:38===n&&12===On()&&(t[r]=1),e[r]+=Kn(xn-1,t,r);break;case 2:e[r]+=In(n);break;case 4:if(44===n){e[++r]=58===On()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=un(n)}}while(n=Pn());return e}(Tn(e),t))},Xn=new WeakMap,Yn=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)||Xn.get(r))&&!n){Xn.set(e,!0);for(var i=[],a=Vn(t,i),o=r.props,s=0,l=0;s<a.length;s++)for(var c=0;c<o.length;c++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[c]):o[c]+" "+a[s]}}},Zn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Jn(e,t){switch(function(e,t){return 45^_n(e,0)?(((t<<2^_n(e,0))<<2^_n(e,1))<<2^_n(e,2))<<2^_n(e,3):0}(e,t)){case 5103:return nn+"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 nn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nn+e+rn+e+tn+e+e;case 6828:case 4268:return nn+e+tn+e+e;case 6165:return nn+e+tn+"flex-"+e+e;case 5187:return nn+e+hn(e,/(\w+).+(:[^]+)/,nn+"box-$1$2"+tn+"flex-$1$2")+e;case 5443:return nn+e+tn+"flex-item-"+hn(e,/flex-|-self/,"")+e;case 4675:return nn+e+tn+"flex-line-pack"+hn(e,/align-content|flex-|-self/,"")+e;case 5548:return nn+e+tn+hn(e,"shrink","negative")+e;case 5292:return nn+e+tn+hn(e,"basis","preferred-size")+e;case 6060:return nn+"box-"+hn(e,"-grow","")+nn+e+tn+hn(e,"grow","positive")+e;case 4554:return nn+hn(e,/([^-])(transform)/g,"$1"+nn+"$2")+e;case 6187:return hn(hn(hn(e,/(zoom-|grab)/,nn+"$1"),/(image-set)/,nn+"$1"),e,"")+e;case 5495:case 3959:return hn(e,/(image-set\([^]*)/,nn+"$1$`$1");case 4968:return hn(hn(e,/(.+:)(flex-)?(.*)/,nn+"box-pack:$3"+tn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nn+e+e;case 4095:case 3583:case 4068:case 2532:return hn(e,/(.+)-inline(.+)/,nn+"$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(mn(e)-1-t>6)switch(_n(e,t+1)){case 109:if(45!==_n(e,t+4))break;case 102:return hn(e,/(.+:)(.+)-([^]+)/,"$1"+nn+"$2-$3$1"+rn+(108==_n(e,t+3)?"$3":"$2-$3"))+e;case 115:return~fn(e,"stretch")?Jn(hn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==_n(e,t+1))break;case 6444:switch(_n(e,mn(e)-3-(~fn(e,"!important")&&10))){case 107:return hn(e,":",":"+nn)+e;case 101:return hn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+nn+(45===_n(e,14)?"inline-":"")+"box$3$1"+nn+"$2$3$1"+tn+"$2box$3")+e}break;case 5936:switch(_n(e,t+11)){case 114:return nn+e+tn+hn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return nn+e+tn+hn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return nn+e+tn+hn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return nn+e+tn+e+e}return e}var ei=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case sn:e.return=Jn(e.value,e.length);break;case ln:return Bn([Gn(e,{value:hn(e.value,"@","@"+nn)})],n);case on: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 Bn([Gn(e,{props:[hn(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Bn([Gn(e,{props:[hn(t,/:(plac\w+)/,":"+nn+"input-$1")]}),Gn(e,{props:[hn(t,/:(plac\w+)/,":-moz-$1")]}),Gn(e,{props:[hn(t,/:(plac\w+)/,tn+"input-$1")]})],n)}return""}))}}],ti=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,a=e.stylisPlugins||ei,o={},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++)o[t[r]]=!0;s.push(e)}));var l,c,u,d,p=[Qn,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[Yn,Zn].concat(a,p),u=gn(c),function(e,t,r,n){for(var i="",a=0;a<u;a++)i+=c[a](e,t,r,n)||"";return i});i=function(e,t,r,n){l=r,Bn(Nn(e?e+"{"+t.styles+"}":t.styles),h),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new en({key:t,container:n,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:i};return f.sheet.hydrate(s),f},ri={exports:{}},ni={},ii="function"==typeof Symbol&&Symbol.for,ai=ii?Symbol.for("react.element"):60103,oi=ii?Symbol.for("react.portal"):60106,si=ii?Symbol.for("react.fragment"):60107,li=ii?Symbol.for("react.strict_mode"):60108,ci=ii?Symbol.for("react.profiler"):60114,ui=ii?Symbol.for("react.provider"):60109,di=ii?Symbol.for("react.context"):60110,pi=ii?Symbol.for("react.async_mode"):60111,hi=ii?Symbol.for("react.concurrent_mode"):60111,fi=ii?Symbol.for("react.forward_ref"):60112,_i=ii?Symbol.for("react.suspense"):60113,vi=ii?Symbol.for("react.suspense_list"):60120,mi=ii?Symbol.for("react.memo"):60115,gi=ii?Symbol.for("react.lazy"):60116,yi=ii?Symbol.for("react.block"):60121,wi=ii?Symbol.for("react.fundamental"):60117,bi=ii?Symbol.for("react.responder"):60118,ki=ii?Symbol.for("react.scope"):60119;function xi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ai:switch(e=e.type){case pi:case hi:case si:case ci:case li:case _i:return e;default:switch(e=e&&e.$$typeof){case di:case fi:case gi:case mi:case ui:return e;default:return t}}case oi:return t}}}function Si(e){return xi(e)===hi}ni.AsyncMode=pi,ni.ConcurrentMode=hi,ni.ContextConsumer=di,ni.ContextProvider=ui,ni.Element=ai,ni.ForwardRef=fi,ni.Fragment=si,ni.Lazy=gi,ni.Memo=mi,ni.Portal=oi,ni.Profiler=ci,ni.StrictMode=li,ni.Suspense=_i,ni.isAsyncMode=function(e){return Si(e)||xi(e)===pi},ni.isConcurrentMode=Si,ni.isContextConsumer=function(e){return xi(e)===di},ni.isContextProvider=function(e){return xi(e)===ui},ni.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ai},ni.isForwardRef=function(e){return xi(e)===fi},ni.isFragment=function(e){return xi(e)===si},ni.isLazy=function(e){return xi(e)===gi},ni.isMemo=function(e){return xi(e)===mi},ni.isPortal=function(e){return xi(e)===oi},ni.isProfiler=function(e){return xi(e)===ci},ni.isStrictMode=function(e){return xi(e)===li},ni.isSuspense=function(e){return xi(e)===_i},ni.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===si||e===hi||e===ci||e===li||e===_i||e===vi||"object"==typeof e&&null!==e&&(e.$$typeof===gi||e.$$typeof===mi||e.$$typeof===ui||e.$$typeof===di||e.$$typeof===fi||e.$$typeof===wi||e.$$typeof===bi||e.$$typeof===ki||e.$$typeof===yi)},ni.typeOf=xi,ri.exports=ni;var Ci=ri.exports,Ai={};Ai[Ci.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ai[Ci.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Gi(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var Pi=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Oi=function(e,t,r){Pi(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)}};var Ri={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},Mi=/[A-Z]|^ms/g,Ei=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ti=function(e){return 45===e.charCodeAt(1)},Li=function(e){return null!=e&&"boolean"!=typeof e},Ii=Yr((function(e){return Ti(e)?e:e.replace(Mi,"-$&").toLowerCase()})),Fi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ei,(function(e,t,r){return Di={name:t,styles:r,next:Di},t}))}return 1===Ri[e]||Ti(e)||"number"!=typeof t||0===t?t:t+"px"};function Wi(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 Di={name:i.name,styles:i.styles,next:Di},i.name;var a=r;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)Di={name:o.name,styles:o.styles,next:Di},o=o.next;return a.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Wi(e,t,r[i])+";";else for(var a in r){var o=r[a];if("object"!=typeof o){var s=o;null!=t&&void 0!==t[s]?n+=a+"{"+t[s]+"}":Li(s)&&(n+=Ii(a)+":"+Fi(a,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=Wi(e,t,o);switch(a){case"animation":case"animationName":n+=Ii(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<o.length;c++)Li(o[c])&&(n+=Ii(a)+":"+Fi(a,o[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=Di,l=r(e);return Di=s,Wi(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Di,Ui=/label:\s*([^\s;{]+)\s*(;|$)/g;function $i(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="";Di=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,i+=Wi(r,t,a)):i+=a[0];for(var o=1;o<e.length;o++){if(i+=Wi(r,t,e[o]),n)i+=a[o]}Ui.lastIndex=0;for(var s,l="";null!==(s=Ui.exec(i));)l+="-"+s[1];var c=function(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)}(i)+l;return{name:c,styles:i,next:Di}}var Ni=!!jr.useInsertionEffect&&jr.useInsertionEffect,Hi=Ni||function(e){return e()},qi=Ni||St,ji=Ze("undefined"!=typeof HTMLElement?ti({key:"css"}):null),zi=ji.Provider,Bi=function(e){return Qt((function(t,r){var n=Ot(ji);return e(t,n,r)}))},Qi=Ze({}),Ki={}.hasOwnProperty,Vi="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Xi=function(e,t){var r={};for(var n in t)Ki.call(t,n)&&(r[n]=t[n]);return r[Vi]=e,r},Yi=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Pi(t,r,n),Hi((function(){return Oi(t,r,n)})),null},Zi=Bi((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[Vi],a=[n],o="";"string"==typeof e.className?o=Gi(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var s=$i(a,void 0,Ot(Qi));o+=t.key+"-"+s.name;var l={};for(var c in e)Ki.call(e,c)&&"css"!==c&&c!==Vi&&(l[c]=e[c]);return l.className=o,r&&(l.ref=r),Pe(Me,null,Pe(Yi,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Pe(i,l))})),Ji=Bi((function(e,t){var r=$i([e.styles],void 0,Ot(Qi)),n=Ct();return qi((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}),a=!1,o=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==o&&(a=!0,o.setAttribute("data-emotion",e),i.hydrate([o])),n.current=[i,a],function(){i.flush()}}),[t]),qi((function(){var e=n.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Oi(t,r.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",r,i,!1)}}),[t,r.name]),null}));function ea(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return $i(t)}var ta=Jr,ra=function(e){return"theme"!==e},na=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?ta:ra},ia=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},aa=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Pi(t,r,n),Hi((function(){return Oi(t,r,n)})),null},oa=function e(t,r){var n,i,a=t.__emotion_real===t,o=a&&t.__emotion_base||t;void 0!==r&&(n=r.label,i=r.target);var s=ia(t,r,a),l=s||na(o),c=!l("as");return function(){var u=arguments,d=a&&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{d.push(u[0][0]);for(var p=u.length,h=1;h<p;h++)d.push(u[h],u[0][h])}var f=Bi((function(e,t,r){var n=c&&e.as||o,a="",u=[],p=e;if(null==e.theme){for(var h in p={},e)p[h]=e[h];p.theme=Ot(Qi)}"string"==typeof e.className?a=Gi(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var f=$i(d.concat(u),t.registered,p);a+=t.key+"-"+f.name,void 0!==i&&(a+=" "+i);var _=c&&void 0===s?na(n):l,v={};for(var m in e)c&&"as"===m||_(m)&&(v[m]=e[m]);return v.className=a,r&&(v.ref=r),Pe(Me,null,Pe(aa,{cache:t,serialized:f,isStringTag:"string"==typeof n}),Pe(n,v))}));return f.displayName=void 0!==n?n:"Styled("+("string"==typeof o?o:o.displayName||o.name||"Component")+")",f.defaultProps=t.defaultProps,f.__emotion_real=f,f.__emotion_base=o,f.__emotion_styles=d,f.__emotion_forwardProp=s,Object.defineProperty(f,"toString",{value:function(){return"."+i}}),f.withComponent=function(t,n){return e(t,Xr({},r,n,{shouldForwardProp:ia(f,n,!0)})).apply(void 0,d)},f}}.bind();["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){oa[e]=oa(e)}));const sa=oa.button({marginLeft:"0.75rem",display:"inline-flex",justifyContent:"center",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"transparent","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(67 56 202 / var(--tw-bg-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px"},":disabled":{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))"}}),la=oa.div({height:"1.25rem",width:"1.25rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"});var ca=0;function ua(e,t,r,n,i,a){t||(t={});var o,s,l=t;"ref"in t&&(o=t.ref,delete t.ref);var c={type:e,props:l,key:r,ref:o,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--ca,__i:-1,__u:0,__source:i,__self:a};if("function"==typeof e&&(o=e.defaultProps))for(s in o)void 0===l[s]&&(l[s]=o[s]);return pe.vnode&&pe.vnode(c),c}var da=Me;function pa(e,t,r){return Ki.call(t,"css")?ua(Zi,Xi(e,t),r):ua(e,t,r)}function ha(e,t,r){return Ki.call(t,"css")?ua(Zi,Xi(e,t),r):ua(e,t,r)}const fa=e=>{const[t,r]=bt(!1);((e,t)=>{const r=Ct();xt((()=>{r.current=e}),[e]),xt((()=>{if(t){const e=setInterval(((...e)=>{var t;return null==(t=null==r?void 0:r.current)?void 0:t.call(r,...e)}),t);return()=>clearInterval(e)}}),[t])})((async()=>{await e.onCheck()&&r(!1)}),t?e.checkInterval:void 0),xt((()=>{if(t){const n=setTimeout((()=>{t&&e.onTimeout(),r(!1)}),e.timeout);return()=>clearTimeout(n)}}));return pa(sa,{onClick:async()=>{r(!0),await e.onClick()||r(!1)},disabled:t,children:t?ha(da,{children:[pa(la,{}),pa("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):pa(da,{children:e.text})})},_a=oa.a({cursor:"pointer",whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isCurrentTab:e})=>e?{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700")),va=({tabs:e,currentTabId:t,onChange:r})=>{const n=Gt((()=>e.find((e=>e.id==t))),[e,t]);return ha("div",{children:[ha("div",{css:{"@media (min-width: 640px)":{display:"none"}},children:[pa("label",{htmlFor:"tabs",css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Select a tab"}),pa("select",{id:"tabs",name:"tabs",defaultValue:null==n?void 0:n.id,onChange:e=>r(e.currentTarget.value),css:{display:"block",width:"100%",borderRadius:"0.375rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",fontSize:"1rem",lineHeight:"1.5rem",":focus":{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:e.map((e=>pa("option",{value:e.id,children:e.displayName},e.id)))})]}),pa("div",{css:{display:"none","@media (min-width: 640px)":{display:"block"}},children:pa("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:pa("nav",{"aria-label":"Tabs",css:{marginBottom:"-1px",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)))"}},children:e.map((e=>{return pa(_a,{onClick:(t=e.id,()=>{r(t)}),"aria-current":e.id==(null==n?void 0:n.id)?"page":void 0,isCurrentTab:e.id==(null==n?void 0:n.id),children:e.displayName},e.id);var t}))})})})]})};function ma({title:e,titleId:t,...r},n){return Pe("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?Pe("title",{id:t},e):null,Pe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const ga=Qt(ma);function ya({title:e,titleId:t,...r},n){return Pe("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?Pe("title",{id:t},e):null,Pe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const wa=Qt(ya),ba=oa.td`
1
+ var __defProp=Object.defineProperty,__typeError=e=>{throw TypeError(e)},__defNormalProp=(e,t,n)=>t in e?__defProp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,__publicField=(e,t,n)=>__defNormalProp(e,"symbol"!=typeof t?t+"":t,n),__accessCheck=(e,t,n)=>t.has(e)||__typeError("Cannot "+n),__privateGet=(e,t,n)=>(__accessCheck(e,t,"read from private field"),n?n.call(e):t.get(e)),__privateAdd=(e,t,n)=>t.has(e)?__typeError("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),__privateSet=(e,t,n,r)=>(__accessCheck(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),__privateMethod=(e,t,n)=>(__accessCheck(e,t,"access private method"),n),__privateWrapper=(e,t,n,r)=>({set _(r){__privateSet(e,t,r,n)},get _(){return __privateGet(e,t,r)}});!function(){"use strict";var e,t,n,r,i,o,a,s,l,c,u,d,p,f,h,v,m,g,_,y,w,b,x,k,S,E,C,T,P,A,R,O,M,L,F,I,D,G,N,H,W,$,j,U,B,q,z,V,Q,K,Y,X,Z,J,ee,te,ne,re,ie,oe,ae,se,le,ce,ue,de,pe,fe,he,ve,me,ge,_e,ye,we,be,xe={},ke=[],Se=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ee=Array.isArray;function Ce(e,t){for(var n in t)e[n]=t[n];return e}function Te(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Pe(e,t,n){var r,i,o,a={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?de.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===a[o]&&(a[o]=e.defaultProps[o]);return Ae(e,a,r,i,null)}function Ae(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:null==i?++fe:i,__i:-1,__u:0};return null==i&&null!=pe.vnode&&pe.vnode(o),o}function Re(){return{current:null}}function Oe(e){return e.children}function Me(e,t){this.props=e,this.context=t}function Le(e,t){if(null==t)return e.__?Le(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?Le(e):null}function Fe(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return Fe(e)}}function Ie(e){(!e.__d&&(e.__d=!0)&&he.push(e)&&!De.__r++||ve!==pe.debounceRendering)&&((ve=pe.debounceRendering)||me)(De)}function De(){var e,t,n,r,i,o,a,s;for(he.sort(ge);e=he.shift();)e.__d&&(t=he.length,r=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=Ce({},i)).__v=i.__v+1,pe.vnode&&pe.vnode(r),Be(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,null==o?Le(i):o,!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,qe(a,r,s),r.__e!=o&&Fe(r)),he.length>t&&he.sort(ge));De.__r=0}function Ge(e,t,n,r,i,o,a,s,l,c,u){var d,p,f,h,v,m=r&&r.__k||ke,g=t.length;for(n.__d=l,function(e,t,n){var r,i,o,a,s,l=t.length,c=n.length,u=c,d=0;for(e.__k=[],r=0;r<l;r++)null!=(i=t[r])&&"boolean"!=typeof i&&"function"!=typeof i?(a=r+d,(i=e.__k[r]="string"==typeof i||"number"==typeof i||"bigint"==typeof i||i.constructor==String?Ae(null,i,null,null,null):Ee(i)?Ae(Oe,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Ae(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,-1!==(s=i.__i=We(i,n,a,u))&&(u--,(o=n[s])&&(o.__u|=131072)),null==o||null===o.__v?(-1==s&&d--,"function"!=typeof i.type&&(i.__u|=65536)):s!==a&&(s==a-1?d--:s==a+1?d++:(s>a?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(u)for(r=0;r<c;r++)null!=(o=n[r])&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=Le(o)),Ve(o,o))}(n,t,m),l=n.__d,d=0;d<g;d++)null!=(f=n.__k[d])&&(p=-1===f.__i?xe:m[f.__i]||xe,f.__i=d,Be(e,f,p,i,o,a,s,l,c,u),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&ze(p.ref,null,f),u.push(f.ref,f.__c||h,f)),null==v&&null!=h&&(v=h),65536&f.__u||p.__k===f.__k?l=Ne(f,l,e):"function"==typeof f.type&&void 0!==f.__d?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=v}function Ne(e,t,n){var r,i;if("function"==typeof e.type){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Ne(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Le(e)),n.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8===t.nodeType);return t}function He(e,t){return t=t||[],null==e||"boolean"==typeof e||(Ee(e)?e.some((function(e){He(e,t)})):t.push(e)),t}function We(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(null===l||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if(r>(null==l||131072&l.__u?0:1))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function $e(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Se.test(t)?n:n+"px"}function je(e,t,n,r,i){var o;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||$e(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||$e(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||"onFocusOut"===t||"onFocusIn"===t?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=_e,e.addEventListener(t,o?we:ye,o)):e.removeEventListener(t,o?we:ye,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(a){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function Ue(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t.t)t.t=_e++;else if(t.t<n.u)return;return n(pe.event?pe.event(t):t)}}}function Be(e,t,n,r,i,o,a,s,l,c){var u,d,p,f,h,v,m,g,_,y,w,b,x,k,S,E,C=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(u=pe.__b)&&u(t);e:if("function"==typeof C)try{if(g=t.props,_="prototype"in C&&C.prototype.render,y=(u=C.contextType)&&r[u.__c],w=u?y?y.props.value:u.__:r,n.__c?m=(d=t.__c=n.__c).__=d.__E:(_?t.__c=d=new C(g,w):(t.__c=d=new Me(g,w),d.constructor=C,d.render=Qe),y&&y.sub(d),d.props=g,d.state||(d.state={}),d.context=w,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),_&&null==d.__s&&(d.__s=d.state),_&&null!=C.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Ce({},d.__s)),Ce(d.__s,C.getDerivedStateFromProps(g,d.__s))),f=d.props,h=d.state,d.__v=t,p)_&&null==C.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),_&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(_&&null==C.getDerivedStateFromProps&&g!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(g,w),!d.__e&&(null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(g,d.__s,w)||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some((function(e){e&&(e.__=t)})),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(g,d.__s,w),_&&null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(f,h,v)}))}if(d.context=w,d.props=g,d.__P=e,d.__e=!1,x=pe.__r,k=0,_){for(d.state=d.__s,d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do{d.__d=!1,x&&x(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(r=Ce(Ce({},r),d.getChildContext())),_&&!p&&null!=d.getSnapshotBeforeUpdate&&(v=d.getSnapshotBeforeUpdate(f,h)),Ge(e,Ee(E=null!=u&&u.type===Oe&&null==u.key?u.props.children:u)?E:[E],t,n,r,i,o,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),m&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||null!=o){for(t.__u|=l?160:128;s&&8===s.nodeType&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;pe.__e(T,t,n)}else null==o&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,r,i,o,a,s,l){var c,u,d,p,f,h,v,m=n.props,g=t.props,_=t.type;if("svg"===_?i="http://www.w3.org/2000/svg":"math"===_?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!_&&(_?f.localName===_:3===f.nodeType)){e=f,o[c]=null;break}if(null==e){if(null===_)return document.createTextNode(g);e=document.createElementNS(i,_,g.is&&g),s&&(pe.__m&&pe.__m(t,o),s=!1),o=null}if(null===_)m===g||s&&e.data===g||(e.data=g);else{if(o=o&&de.call(e.childNodes),m=n.props||xe,!s&&null!=o)for(m={},c=0;c<e.attributes.length;c++)m[(f=e.attributes[c]).name]=f.value;for(c in m)if(f=m[c],"children"==c);else if("dangerouslySetInnerHTML"==c)d=f;else if(!(c in g)){if("value"==c&&"defaultValue"in g||"checked"==c&&"defaultChecked"in g)continue;je(e,c,null,f,i)}for(c in g)f=g[c],"children"==c?p=f:"dangerouslySetInnerHTML"==c?u=f:"value"==c?h=f:"checked"==c?v=f:s&&"function"!=typeof f||m[c]===f||je(e,c,f,m[c],i);if(u)s||d&&(u.__html===d.__html||u.__html===e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ge(e,Ee(p)?p:[p],t,n,r,"foreignObject"===_?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&Le(n,0),s,l),null!=o)for(c=o.length;c--;)Te(o[c]);s||(c="value","progress"===_&&null==h?e.removeAttribute("value"):void 0!==h&&(h!==e[c]||"progress"===_&&!h||"option"===_&&h!==m[c])&&je(e,c,h,m[c],i),c="checked",void 0!==v&&v!==e[c]&&je(e,c,v,m[c],i))}return e}(n.__e,t,n,r,i,o,a,l,c);(u=pe.diffed)&&u(t)}function qe(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ze(n[r],n[++r],n[++r]);pe.__c&&pe.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(n){pe.__e(n,t.__v)}}))}function ze(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(i){pe.__e(i,n)}}function Ve(e,t,n){var r,i;if(pe.unmount&&pe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ze(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){pe.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Ve(r[i],t,n||"function"!=typeof e.type);n||Te(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Qe(e,t,n){return this.constructor(e,n)}function Ke(e,t,n){var r,i,o,a;pe.__&&pe.__(e,t),i=(r="function"==typeof n)?null:n&&n.__k||t.__k,o=[],a=[],Be(t,e=(!r&&n||t).__k=Pe(Oe,null,[e]),i||xe,xe,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?de.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),qe(o,e,a)}function Ye(e,t){Ke(e,t,Ye)}function Xe(e,t,n){var r,i,o,a,s=Ce({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=void 0===t[o]&&void 0!==a?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?de.call(arguments,2):n),Ae(e.type,s,r||e.key,i||e.ref,null)}function Ze(e,t){var n={__c:t="__cC"+be++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.forEach((function(e){e.__e=!0,Ie(e)}))},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}function Je(){return(Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}de=ke.slice,pe={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},fe=0,Me.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Ce({},this.state),"function"==typeof e&&(e=e(Ce({},n),this.props)),e&&Ce(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),Ie(this))},Me.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ie(this))},Me.prototype.render=Oe,he=[],me="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ge=function(e,t){return e.__v.__b-t.__v.__b},De.__r=0,_e=0,ye=Ue(!1),we=Ue(!0),be=0;var et=["context","children"];function tt(e){return this.getChildContext=function(){return e.context},Xe(e.children,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)t.indexOf(n=o[r])>=0||(i[n]=e[n]);return i}(e,et))}function nt(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=Pe(tt,Je({},this._props,{context:e.detail.context}),function e(t,n){if(3===t.nodeType)return t.data;if(1!==t.nodeType)return null;var r=[],i={},o=0,a=t.attributes,s=t.childNodes;for(o=a.length;o--;)"slot"!==a[o].name&&(i[a[o].name]=a[o].value,i[rt(a[o].name)]=a[o].value);for(o=s.length;o--;){var l=e(s[o],null),c=s[o].slot;c?i[c]=Pe(at,{name:c},l):r[o]=l}var u=n?Pe(at,null,r):r;return Pe(n||t.nodeName.toLowerCase(),i,u)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?Ye:Ke)(this._vdom,this._root)}function rt(e){return e.replace(/-(\w)/g,(function(e,t){return t?t.toUpperCase():""}))}function it(e,t,n){if(this._vdom){var r={};r[e]=n=null==n?void 0:n,r[rt(e)]=n,this._vdom=Xe(this._vdom,r),Ke(this._vdom,this._root)}}function ot(){Ke(this._vdom=null,this._root)}function at(e,t){var n=this;return Pe("slot",Je({},e,{ref:function(e){e?(n.ref=e,n._listener||(n._listener=function(e){e.stopPropagation(),e.detail.context=t},e.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}var st,lt,ct,ut,dt=0,pt=[],ft=pe,ht=ft.__b,vt=ft.__r,mt=ft.diffed,gt=ft.__c,_t=ft.unmount,yt=ft.__;function wt(e,t){ft.__h&&ft.__h(lt,e,dt||t),dt=0;var n=lt.__H||(lt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function bt(e){return dt=1,xt(Nt,e)}function xt(e,t,n){var r=wt(st++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Nt(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);t!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=lt,!lt.u)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter((function(e){return!!e.__c}));if(i.every((function(e){return!e.__N})))return!o||o.call(this,e,t,n);var a=!1;return i.forEach((function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),!(!a&&r.__c.props===e)&&(!o||o.call(this,e,t,n))};lt.u=!0;var o=lt.shouldComponentUpdate,a=lt.componentWillUpdate;lt.componentWillUpdate=function(e,t,n){if(this.__e){var r=o;o=void 0,i(e,t,n),o=r}a&&a.call(this,e,t,n)},lt.shouldComponentUpdate=i}return r.__N||r.__}function kt(e,t){var n=wt(st++,3);!ft.__s&&Gt(n.__H,t)&&(n.__=e,n.i=t,lt.__H.__h.push(n))}function St(e,t){var n=wt(st++,4);!ft.__s&&Gt(n.__H,t)&&(n.__=e,n.i=t,lt.__h.push(n))}function Et(e){return dt=5,Tt((function(){return{current:e}}),[])}function Ct(e,t,n){dt=6,St((function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0}),null==n?n:n.concat(e))}function Tt(e,t){var n=wt(st++,7);return Gt(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Pt(e,t){return dt=8,Tt((function(){return e}),t)}function At(e){var t=lt.context[e.__c],n=wt(st++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(lt)),t.props.value):e.__}function Rt(e,t){ft.useDebugValue&&ft.useDebugValue(t?t(e):e)}function Ot(){var e=wt(st++,11);if(!e.__){for(var t=lt.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Mt(){for(var e;e=pt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(It),e.__H.__h.forEach(Dt),e.__H.__h=[]}catch(ns){e.__H.__h=[],ft.__e(ns,e.__v)}}ft.__b=function(e){lt=null,ht&&ht(e)},ft.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),yt&&yt(e,t)},ft.__r=function(e){vt&&vt(e),st=0;var t=(lt=e.__c).__H;t&&(ct===lt?(t.__h=[],lt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.i=e.__N=void 0}))):(t.__h.forEach(It),t.__h.forEach(Dt),t.__h=[],st=0)),ct=lt},ft.diffed=function(e){mt&&mt(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pt.push(t)&&ut===ft.requestAnimationFrame||((ut=ft.requestAnimationFrame)||Ft)(Mt)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.i=void 0}))),ct=lt=null},ft.__c=function(e,t){t.some((function(e){try{e.__h.forEach(It),e.__h=e.__h.filter((function(e){return!e.__||Dt(e)}))}catch(Na){t.some((function(e){e.__h&&(e.__h=[])})),t=[],ft.__e(Na,e.__v)}})),gt&&gt(e,t)},ft.unmount=function(e){_t&&_t(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{It(e)}catch(n){t=n}})),n.__H=void 0,t&&ft.__e(t,n.__v))};var Lt="function"==typeof requestAnimationFrame;function Ft(e){var t,n=function(){clearTimeout(r),Lt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Lt&&(t=requestAnimationFrame(n))}function It(e){var t=lt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),lt=t}function Dt(e){var t=lt;e.__c=e.__(),lt=t}function Gt(e,t){return!e||e.length!==t.length||t.some((function(t,n){return t!==e[n]}))}function Nt(e,t){return"function"==typeof t?t(e):t}class Ht extends Error{constructor(e,t){super(e),__publicField(this,"_response"),this._response=t,Object.setPrototypeOf(this,Ht.prototype)}get response(){return this._response}}const Wt=async(e,t,n,r,i)=>{const o=await fetch(e,{method:n,body:r?JSON.stringify(r):void 0,headers:{"content-type":"application/json","x-app-version":"1.0.644",authorization:`Bearer ${t}`},signal:(null==AbortSignal?void 0:AbortSignal.timeout)&&AbortSignal.timeout(15e3)});if(!o.ok)throw new Ht(`[API Error] Status: ${o.statusText}`,o);return i?{}:await o.json()};let $t;function jt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function Ut(e,t){this.props=e,this.context=t}function Bt(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:jt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,Pe(e,t)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Ut.prototype=new Me).isPureReactComponent=!0,Ut.prototype.shouldComponentUpdate=function(e,t){return jt(this.props,e)||jt(this.state,t)};var qt=pe.__b;pe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),qt&&qt(e)};var zt="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Vt(e){function t(t){if(!("ref"in t))return e(t,null);var n=t.ref;delete t.ref;var r=e(t,n);return t.ref=n,r}return t.$$typeof=zt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Qt=function(e,t){return null==e?null:He(He(e).map(t))},Kt={map:Qt,forEach:Qt,count:function(e){return e?He(e).length:0},only:function(e){var t=He(e);if(1!==t.length)throw"Children.only";return t[0]},toArray:He},Yt=pe.__e;pe.__e=function(e,t,n,r){if(e.then)for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t);Yt(e,t,n,r)};var Xt=pe.unmount;function Zt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Zt(e,t,n)}))),e}function Jt(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Jt(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function en(){this.__u=0,this.t=null,this.__b=null}function tn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function nn(e){var t,n,r;function i(i){if(t||(t=e()).then((function(e){n=e.default||e}),(function(e){r=e})),r)throw r;if(!n)throw t;return Pe(n,i)}return i.displayName="Lazy",i.__f=!0,i}function rn(){this.u=null,this.o=null}pe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Xt&&Xt(e)},(en.prototype=new Me).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var i=tn(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Jt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},en.prototype.componentWillUnmount=function(){this.t=[]},en.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Zt(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&Pe(Oe,null,e.fallback);return i&&(i.__u&=-33),[Pe(Oe,null,t.__a?null:e.children),i]};var on=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function an(e){return this.getChildContext=function(){return e.context},e.children}function sn(e){var t=this,n=e.i;t.componentWillUnmount=function(){Ke(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Ke(Pe(an,{context:t.context},e.__v),t.l)}function ln(e,t){var n=Pe(sn,{__v:e,i:t});return n.containerInfo=t,n}(rn.prototype=new Me).__a=function(e){var t=this,n=tn(t.__v),r=t.o.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),on(t,e,r)):i()};n?n(o):o()}},rn.prototype.render=function(e){this.u=null,this.o=new Map;var t=He(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},rn.prototype.componentDidUpdate=rn.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){on(e,n,t)}))};var cn="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,un=/^(?: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]/,dn=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,pn=/[A-Z0-9]/g,fn="undefined"!=typeof document,hn=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function vn(e,t,n){return null==t.__k&&(t.textContent=""),Ke(e,t),"function"==typeof n&&n(),e?e.__c:null}function mn(e,t,n){return Ye(e,t),"function"==typeof n&&n(),e?e.__c:null}Me.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Me.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var gn=pe.event;function _n(){}function yn(){return this.cancelBubble}function wn(){return this.defaultPrevented}pe.event=function(e){return gn&&(e=gn(e)),e.persist=_n,e.isPropagationStopped=yn,e.isDefaultPrevented=wn,e.nativeEvent=e};var bn,xn={enumerable:!1,configurable:!0,get:function(){return this.class}},kn=pe.vnode;pe.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,r={},i=-1===n.indexOf("-");for(var o in t){var a=t[o];if(!("value"===o&&"defaultValue"in t&&null==a||fn&&"children"===o&&"noscript"===n||"class"===o||"className"===o)){var s=o.toLowerCase();"defaultValue"===o&&"value"in t&&null==t.value?o="value":"download"===o&&!0===a?a="":"translate"===s&&"no"===a?a=!1:"o"===s[0]&&"n"===s[1]?"ondoubleclick"===s?o="ondblclick":"onchange"!==s||"input"!==n&&"textarea"!==n||hn(t.type)?"onfocus"===s?o="onfocusin":"onblur"===s?o="onfocusout":dn.test(o)&&(o=s):s=o="oninput":i&&un.test(o)?o=o.replace(pn,"-$&").toLowerCase():null===a&&(a=void 0),"oninput"===s&&r[o=s]&&(o="oninputCapture"),r[o]=a}}"select"==n&&r.multiple&&Array.isArray(r.value)&&(r.value=He(t.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==n&&null!=r.defaultValue&&(r.value=He(t.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",xn)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r}(e),e.$$typeof=cn,kn&&kn(e)};var Sn=pe.__r;pe.__r=function(e){Sn&&Sn(e),bn=e.__c};var En=pe.diffed;pe.diffed=function(e){En&&En(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),bn=null};var Cn={ReactCurrentDispatcher:{current:{readContext:function(e){return bn.__n[e.__c].props.value},useCallback:Pt,useContext:At,useDebugValue:Rt,useDeferredValue:Nn,useEffect:kt,useId:Ot,useImperativeHandle:Ct,useInsertionEffect:Wn,useLayoutEffect:St,useMemo:Tt,useReducer:xt,useRef:Et,useState:bt,useSyncExternalStore:jn,useTransition:Hn}}};function Tn(e){return Pe.bind(null,e)}function Pn(e){return!!e&&e.$$typeof===cn}function An(e){return Pn(e)&&e.type===Oe}function Rn(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function On(e){return Pn(e)?Xe.apply(null,arguments):e}function Mn(e){return!!e.__k&&(Ke(null,e),!0)}function Ln(e){return e&&(e.base||1===e.nodeType&&e)||null}var Fn=function(e,t){return e(t)},In=function(e,t){return e(t)},Dn=Oe;function Gn(e){e()}function Nn(e){return e}function Hn(){return[!1,Gn]}var Wn=St,$n=Pn;function jn(e,t){var n=t(),r=bt({h:{__:n,v:t}}),i=r[0].h,o=r[1];return St((function(){i.__=n,i.v=t,Un(i)&&o({h:i})}),[e,n,t]),kt((function(){return Un(i)&&o({h:i}),e((function(){Un(i)&&o({h:i})}))}),[e]),n}function Un(e){var t,n,r=e.v,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(0!==t||1/t==1/n)||t!=t&&n!=n)}catch(a){return!0}}var Bn={useState:bt,useId:Ot,useReducer:xt,useEffect:kt,useLayoutEffect:St,useInsertionEffect:Wn,useTransition:Hn,useDeferredValue:Nn,useSyncExternalStore:jn,startTransition:Gn,useRef:Et,useImperativeHandle:Ct,useMemo:Tt,useCallback:Pt,useContext:At,useDebugValue:Rt,version:"18.3.1",Children:Kt,render:vn,hydrate:mn,unmountComponentAtNode:Mn,createPortal:ln,createElement:Pe,createContext:Ze,createFactory:Tn,cloneElement:On,createRef:Re,Fragment:Oe,isValidElement:Pn,isElement:$n,isFragment:An,isMemo:Rn,findDOMNode:Ln,Component:Me,PureComponent:Ut,memo:Bt,forwardRef:Vt,flushSync:In,unstable_batchedUpdates:Fn,StrictMode:Dn,Suspense:en,SuspenseList:rn,lazy:nn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cn};const qn=Object.freeze(Object.defineProperty({__proto__:null,Children:Kt,Component:Me,Fragment:Oe,PureComponent:Ut,StrictMode:Dn,Suspense:en,SuspenseList:rn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cn,cloneElement:On,createContext:Ze,createElement:Pe,createFactory:Tn,createPortal:ln,createRef:Re,default:Bn,findDOMNode:Ln,flushSync:In,forwardRef:Vt,hydrate:mn,isElement:$n,isFragment:An,isMemo:Rn,isValidElement:Pn,lazy:nn,memo:Bt,render:vn,startTransition:Gn,unmountComponentAtNode:Mn,unstable_batchedUpdates:Fn,useCallback:Pt,useContext:At,useDebugValue:Rt,useDeferredValue:Nn,useEffect:kt,useErrorBoundary:function(e){var t=wt(st++,10),n=bt();return t.__=e,lt.componentDidCatch||(lt.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]},useId:Ot,useImperativeHandle:Ct,useInsertionEffect:Wn,useLayoutEffect:St,useMemo:Tt,useReducer:xt,useRef:Et,useState:bt,useSyncExternalStore:jn,useTransition:Hn,version:"18.3.1"},Symbol.toStringTag,{value:"Module"})),zn="/salary-packaging/admin/v1.0",Vn=()=>{const e=At($t);return{checkProfileSearchAuthorization:Tt((()=>(e=>async()=>{const t=new URL(`${e.backend.url}${zn}/accounts/${e.account.accountId}/auth`);return Wt(t,e.backend.accessToken,"GET")})(e)),[e]),searchProfilesForAccount:Tt((()=>(e=>async t=>{const n=new URL(`${e.backend.url}${zn}/accounts/${e.account.accountId}/profile-search?search=${t}`);return Wt(n,e.backend.accessToken,"GET")})(e)),[e]),ingestClient:Tt((()=>(e=>async()=>{const t=new Date;t.setUTCDate((new Date).getUTCDate()-2);const n=new Date;n.setUTCDate((new Date).getUTCDate()+2);const r=new URL(`${e.backend.url}${zn}/ingest/clients`);return Wt(r,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:n.toISOString().split("T")[0]},!0)})(e)),[e]),linkedProfilesForAccount:Tt((()=>(e=>async()=>{const t=new URL(`${e.backend.url}${zn}/accounts/${e.account.accountId}/profiles`);return Wt(t,e.backend.accessToken,"GET")})(e)),[e]),unlinkProfile:Tt((()=>(e=>async t=>{const n=new URL(`${e.backend.url}${zn}/accounts/${e.account.accountId}/profiles/${t}/unlink`);return Wt(n,e.backend.accessToken,"POST")})(e)),[e])}};class Qn extends Error{}function Kn(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n})))}(t)}catch(n){return atob(t)}}Qn.prototype.name="InvalidTokenError";class Yn{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Qn("Invalid token specified: must be a string");t||(t={});const n=!0===t.header?0:1,r=e.split(".")[n];if("string"!=typeof r)throw new Qn(`Invalid token specified: missing part #${n+1}`);let i;try{i=Kn(r)}catch(_a){throw new Qn(`Invalid token specified: invalid base64 for part #${n+1} (${_a.message})`)}try{return JSON.parse(i)}catch(_a){throw new Qn(`Invalid token specified: invalid json for part #${n+1} (${_a.message})`)}}(e):{roles:[]};return new Yn(t.roles)}}function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xn.apply(null,arguments)}function Zn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Jn=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,er=Zn((function(e){return Jn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var tr=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(_a){}}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}(),nr="-ms-",rr="-moz-",ir="-webkit-",or="comm",ar="rule",sr="decl",lr="@keyframes",cr=Math.abs,ur=String.fromCharCode,dr=Object.assign;function pr(e){return e.trim()}function fr(e,t,n){return e.replace(t,n)}function hr(e,t){return e.indexOf(t)}function vr(e,t){return 0|e.charCodeAt(t)}function mr(e,t,n){return e.slice(t,n)}function gr(e){return e.length}function _r(e){return e.length}function yr(e,t){return t.push(e),e}var wr=1,br=1,xr=0,kr=0,Sr=0,Er="";function Cr(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:wr,column:br,length:a,return:""}}function Tr(e,t){return dr(Cr("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pr(){return Sr=kr<xr?vr(Er,kr++):0,br++,10===Sr&&(br=1,wr++),Sr}function Ar(){return vr(Er,kr)}function Rr(){return kr}function Or(e,t){return mr(Er,e,t)}function Mr(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 Lr(e){return wr=br=1,xr=gr(Er=e),kr=0,[]}function Fr(e){return Er="",e}function Ir(e){return pr(Or(kr-1,Nr(91===e?e+2:40===e?e+1:e)))}function Dr(e){for(;(Sr=Ar())&&Sr<33;)Pr();return Mr(e)>2||Mr(Sr)>3?"":" "}function Gr(e,t){for(;--t&&Pr()&&!(Sr<48||Sr>102||Sr>57&&Sr<65||Sr>70&&Sr<97););return Or(e,Rr()+(t<6&&32==Ar()&&32==Pr()))}function Nr(e){for(;Pr();)switch(Sr){case e:return kr;case 34:case 39:34!==e&&39!==e&&Nr(Sr);break;case 40:41===e&&Nr(e);break;case 92:Pr()}return kr}function Hr(e,t){for(;Pr()&&e+Sr!==57&&(e+Sr!==84||47!==Ar()););return"/*"+Or(t,kr-1)+"*"+ur(47===e?e:Pr())}function Wr(e){for(;!Mr(Ar());)Pr();return Or(e,kr)}function $r(e){return Fr(jr("",null,null,null,[""],e=Lr(e),0,[0],e))}function jr(e,t,n,r,i,o,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,v=1,m=1,g=1,_=0,y="",w=i,b=o,x=r,k=y;m;)switch(h=_,_=Pr()){case 40:if(108!=h&&58==vr(k,d-1)){-1!=hr(k+=fr(Ir(_),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:k+=Ir(_);break;case 9:case 10:case 13:case 32:k+=Dr(h);break;case 92:k+=Gr(Rr()-1,7);continue;case 47:switch(Ar()){case 42:case 47:yr(Br(Hr(Pr(),Rr()),t,n),l);break;default:k+="/"}break;case 123*v:s[c++]=gr(k)*g;case 125*v:case 59:case 0:switch(_){case 0:case 125:m=0;case 59+u:-1==g&&(k=fr(k,/\f/g,"")),f>0&&gr(k)-d&&yr(f>32?qr(k+";",r,n,d-1):qr(fr(k," ","")+";",r,n,d-2),l);break;case 59:k+=";";default:if(yr(x=Ur(k,t,n,c,u,i,s,y,w=[],b=[],d),o),123===_)if(0===u)jr(k,t,x,x,w,o,d,s,b);else switch(99===p&&110===vr(k,3)?100:p){case 100:case 108:case 109:case 115:jr(e,x,x,r&&yr(Ur(e,x,x,0,0,i,s,y,i,w=[],d),b),i,b,d,s,r?w:b);break;default:jr(k,x,x,x,[""],b,0,s,b)}}c=u=f=0,v=g=1,y=k="",d=a;break;case 58:d=1+gr(k),f=h;default:if(v<1)if(123==_)--v;else if(125==_&&0==v++&&125==(Sr=kr>0?vr(Er,--kr):0,br--,10===Sr&&(br=1,wr--),Sr))continue;switch(k+=ur(_),_*v){case 38:g=u>0?1:(k+="\f",-1);break;case 44:s[c++]=(gr(k)-1)*g,g=1;break;case 64:45===Ar()&&(k+=Ir(Pr())),p=Ar(),u=d=gr(y=k+=Wr(Rr())),_++;break;case 45:45===h&&2==gr(k)&&(v=0)}}return o}function Ur(e,t,n,r,i,o,a,s,l,c,u){for(var d=i-1,p=0===i?o:[""],f=_r(p),h=0,v=0,m=0;h<r;++h)for(var g=0,_=mr(e,d+1,d=cr(v=a[h])),y=e;g<f;++g)(y=pr(v>0?p[g]+" "+_:fr(_,/&\f/g,p[g])))&&(l[m++]=y);return Cr(e,t,n,0===i?ar:s,l,c,u)}function Br(e,t,n){return Cr(e,t,n,or,ur(Sr),mr(e,2,-2),0)}function qr(e,t,n,r){return Cr(e,t,n,sr,mr(e,0,r),mr(e,r+1,-1),r)}function zr(e,t){for(var n="",r=_r(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Vr(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case sr:return e.return=e.return||e.value;case or:return"";case lr:return e.return=e.value+"{"+zr(e.children,r)+"}";case ar:e.value=e.props.join(",")}return gr(n=zr(e.children,r))?e.return=e.value+"{"+n+"}":""}var Qr=function(e,t,n){for(var r=0,i=0;r=i,i=Ar(),38===r&&12===i&&(t[n]=1),!Mr(i);)Pr();return Or(e,kr)},Kr=function(e,t){return Fr(function(e,t){var n=-1,r=44;do{switch(Mr(r)){case 0:38===r&&12===Ar()&&(t[n]=1),e[n]+=Qr(kr-1,t,n);break;case 2:e[n]+=Ir(r);break;case 4:if(44===r){e[++n]=58===Ar()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=ur(r)}}while(r=Pr());return e}(Lr(e),t))},Yr=new WeakMap,Xr=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Yr.get(n))&&!r){Yr.set(e,!0);for(var i=[],o=Kr(t,i),a=n.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},Zr=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Jr(e,t){switch(function(e,t){return 45^vr(e,0)?(((t<<2^vr(e,0))<<2^vr(e,1))<<2^vr(e,2))<<2^vr(e,3):0}(e,t)){case 5103:return ir+"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 ir+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ir+e+rr+e+nr+e+e;case 6828:case 4268:return ir+e+nr+e+e;case 6165:return ir+e+nr+"flex-"+e+e;case 5187:return ir+e+fr(e,/(\w+).+(:[^]+)/,ir+"box-$1$2"+nr+"flex-$1$2")+e;case 5443:return ir+e+nr+"flex-item-"+fr(e,/flex-|-self/,"")+e;case 4675:return ir+e+nr+"flex-line-pack"+fr(e,/align-content|flex-|-self/,"")+e;case 5548:return ir+e+nr+fr(e,"shrink","negative")+e;case 5292:return ir+e+nr+fr(e,"basis","preferred-size")+e;case 6060:return ir+"box-"+fr(e,"-grow","")+ir+e+nr+fr(e,"grow","positive")+e;case 4554:return ir+fr(e,/([^-])(transform)/g,"$1"+ir+"$2")+e;case 6187:return fr(fr(fr(e,/(zoom-|grab)/,ir+"$1"),/(image-set)/,ir+"$1"),e,"")+e;case 5495:case 3959:return fr(e,/(image-set\([^]*)/,ir+"$1$`$1");case 4968:return fr(fr(e,/(.+:)(flex-)?(.*)/,ir+"box-pack:$3"+nr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ir+e+e;case 4095:case 3583:case 4068:case 2532:return fr(e,/(.+)-inline(.+)/,ir+"$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(gr(e)-1-t>6)switch(vr(e,t+1)){case 109:if(45!==vr(e,t+4))break;case 102:return fr(e,/(.+:)(.+)-([^]+)/,"$1"+ir+"$2-$3$1"+rr+(108==vr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~hr(e,"stretch")?Jr(fr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==vr(e,t+1))break;case 6444:switch(vr(e,gr(e)-3-(~hr(e,"!important")&&10))){case 107:return fr(e,":",":"+ir)+e;case 101:return fr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ir+(45===vr(e,14)?"inline-":"")+"box$3$1"+ir+"$2$3$1"+nr+"$2box$3")+e}break;case 5936:switch(vr(e,t+11)){case 114:return ir+e+nr+fr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ir+e+nr+fr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ir+e+nr+fr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ir+e+nr+e+e}return e}var ei=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case sr:e.return=Jr(e.value,e.length);break;case lr:return zr([Tr(e,{value:fr(e.value,"@","@"+ir)})],r);case ar: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 zr([Tr(e,{props:[fr(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return zr([Tr(e,{props:[fr(t,/:(plac\w+)/,":"+ir+"input-$1")]}),Tr(e,{props:[fr(t,/:(plac\w+)/,":-moz-$1")]}),Tr(e,{props:[fr(t,/:(plac\w+)/,nr+"input-$1")]})],r)}return""}))}}],ti=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r,i,o=e.stylisPlugins||ei,a={},s=[];r=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var l,c,u,d,p=[Vr,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],f=(c=[Xr,Zr].concat(o,p),u=_r(c),function(e,t,n,r){for(var i="",o=0;o<u;o++)i+=c[o](e,t,n,r)||"";return i});i=function(e,t,n,r){l=n,zr($r(e?e+"{"+t.styles+"}":t.styles),f),r&&(h.inserted[t.name]=!0)};var h={key:t,sheet:new tr({key:t,container:r,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:i};return h.sheet.hydrate(s),h},ni={exports:{}},ri={},ii="function"==typeof Symbol&&Symbol.for,oi=ii?Symbol.for("react.element"):60103,ai=ii?Symbol.for("react.portal"):60106,si=ii?Symbol.for("react.fragment"):60107,li=ii?Symbol.for("react.strict_mode"):60108,ci=ii?Symbol.for("react.profiler"):60114,ui=ii?Symbol.for("react.provider"):60109,di=ii?Symbol.for("react.context"):60110,pi=ii?Symbol.for("react.async_mode"):60111,fi=ii?Symbol.for("react.concurrent_mode"):60111,hi=ii?Symbol.for("react.forward_ref"):60112,vi=ii?Symbol.for("react.suspense"):60113,mi=ii?Symbol.for("react.suspense_list"):60120,gi=ii?Symbol.for("react.memo"):60115,_i=ii?Symbol.for("react.lazy"):60116,yi=ii?Symbol.for("react.block"):60121,wi=ii?Symbol.for("react.fundamental"):60117,bi=ii?Symbol.for("react.responder"):60118,xi=ii?Symbol.for("react.scope"):60119;function ki(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case oi:switch(e=e.type){case pi:case fi:case si:case ci:case li:case vi:return e;default:switch(e=e&&e.$$typeof){case di:case hi:case _i:case gi:case ui:return e;default:return t}}case ai:return t}}}function Si(e){return ki(e)===fi}ri.AsyncMode=pi,ri.ConcurrentMode=fi,ri.ContextConsumer=di,ri.ContextProvider=ui,ri.Element=oi,ri.ForwardRef=hi,ri.Fragment=si,ri.Lazy=_i,ri.Memo=gi,ri.Portal=ai,ri.Profiler=ci,ri.StrictMode=li,ri.Suspense=vi,ri.isAsyncMode=function(e){return Si(e)||ki(e)===pi},ri.isConcurrentMode=Si,ri.isContextConsumer=function(e){return ki(e)===di},ri.isContextProvider=function(e){return ki(e)===ui},ri.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===oi},ri.isForwardRef=function(e){return ki(e)===hi},ri.isFragment=function(e){return ki(e)===si},ri.isLazy=function(e){return ki(e)===_i},ri.isMemo=function(e){return ki(e)===gi},ri.isPortal=function(e){return ki(e)===ai},ri.isProfiler=function(e){return ki(e)===ci},ri.isStrictMode=function(e){return ki(e)===li},ri.isSuspense=function(e){return ki(e)===vi},ri.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===si||e===fi||e===ci||e===li||e===vi||e===mi||"object"==typeof e&&null!==e&&(e.$$typeof===_i||e.$$typeof===gi||e.$$typeof===ui||e.$$typeof===di||e.$$typeof===hi||e.$$typeof===wi||e.$$typeof===bi||e.$$typeof===xi||e.$$typeof===yi)},ri.typeOf=ki,ni.exports=ri;var Ei=ni.exports,Ci={};Ci[Ei.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ci[Ei.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Ti(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):n&&(r+=n+" ")})),r}var Pi=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Ai=function(e,t,n){Pi(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Ri={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},Oi=/[A-Z]|^ms/g,Mi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Li=function(e){return 45===e.charCodeAt(1)},Fi=function(e){return null!=e&&"boolean"!=typeof e},Ii=Zn((function(e){return Li(e)?e:e.replace(Oi,"-$&").toLowerCase()})),Di=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Mi,(function(e,t,n){return Ni={name:t,styles:n,next:Ni},t}))}return 1===Ri[e]||Li(e)||"number"!=typeof t||0===t?t:t+"px"};function Gi(e,t,n){if(null==n)return"";var r=n;if(void 0!==r.__emotion_styles)return r;switch(typeof n){case"boolean":return"";case"object":var i=n;if(1===i.anim)return Ni={name:i.name,styles:i.styles,next:Ni},i.name;var o=n;if(void 0!==o.styles){var a=o.next;if(void 0!==a)for(;void 0!==a;)Ni={name:a.name,styles:a.styles,next:Ni},a=a.next;return o.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Gi(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a){var s=a;null!=t&&void 0!==t[s]?r+=o+"{"+t[s]+"}":Fi(s)&&(r+=Ii(o)+":"+Di(o,s)+";")}else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var l=Gi(e,t,a);switch(o){case"animation":case"animationName":r+=Ii(o)+":"+l+";";break;default:r+=o+"{"+l+"}"}}else for(var c=0;c<a.length;c++)Fi(a[c])&&(r+=Ii(o)+":"+Di(o,a[c])+";")}return r}(e,t,n);case"function":if(void 0!==e){var s=Ni,l=n(e);return Ni=s,Gi(e,t,l)}}var c=n;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Ni,Hi=/label:\s*([^\s;{]+)\s*(;|$)/g;function Wi(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Ni=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Gi(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++){if(i+=Gi(n,t,e[a]),r)i+=o[a]}Hi.lastIndex=0;for(var s,l="";null!==(s=Hi.exec(i));)l+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:c,styles:i,next:Ni}}var $i=!!qn.useInsertionEffect&&qn.useInsertionEffect,ji=$i||function(e){return e()},Ui=$i||St,Bi=Ze("undefined"!=typeof HTMLElement?ti({key:"css"}):null),qi=Bi.Provider,zi=function(e){return Vt((function(t,n){var r=At(Bi);return e(t,r,n)}))},Vi=Ze({}),Qi={}.hasOwnProperty,Ki="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yi=function(e,t){var n={};for(var r in t)Qi.call(t,r)&&(n[r]=t[r]);return n[Ki]=e,n},Xi=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Pi(t,n,r),ji((function(){return Ai(t,n,r)})),null},Zi=zi((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Ki],o=[r],a="";"string"==typeof e.className?a=Ti(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=Wi(o,void 0,At(Vi));a+=t.key+"-"+s.name;var l={};for(var c in e)Qi.call(e,c)&&"css"!==c&&c!==Ki&&(l[c]=e[c]);return l.className=a,n&&(l.ref=n),Pe(Oe,null,Pe(Xi,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Pe(i,l))})),Ji=zi((function(e,t){var n=Wi([e.styles],void 0,At(Vi)),r=Et();return Ui((function(){var e=t.key+"-global",i=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+n.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),i.hydrate([a])),r.current=[i,o],function(){i.flush()}}),[t]),Ui((function(){var e=r.current,i=e[0];if(e[1])e[1]=!1;else{if(void 0!==n.next&&Ai(t,n.next,!0),i.tags.length){var o=i.tags[i.tags.length-1].nextElementSibling;i.before=o,i.flush()}t.insert("",n,i,!1)}}),[t,n.name]),null}));function eo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Wi(t)}var to=er,no=function(e){return"theme"!==e},ro=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?to:no},io=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof r&&n&&(r=e.__emotion_forwardProp),r},oo=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Pi(t,n,r),ji((function(){return Ai(t,n,r)})),null},ao=function e(t,n){var r,i,o=t.__emotion_real===t,a=o&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=io(t,n,o),l=s||ro(a),c=!l("as");return function(){var u=arguments,d=o&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&d.push("label:"+r+";"),null==u[0]||void 0===u[0].raw)d.push.apply(d,u);else{d.push(u[0][0]);for(var p=u.length,f=1;f<p;f++)d.push(u[f],u[0][f])}var h=zi((function(e,t,n){var r=c&&e.as||a,o="",u=[],p=e;if(null==e.theme){for(var f in p={},e)p[f]=e[f];p.theme=At(Vi)}"string"==typeof e.className?o=Ti(t.registered,u,e.className):null!=e.className&&(o=e.className+" ");var h=Wi(d.concat(u),t.registered,p);o+=t.key+"-"+h.name,void 0!==i&&(o+=" "+i);var v=c&&void 0===s?ro(r):l,m={};for(var g in e)c&&"as"===g||v(g)&&(m[g]=e[g]);return m.className=o,n&&(m.ref=n),Pe(Oe,null,Pe(oo,{cache:t,serialized:h,isStringTag:"string"==typeof r}),Pe(r,m))}));return h.displayName=void 0!==r?r:"Styled("+("string"==typeof a?a:a.displayName||a.name||"Component")+")",h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=a,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return"."+i}}),h.withComponent=function(t,r){return e(t,Xn({},n,r,{shouldForwardProp:io(h,r,!0)})).apply(void 0,d)},h}}.bind();["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){ao[e]=ao(e)}));const so=ao.button({marginLeft:"0.75rem",display:"inline-flex",justifyContent:"center",borderRadius:"0.375rem",borderWidth:"1px",borderColor:"transparent","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(67 56 202 / var(--tw-bg-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px"},":disabled":{cursor:"not-allowed","--tw-bg-opacity":"1",backgroundColor:"rgb(107 114 128 / var(--tw-bg-opacity))"}}),lo=ao.div({height:"1.25rem",width:"1.25rem","@keyframes spin":{to:{transform:"rotate(360deg)"}},animation:"spin 1s linear infinite",borderRadius:"9999px",borderWidth:"2px",borderColor:"var(--fl-color-primary-600)",borderLeftColor:"transparent",borderTopColor:"transparent"});var co=0;function uo(e,t,n,r,i,o){t||(t={});var a,s,l=t;"ref"in t&&(a=t.ref,delete t.ref);var c={type:e,props:l,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--co,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return pe.vnode&&pe.vnode(c),c}var po=Oe;function fo(e,t,n){return Qi.call(t,"css")?uo(Zi,Yi(e,t),n):uo(e,t,n)}function ho(e,t,n){return Qi.call(t,"css")?uo(Zi,Yi(e,t),n):uo(e,t,n)}const vo=e=>{const[t,n]=bt(!1);((e,t)=>{const n=Et();kt((()=>{n.current=e}),[e]),kt((()=>{if(t){const e=setInterval(((...e)=>{var t;return null==(t=null==n?void 0:n.current)?void 0:t.call(n,...e)}),t);return()=>clearInterval(e)}}),[t])})((async()=>{await e.onCheck()&&n(!1)}),t?e.checkInterval:void 0),kt((()=>{if(t){const r=setTimeout((()=>{t&&e.onTimeout(),n(!1)}),e.timeout);return()=>clearTimeout(r)}}));return fo(so,{onClick:async()=>{n(!0),await e.onClick()||n(!1)},disabled:t,children:t?ho(po,{children:[fo(lo,{}),fo("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):fo(po,{children:e.text})})},mo=ao.a({cursor:"pointer",whiteSpace:"nowrap",borderBottomWidth:"2px",paddingLeft:"0.25rem",paddingRight:"0.25rem",paddingTop:"1rem",paddingBottom:"1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500"},(({isCurrentTab:e})=>e?{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgb(79 70 229 / var(--tw-text-opacity))"}:"border-transparent text-gray-500 hover:border-gray-300 hover:text-gray-700")),go=({tabs:e,currentTabId:t,onChange:n})=>{const r=Tt((()=>e.find((e=>e.id==t))),[e,t]);return ho("div",{children:[ho("div",{css:{"@media (min-width: 640px)":{display:"none"}},children:[fo("label",{htmlFor:"tabs",css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:"Select a tab"}),fo("select",{id:"tabs",name:"tabs",defaultValue:null==r?void 0:r.id,onChange:e=>n(e.currentTarget.value),css:{display:"block",width:"100%",borderRadius:"0.375rem","--tw-border-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-border-opacity))",paddingTop:"0.5rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",paddingRight:"2.5rem",fontSize:"1rem",lineHeight:"1.5rem",":focus":{"--tw-border-opacity":"1",borderColor:"rgb(99 102 241 / var(--tw-border-opacity))",outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.25rem"}},children:e.map((e=>fo("option",{value:e.id,children:e.displayName},e.id)))})]}),fo("div",{css:{display:"none","@media (min-width: 640px)":{display:"block"}},children:fo("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:fo("nav",{"aria-label":"Tabs",css:{marginBottom:"-1px",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)))"}},children:e.map((e=>{return fo(mo,{onClick:(t=e.id,()=>{n(t)}),"aria-current":e.id==(null==r?void 0:r.id)?"page":void 0,isCurrentTab:e.id==(null==r?void 0:r.id),children:e.displayName},e.id);var t}))})})})]})};function _o({title:e,titleId:t,...n},r){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Pe("title",{id:t},e):null,Pe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 0 0 3 8.25v10.5A2.25 2.25 0 0 0 5.25 21h10.5A2.25 2.25 0 0 0 18 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"}))}const yo=Vt(_o);function wo({title:e,titleId:t,...n},r){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Pe("title",{id:t},e):null,Pe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.625 12a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H8.25m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0H12m4.125 0a.375.375 0 1 1-.75 0 .375.375 0 0 1 .75 0Zm0 0h-.375M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))}const bo=Vt(wo);function xo({title:e,titleId:t,...n},r){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Pe("title",{id:t},e):null,Pe("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m21 21-5.197-5.197m0 0A7.5 7.5 0 1 0 5.196 5.196a7.5 7.5 0 0 0 10.607 10.607Z"}))}const ko=Vt(xo),So=e=>e.url?fo(au,{children:ho(su,{as:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 253 244 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(21 128 61 / var(--tw-text-opacity))","--tw-ring-color":"rgb(22 163 74 / 0.2)"},children:[fo("span",{css:{lineHeight:"1.25rem"},children:"Linked"}),fo(yo,{css:{marginTop:"auto",marginBottom:"auto",marginLeft:"0.25rem",height:"0.75rem",width:"0.75rem"}})]})}):fo(au,{children:fo(su,{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(185 28 28 / var(--tw-text-opacity))","--tw-ring-color":"rgb(220 38 38 / 0.2)"},children:"Unlinked"})}),Eo=e=>fo(au,{children:fo("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),Co=e=>fo(ou,{children:fo("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((e=>fo("li",{children:e},e)))})}),To="undefined"!=typeof document?Bn.useLayoutEffect:()=>{};const Po=e=>{var t;return null!==(t=null==e?void 0:e.ownerDocument)&&void 0!==t?t:document},Ao=e=>{if(e&&"window"in e&&e.window===e)return e;return Po(e).defaultView||window};function Ro(e){let t=null;return()=>(null==t&&(t=e()),t)}const Oo=Ro((function(){return e=/^Mac/i,"undefined"!=typeof window&&null!=window.navigator&&e.test((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.platform)||window.navigator.platform);var e,t})),Mo=Ro((function(){return e=/Android/i,"undefined"!=typeof window&&null!=window.navigator&&((null===(t=window.navigator.userAgentData)||void 0===t?void 0:t.brands.some((t=>e.test(t.brand))))||e.test(window.navigator.userAgent));var e,t}));class Lo{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(e,t){this.nativeEvent=t,this.target=t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget,this.bubbles=t.bubbles,this.cancelable=t.cancelable,this.defaultPrevented=t.defaultPrevented,this.eventPhase=t.eventPhase,this.isTrusted=t.isTrusted,this.timeStamp=t.timeStamp,this.type=e}}function Fo(e){let t=Et({isFocused:!1,observer:null});To((()=>{const e=t.current;return()=>{e.observer&&(e.observer.disconnect(),e.observer=null)}}),[]);let n=function(e){const t=Et(null);return To((()=>{t.current=e}),[e]),Pt(((...e)=>{const n=t.current;return null==n?void 0:n(...e)}),[])}((t=>{null==e||e(t)}));return Pt((e=>{if(e.target instanceof HTMLButtonElement||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement){t.current.isFocused=!0;let r=e.target,i=e=>{t.current.isFocused=!1,r.disabled&&n(new Lo("blur",e)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};r.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver((()=>{if(t.current.isFocused&&r.disabled){var e;null===(e=t.current.observer)||void 0===e||e.disconnect();let n=r===document.activeElement?null:document.activeElement;r.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),r.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n}))}})),t.current.observer.observe(r,{attributes:!0,attributeFilter:["disabled"]})}}),[n])}let Io=null,Do=new Set,Go=new Map,No=!1,Ho=!1;const Wo={Tab:!0,Escape:!0};function $o(e,t){for(let n of Do)n(e,t)}function jo(e){No=!0,function(e){return!(e.metaKey||!Oo()&&e.altKey||e.ctrlKey||"Control"===e.key||"Shift"===e.key||"Meta"===e.key)}(e)&&(Io="keyboard",$o("keyboard",e))}function Uo(e){Io="pointer","mousedown"!==e.type&&"pointerdown"!==e.type||(No=!0,$o("pointer",e))}function Bo(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||(Mo()&&t.pointerType?"click"===t.type&&1===t.buttons:0===t.detail&&!t.pointerType))&&(No=!0,Io="virtual")}function qo(e){e.target!==window&&e.target!==document&&(No||Ho||(Io="virtual",$o("virtual",e)),No=!1,Ho=!1)}function zo(){No=!1,Ho=!0}function Vo(e){if("undefined"==typeof window||Go.get(Ao(e)))return;const t=Ao(e),n=Po(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){No=!0,r.apply(this,arguments)},n.addEventListener("keydown",jo,!0),n.addEventListener("keyup",jo,!0),n.addEventListener("click",Bo,!0),t.addEventListener("focus",qo,!0),t.addEventListener("blur",zo,!1),"undefined"!=typeof PointerEvent?(n.addEventListener("pointerdown",Uo,!0),n.addEventListener("pointermove",Uo,!0),n.addEventListener("pointerup",Uo,!0)):(n.addEventListener("mousedown",Uo,!0),n.addEventListener("mousemove",Uo,!0),n.addEventListener("mouseup",Uo,!0)),t.addEventListener("beforeunload",(()=>{Qo(e)}),{once:!0}),Go.set(t,{focus:r})}const Qo=(e,t)=>{const n=Ao(e),r=Po(e);t&&r.removeEventListener("DOMContentLoaded",t),Go.has(n)&&(n.HTMLElement.prototype.focus=Go.get(n).focus,r.removeEventListener("keydown",jo,!0),r.removeEventListener("keyup",jo,!0),r.removeEventListener("click",Bo,!0),n.removeEventListener("focus",qo,!0),n.removeEventListener("blur",zo,!1),"undefined"!=typeof PointerEvent?(r.removeEventListener("pointerdown",Uo,!0),r.removeEventListener("pointermove",Uo,!0),r.removeEventListener("pointerup",Uo,!0)):(r.removeEventListener("mousedown",Uo,!0),r.removeEventListener("mousemove",Uo,!0),r.removeEventListener("mouseup",Uo,!0)),Go.delete(n))};function Ko(){return"pointer"!==Io}"undefined"!=typeof document&&function(e){const t=Po(e);let n;"loading"!==t.readyState?Vo(e):(n=()=>{Vo(e)},t.addEventListener("DOMContentLoaded",n))}();const Yo=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function Xo(e,t,n){Vo(),kt((()=>{let t=(t,r)=>{(function(e,t,n){var r;const i="undefined"!=typeof window?Ao(null==n?void 0:n.target).HTMLInputElement:HTMLInputElement,o="undefined"!=typeof window?Ao(null==n?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,a="undefined"!=typeof window?Ao(null==n?void 0:n.target).HTMLElement:HTMLElement,s="undefined"!=typeof window?Ao(null==n?void 0:n.target).KeyboardEvent:KeyboardEvent;return!((e=e||(null==n?void 0:n.target)instanceof i&&!Yo.has(null==n||null===(r=n.target)||void 0===r?void 0:r.type)||(null==n?void 0:n.target)instanceof o||(null==n?void 0:n.target)instanceof a&&(null==n?void 0:n.target.isContentEditable))&&"keyboard"===t&&n instanceof s&&!Wo[n.key])})(!!(null==n?void 0:n.isTextInput),t,r)&&e(Ko())};return Do.add(t),()=>{Do.delete(t)}}),t)}let Zo=!1,Jo=0;function ea(){Zo=!0,setTimeout((()=>{Zo=!1}),50)}function ta(e){"touch"===e.pointerType&&ea()}function na(){if("undefined"!=typeof document)return"undefined"!=typeof PointerEvent?document.addEventListener("pointerup",ta):document.addEventListener("touchend",ea),Jo++,()=>{Jo--,Jo>0||("undefined"!=typeof PointerEvent?document.removeEventListener("pointerup",ta):document.removeEventListener("touchend",ea))}}function ra(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=Et({isFocused:!1,isFocusVisible:t||Ko()}),[o,a]=bt(!1),[s,l]=bt((()=>i.current.isFocused&&i.current.isFocusVisible)),c=Pt((()=>l(i.current.isFocused&&i.current.isFocusVisible)),[]),u=Pt((e=>{i.current.isFocused=e,a(e),c()}),[c]);Xo((e=>{i.current.isFocusVisible=e,c()}),[],{isTextInput:n});let{focusProps:d}=function(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Pt((e=>{if(e.target===e.currentTarget)return r&&r(e),i&&i(!1),!0}),[r,i]),a=Fo(o),s=Pt((e=>{const t=Po(e.target);e.target===e.currentTarget&&t.activeElement===e.target&&(n&&n(e),i&&i(!0),a(e))}),[i,n,a]);return{focusProps:{onFocus:!t&&(n||i||r)?s:void 0,onBlur:t||!r&&!i?void 0:o}}}({isDisabled:r,onFocusChange:u}),{focusWithinProps:p}=function(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=Et({isFocusWithin:!1}),a=Pt((e=>{o.current.isFocusWithin&&!e.currentTarget.contains(e.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(e),i&&i(!1))}),[n,i,o]),s=Fo(a),l=Pt((e=>{o.current.isFocusWithin||document.activeElement!==e.target||(r&&r(e),i&&i(!0),o.current.isFocusWithin=!0,s(e))}),[r,i,s]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:a}}}({isDisabled:!r,onFocusWithinChange:u});return{isFocused:o,isFocusVisible:s,focusProps:r?p:d}}var ia=Object.defineProperty,oa=(e,t,n)=>(((e,t,n)=>{t in e?ia(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);let aa=new class{constructor(){oa(this,"current",this.detect()),oa(this,"handoffState","pending"),oa(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 sa(e){return aa.isServer?null:e instanceof Node?e.ownerDocument:null!=e&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function la(e){"function"==typeof queueMicrotask?queueMicrotask(e):Promise.resolve().then(e).catch((e=>setTimeout((()=>{throw e}))))}function ca(){let e=[],t={addEventListener:(e,n,r,i)=>(e.addEventListener(n,r,i),t.add((()=>e.removeEventListener(n,r,i)))),requestAnimationFrame(...e){let n=requestAnimationFrame(...e);return t.add((()=>cancelAnimationFrame(n)))},nextFrame:(...e)=>t.requestAnimationFrame((()=>t.requestAnimationFrame(...e))),setTimeout(...e){let n=setTimeout(...e);return t.add((()=>clearTimeout(n)))},microTask(...e){let n={current:!0};return la((()=>{n.current&&e[0]()})),t.add((()=>{n.current=!1}))},style(e,t,n){let r=e.style.getPropertyValue(t);return Object.assign(e.style,{[t]:n}),this.add((()=>{Object.assign(e.style,{[t]:r})}))},group(e){let t=ca();return e(t),this.add((()=>t.dispose()))},add:t=>(e.includes(t)||e.push(t),()=>{let n=e.indexOf(t);if(n>=0)for(let t of e.splice(n,1))t()}),dispose(){for(let t of e.splice(0))t()}};return t}function ua(){let[e]=bt(ca);return kt((()=>()=>e.dispose()),[e]),e}let da=(e,t)=>{aa.isServer?kt(e,t):St(e,t)};function pa(e){let t=Et(e);return da((()=>{t.current=e}),[e]),t}let fa=function(e){let t=pa(e);return Bn.useCallback(((...e)=>t.current(...e)),[t])};let ha=Ze(void 0);function va(){return At(ha)}function ma(...e){return Array.from(new Set(e.flatMap((e=>"string"==typeof e?e.split(" "):[])))).filter(Boolean).join(" ")}function ga(e,t,...n){if(e in t){let r=t[e];return"function"==typeof r?r(...n):r}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map((e=>`"${e}"`)).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,ga),r}var _a,ya,wa=((ya=wa||{})[ya.None=0]="None",ya[ya.RenderStrategy=1]="RenderStrategy",ya[ya.Static=2]="Static",ya),ba=((_a=ba||{})[_a.Unmount=0]="Unmount",_a[_a.Hidden=1]="Hidden",_a);function xa(){let e=function(){let e=Et([]),t=Pt((t=>{for(let n of e.current)null!=n&&("function"==typeof n?n(t):n.current=t)}),[]);return(...n)=>{if(!n.every((e=>null==e)))return e.current=n,t}}();return Pt((t=>function({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=null!=s?s:Sa;let l=Ea(t,e);if(o)return ka(l,n,r,a,s);let c=null!=i?i:0;if(2&c){let{static:e=!1,...t}=l;if(e)return ka(t,n,r,a,s)}if(1&c){let{unmount:e=!0,...t}=l;return ga(e?0:1,{0:()=>null,1:()=>ka({...t,hidden:!0,style:{display:"none"}},n,r,a,s)})}return ka(l,n,r,a,s)}({mergeRefs:e,...t})),[e])}function ka(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Aa(e,["unmount","static"]),c=void 0!==e.ref?{[s]:e.ref}:{},u="function"==typeof a?a(t):a;"className"in l&&l.className&&"function"==typeof l.className&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let d={};if(t){let e=!1,n=[];for(let[r,i]of Object.entries(t))"boolean"==typeof i&&(e=!0),!0===i&&n.push(r.replace(/([A-Z])/g,(e=>`-${e.toLowerCase()}`)));if(e){d["data-headlessui-state"]=n.join(" ");for(let e of n)d[`data-${e}`]=""}}if(o===Oe&&(Object.keys(Pa(l)).length>0||Object.keys(Pa(d)).length>0)){if(Pn(u)&&!(Array.isArray(u)&&u.length>1)){let e=u.props,t=null==e?void 0:e.className,n="function"==typeof t?(...e)=>ma(t(...e),l.className):ma(t,l.className),r=n?{className:n}:{},o=Ea(u.props,Pa(Aa(l,["ref"])));for(let i in d)i in o&&delete d[i];return On(u,Object.assign({},o,d,c,{ref:i(Ra(u),c.ref)},r))}if(Object.keys(Pa(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Pa(l)).concat(Object.keys(Pa(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 Pe(o,Object.assign({},Aa(l,["ref"]),o!==Oe&&c,o!==Oe&&d),u)}function Sa(...e){return e.every((e=>null==e))?void 0:t=>{for(let n of e)null!=n&&("function"==typeof n?n(t):n.current=t)}}function Ea(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[e=>{var t;return null==(t=null==e?void 0:e.preventDefault)?void 0:t.call(e)}]);for(let r in n)Object.assign(t,{[r](e,...t){let i=n[r];for(let n of i){if((e instanceof Event||(null==e?void 0:e.nativeEvent)instanceof Event)&&e.defaultPrevented)return;n(e,...t)}}});return t}function Ca(...e){if(0===e.length)return{};if(1===e.length)return e[0];let t={},n={};for(let r of e)for(let e in r)e.startsWith("on")&&"function"==typeof r[e]?(null!=n[e]||(n[e]=[]),n[e].push(r[e])):t[e]=r[e];for(let r in n)Object.assign(t,{[r](...e){let t=n[r];for(let n of t)null==n||n(...e)}});return t}function Ta(e){var t;return Object.assign(Vt(e),{displayName:null!=(t=e.displayName)?t:e.name})}function Pa(e){let t=Object.assign({},e);for(let n in t)void 0===t[n]&&delete t[n];return t}function Aa(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Ra(e){return Bn.version.split(".")[0]>="19"?e.props.ref:e.ref}let Oa=Ze(void 0);function Ma(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=""===(null==t?void 0:t.getAttribute("disabled"));return(!r||!function(e){if(!e)return!1;let t=e.previousElementSibling;for(;null!==t;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}(n))&&r}let La=Symbol();function Fa(...e){let t=Et(e);kt((()=>{t.current=e}),[e]);let n=fa((e=>{for(let n of t.current)null!=n&&("function"==typeof n?n(e):n.current=e)}));return e.every((e=>null==e||(null==e?void 0:e[La])))?void 0:n}let Ia=Ze(null);function Da(){let e=At(Ia);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,Da),e}return e}Ia.displayName="DescriptionContext";let Ga=Ta((function(e,t){let n=Ot(),r=va(),{id:i=`headlessui-description-${n}`,...o}=e,a=Da(),s=Fa(t);da((()=>a.register(i)),[i,a.register]);let l=r||!1,c=Tt((()=>({...a.slot,disabled:l})),[a.slot,l]),u={ref:s,...a.props,id:i};return xa()({ourProps:u,theirProps:o,slot:c,defaultTag:"p",name:a.name||"Description"})}));Object.assign(Ga,{});var Na,Ha=((Na=Ha||{}).Space=" ",Na.Enter="Enter",Na.Escape="Escape",Na.Backspace="Backspace",Na.Delete="Delete",Na.ArrowLeft="ArrowLeft",Na.ArrowUp="ArrowUp",Na.ArrowRight="ArrowRight",Na.ArrowDown="ArrowDown",Na.Home="Home",Na.End="End",Na.PageUp="PageUp",Na.PageDown="PageDown",Na.Tab="Tab",Na);let Wa=Ze(null);function $a(){let e=At(Wa);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,$a),e}return e}function ja({inherit:e=!1}={}){let t=function(){var e,t;let n=null!=(t=null==(e=At(Wa))?void 0:e.value)?t:void 0;return n}(),[n,r]=bt([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,Tt((()=>function(e){let t=fa((e=>(r((t=>[...t,e])),()=>r((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),n=Tt((()=>({register:t,slot:e.slot,name:e.name,props:e.props,value:e.value})),[t,e.slot,e.name,e.props,e.value]);return Bn.createElement(Wa.Provider,{value:n},e.children)}),[r])]}Wa.displayName="LabelContext";let Ua=Ta((function(e,t){var n;let r=Ot(),i=$a(),o=At(Oa),a=va(),{id:s=`headlessui-label-${r}`,htmlFor:l=(null!=o?o:null==(n=i.props)?void 0:n.htmlFor),passive:c=!1,...u}=e,d=Fa(t);da((()=>i.register(s)),[s,i.register]);let p=fa((e=>{let t=e.currentTarget;if(t instanceof HTMLLabelElement&&e.preventDefault(),i.props&&"onClick"in i.props&&"function"==typeof i.props.onClick&&i.props.onClick(e),t instanceof HTMLLabelElement){let e=document.getElementById(t.htmlFor);if(e){let t=e.getAttribute("disabled");if("true"===t||""===t)return;let n=e.getAttribute("aria-disabled");if("true"===n||""===n)return;(e instanceof HTMLInputElement&&("radio"===e.type||"checkbox"===e.type)||"radio"===e.role||"checkbox"===e.role||"switch"===e.role)&&e.click(),e.focus({preventScroll:!0})}}})),f=a||!1,h=Tt((()=>({...i.slot,disabled:f})),[i.slot,f]),v={ref:d,...i.props,id:s,htmlFor:l,onClick:p};return c&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in u&&delete u.onClick),xa()({ourProps:v,theirProps:u,slot:h,defaultTag:l?"label":"div",name:i.name||"Label"})}));function Ba(e,t=!1){let[n,r]=xt((()=>({})),{}),i=Tt((()=>function(e){if(null===e)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}(e)),[e,n]);return da((()=>{if(!e)return;let t=new ResizeObserver(r);return t.observe(e),()=>{t.disconnect()}}),[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}Object.assign(Ua,{});let qa=class extends Map{constructor(e){super(),this.factory=e}get(e){let t=super.get(e);return void 0===t&&(t=this.factory(e),this.set(e,t)),t}};function za(e,t){let n=e(),r=new Set;return{getSnapshot:()=>n,subscribe:e=>(r.add(e),()=>r.delete(e)),dispatch(e,...i){let o=t[e].call(n,...i);o&&(n=o,r.forEach((e=>e())))}}}function Va(e){return jn(e.subscribe,e.getSnapshot,e.getSnapshot)}let Qa=new qa((()=>za((()=>[]),{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(-1===t)return this;let n=this.slice();return n.splice(t,1),n}})));function Ka(e,t){let n=Qa.get(t),r=Ot(),i=Va(n);if(da((()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)}),[n,e]),!e)return!1;let o=i.indexOf(r),a=i.length;return-1===o&&(o=a,a+=1),o===a-1}let Ya=new Map,Xa=new Map;function Za(e){var t;let n=null!=(t=Xa.get(e))?t:0;return Xa.set(e,n+1),0!==n||(Ya.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0),()=>Ja(e)}function Ja(e){var t;let n=null!=(t=Xa.get(e))?t:1;if(1===n?Xa.delete(e):Xa.set(e,n-1),1!==n)return;let r=Ya.get(e);r&&(null===r["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ya.delete(e))}let es=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map((e=>`${e}:not([tabindex='-1'])`)).join(","),ts=["[data-autofocus]"].map((e=>`${e}:not([tabindex='-1'])`)).join(",");var ns,rs,is,os=((is=os||{})[is.First=1]="First",is[is.Previous=2]="Previous",is[is.Next=4]="Next",is[is.Last=8]="Last",is[is.WrapAround=16]="WrapAround",is[is.NoScroll=32]="NoScroll",is[is.AutoFocus=64]="AutoFocus",is),as=((rs=as||{})[rs.Error=0]="Error",rs[rs.Overflow=1]="Overflow",rs[rs.Success=2]="Success",rs[rs.Underflow=3]="Underflow",rs),ss=((ns=ss||{})[ns.Previous=-1]="Previous",ns[ns.Next=1]="Next",ns);function ls(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(es)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}var cs=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(cs||{});function us(e,t=0){var n;return e!==(null==(n=sa(e))?void 0:n.body)&&ga(t,{0:()=>e.matches(es),1(){let t=e;for(;null!==t;){if(t.matches(es))return!0;t=t.parentElement}return!1}})}function ds(e){let t=sa(e);ca().nextFrame((()=>{t&&!us(t.activeElement,0)&&function(e){null==e||e.focus({preventScroll:!0})}(e)}))}var ps=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ps||{});"undefined"!=typeof window&&"undefined"!=typeof document&&(document.addEventListener("keydown",(e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")}),!0),document.addEventListener("click",(e=>{1===e.detail?delete document.documentElement.dataset.headlessuiFocusVisible:0===e.detail&&(document.documentElement.dataset.headlessuiFocusVisible="")}),!0));let fs=["textarea","input"].join(",");function hs(e,t=e=>e){return e.slice().sort(((e,n)=>{let r=t(e),i=t(n);if(null===r||null===i)return 0;let o=r.compareDocumentPosition(i);return o&Node.DOCUMENT_POSITION_FOLLOWING?-1:o&Node.DOCUMENT_POSITION_PRECEDING?1:0}))}function vs(e,t){return function(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?hs(e):e:64&t?function(e=document.body){return null==e?[]:Array.from(e.querySelectorAll(ts)).sort(((e,t)=>Math.sign((e.tabIndex||Number.MAX_SAFE_INTEGER)-(t.tabIndex||Number.MAX_SAFE_INTEGER))))}(e):ls(e);i.length>0&&a.length>1&&(a=a.filter((e=>!i.some((t=>null!=t&&"current"in t?(null==t?void 0:t.current)===e:t===e))))),r=null!=r?r:o.activeElement;let s,l=(()=>{if(5&t)return 1;if(10&t)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),c=(()=>{if(1&t)return 0;if(2&t)return Math.max(0,a.indexOf(r))-1;if(4&t)return Math.max(0,a.indexOf(r))+1;if(8&t)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=32&t?{preventScroll:!0}:{},d=0,p=a.length;do{if(d>=p||d+p<=0)return 0;let e=c+d;if(16&t)e=(e+p)%p;else{if(e<0)return 3;if(e>=p)return 1}s=a[e],null==s||s.focus(u),d+=l}while(s!==o.activeElement);return 6&t&&function(e){var t,n;return null!=(n=null==(t=null==e?void 0:e.matches)?void 0:t.call(e,fs))&&n}(s)&&s.select(),2}(ls(),t,{relativeTo:e})}function ms(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function gs(){return ms()||/Android/gi.test(window.navigator.userAgent)}function _s(e,t,n,r){let i=pa(n);kt((()=>{if(e)return document.addEventListener(t,n,r),()=>document.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}function ys(e,t,n){let r=Ka(e,"outside-click"),i=pa(n),o=Pt((function(e,n){if(e.defaultPrevented)return;let r=n(e);if(null===r||!r.getRootNode().contains(r)||!r.isConnected)return;let o=function e(t){return"function"==typeof t?e(t()):Array.isArray(t)||t instanceof Set?t:[t]}(t);for(let t of o)if(null!==t&&(t.contains(r)||e.composed&&e.composedPath().includes(t)))return;return!us(r,cs.Loose)&&-1!==r.tabIndex&&e.preventDefault(),i.current(e,r)}),[i,t]),a=Et(null);_s(r,"pointerdown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),_s(r,"mousedown",(e=>{var t,n;a.current=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target}),!0),_s(r,"click",(e=>{gs()||a.current&&(o(e,(()=>a.current)),a.current=null)}),!0);let s=Et({x:0,y:0});_s(r,"touchstart",(e=>{s.current.x=e.touches[0].clientX,s.current.y=e.touches[0].clientY}),!0),_s(r,"touchend",(e=>{let t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;if(!(Math.abs(t-s.current.x)>=30||Math.abs(n-s.current.y)>=30))return o(e,(()=>e.target instanceof HTMLElement?e.target:null))}),!0),function(e,t,n,r){let i=pa(n);kt((()=>{if(e)return window.addEventListener(t,n,r),()=>window.removeEventListener(t,n,r);function n(e){i.current(e)}}),[e,t,r])}(r,"blur",(e=>o(e,(()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null))),!0)}function ws(...e){return Tt((()=>sa(...e)),[...e])}function bs(e,t){return Tt((()=>{var n;if(e.type)return e.type;let r=null!=(n=e.as)?n:"button";return"string"==typeof r&&"button"===r.toLowerCase()||"BUTTON"===(null==t?void 0:t.tagName)&&!t.hasAttribute("type")?"button":void 0}),[e.type,e.as,t])}function xs(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=null!=(n=t.defaultView)?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function ks(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Ss=za((()=>new Map),{PUSH(e,t){var n;let r=null!=(n=this.get(e))?n:{doc:e,count:0,d:ca(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:ks(n)},i=[ms()?{before({doc:e,d:t,meta:n}){function r(e){return n.containers.flatMap((e=>e())).some((t=>t.contains(e)))}t.microTask((()=>{var n;if("auto"!==window.getComputedStyle(e.documentElement).scrollBehavior){let n=ca();n.style(e.documentElement,"scrollBehavior","auto"),t.add((()=>t.microTask((()=>n.dispose()))))}let i=null!=(n=window.scrollY)?n:window.pageYOffset,o=null;t.addEventListener(e,"click",(t=>{if(t.target instanceof HTMLElement)try{let n=t.target.closest("a");if(!n)return;let{hash:i}=new URL(n.href),a=e.querySelector(i);a&&!r(a)&&(o=a)}catch{}}),!0),t.addEventListener(e,"touchstart",(e=>{if(e.target instanceof HTMLElement)if(r(e.target)){let n=e.target;for(;n.parentElement&&r(n.parentElement);)n=n.parentElement;t.style(n,"overscrollBehavior","contain")}else t.style(e.target,"touchAction","none")})),t.addEventListener(e,"touchmove",(e=>{if(e.target instanceof HTMLElement){if("INPUT"===e.target.tagName)return;if(r(e.target)){let t=e.target;for(;t.parentElement&&""!==t.dataset.headlessuiPortal&&!(t.scrollHeight>t.clientHeight||t.scrollWidth>t.clientWidth);)t=t.parentElement;""===t.dataset.headlessuiPortal&&e.preventDefault()}else e.preventDefault()}}),{passive:!1}),t.add((()=>{var e;let t=null!=(e=window.scrollY)?e:window.pageYOffset;i!==t&&window.scrollTo(0,i),o&&o.isConnected&&(o.scrollIntoView({block:"nearest"}),o=null)}))}))}}:{},xs(),{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}];i.forEach((({before:e})=>null==e?void 0:e(r))),i.forEach((({after:e})=>null==e?void 0:e(r)))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});function Es(e,t,n=()=>[document.body]){!function(e,t,n=()=>({containers:[]})){let r=Va(Ss),i=t?r.get(t):void 0,o=!!i&&i.count>0;da((()=>{if(t&&e)return Ss.dispatch("PUSH",t,n),()=>Ss.dispatch("POP",t,n)}),[e,t])}(Ka(e,"scroll-lock"),t,(e=>{var t;return{containers:[...null!=(t=e.containers)?t:[],n]}}))}function Cs(e){return[e.screenX,e.screenY]}Ss.subscribe((()=>{let e=Ss.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let e="hidden"===t.get(n.doc),r=0!==n.count;(r&&!e||!r&&e)&&Ss.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),0===n.count&&Ss.dispatch("TEARDOWN",n)}}));var Ts,Ps;"undefined"!=typeof process&&"undefined"!=typeof globalThis&&"undefined"!=typeof Element&&"test"===(null==(Ts=null==process?void 0:{})?void 0:Ts.NODE_ENV)&&void 0===(null==(Ps=null==Element?void 0:Element.prototype)?void 0:Ps.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 As=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(As||{});function Rs(e){let t={};for(let n in e)!0===e[n]&&(t[`data-${n}`]="");return t}function Os(e,t,n,r){let[i,o]=bt(n),{hasFlag:a,addFlag:s,removeFlag:l}=function(e=0){let[t,n]=bt(e),r=Pt((e=>n(e)),[t]),i=Pt((e=>n((t=>t|e))),[t]),o=Pt((e=>(t&e)===e),[t]),a=Pt((e=>n((t=>t&~e))),[n]),s=Pt((e=>n((t=>t^e))),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}(e&&i?3:0),c=Et(!1),u=Et(!1),d=ua();return da((()=>{if(e)return n&&o(!0),t?(null==void 0||undefined.call(r,n),function(e,{prepare:t,run:n,done:r,inFlight:i}){let o=ca();return function(e,{inFlight:t,prepare:n}){if(null!=t&&t.current)return void n();let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}(e,{prepare:t,inFlight:i}),o.nextFrame((()=>{n(),o.requestAnimationFrame((()=>{o.add(function(e,t){var n,r;let i=ca();if(!e)return i.dispose;let o=!1;i.add((()=>{o=!0}));let a=null!=(r=null==(n=e.getAnimations)?void 0:n.call(e).filter((e=>e instanceof CSSTransition)))?r:[];return 0===a.length?(t(),i.dispose):(Promise.allSettled(a.map((e=>e.finished))).then((()=>{o||t()})),i.dispose)}(e,r))}))})),o.dispose}(t,{inFlight:c,prepare(){u.current?u.current=!1:u.current=c.current,c.current=!0,!u.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){u.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){u.current&&"function"==typeof t.getAnimations&&t.getAnimations().length>0||(c.current=!1,l(7),n||o(!1),null==void 0||undefined.call(r,n))}})):void(n&&s(3))}),[e,n,t,d]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Ms(){return"undefined"!=typeof window}function Ls(e){return Ds(e)?(e.nodeName||"").toLowerCase():"#document"}function Fs(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Is(e){var t;return null==(t=(Ds(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Ds(e){return!!Ms()&&(e instanceof Node||e instanceof Fs(e).Node)}function Gs(e){return!!Ms()&&(e instanceof Element||e instanceof Fs(e).Element)}function Ns(e){return!!Ms()&&(e instanceof HTMLElement||e instanceof Fs(e).HTMLElement)}function Hs(e){return!(!Ms()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Fs(e).ShadowRoot)}function Ws(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=zs(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function $s(e){return["table","td","th"].includes(Ls(e))}function js(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(_a){return!1}}))}function Us(e){const t=Bs(),n=Gs(e)?zs(e):e;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((e=>(n.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(n.contain||"").includes(e)))}function Bs(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function qs(e){return["html","body","#document"].includes(Ls(e))}function zs(e){return Fs(e).getComputedStyle(e)}function Vs(e){return Gs(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qs(e){if("html"===Ls(e))return e;const t=e.assignedSlot||e.parentNode||Hs(e)&&e.host||Is(e);return Hs(t)?t.host:t}function Ks(e){const t=Qs(e);return qs(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ns(t)&&Ws(t)?t:Ks(t)}function Ys(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=Ks(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),a=Fs(i);if(o){const e=Xs(a);return t.concat(a,a.visualViewport||[],Ws(i)?i:[],e&&n?Ys(e):[])}return t.concat(i,Ys(i,[],n))}function Xs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Zs=Math.min,Js=Math.max,el=Math.round,tl=Math.floor,nl=e=>({x:e,y:e}),rl={left:"right",right:"left",bottom:"top",top:"bottom"},il={start:"end",end:"start"};function ol(e,t,n){return Js(e,Zs(t,n))}function al(e,t){return"function"==typeof e?e(t):e}function sl(e){return e.split("-")[0]}function ll(e){return e.split("-")[1]}function cl(e){return"x"===e?"y":"x"}function ul(e){return"y"===e?"height":"width"}function dl(e){return["top","bottom"].includes(sl(e))?"y":"x"}function pl(e){return cl(dl(e))}function fl(e){return e.replace(/start|end/g,(e=>il[e]))}function hl(e){return e.replace(/left|right|bottom|top/g,(e=>rl[e]))}function vl(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function ml(e,t,n){let{reference:r,floating:i}=e;const o=dl(t),a=pl(t),s=ul(a),l=sl(t),c="y"===o,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[s]/2-i[s]/2;let f;switch(l){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:d};break;case"left":f={x:r.x-i.width,y:d};break;default:f={x:r.x,y:r.y}}switch(ll(t)){case"start":f[a]-=p*(n&&c?-1:1);break;case"end":f[a]+=p*(n&&c?-1:1)}return f}async function gl(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:a,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:f=0}=al(t,e),h=function(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}(f),v=s[p?"floating"===d?"reference":"floating":d],m=vl(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(v)))||n?v:v.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),g="floating"===d?{x:r,y:i,width:a.floating.width,height:a.floating.height}:a.reference,_=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),y=await(null==o.isElement?void 0:o.isElement(_))&&await(null==o.getScale?void 0:o.getScale(_))||{x:1,y:1},w=vl(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:g,offsetParent:_,strategy:l}):g);return{top:(m.top-w.top+h.top)/y.y,bottom:(w.bottom-m.bottom+h.bottom)/y.y,left:(m.left-w.left+h.left)/y.x,right:(w.right-m.right+h.right)/y.x}}function _l(e){const t=zs(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Ns(e),o=i?e.offsetWidth:n,a=i?e.offsetHeight:r,s=el(n)!==o||el(r)!==a;return s&&(n=o,r=a),{width:n,height:r,$:s}}function yl(e){return Gs(e)?e:e.contextElement}function wl(e){const t=yl(e);if(!Ns(t))return nl(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=_l(t);let a=(o?el(n.width):n.width)/r,s=(o?el(n.height):n.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const bl=nl(0);function xl(e){const t=Fs(e);return Bs()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:bl}function kl(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=yl(e);let a=nl(1);t&&(r?Gs(r)&&(a=wl(r)):a=wl(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Fs(e))&&t}(o,n,r)?xl(o):nl(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,u=i.width/a.x,d=i.height/a.y;if(o){const e=Fs(o),t=r&&Gs(r)?Fs(r):r;let n=e,i=Xs(n);for(;i&&r&&t!==n;){const e=wl(i),t=i.getBoundingClientRect(),r=zs(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=o,c+=a,n=Fs(i),i=Xs(n)}}return vl({width:u,height:d,x:l,y:c})}function Sl(e,t){const n=Vs(e).scrollLeft;return t?t.left+n:kl(Is(e)).left+n}function El(e,t,n){void 0===n&&(n=!1);const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-(n?0:Sl(e,r)),y:r.top+t.scrollTop}}function Cl(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Fs(e),r=Is(e),i=n.visualViewport;let o=r.clientWidth,a=r.clientHeight,s=0,l=0;if(i){o=i.width,a=i.height;const e=Bs();(!e||e&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:o,height:a,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Is(e),n=Vs(e),r=e.ownerDocument.body,i=Js(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Js(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let a=-n.scrollLeft+Sl(e);const s=-n.scrollTop;return"rtl"===zs(r).direction&&(a+=Js(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:a,y:s}}(Is(e));else if(Gs(t))r=function(e,t){const n=kl(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Ns(e)?wl(e):nl(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=xl(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return vl(r)}function Tl(e,t){const n=Qs(e);return!(n===t||!Gs(n)||qs(n))&&("fixed"===zs(n).position||Tl(n,t))}function Pl(e,t,n){const r=Ns(t),i=Is(t),o="fixed"===n,a=kl(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=nl(0);if(r||!r&&!o)if(("body"!==Ls(t)||Ws(i))&&(s=Vs(t)),r){const e=kl(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else i&&(l.x=Sl(i));const c=!i||r||o?nl(0):El(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 Al(e){return"static"===zs(e).position}function Rl(e,t){if(!Ns(e)||"fixed"===zs(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Is(e)===n&&(n=n.ownerDocument.body),n}function Ol(e,t){const n=Fs(e);if(js(e))return n;if(!Ns(e)){let t=Qs(e);for(;t&&!qs(t);){if(Gs(t)&&!Al(t))return t;t=Qs(t)}return n}let r=Rl(e,t);for(;r&&$s(r)&&Al(r);)r=Rl(r,t);return r&&qs(r)&&Al(r)&&!Us(r)?n:r||function(e){let t=Qs(e);for(;Ns(t)&&!qs(t);){if(Us(t))return t;if(js(t))return null;t=Qs(t)}return null}(e)||n}const Ml={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,a=Is(r),s=!!t&&js(t.floating);if(r===a||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=nl(1);const u=nl(0),d=Ns(r);if((d||!d&&!o)&&(("body"!==Ls(r)||Ws(a))&&(l=Vs(r)),Ns(r))){const e=kl(r);c=wl(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const p=!a||d||o?nl(0):El(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:n.y*c.y-l.scrollTop*c.y+u.y+p.y}},getDocumentElement:Is,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?js(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Ys(e,[],!1).filter((e=>Gs(e)&&"body"!==Ls(e))),i=null;const o="fixed"===zs(e).position;let a=o?Qs(e):e;for(;Gs(a)&&!qs(a);){const t=zs(a),n=Us(a);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&["absolute","fixed"].includes(i.position)||Ws(a)&&!n&&Tl(e,a))?r=r.filter((e=>e!==a)):i=t,a=Qs(a)}return t.set(e,r),r}(t,this._c):[].concat(n),r],a=o[0],s=o.reduce(((e,n)=>{const r=Cl(t,n,i);return e.top=Js(r.top,e.top),e.right=Zs(r.right,e.right),e.bottom=Zs(r.bottom,e.bottom),e.left=Js(r.left,e.left),e}),Cl(t,a,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Ol,getElementRects:async function(e){const t=this.getOffsetParent||Ol,n=this.getDimensions,r=await n(e.floating);return{reference:Pl(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=_l(e);return{width:t,height:n}},getScale:wl,isElement:Gs,isRTL:function(e){return"rtl"===zs(e).direction}};function Ll(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=yl(e),u=i||o?[...c?Ys(c):[],...Ys(t)]:[];u.forEach((e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)}));const d=c&&s?function(e,t){let n,r=null;const i=Is(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:d,height:p}=e.getBoundingClientRect();if(s||t(),!d||!p)return;const f={rootMargin:-tl(u)+"px "+-tl(i.clientWidth-(c+d))+"px "+-tl(i.clientHeight-(u+p))+"px "+-tl(c)+"px",threshold:Js(0,Zs(1,l))||1};let h=!0;function v(e){const t=e[0].intersectionRatio;if(t!==l){if(!h)return a();t?a(!1,t):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}h=!1}try{r=new IntersectionObserver(v,{...f,root:i.ownerDocument})}catch(_a){r=new IntersectionObserver(v,f)}r.observe(e)}(!0),o}(c,n):null;let p,f=-1,h=null;a&&(h=new ResizeObserver((e=>{let[r]=e;r&&r.target===c&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame((()=>{var e;null==(e=h)||e.observe(t)}))),n()})),c&&!l&&h.observe(c),h.observe(t));let v=l?kl(e):null;return l&&function t(){const r=kl(e);!v||r.x===v.x&&r.y===v.y&&r.width===v.width&&r.height===v.height||n();v=r,p=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach((e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)})),null==d||d(),null==(e=h)||e.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const Fl=gl,Il=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),a=sl(n),s=ll(n),l="y"===dl(n),c=["left","top"].includes(a)?-1:1,u=o&&l?-1:1,d=al(t,e);let{mainAxis:p,crossAxis:f,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&&(f="end"===s?-1*h:h),l?{x:f*u,y:p*c}:{x:p*c,y:f*u}}(t,e);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:a}}}}},Dl=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=al(e,t),c={x:n,y:r},u=await gl(t,l),d=dl(sl(i)),p=cl(d);let f=c[p],h=c[d];if(o){const e="y"===p?"bottom":"right";f=ol(f+u["y"===p?"top":"left"],f,f-u[e])}if(a){const e="y"===d?"bottom":"right";h=ol(h+u["y"===d?"top":"left"],h,h-u[e])}const v=s.fn({...t,[p]:f,[d]:h});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:a}}}}}},Gl=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:a,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:v=!0,...m}=al(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const g=sl(i),_=dl(s),y=sl(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),b=p||(y||!v?[hl(s)]:function(e){const t=hl(e);return[fl(e),t,fl(t)]}(s)),x="none"!==h;!p&&x&&b.push(...function(e,t,n,r){const i=ll(e);let o=function(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:a;default:return[]}}(sl(e),"start"===n,r);return i&&(o=o.map((e=>e+"-"+i)),t&&(o=o.concat(o.map(fl)))),o}(s,v,h,w));const k=[s,...b],S=await gl(t,m),E=[];let C=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&E.push(S[g]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ll(e),i=pl(e),o=ul(i);let a="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(a=hl(a)),[a,hl(a)]}(i,a,w);E.push(S[e[0]],S[e[1]])}if(C=[...C,{placement:i,overflows:E}],!E.every((e=>e<=0))){var T,P;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=k[e];if(t)return{data:{index:e,overflows:C},reset:{placement:t}};let n=null==(P=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:P.placement;if(!n)switch(f){case"bestFit":{var A;const e=null==(A=C.filter((e=>{if(x){const t=dl(e.placement);return t===_||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},Nl=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:a,elements:s}=t,{apply:l=()=>{},...c}=al(e,t),u=await gl(t,c),d=sl(i),p=ll(i),f="y"===dl(i),{width:h,height:v}=o.floating;let m,g;"top"===d||"bottom"===d?(m=d,g=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(g=d,m="end"===p?"top":"bottom");const _=v-u.top-u.bottom,y=h-u.left-u.right,w=Zs(v-u[m],_),b=Zs(h-u[g],y),x=!t.middlewareData.shift;let k=w,S=b;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(k=_),x&&!p){const e=Js(u.left,0),t=Js(u.right,0),n=Js(u.top,0),r=Js(u.bottom,0);f?S=h-2*(0!==e||0!==t?e+t:Js(u.left,u.right)):k=v-2*(0!==n||0!==r?n+r:Js(u.top,u.bottom))}await l({...t,availableWidth:S,availableHeight:k});const E=await a.getDimensions(s.floating);return h!==E.width||v!==E.height?{reset:{rects:!0}}:{}}}},Hl=(e,t,n)=>{const r=new Map,i={platform:Ml,...n},o={...i.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:a}=n,s=o.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let c=await a.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=ml(c,r,l),p=r,f={},h=0;for(let v=0;v<s.length;v++){const{name:n,fn:o}=s[v],{x:m,y:g,data:_,reset:y}=await o({x:u,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:e,floating:t}});u=null!=m?m:u,d=null!=g?g:d,f={...f,[n]:{...f[n],..._}},y&&h<=50&&(h++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(c=!0===y.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):y.rects),({x:u,y:d}=ml(c,p,l))),v=-1)}return{x:u,y:d,placement:p,strategy:i,middlewareData:f}})(e,t,{...i,platform:o})};var Wl="undefined"!=typeof document?St:kt;function $l(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!=r--;)if(!$l(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;0!=r--;){const n=i[r];if(("_owner"!==n||!e.$$typeof)&&!$l(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function jl(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ul(e,t){const n=jl(e);return Math.round(t*n)/n}function Bl(e){const t=Et(e);return Wl((()=>{t.current=e})),t}const ql=(e,t)=>({...Il(e),options:[e,t]}),zl=(e,t)=>({...Gl(e),options:[e,t]}),Vl=(e,t)=>({...Nl(e),options:[e,t]}),Ql={...qn},Kl=Ql.useInsertionEffect||(e=>e());function Yl(e){const t=Et((()=>{}));return Kl((()=>{t.current=e})),Pt((function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return null==t.current?void 0:t.current(...n)}),[])}var Xl="undefined"!=typeof document?St:kt;let Zl=!1,Jl=0;const ec=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+Jl++;const tc=Ql.useId||function(){const[e,t]=bt((()=>Zl?ec():void 0));return Xl((()=>{null==e&&t(ec())}),[]),kt((()=>{Zl=!0}),[]),e};const nc=Ze(null),rc=Ze(null),ic="data-floating-ui-focusable";function oc(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=tc(),o=Et({}),[a]=bt((()=>function(){const e=new Map;return{emit(t,n){var r;null==(r=e.get(t))||r.forEach((e=>e(n)))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,(null==(r=e.get(t))?void 0:r.filter((e=>e!==n)))||[])}}}())),s=null!=((null==(l=At(nc))?void 0:l.id)||null);var l;const[c,u]=bt(r.reference),d=Yl(((e,t,r)=>{o.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:r,nested:s}),null==n||n(e,t,r)})),p=Tt((()=>({setPositionReference:u})),[]),f=Tt((()=>({reference:c||r.reference||null,floating:r.floating||null,domReference:r.reference})),[c,r.reference,r.floating]);return Tt((()=>({dataRef:o,open:t,onOpenChange:d,elements:f,events:a,floatingId:i,refs:p})),[t,d,f,a,i,p])}function ac(e){void 0===e&&(e={});const{nodeId:t}=e,n=oc({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,a]=bt(null),[s,l]=bt(null),c=(null==i?void 0:i.domReference)||o,u=Et(null),d=At(rc);Xl((()=>{c&&(u.current=c)}),[c]);const p=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:a}={},transform:s=!0,whileElementsMounted:l,open:c}=e,[u,d]=bt({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=bt(r);$l(p,r)||f(r);const[h,v]=bt(null),[m,g]=bt(null),_=Pt((e=>{e!==x.current&&(x.current=e,v(e))}),[]),y=Pt((e=>{e!==k.current&&(k.current=e,g(e))}),[]),w=o||h,b=a||m,x=Et(null),k=Et(null),S=Et(u),E=null!=l,C=Bl(l),T=Bl(i),P=Bl(c),A=Pt((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:n,middleware:p};T.current&&(e.platform=T.current),Hl(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==P.current};R.current&&!$l(S.current,t)&&(S.current=t,In((()=>{d(t)})))}))}),[p,t,n,T,P]);Wl((()=>{!1===c&&S.current.isPositioned&&(S.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[c]);const R=Et(!1);Wl((()=>(R.current=!0,()=>{R.current=!1})),[]),Wl((()=>{if(w&&(x.current=w),b&&(k.current=b),w&&b){if(C.current)return C.current(w,b,A);A()}}),[w,b,A,C,E]);const O=Tt((()=>({reference:x,floating:k,setReference:_,setFloating:y})),[_,y]),M=Tt((()=>({reference:w,floating:b})),[w,b]),L=Tt((()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=Ul(M.floating,u.x),r=Ul(M.floating,u.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...jl(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}}),[n,s,M.floating,u.x,u.y]);return Tt((()=>({...u,update:A,refs:O,elements:M,floatingStyles:L})),[u,A,O,M,L])}({...e,elements:{...i,...s&&{reference:s}}}),f=Pt((e=>{const t=Gs(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),p.refs.setReference(t)}),[p.refs]),h=Pt((e=>{(Gs(e)||null===e)&&(u.current=e,a(e)),(Gs(p.refs.reference.current)||null===p.refs.reference.current||null!==e&&!Gs(e))&&p.refs.setReference(e)}),[p.refs]),v=Tt((()=>({...p.refs,setReference:h,setPositionReference:f,domReference:u})),[p.refs,h,f]),m=Tt((()=>({...p.elements,domReference:c})),[p.elements,c]),g=Tt((()=>({...p,...r,refs:v,elements:m,nodeId:t})),[p,v,m,t,r]);return Xl((()=>{r.dataRef.current.floatingContext=g;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=g)})),Tt((()=>({...p,context:g,refs:v,elements:m})),[p,v,m,g])}const sc="active",lc="selected";function cc(e,t,n){const r=new Map,i="item"===n;let o=e;if(i&&e){const{[sc]:t,[lc]:n,...r}=e;o=r}return{..."floating"===n&&{tabIndex:-1,[ic]:""},...o,...t.map((t=>{const r=t?t[n]:null;return"function"==typeof r?e?r(e):null:r})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[n,o]=t;var a;i&&[sc,lc].includes(n)||(0===n.indexOf("on")?(r.has(n)||r.set(n,[]),"function"==typeof o&&(null==(a=r.get(n))||a.push(o),e[n]=function(){for(var e,t=arguments.length,i=new Array(t),o=0;o<t;o++)i[o]=arguments[o];return null==(e=r.get(n))?void 0:e.map((e=>e(...i))).find((e=>void 0!==e))})):e[n]=o)})),e):e),{})}}function uc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}function dc(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:a,onChange:s}=t,l=Yl(s),c=Et(!1),u=Et(null),d=Et(null);kt((()=>{if(!i)return;function e(e){if(e.ctrlKey||!t||null==o.current)return;const n=e.deltaY,r=o.current.top>=-.5,i=o.current.bottom>=-.5,a=t.scrollHeight-t.clientHeight,s=n<0?-1:1,c=n<0?"max":"min";t.scrollHeight<=t.clientHeight||(!r&&n>0||!i&&n<0?(e.preventDefault(),In((()=>{l((e=>e+Math[c](n,a*s)))}))):/firefox/i.test(function(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:n}=e;return t+"/"+n})).join(" "):navigator.userAgent}())&&(t.scrollTop+=n))}const t=(null==a?void 0:a.current)||r.floating;return n&&t?(t.addEventListener("wheel",e),requestAnimationFrame((()=>{u.current=t.scrollTop,null!=o.current&&(d.current={...o.current})})),()=>{u.current=null,d.current=null,t.removeEventListener("wheel",e)}):void 0}),[i,n,r.floating,o,a,l]);const p=Tt((()=>({onKeyDown(){c.current=!0},onWheel(){c.current=!1},onPointerMove(){c.current=!1},onScroll(){const e=(null==a?void 0:a.current)||r.floating;if(o.current&&e&&c.current){if(null!==u.current){const t=e.scrollTop-u.current;(o.current.bottom<-.5&&t<-1||o.current.top<-.5&&t>1)&&In((()=>l((e=>e+t))))}requestAnimationFrame((()=>{u.current=e.scrollTop}))}}})),[r.floating,l,o,a]);return Tt((()=>i?{floating:p}:{}),[i,p])}let pc=Ze({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});pc.displayName="FloatingContext";let fc=Ze(null);fc.displayName="PlacementContext";function hc({children:e,enabled:t=!0}){let[n,r]=bt(null),[i,o]=bt(0),a=Et(null),[s,l]=bt(null);!function(e){da((()=>{if(!e)return;let t=new MutationObserver((()=>{let t=window.getComputedStyle(e).maxHeight,n=parseFloat(t);if(isNaN(n))return;let r=parseInt(t);isNaN(r)||n!==r&&(e.style.maxHeight=`${Math.ceil(n)}px`)}));return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}}),[e])}(s);let c=t&&null!==n&&null!==s,{to:u="bottom",gap:d=0,offset:p=0,padding:f=0,inner:h}=function(e,t){var n,r,i;let o=vc(null!=(n=null==e?void 0:e.gap)?n:"var(--anchor-gap, 0)",t),a=vc(null!=(r=null==e?void 0:e.offset)?r:"var(--anchor-offset, 0)",t),s=vc(null!=(i=null==e?void 0:e.padding)?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:a,padding:s}}(n,s),[v,m="center"]=u.split(" ");da((()=>{c&&o(0)}),[c]);let{refs:g,floatingStyles:_,context:y}=ac({open:c,placement:"selection"===v?"center"===m?"bottom":`bottom-${m}`:"center"===m?`${v}`:`${v}-${m}`,strategy:"absolute",transform:!1,middleware:[ql({mainAxis:"selection"===v?0:d,crossAxis:p}),(k={padding:f},{...Dl(k),options:[k,S]}),"selection"!==v&&zl({padding:f}),"selection"===v&&h?(x={...h,padding:f,overflowRef:a,offset:i,minItemsVisible:4,referenceOverflowThreshold:f,onFallbackChange(e){var t,n;if(!e)return;let r=y.elements.floating;if(!r)return;let i=parseFloat(getComputedStyle(r).scrollPaddingBottom)||0,a=Math.min(4,r.childElementCount),s=0,l=0;for(let o of null!=(n=null==(t=y.elements.floating)?void 0:t.childNodes)?n:[])if(o instanceof HTMLElement){let e=o.offsetTop,t=e+o.clientHeight+i,n=r.scrollTop,c=n+r.clientHeight;if(!(e>=n&&t<=c)){l=Math.max(0,Math.min(t,c)-Math.max(e,n)),s=o.clientHeight;break}a--}a>=1&&o((e=>{let t=s*a-l+i;return e>=t?e:t}))}},{name:"inner",options:x,async fn(e){const{listRef:t,overflowRef:n,onFallbackChange:r,offset:i=0,index:o=0,minItemsVisible:a=4,referenceOverflowThreshold:s=0,scrollRef:l,...c}=al(x,e),{rects:u,elements:{floating:d}}=e,p=t.current[o],f=(null==l?void 0:l.current)||d,h=d.clientTop||f.clientTop,v=0!==d.clientTop,m=0!==f.clientTop,g=d===f;if(!p)return{};const _={...e,...await ql(-p.offsetTop-d.clientTop-u.reference.height/2-p.offsetHeight/2-i).fn(e)},y=await Fl(uc(_,f.scrollHeight+h+d.clientTop),c),w=await Fl(_,{...c,elementContext:"reference"}),b=Js(0,y.top),k=_.y+b,S=f.scrollHeight>f.clientHeight,E=(S?e=>e:el)(Js(0,f.scrollHeight+(v&&g||m?2*h:0)-b-Js(0,y.bottom)));if(f.style.maxHeight=E+"px",f.scrollTop=b,r){const e=S&&f.offsetHeight<p.offsetHeight*a-1||w.top>=-s||w.bottom>=-s;In((()=>r(e)))}return n&&(n.current=await Fl(uc({..._,y:k},f.offsetHeight+h+d.clientTop),c)),{y:k}}}):null,Vl({padding:f,apply({availableWidth:e,availableHeight:t,elements:n}){Object.assign(n.floating.style,{overflow:"auto",maxWidth:`${e}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${t}px)`})}})].filter(Boolean),whileElementsMounted:Ll}),[w=v,b=m]=y.placement.split("-");var x,k,S;"selection"===v&&(w="selection");let E=Tt((()=>({anchor:[w,b].filter(Boolean).join(" ")})),[w,b]),C=dc(y,{overflowRef:a,onChange:o}),{getReferenceProps:T,getFloatingProps:P}=function(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),n=e.map((e=>null==e?void 0:e.floating)),r=e.map((e=>null==e?void 0:e.item)),i=Pt((t=>cc(t,e,"reference")),t),o=Pt((t=>cc(t,e,"floating")),n),a=Pt((t=>cc(t,e,"item")),r);return Tt((()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:a})),[i,o,a])}([C]),A=fa((e=>{l(e),g.setFloating(e)}));return Pe(fc.Provider,{value:r},Pe(pc.Provider,{value:{setFloating:A,setReference:g.setReference,styles:_,getReferenceProps:T,getFloatingProps:P,slot:E}},e))}function vc(e,t,n=void 0){let r=ua(),i=fa(((e,t)=>{if(null==e)return[n,null];if("number"==typeof e)return[e,null];if("string"==typeof e){if(!t)return[n,null];let i=gc(e,t);return[i,n=>{let o=mc(e);{let a=o.map((e=>window.getComputedStyle(t).getPropertyValue(e)));r.requestAnimationFrame((function s(){r.nextFrame(s);let l=!1;for(let[e,n]of o.entries()){let r=window.getComputedStyle(t).getPropertyValue(n);if(a[e]!==r){a[e]=r,l=!0;break}}if(!l)return;let c=gc(e,t);i!==c&&(n(c),i=c)}))}return r.dispose}]}return[n,null]})),o=Tt((()=>i(e,t)[0]),[e,t]),[a=o,s]=bt();return da((()=>{let[n,r]=i(e,t);if(s(n),r)return r(s)}),[e,t]),a}function mc(e){let t=/var\((.*)\)/.exec(e);if(t){let e=t[1].indexOf(",");if(-1===e)return[t[1]];let n=t[1].slice(0,e).trim(),r=t[1].slice(e+1).trim();return r?[n,...mc(r)]:[n]}return[]}function gc(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}let _c=Ze(null);_c.displayName="OpenClosedContext";var yc=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(yc||{});function wc({value:e,children:t}){return Bn.createElement(_c.Provider,{value:e},t)}var bc,xc=((bc=xc||{})[bc.First=0]="First",bc[bc.Previous=1]="Previous",bc[bc.Next=2]="Next",bc[bc.Last=3]="Last",bc[bc.Specific=4]="Specific",bc[bc.Nothing=5]="Nothing",bc);function kc(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=null!=r?r:-1;switch(e.focus){case 0:for(let e=0;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 1:-1===i&&(i=n.length);for(let e=i-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 2:for(let e=i+1;e<n.length;++e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 3:for(let e=n.length-1;e>=0;--e)if(!t.resolveDisabled(n[e],e,n))return e;return r;case 4:for(let r=0;r<n.length;++r)if(t.resolveId(n[r],r,n)===e.id)return r;return r;case 5:return null;default:!function(e){throw new Error("Unexpected object: "+e)}(e)}}function Sc(){let e=function(){let e="undefined"==typeof document;return"useSyncExternalStore"in qn&&(e=>e.useSyncExternalStore)(qn)((()=>()=>{}),(()=>!1),(()=>!e))}(),[t,n]=bt(aa.isHandoffComplete);return t&&!1===aa.isHandoffComplete&&n(!1),kt((()=>{!0!==t&&n(!0)}),[t]),kt((()=>aa.handoff()),[]),!e&&t}let Ec=Ze(!1);function Cc(e){let t=At(Ec),n=At(Rc),r=ws(e),[i,o]=bt((()=>{var e;if(!t&&null!==n)return null!=(e=n.current)?e:null;if(aa.isServer)return null;let i=null==r?void 0:r.getElementById("headlessui-portal-root");if(i)return i;if(null===r)return null;let o=r.createElement("div");return o.setAttribute("id","headlessui-portal-root"),r.body.appendChild(o)}));return kt((()=>{null!==i&&(null!=r&&r.body.contains(i)||null==r||r.body.appendChild(i))}),[i,r]),kt((()=>{t||null!==n&&o(n.current)}),[n,o,t]),i}let Tc=Oe,Pc=Ta((function(e,t){let n=e,r=Et(null),i=Fa(function(e,t=!0){return Object.assign(e,{[La]:t})}((e=>{r.current=e})),t),o=ws(r),a=Cc(r),[s]=bt((()=>{var e;return aa.isServer?null:null!=(e=null==o?void 0:o.createElement("div"))?e:null})),l=At(Oc),c=Sc();da((()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))}),[a,s]),da((()=>{if(s&&l)return l.register(s)}),[l,s]),function(e){let t=fa(e),n=Et(!1);kt((()=>(n.current=!1,()=>{n.current=!0,la((()=>{n.current&&t()}))})),[t])}((()=>{var e;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&(null==(e=a.parentElement)||e.removeChild(a)))}));let u=xa();return c&&a&&s?ln(u({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Tc,name:"Portal"}),s):null}));let Ac=Oe,Rc=Ze(null);let Oc=Ze(null),Mc=Ta((function(e,t){let n=Fa(t),{enabled:r=!0,...i}=e,o=xa();return r?Bn.createElement(Pc,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Tc,name:"Portal"})})),Lc=Ta((function(e,t){let{target:n,...r}=e,i={ref:Fa(t)},o=xa();return Bn.createElement(Rc.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Ac,name:"Popover.Group"}))})),Fc=Object.assign(Mc,{Group:Lc});let Ic=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Dc(e){var t,n;let r=null!=(t=e.innerText)?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let s of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))s.remove(),o=!0;let a=o?null!=(n=i.innerText)?n:"":r;return Ic.test(a)&&(a=a.replace(Ic,"")),a}function Gc(e){let t=Et(""),n=Et("");return fa((()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=function(e){let t=e.getAttribute("aria-label");if("string"==typeof t)return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let e=n.split(" ").map((e=>{let t=document.getElementById(e);if(t){let e=t.getAttribute("aria-label");return"string"==typeof e?e.trim():Dc(t).trim()}return null})).filter(Boolean);if(e.length>0)return e.join(", ")}return Dc(e).trim()}(r).trim().toLowerCase();return t.current=i,n.current=o,o}))}var Nc=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(Nc||{}),Hc=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(Hc||{}),Wc=(e=>(e[e.OpenMenu=0]="OpenMenu",e[e.CloseMenu=1]="CloseMenu",e[e.GoToItem=2]="GoToItem",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterItem=5]="RegisterItem",e[e.UnregisterItem=6]="UnregisterItem",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetItemsElement=8]="SetItemsElement",e))(Wc||{});function $c(e,t=e=>e){let n=null!==e.activeItemIndex?e.items[e.activeItemIndex]:null,r=hs(t(e.items.slice()),(e=>e.dataRef.current.domRef.current)),i=n?r.indexOf(n):null;return-1===i&&(i=null),{items:r,activeItemIndex:i}}let jc={1:e=>1===e.menuState?e:{...e,activeItemIndex:null,menuState:1},0:e=>0===e.menuState?e:{...e,__demoMode:!1,menuState:0},2:(e,t)=>{var n,r,i,o,a;if(1===e.menuState)return e;let s={...e,searchQuery:"",activationTrigger:null!=(n=t.trigger)?n:1,__demoMode:!1};if(t.focus===xc.Nothing)return{...s,activeItemIndex:null};if(t.focus===xc.Specific)return{...s,activeItemIndex:e.items.findIndex((e=>e.id===t.id))};if(t.focus===xc.Previous){let n=e.activeItemIndex;if(null!==n){let o=e.items[n].dataRef.current.domRef,a=kc(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==a){let t=e.items[a].dataRef.current.domRef;if((null==(r=o.current)?void 0:r.previousElementSibling)===t.current||null===(null==(i=t.current)?void 0:i.previousElementSibling))return{...s,activeItemIndex:a}}}}else if(t.focus===xc.Next){let n=e.activeItemIndex;if(null!==n){let r=e.items[n].dataRef.current.domRef,i=kc(t,{resolveItems:()=>e.items,resolveActiveIndex:()=>e.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});if(null!==i){let t=e.items[i].dataRef.current.domRef;if((null==(o=r.current)?void 0:o.nextElementSibling)===t.current||null===(null==(a=t.current)?void 0:a.nextElementSibling))return{...s,activeItemIndex:i}}}}let l=$c(e),c=kc(t,{resolveItems:()=>l.items,resolveActiveIndex:()=>l.activeItemIndex,resolveId:e=>e.id,resolveDisabled:e=>e.dataRef.current.disabled});return{...s,...l,activeItemIndex:c}},3:(e,t)=>{let n=""!==e.searchQuery?0:1,r=e.searchQuery+t.value.toLowerCase(),i=(null!==e.activeItemIndex?e.items.slice(e.activeItemIndex+n).concat(e.items.slice(0,e.activeItemIndex+n)):e.items).find((e=>{var t;return(null==(t=e.dataRef.current.textValue)?void 0:t.startsWith(r))&&!e.dataRef.current.disabled})),o=i?e.items.indexOf(i):-1;return-1===o||o===e.activeItemIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeItemIndex:o,activationTrigger:1}},4:e=>""===e.searchQuery?e:{...e,searchQuery:"",searchActiveItemIndex:null},5:(e,t)=>{let n=$c(e,(e=>[...e,{id:t.id,dataRef:t.dataRef}]));return{...e,...n}},6:(e,t)=>{let n=$c(e,(e=>{let n=e.findIndex((e=>e.id===t.id));return-1!==n&&e.splice(n,1),e}));return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.itemsElement===t.element?e:{...e,itemsElement:t.element}},Uc=Ze(null);function Bc(e){let t=At(Uc);if(null===t){let t=new Error(`<${e} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Bc),t}return t}function qc(e,t){return ga(t.type,jc,e,t)}Uc.displayName="MenuContext";let zc=Oe;let Vc=wa.RenderStrategy|wa.Static;let Qc=Oe;let Kc=Ta((function(e,t){let{__demoMode:n=!1,...r}=e,i=xt(qc,{__demoMode:n,menuState:n?0:1,buttonElement:null,itemsElement:null,items:[],searchQuery:"",activeItemIndex:null,activationTrigger:1}),[{menuState:o,itemsElement:a,buttonElement:s},l]=i,c=Fa(t);ys(0===o,[s,a],((e,t)=>{l({type:1}),us(t,cs.Loose)||(e.preventDefault(),null==s||s.focus())}));let u=fa((()=>{l({type:1})})),d=Tt((()=>({open:0===o,close:u})),[o,u]),p={ref:c},f=xa();return Bn.createElement(hc,null,Bn.createElement(Uc.Provider,{value:i},Bn.createElement(wc,{value:ga(o,{0:yc.Open,1:yc.Closed})},f({ourProps:p,theirProps:r,slot:d,defaultTag:zc,name:"Menu"}))))})),Yc=Ta((function(e,t){var n;let r=Ot(),{id:i=`headlessui-menu-button-${r}`,disabled:o=!1,autoFocus:a=!1,...s}=e,[l,c]=Bc("Menu.Button"),u=At(pc).getReferenceProps,d=Fa(t,At(pc).setReference,fa((e=>c({type:7,element:e})))),p=fa((e=>{switch(e.key){case Ha.Space:case Ha.Enter:case Ha.ArrowDown:e.preventDefault(),e.stopPropagation(),In((()=>c({type:0}))),c({type:2,focus:xc.First});break;case Ha.ArrowUp:e.preventDefault(),e.stopPropagation(),In((()=>c({type:0}))),c({type:2,focus:xc.Last})}})),f=fa((e=>{if(e.key===Ha.Space)e.preventDefault()})),h=fa((e=>{var t;if(Ma(e.currentTarget))return e.preventDefault();o||(0===l.menuState?(In((()=>c({type:1}))),null==(t=l.buttonElement)||t.focus({preventScroll:!0})):(e.preventDefault(),c({type:0})))})),{isFocusVisible:v,focusProps:m}=ra({autoFocus:a}),{isHovered:g,hoverProps:_}=function(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,a]=bt(!1),s=Et({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;kt(na,[]);let{hoverProps:l,triggerHoverEnd:c}=Tt((()=>{let e=(e,r)=>{if(s.pointerType=r,i||"touch"===r||s.isHovered||!e.currentTarget.contains(e.target))return;s.isHovered=!0;let o=e.currentTarget;s.target=o,t&&t({type:"hoverstart",target:o,pointerType:r}),n&&n(!0),a(!0)},o=(e,t)=>{if(s.pointerType="",s.target=null,"touch"===t||!s.isHovered)return;s.isHovered=!1;let i=e.currentTarget;r&&r({type:"hoverend",target:i,pointerType:t}),n&&n(!1),a(!1)},l={};return"undefined"!=typeof PointerEvent?(l.onPointerEnter=t=>{Zo&&"mouse"===t.pointerType||e(t,t.pointerType)},l.onPointerLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,e.pointerType)}):(l.onTouchStart=()=>{s.ignoreEmulatedMouseEvents=!0},l.onMouseEnter=t=>{s.ignoreEmulatedMouseEvents||Zo||e(t,"mouse"),s.ignoreEmulatedMouseEvents=!1},l.onMouseLeave=e=>{!i&&e.currentTarget.contains(e.target)&&o(e,"mouse")}),{hoverProps:l,triggerHoverEnd:o}}),[t,n,r,i,s]);return kt((()=>{i&&c({currentTarget:s.target},s.pointerType)}),[i]),{hoverProps:l,isHovered:o}}({isDisabled:o}),{pressed:y,pressProps:w}=function({disabled:e=!1}={}){let t=Et(null),[n,r]=bt(!1),i=ua(),o=fa((()=>{t.current=null,r(!1),i.dispose()})),a=fa((e=>{if(i.dispose(),null===t.current){t.current=e.currentTarget,r(!0);{let n=sa(e.currentTarget);i.addEventListener(n,"pointerup",o,!1),i.addEventListener(n,"pointermove",(e=>{if(t.current){let n=function(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}(e);r(function(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}(n,t.current.getBoundingClientRect()))}}),!1),i.addEventListener(n,"pointercancel",o,!1)}}}));return{pressed:n,pressProps:e?{}:{onPointerDown:a,onPointerUp:o,onClick:o}}}({disabled:o}),b=Tt((()=>({open:0===l.menuState,active:y||0===l.menuState,disabled:o,hover:g,focus:v,autofocus:a})),[l,g,v,y,o,a]),x=Ca(u(),{ref:d,id:i,type:bs(e,l.buttonElement),"aria-haspopup":"menu","aria-controls":null==(n=l.itemsElement)?void 0:n.id,"aria-expanded":0===l.menuState,disabled:o||void 0,autoFocus:a,onKeyDown:p,onKeyUp:f,onClick:h},m,_,w);return xa()({ourProps:x,theirProps:s,slot:b,defaultTag:"button",name:"Menu.Button"})})),Xc=Ta((function(e,t){var n,r;let i=Ot(),{id:o=`headlessui-menu-items-${i}`,anchor:a,portal:s=!1,modal:l=!0,transition:c=!1,...u}=e,d=function(e){return Tt((()=>e?"string"==typeof e?{to:e}:e:null),[e])}(a),[p,f]=Bc("Menu.Items"),[h,v]=function(e=null){!1===e&&(e=null),"string"==typeof e&&(e={to:e});let t=At(fc),n=Tt((()=>e),[JSON.stringify(e,((e,t)=>{var n;return null!=(n=null==t?void 0:t.outerHTML)?n:t}))]);da((()=>{null==t||t(null!=n?n:null)}),[t,n]);let r=At(pc);return Tt((()=>[r.setFloating,e?r.styles:{}]),[r.setFloating,e,r.styles])}(d),m=function(){let{getFloatingProps:e,slot:t}=At(pc);return Pt(((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor})),[e,t])}(),[g,_]=bt(null),y=Fa(t,d?h:null,fa((e=>f({type:8,element:e}))),_),w=ws(p.itemsElement);d&&(s=!0);let b=At(_c),[x,k]=Os(c,g,null!==b?(b&yc.Open)===yc.Open:0===p.menuState);!function(e,t,n){let r=pa((e=>{let t=e.getBoundingClientRect();0===t.x&&0===t.y&&0===t.width&&0===t.height&&n()}));kt((()=>{if(!e)return;let n=null===t?null:t instanceof HTMLElement?t:t.current;if(!n)return;let i=ca();if("undefined"!=typeof ResizeObserver){let e=new ResizeObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}if("undefined"!=typeof IntersectionObserver){let e=new IntersectionObserver((()=>r.current(n)));e.observe(n),i.add((()=>e.disconnect()))}return()=>i.dispose()}),[t,r,e])}(x,p.buttonElement,(()=>{f({type:1})})),Es(!p.__demoMode&&(l&&0===p.menuState),w),function(e,{allowed:t,disallowed:n}={}){let r=Ka(e,"inert-others");da((()=>{var e,i;if(!r)return;let o=ca();for(let t of null!=(e=null==n?void 0:n())?e:[])t&&o.add(Za(t));let a=null!=(i=null==t?void 0:t())?i:[];for(let t of a){if(!t)continue;let e=sa(t);if(!e)continue;let n=t.parentElement;for(;n&&n!==e.body;){for(let e of n.children)a.some((t=>e.contains(t)))||o.add(Za(e));n=n.parentElement}}return o.dispose}),[r,t,n])}(!p.__demoMode&&(l&&0===p.menuState),{allowed:Pt((()=>[p.buttonElement,p.itemsElement]),[p.buttonElement,p.itemsElement])});let S=!function(e,t){let n=Et({left:0,top:0});if(da((()=>{if(!t)return;let e=t.getBoundingClientRect();e&&(n.current=e)}),[e,t]),null==t||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}(0!==p.menuState,p.buttonElement)&&x;kt((()=>{let e=p.itemsElement;e&&0===p.menuState&&e!==(null==w?void 0:w.activeElement)&&e.focus({preventScroll:!0})}),[p.menuState,p.itemsElement,w]),function(e,{container:t,accept:n,walk:r}){let i=Et(n),o=Et(r);kt((()=>{i.current=n,o.current=r}),[n,r]),da((()=>{if(!t||!e)return;let n=sa(t);if(!n)return;let r=i.current,a=o.current,s=Object.assign((e=>r(e)),{acceptNode:r}),l=n.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)a(l.currentNode)}),[t,e,i,o])}(0===p.menuState,{container:p.itemsElement,accept:e=>"menuitem"===e.getAttribute("role")?NodeFilter.FILTER_REJECT:e.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT,walk(e){e.setAttribute("role","none")}});let E=ua(),C=fa((e=>{var t,n,r;switch(E.dispose(),e.key){case Ha.Space:if(""!==p.searchQuery)return e.preventDefault(),e.stopPropagation(),f({type:3,value:e.key});case Ha.Enter:if(e.preventDefault(),e.stopPropagation(),f({type:1}),null!==p.activeItemIndex){let{dataRef:e}=p.items[p.activeItemIndex];null==(n=null==(t=e.current)?void 0:t.domRef.current)||n.click()}ds(p.buttonElement);break;case Ha.ArrowDown:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:xc.Next});case Ha.ArrowUp:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:xc.Previous});case Ha.Home:case Ha.PageUp:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:xc.First});case Ha.End:case Ha.PageDown:return e.preventDefault(),e.stopPropagation(),f({type:2,focus:xc.Last});case Ha.Escape:e.preventDefault(),e.stopPropagation(),In((()=>f({type:1}))),null==(r=p.buttonElement)||r.focus({preventScroll:!0});break;case Ha.Tab:e.preventDefault(),e.stopPropagation(),In((()=>f({type:1}))),vs(p.buttonElement,e.shiftKey?os.Previous:os.Next);break;default:1===e.key.length&&(f({type:3,value:e.key}),E.setTimeout((()=>f({type:4})),350))}})),T=fa((e=>{if(e.key===Ha.Space)e.preventDefault()})),P=Tt((()=>({open:0===p.menuState})),[p.menuState]),A=Ca(d?m():{},{"aria-activedescendant":null===p.activeItemIndex||null==(n=p.items[p.activeItemIndex])?void 0:n.id,"aria-labelledby":null==(r=p.buttonElement)?void 0:r.id,id:o,onKeyDown:C,onKeyUp:T,role:"menu",tabIndex:0===p.menuState?0:void 0,ref:y,style:{...u.style,...v,"--button-width":Ba(p.buttonElement,!0).width},...Rs(k)}),R=xa();return Bn.createElement(Fc,{enabled:!!s&&(e.static||x)},R({ourProps:A,theirProps:u,slot:P,defaultTag:"div",features:Vc,visible:S,name:"Menu.Items"}))})),Zc=Ta((function(e,t){let n=Ot(),{id:r=`headlessui-menu-item-${n}`,disabled:i=!1,...o}=e,[a,s]=Bc("Menu.Item"),l=null!==a.activeItemIndex&&a.items[a.activeItemIndex].id===r,c=Et(null),u=Fa(t,c);da((()=>{if(!a.__demoMode&&0===a.menuState&&l&&0!==a.activationTrigger)return ca().requestAnimationFrame((()=>{var e,t;null==(t=null==(e=c.current)?void 0:e.scrollIntoView)||t.call(e,{block:"nearest"})}))}),[a.__demoMode,c,l,a.menuState,a.activationTrigger,a.activeItemIndex]);let d=Gc(c),p=Et({disabled:i,domRef:c,get textValue(){return d()}});da((()=>{p.current.disabled=i}),[p,i]),da((()=>(s({type:5,id:r,dataRef:p}),()=>s({type:6,id:r}))),[p,r]);let f=fa((()=>{s({type:1})})),h=fa((e=>{if(i)return e.preventDefault();s({type:1}),ds(a.buttonElement)})),v=fa((()=>{if(i)return s({type:2,focus:xc.Nothing});s({type:2,focus:xc.Specific,id:r})})),m=function(){let e=Et([-1,-1]);return{wasMoved(t){let n=Cs(t);return(e.current[0]!==n[0]||e.current[1]!==n[1])&&(e.current=n,!0)},update(t){e.current=Cs(t)}}}(),g=fa((e=>{m.update(e),!i&&(l||s({type:2,focus:xc.Specific,id:r,trigger:0}))})),_=fa((e=>{m.wasMoved(e)&&(i||l||s({type:2,focus:xc.Specific,id:r,trigger:0}))})),y=fa((e=>{m.wasMoved(e)&&(i||l&&s({type:2,focus:xc.Nothing}))})),[w,b]=ja(),[x,k]=function(){let[e,t]=bt([]);return[e.length>0?e.join(" "):void 0,Tt((()=>function(e){let n=fa((e=>(t((t=>[...t,e])),()=>t((t=>{let n=t.slice(),r=n.indexOf(e);return-1!==r&&n.splice(r,1),n}))))),r=Tt((()=>({register:n,slot:e.slot,name:e.name,props:e.props,value:e.value})),[n,e.slot,e.name,e.props,e.value]);return Bn.createElement(Ia.Provider,{value:r},e.children)}),[t])]}(),S=Tt((()=>({active:l,focus:l,disabled:i,close:f})),[l,i,f]),E={id:r,ref:u,role:"menuitem",tabIndex:!0===i?void 0:-1,"aria-disabled":!0===i||void 0,"aria-labelledby":w,"aria-describedby":x,disabled:void 0,onClick:h,onFocus:v,onPointerEnter:g,onMouseEnter:g,onPointerMove:_,onMouseMove:_,onPointerLeave:y,onMouseLeave:y},C=xa();return Bn.createElement(b,null,Bn.createElement(k,null,C({ourProps:E,theirProps:o,slot:S,defaultTag:Qc,name:"Menu.Item"})))})),Jc=Ta((function(e,t){let[n,r]=ja(),i=e,o={ref:t,"aria-labelledby":n,role:"group"},a=xa();return Bn.createElement(r,null,a({ourProps:o,theirProps:i,slot:{},defaultTag:"div",name:"Menu.Section"}))})),eu=Ta((function(e,t){let n=Ot(),{id:r=`headlessui-menu-heading-${n}`,...i}=e,o=$a();da((()=>o.register(r)),[r,o.register]);let a={id:r,ref:t,role:"presentation",...o.props};return xa()({ourProps:a,theirProps:i,slot:{},defaultTag:"header",name:"Menu.Heading"})})),tu=Ta((function(e,t){let n=e,r={ref:t,role:"separator"};return xa()({ourProps:r,theirProps:n,slot:{},defaultTag:"div",name:"Menu.Separator"})})),nu=Object.assign(Kc,{Button:Yc,Items:Xc,Item:Zc,Section:Jc,Heading:eu,Separator:tu});const ru=e=>fo(ou,{children:ho(nu,{as:"div",children:[fo("div",{children:ho(Yc,{css:{display:"flex",alignItems:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))",":hover":{"--tw-text-opacity":"1",color:"rgb(75 85 99 / var(--tw-text-opacity))"},":focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-opacity":"1","--tw-ring-color":"rgb(99 102 241 / var(--tw-ring-opacity))","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#f3f4f6"}},children:[fo("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"}),fo(bo,{"aria-hidden":"true",css:{width:"1.25rem",height:"1.25rem"}})]})}),fo(Xc,{transition:!0,className:"right-45 w-30",css:{position:"fixed",zIndex:"10",marginTop:"0.5rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))","--tw-shadow":"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color)","--tw-ring-color":"rgb(0 0 0 / 0.05)",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms",":focus":{outline:"2px solid transparent",outlineOffset:"2px"},"&[data-closed]":{"--tw-scale-x":".95","--tw-scale-y":".95",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))",opacity:"0"},"&[data-enter]":{transitionDuration:"100ms",transitionTimingFunction:"cubic-bezier(0, 0, 0.2, 1)"},"&[data-leave]":{transitionDuration:"75ms",transitionTimingFunction:"cubic-bezier(0.4, 0, 1, 1)"}},children:e.items.map(((t,n)=>fo(Zc,{children:fo("button",{type:"button",css:{display:"block",paddingLeft:"1rem",paddingRight:"1rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))","&[data-focus]":{"--tw-bg-opacity":"1",backgroundColor:"rgb(243 244 246 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))",outline:"2px solid transparent",outlineOffset:"2px"}},onClick:()=>{t.onClick(e.id)},children:t.label},n)},n)))})]})}),iu=e=>{const t=new Date(e.value);return ho(ou,{children:[t.toLocaleDateString(),fo("br",{}),t.toLocaleTimeString()]})},ou=ao.td`
2
2
  ${{whiteSpace:"nowrap",paddingTop:"1rem",paddingBottom:"1rem",paddingLeft:"1rem",paddingRight:"0.75rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"}}
3
- `,ka=oa.td`
3
+ `,au=ao.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))"}}
5
- `,xa=oa.span({display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--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)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},(e=>e.className)),Sa=e=>{const t=new Date(e.value);return ha(ba,{children:[t.toLocaleDateString(),pa("br",{}),t.toLocaleTimeString()]})},Ca=e=>e.url?pa(ka,{children:ha(xa,{as:"a",href:e.url,target:"_blank",rel:"noopener noreferrer",css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(240 253 244 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(21 128 61 / var(--tw-text-opacity))","--tw-ring-color":"rgb(22 163 74 / 0.2)"},children:[pa("span",{css:{lineHeight:"1.25rem"},children:"Linked"}),pa(ga,{css:{marginTop:"auto",marginBottom:"auto",marginLeft:"0.25rem",height:"0.75rem",width:"0.75rem"}})]})}):pa(ka,{children:pa(xa,{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgb(185 28 28 / var(--tw-text-opacity))","--tw-ring-color":"rgb(220 38 38 / 0.2)"},children:"Unlinked"})}),Aa=e=>pa(ka,{children:pa("button",{as:"button",onClick:()=>e.onClick(e.id),css:{display:"inline-flex",alignItems:"center",fill:"var(--fl-color-primary-600)",paddingLeft:"0.25rem",paddingRight:"0.25rem"},children:e.children})}),Ga=e=>pa(ba,{children:pa("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((e=>pa("li",{children:e},e)))})}),Pa=(e,t,r)=>{var n;switch(null==r?void 0:r.kind){case"status":return pa(ka,{children:pa(xa,{className:null==(n=r.styleOverrides)?void 0:n[t],children:t})});case"date":return pa(Sa,{value:t});case"link":return pa(Ca,{url:t});case"button":return pa(Aa,{id:e,value:t,onClick:r.onClick,children:r.children});case"list":return pa(Ga,{value:t});default:return pa(ba,{children:t})}};function Oa({title:e,titleId:t,...r},n){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?Pe("title",{id:t},e):null,Pe("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 0 1 .75.75v10.638l3.96-4.158a.75.75 0 1 1 1.08 1.04l-5.25 5.5a.75.75 0 0 1-1.08 0l-5.25-5.5a.75.75 0 1 1 1.08-1.04l3.96 4.158V3.75A.75.75 0 0 1 10 3Z",clipRule:"evenodd"}))}const Ra=Qt(Oa);function Ma({title:e,titleId:t,...r},n){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?Pe("title",{id:t},e):null,Pe("path",{fillRule:"evenodd",d:"M10 17a.75.75 0 0 1-.75-.75V5.612L5.29 9.77a.75.75 0 0 1-1.08-1.04l5.25-5.5a.75.75 0 0 1 1.08 0l5.25 5.5a.75.75 0 1 1-1.08 1.04l-3.96-4.158V16.25A.75.75 0 0 1 10 17Z",clipRule:"evenodd"}))}const Ea=Qt(Ma),Ta=oa.button({marginRight:"1rem",display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},(e=>e.className),(({isActive:e})=>e&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(229 231 235 / var(--tw-bg-opacity))"})),La=oa.input`
5
+ `,su=ao.span({display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.75rem",lineHeight:"1rem",fontWeight:"500","--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)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},(e=>e.className)),lu=(e,t,n)=>{var r;switch(null==n?void 0:n.kind){case"status":return fo(au,{children:fo(su,{className:null==(r=n.styleOverrides)?void 0:r[t],children:t})});case"date":return fo(iu,{value:t});case"link":return fo(So,{url:t});case"button":return fo(Eo,{id:e,value:t,onClick:n.onClick,children:n.children});case"list":return fo(Co,{value:t});case"menu":return fo(ru,{id:e,items:n.items});default:return fo(ou,{children:t})}};function cu({title:e,titleId:t,...n},r){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Pe("title",{id:t},e):null,Pe("path",{fillRule:"evenodd",d:"M10 3a.75.75 0 0 1 .75.75v10.638l3.96-4.158a.75.75 0 1 1 1.08 1.04l-5.25 5.5a.75.75 0 0 1-1.08 0l-5.25-5.5a.75.75 0 1 1 1.08-1.04l3.96 4.158V3.75A.75.75 0 0 1 10 3Z",clipRule:"evenodd"}))}const uu=Vt(cu);function du({title:e,titleId:t,...n},r){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Pe("title",{id:t},e):null,Pe("path",{fillRule:"evenodd",d:"M10 17a.75.75 0 0 1-.75-.75V5.612L5.29 9.77a.75.75 0 0 1-1.08-1.04l5.25-5.5a.75.75 0 0 1 1.08 0l5.25 5.5a.75.75 0 1 1-1.08 1.04l-3.96-4.158V16.25A.75.75 0 0 1 10 17Z",clipRule:"evenodd"}))}const pu=Vt(du);function fu({title:e,titleId:t,...n},r){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Pe("title",{id:t},e):null,Pe("path",{fillRule:"evenodd",d:"M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-8-5a.75.75 0 0 1 .75.75v4.5a.75.75 0 0 1-1.5 0v-4.5A.75.75 0 0 1 10 5Zm0 10a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))}const hu=Vt(fu),vu=ao.button({marginRight:"1rem",display:"inline-flex",alignItems:"center",borderRadius:"0.375rem",paddingLeft:"0.5rem",paddingRight:"0.5rem",paddingTop:"0.25rem",paddingBottom:"0.25rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},(e=>e.className),(({isActive:e})=>e&&{"--tw-bg-opacity":"1",backgroundColor:"rgb(229 231 235 / var(--tw-bg-opacity))"})),mu=ao.input`
6
6
  ${()=>({display:"block",minHeight:"2.25rem",width:"100%",borderRadius:"0.375rem",borderWidth:"0px",paddingTop:"0.375rem",paddingBottom:"0.375rem",paddingRight:"5rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))","--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)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset","::placeholder":{"--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"},":focus":{"--tw-ring-offset-shadow":"var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)","--tw-ring-shadow":"var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)","--tw-ring-inset":"inset"},":disabled":{"--tw-bg-opacity":"1",backgroundColor:"rgb(229 231 235 / var(--tw-bg-opacity))"},"@media (min-width: 640px)":{fontSize:"0.875rem",lineHeight:"1.5rem"}})}
7
7
 
8
8
  ${({prefix:e})=>e?{paddingLeft:"2.5rem"}:{paddingLeft:"0.75rem"}}
9
9
 
10
10
  ${({hasError:e})=>e?{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(252 165 165 / var(--tw-ring-opacity))",":focus":{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(220 38 38 / var(--tw-ring-opacity))"}}:{"--tw-ring-opacity":"1","--tw-ring-color":"rgb(209 213 219 / var(--tw-ring-opacity))",":focus":{"--tw-ring-color":"var(--fl-color-primary-600)"}}}
11
- `;function Ia({title:e,titleId:t,...r},n){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:n,"aria-labelledby":t},r),e?Pe("title",{id:t},e):null,Pe("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const Fa=Qt(Ia),Wa=Qt((({label:e,id:t,type:r,icon:n,placeholder:i,setPlaceholderOnFocus:a,value:o,className:s,onChange:l,onBlur:c,onEnter:u,error:d,helperText:p,disabled:h,remove:f},_)=>ha("div",{className:s,children:[e&&pa("label",{htmlFor:t,css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),ha("div",{css:{position:"relative",marginTop:"0.5rem"},children:[n&&pa("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:n}),ha("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[pa(La,{type:r,value:o,name:t,id:t,placeholder:i,onChange:e=>{const t=e;t.target instanceof HTMLInputElement&&l(t.target.value.trim())},onBlur:e=>{const t=e;t.target instanceof HTMLInputElement&&c&&c(t.target.value.trim())},onFocus:()=>{i&&a&&!(null==o?void 0:o.trim())&&l(i)},onKeyDown:e=>{"Enter"===e.key&&u&&u()},hasError:!!d,ref:_,disabled:h,prefix:!!n}),f&&ha("button",{type:"button",children:[pa(Fa,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>f()})," "]})]})]}),d&&pa("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:d}),p&&pa("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:p})]}))),Da="asc",Ua="desc",$a=e=>{var t,r;const[n,i]=bt(""),[a,o]=bt([]),[s,l]=bt(e.columns[0]),[c,u]=bt(Da),d=Gt((()=>s?[...e.data].sort(((e,t)=>{const r=s.sort?s.sort(e[s.field],t[s.field]):e[s.field].localeCompare(t[s.field]);return c===Ua?-1*r:r})):e.data),[e.data,s,c]),p=Gt((()=>{const t=a.reduce(((e,t)=>e.filter(t.filterFunction)),d);return n&&!e.searchButton?t.filter((e=>e.id.toLowerCase().includes(n.toLowerCase()))):t}),[d,n,a,e.searchButton]),h=Gt((()=>e.columns.filter((e=>e.filters&&e.filters.length>0)).length>0),[e.columns]),f=()=>{e.searchButton&&e.searchButton.onClick(n)},_=(e,t)=>{const r={name:e.name,filterFunction:r=>e.predicate(r[t.field])},n=a.filter((e=>e.name!==r.name));return()=>n.length<a.length?o([...n]):o([...n,r])};return pa(da,{children:ha("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[ha("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[ha("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[pa("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e.title}),e.subtitle&&pa("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:e.subtitle}),ha("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[pa(Wa,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:null==(t=e.searchButton)?void 0:t.text,icon:pa(wa,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}),id:"search",type:"text",error:null==(r=e.searchButton)?void 0:r.error,onChange:e=>i(e),onEnter:f}),e.searchButton&&pa("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:pa("button",{type:"button",onClick:f,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.searchButton.text})})]})]}),e.addButton&&pa("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:pa("button",{type:"button",onClick:e.addButton.onClick,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.addButton.text})})]}),pa("div",{css:{marginTop:"2rem",display:"flow-root"},children:pa("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:pa("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:pa("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:ha("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[h&&pa("thead",{children:pa("tr",{children:ha("td",{css:{padding:"1rem"},colspan:e.columns.length,children:[pa(Ta,{onClick:()=>o([]),isActive:0==a.length,children:"All"}),e.columns.map((e=>{var t;return null==(t=e.filters)?void 0:t.map((t=>pa(Ta,{onClick:_(t,e),isActive:!!a.find((e=>e.name===t.name)),children:t.name},t.name)))}))]})})}),pa("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:pa("tr",{children:e.columns.map((e=>pa("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:ha("button",{disabled:!e.isSortable,onClick:()=>(e=>{s===e?u(c===Da?Ua:Da):(l(e),u(Da))})(e),css:{display:"inline-flex"},children:[pa("span",{children:e.name}),ha("span",{css:{marginLeft:"0.5rem"},children:[s===e&&c===Da&&pa(Ra,{css:{height:"1.25rem",width:"1.25rem"}}),s===e&&c===Ua&&pa(Ea,{css:{height:"1.25rem",width:"1.25rem"}}),s!==e&&pa("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),pa("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:p.map(((t,r)=>pa("tr",{children:e.columns.map(((e,n)=>pa(Me,{children:Pa(t.id,t[e.field],e.type)},`${t[e.field]}-${r}-${n}`)))},`${t[e.columns[0].field]}-${r}`)))})]})})})})})]})})},Na=[{name:"Profile Id",field:"id",isSortable:!0},{name:"Name",field:"name",isSortable:!0},{name:"Email",field:"email",isSortable:!0},{name:"External Id",field:"externalId",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEId",isSortable:!0}];var Ha=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(){}},qa="undefined"==typeof window||"Deno"in globalThis;function ja(){}function za(e){return"number"==typeof e&&e>=0&&e!==1/0}function Ba(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Qa(e,t){return"function"==typeof e?e(t):e}function Ka(e,t){return"function"==typeof e?e(t):e}function Va(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o)if(n){if(t.queryHash!==Ya(o,t.options))return!1}else if(!Ja(t.queryKey,o))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)&&!(a&&!a(t)))}function Xa(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(Za(t.options.mutationKey)!==Za(a))return!1}else if(!Ja(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&!(i&&!i(t))}function Ya(e,t){return((null==t?void 0:t.queryKeyHashFn)||Za)(e)}function Za(e){return JSON.stringify(e,((e,t)=>no(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function Ja(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!Ja(e[r],t[r]))))}function eo(e,t){if(e===t)return e;const r=ro(e)&&ro(t);if(r||no(e)&&no(t)){const n=r?e:Object.keys(e),i=n.length,a=r?t:Object.keys(t),o=a.length,s=r?[]:{};let l=0;for(let c=0;c<o;c++){const i=r?c:a[c];(!r&&n.includes(i)||r)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=eo(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===o&&l===i?e:s}return t}function to(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 ro(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function no(e){if(!io(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!io(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function io(e){return"[object Object]"===Object.prototype.toString.call(e)}function ao(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?eo(e,t):t}function oo(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function so(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var lo=Symbol();function co(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==lo?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var uo=new(n=class extends Ha{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,r),__privateSet(this,r,(e=>{if(!qa&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,r))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var n;__privateSet(this,r,e),null==(n=__privateGet(this,t))||n.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,r=new WeakMap,n),po=new(s=class extends Ha{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,a),__privateAdd(this,o),__privateSet(this,o,(e=>{if(!qa&&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(){__privateGet(this,a)||this.setEventListener(__privateGet(this,o))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,a))||e.call(this),__privateSet(this,a,void 0))}setEventListener(e){var t;__privateSet(this,o,e),null==(t=__privateGet(this,a))||t.call(this),__privateSet(this,a,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,a=new WeakMap,o=new WeakMap,s);function ho(){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}function fo(e){return Math.min(1e3*2**e,3e4)}function _o(e){return"online"!==(e??"online")||po.isOnline()}var vo=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function mo(e){return e instanceof vo}function go(e){let t,r=!1,n=0,i=!1;const a=ho(),o=()=>uo.isFocused()&&("always"===e.networkMode||po.isOnline())&&e.canRun(),s=()=>_o(e.networkMode)&&e.canRun(),l=r=>{var n;i||(i=!0,null==(n=e.onSuccess)||n.call(e,r),null==t||t(),a.resolve(r))},c=r=>{var n;i||(i=!0,null==(n=e.onError)||n.call(e,r),null==t||t(),a.reject(r))},u=()=>new Promise((r=>{var n;t=e=>{(i||o())&&r(e)},null==(n=e.onPause)||n.call(e)})).then((()=>{var r;t=void 0,i||null==(r=e.onContinue)||r.call(e)})),d=()=>{if(i)return;let t;const a=0===n?e.initialPromise:void 0;try{t=a??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var a;if(i)return;const s=e.retry??(qa?0:3),l=e.retryDelay??fo,p="function"==typeof l?l(n,t):l,h=!0===s||"number"==typeof s&&n<s||"function"==typeof s&&s(n,t);var f;!r&&h?(n++,null==(a=e.onFail)||a.call(e,n,t),(f=p,new Promise((e=>{setTimeout(e,f)}))).then((()=>o()?void 0:u())).then((()=>{r?c(t):d()}))):c(t)}))};return{promise:a,cancel:t=>{var r;i||(c(new vo(t)),null==(r=e.abort)||r.call(e))},continue:()=>(null==t||t(),a),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:s,start:()=>(s()?d():u().then(d),a)}}var yo=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0);const a=n=>{t?e.push(n):i((()=>{r(n)}))};return{batch:a=>{let o;t++;try{o=a()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{n((()=>{t.forEach((e=>{r(e)}))}))}))})()}return o},batchCalls:e=>(...t)=>{a((()=>{e(...t)}))},schedule:a,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}(),wo=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),za(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qa?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,c),bo=(g=class extends wo{constructor(e){super(),__privateAdd(this,v),__privateAdd(this,u),__privateAdd(this,d),__privateAdd(this,p),__privateAdd(this,h),__privateAdd(this,f),__privateAdd(this,_),__privateSet(this,_,!1),__privateSet(this,f,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,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"}}(this.options)),this.state=e.state??__privateGet(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,h))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,f),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,p).remove(this)}setData(e,t){const r=ao(this.state.data,e,this.options);return __privateMethod(this,v,m).call(this,{data:r,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),r}setState(e,t){__privateMethod(this,v,m).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,r;const n=null==(t=__privateGet(this,h))?void 0:t.promise;return null==(r=__privateGet(this,h))||r.cancel(e),n?n.then(ja).catch(ja):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==Ka(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===lo||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Ba(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,h))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,h)&&(__privateGet(this,_)?__privateGet(this,h).cancel({revert:!0}):__privateGet(this,h).cancelRetry()),this.scheduleGc()),__privateGet(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,v,m).call(this,{type:"invalidate"})}fetch(e,t){var r,n,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,h))return __privateGet(this,h).continueRetry(),__privateGet(this,h).promise;if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const a=new AbortController,o=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(__privateSet(this,_,!0),a.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=co(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return o(r),__privateSet(this,_,!1),this.options.persister?this.options.persister(e,r,this):e(r)}};o(s),null==(r=this.options.behavior)||r.onFetch(s,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(n=s.fetchOptions)?void 0:n.meta)||__privateMethod(this,v,m).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,r,n,i;mo(e)&&e.silent||__privateMethod(this,v,m).call(this,{type:"error",error:e}),mo(e)||(null==(r=(t=__privateGet(this,p).config).onError)||r.call(t,e,this),null==(i=(n=__privateGet(this,p).config).onSettled)||i.call(n,this.state.data,e,this)),this.scheduleGc()};return __privateSet(this,h,go({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:a.abort.bind(a),onSuccess:e=>{var t,r,n,i;if(void 0!==e){try{this.setData(e)}catch(a){return void l(a)}null==(r=(t=__privateGet(this,p).config).onSuccess)||r.call(t,e,this),null==(i=(n=__privateGet(this,p).config).onSettled)||i.call(n,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,v,m).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,v,m).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,v,m).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),__privateGet(this,h).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,h=new WeakMap,f=new WeakMap,_=new WeakMap,v=new WeakSet,m=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...ko(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const r=e.error;return mo(r)&&r.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),yo.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},g);function ko(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:_o(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var xo=(w=class extends Ha{constructor(e={}){super(),__privateAdd(this,y),this.config=e,__privateSet(this,y,new Map)}build(e,t,r){const n=t.queryKey,i=t.queryHash??Ya(n,t);let a=this.get(i);return a||(a=new bo({cache:this,queryKey:n,queryHash:i,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(n)}),this.add(a)),a}add(e){__privateGet(this,y).has(e.queryHash)||(__privateGet(this,y).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,y).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,y).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){yo.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,y).get(e)}getAll(){return[...__privateGet(this,y).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Va(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Va(e,t))):t}notify(e){yo.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){yo.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){yo.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},y=new WeakMap,w),So=(A=class extends wo{constructor(e){super(),__privateAdd(this,S),__privateAdd(this,b),__privateAdd(this,k),__privateAdd(this,x),this.mutationId=e.mutationId,__privateSet(this,k,e.mutationCache),__privateSet(this,b,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){__privateGet(this,b).includes(e)||(__privateGet(this,b).push(e),this.clearGcTimeout(),__privateGet(this,k).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,b,__privateGet(this,b).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,k).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,k).remove(this))}continue(){var e;return(null==(e=__privateGet(this,x))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,r,n,i,a,o,s,l,c,u,d,p,h,f,_,v,m,g,y,w;__privateSet(this,x,go({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,S,C).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,S,C).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,S,C).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,k).canRun(this)}));const b="pending"===this.state.status,A=!__privateGet(this,x).canStart();try{if(!b){__privateMethod(this,S,C).call(this,{type:"pending",variables:e,isPaused:A}),await(null==(r=(t=__privateGet(this,k).config).onMutate)?void 0:r.call(t,e,this));const a=await(null==(i=(n=this.options).onMutate)?void 0:i.call(n,e));a!==this.state.context&&__privateMethod(this,S,C).call(this,{type:"pending",context:a,variables:e,isPaused:A})}const h=await __privateGet(this,x).start();return await(null==(o=(a=__privateGet(this,k).config).onSuccess)?void 0:o.call(a,h,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,h,e,this.state.context)),await(null==(u=(c=__privateGet(this,k).config).onSettled)?void 0:u.call(c,h,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,h,null,e,this.state.context)),__privateMethod(this,S,C).call(this,{type:"success",data:h}),h}catch(G){try{throw await(null==(f=(h=__privateGet(this,k).config).onError)?void 0:f.call(h,G,e,this.state.context,this)),await(null==(v=(_=this.options).onError)?void 0:v.call(_,G,e,this.state.context)),await(null==(g=(m=__privateGet(this,k).config).onSettled)?void 0:g.call(m,void 0,G,this.state.variables,this.state.context,this)),await(null==(w=(y=this.options).onSettled)?void 0:w.call(y,void 0,G,e,this.state.context)),G}finally{__privateMethod(this,S,C).call(this,{type:"error",error:G})}}finally{__privateGet(this,k).runNext(this)}}},b=new WeakMap,k=new WeakMap,x=new WeakMap,S=new WeakSet,C=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),yo.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,k).notify({mutation:this,type:"updated",action:e})}))},A);var Co=(O=class extends Ha{constructor(e={}){super(),__privateAdd(this,G),__privateAdd(this,P),this.config=e,__privateSet(this,G,new Map),__privateSet(this,P,Date.now())}build(e,t,r){const n=new So({mutationCache:this,mutationId:++__privateWrapper(this,P)._,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){const t=Ao(e),r=__privateGet(this,G).get(t)??[];r.push(e),__privateGet(this,G).set(t,r),this.notify({type:"added",mutation:e})}remove(e){var t;const r=Ao(e);if(__privateGet(this,G).has(r)){const n=null==(t=__privateGet(this,G).get(r))?void 0:t.filter((t=>t!==e));n&&(0===n.length?__privateGet(this,G).delete(r):__privateGet(this,G).set(r,n))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const r=null==(t=__privateGet(this,G).get(Ao(e)))?void 0:t.find((e=>"pending"===e.state.status));return!r||r===e}runNext(e){var t;const r=null==(t=__privateGet(this,G).get(Ao(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==r?void 0:r.continue())??Promise.resolve()}clear(){yo.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,G).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Xa(t,e)))}findAll(e={}){return this.getAll().filter((t=>Xa(e,t)))}notify(e){yo.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return yo.batch((()=>Promise.all(e.map((e=>e.continue().catch(ja))))))}},G=new WeakMap,P=new WeakMap,O);function Ao(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function Go(e){return{onFetch:(t,r)=>{var n,i,a,o,s;const l=t.options,c=null==(a=null==(i=null==(n=t.fetchOptions)?void 0:n.meta)?void 0:i.fetchMore)?void 0:a.direction,u=(null==(o=t.state.data)?void 0:o.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},h=0;const f=async()=>{let r=!1;const n=co(t.options,t.fetchOptions),i=async(e,i,a)=>{if(r)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const o={queryKey:t.queryKey,pageParam:i,direction:a?"backward":"forward",meta:t.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?r=!0:t.signal.addEventListener("abort",(()=>{r=!0})),t.signal)});const l=await n(o),{maxPages:c}=t.options,u=a?so:oo;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,i,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},r=(e?Oo:Po)(l,t);p=await i(t,r,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Po(l,p);if(h>0&&null==e)break;p=await i(p,e),h++}while(h<t)}return p};t.options.persister?t.fetchFn=()=>{var e,n;return null==(n=(e=t.options).persister)?void 0:n.call(e,f,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},r)}:t.fetchFn=f}}}function Po(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 Oo(e,{pages:t,pageParams:r}){var n;return t.length>0?null==(n=e.getPreviousPageParam)?void 0:n.call(e,t[0],t,r[0],r):void 0}var Ro=(D=class{constructor(e={}){__privateAdd(this,R),__privateAdd(this,M),__privateAdd(this,E),__privateAdd(this,T),__privateAdd(this,L),__privateAdd(this,I),__privateAdd(this,F),__privateAdd(this,W),__privateSet(this,R,e.queryCache||new xo),__privateSet(this,M,e.mutationCache||new Co),__privateSet(this,E,e.defaultOptions||{}),__privateSet(this,T,new Map),__privateSet(this,L,new Map),__privateSet(this,I,0)}mount(){__privateWrapper(this,I)._++,1===__privateGet(this,I)&&(__privateSet(this,F,uo.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,W,po.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,I)._--,0===__privateGet(this,I)&&(null==(e=__privateGet(this,F))||e.call(this),__privateSet(this,F,void 0),null==(t=__privateGet(this,W))||t.call(this),__privateSet(this,W,void 0))}isFetching(e){return __privateGet(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,M).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(r.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const r=this.defaultQueryOptions(e),n=__privateGet(this,R).build(this,r);return e.revalidateIfStale&&n.isStaleByTime(Qa(r.staleTime,n))&&this.prefetchQuery(r),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,R).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,r){const n=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,R).get(n.queryHash),a=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==a)return __privateGet(this,R).build(this,n).setData(a,{...r,manual:!0})}setQueriesData(e,t,r){return yo.batch((()=>__privateGet(this,R).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,r)]))))}getQueryState(e){var t;const r=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(r.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,R);yo.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=__privateGet(this,R),n={type:"active",...e};return yo.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=yo.batch((()=>__privateGet(this,R).findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(ja).catch(ja)}invalidateQueries(e={},t={}){return yo.batch((()=>{if(__privateGet(this,R).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const r={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(r,t)}))}refetchQueries(e={},t){const r={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},n=yo.batch((()=>__privateGet(this,R).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,r);return r.throwOnError||(t=t.catch(ja)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(ja)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const r=__privateGet(this,R).build(this,t);return r.isStaleByTime(Qa(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ja).catch(ja)}fetchInfiniteQuery(e){return e.behavior=Go(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ja).catch(ja)}ensureInfiniteQueryData(e){return e.behavior=Go(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return po.isOnline()?__privateGet(this,M).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,R)}getMutationCache(){return __privateGet(this,M)}getDefaultOptions(){return __privateGet(this,E)}setDefaultOptions(e){__privateSet(this,E,e)}setQueryDefaults(e,t){__privateGet(this,T).set(Za(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,T).values()];let r={};return t.forEach((t=>{Ja(e,t.queryKey)&&(r={...r,...t.defaultOptions})})),r}setMutationDefaults(e,t){__privateGet(this,L).set(Za(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,L).values()];let r={};return t.forEach((t=>{Ja(e,t.mutationKey)&&(r={...r,...t.defaultOptions})})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,E).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Ya(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===lo&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,E).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,R).clear(),__privateGet(this,M).clear()}},R=new WeakMap,M=new WeakMap,E=new WeakMap,T=new WeakMap,L=new WeakMap,I=new WeakMap,F=new WeakMap,W=new WeakMap,D),Mo=(ue=class extends Ha{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,U),__privateAdd(this,$),__privateAdd(this,N),__privateAdd(this,H),__privateAdd(this,q),__privateAdd(this,j),__privateAdd(this,z),__privateAdd(this,B),__privateAdd(this,Q),__privateAdd(this,K),__privateAdd(this,V),__privateAdd(this,X),__privateAdd(this,Y),__privateAdd(this,Z),__privateAdd(this,J,new Set),this.options=t,__privateSet(this,U,e),__privateSet(this,B,null),__privateSet(this,z,ho()),this.options.experimental_prefetchInRender||__privateGet(this,z).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,$).addObserver(this),Eo(__privateGet(this,$),this.options)?__privateMethod(this,ee,te).call(this):this.updateResult(),__privateMethod(this,ee,ae).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return To(__privateGet(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return To(__privateGet(this,$),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,ee,oe).call(this),__privateMethod(this,ee,se).call(this),__privateGet(this,$).removeObserver(this)}setOptions(e,t){const r=this.options,n=__privateGet(this,$);if(this.options=__privateGet(this,U).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Ka(this.options.enabled,__privateGet(this,$)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,ee,le).call(this),__privateGet(this,$).setOptions(this.options),r._defaulted&&!to(this.options,r)&&__privateGet(this,U).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,$),observer:this});const i=this.hasListeners();i&&Lo(__privateGet(this,$),n,this.options,r)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,$)===n&&Ka(this.options.enabled,__privateGet(this,$))===Ka(r.enabled,__privateGet(this,$))&&Qa(this.options.staleTime,__privateGet(this,$))===Qa(r.staleTime,__privateGet(this,$))||__privateMethod(this,ee,re).call(this);const a=__privateMethod(this,ee,ne).call(this);!i||__privateGet(this,$)===n&&Ka(this.options.enabled,__privateGet(this,$))===Ka(r.enabled,__privateGet(this,$))&&a===__privateGet(this,Z)||__privateMethod(this,ee,ie).call(this,a)}getOptimisticResult(e){const t=__privateGet(this,U).getQueryCache().build(__privateGet(this,U),e),r=this.createResult(t,e);return function(e,t){if(!to(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(__privateSet(this,H,r),__privateSet(this,j,this.options),__privateSet(this,q,__privateGet(this,$).state)),r}getCurrentResult(){return __privateGet(this,H)}trackResult(e,t){const r={};return Object.keys(e).forEach((n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),null==t||t(n),e[n])})})),r}trackProp(e){__privateGet(this,J).add(e)}getCurrentQuery(){return __privateGet(this,$)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,U).defaultQueryOptions(e),r=__privateGet(this,U).getQueryCache().build(__privateGet(this,U),t);return r.fetch().then((()=>this.createResult(r,t)))}fetch(e){return __privateMethod(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,H))))}createResult(e,t){var r;const n=__privateGet(this,$),i=this.options,a=__privateGet(this,H),o=__privateGet(this,q),s=__privateGet(this,j),l=e!==n?e.state:__privateGet(this,N),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const r=this.hasListeners(),a=!r&&Eo(e,t),o=r&&Lo(e,n,t,i);(a||o)&&(d={...d,...ko(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:h,errorUpdatedAt:f,status:_}=d;if(t.select&&void 0!==d.data)if(a&&d.data===(null==o?void 0:o.data)&&t.select===__privateGet(this,Q))u=__privateGet(this,K);else try{__privateSet(this,Q,t.select),u=t.select(d.data),u=ao(null==a?void 0:a.data,u,t),__privateSet(this,K,u),__privateSet(this,B,null)}catch(k){__privateSet(this,B,k)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===_){let e;if((null==a?void 0:a.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(r=__privateGet(this,V))?void 0:r.state.data,__privateGet(this,V)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,B,null)}catch(k){__privateSet(this,B,k)}void 0!==e&&(_="success",u=ao(null==a?void 0:a.data,e,t),p=!0)}__privateGet(this,B)&&(h=__privateGet(this,B),u=__privateGet(this,K),f=Date.now(),_="error");const v="fetching"===d.fetchStatus,m="pending"===_,g="error"===_,y=m&&v,w=void 0!==u,b={status:_,fetchStatus:d.fetchStatus,isPending:m,isSuccess:"success"===_,isError:g,isInitialLoading:y,isLoading:y,data:u,dataUpdatedAt:d.dataUpdatedAt,error:h,errorUpdatedAt:f,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:v,isRefetching:v&&!m,isLoadingError:g&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:g&&w,isStale:Io(e,t),refetch:this.refetch,promise:__privateGet(this,z)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},r=()=>{const e=__privateSet(this,z,b.promise=ho());t(e)},i=__privateGet(this,z);switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||r();break;case"rejected":"error"===b.status&&b.error===i.reason||r()}}return b}updateResult(e){const t=__privateGet(this,H),r=this.createResult(__privateGet(this,$),this.options);if(__privateSet(this,q,__privateGet(this,$).state),__privateSet(this,j,this.options),void 0!==__privateGet(this,q).data&&__privateSet(this,V,__privateGet(this,$)),to(r,t))return;__privateSet(this,H,r);const n={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!__privateGet(this,J).size)return!0;const n=new Set(r??__privateGet(this,J));return this.options.throwOnError&&n.add("error"),Object.keys(__privateGet(this,H)).some((e=>{const r=e;return __privateGet(this,H)[r]!==t[r]&&n.has(r)}))})()&&(n.listeners=!0),__privateMethod(this,ee,ce).call(this,{...n,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,ee,ae).call(this)}},U=new WeakMap,$=new WeakMap,N=new WeakMap,H=new WeakMap,q=new WeakMap,j=new WeakMap,z=new WeakMap,B=new WeakMap,Q=new WeakMap,K=new WeakMap,V=new WeakMap,X=new WeakMap,Y=new WeakMap,Z=new WeakMap,J=new WeakMap,ee=new WeakSet,te=function(e){__privateMethod(this,ee,le).call(this);let t=__privateGet(this,$).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(ja)),t},re=function(){__privateMethod(this,ee,oe).call(this);const e=Qa(this.options.staleTime,__privateGet(this,$));if(qa||__privateGet(this,H).isStale||!za(e))return;const t=Ba(__privateGet(this,H).dataUpdatedAt,e);__privateSet(this,X,setTimeout((()=>{__privateGet(this,H).isStale||this.updateResult()}),t+1))},ne=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,$)):this.options.refetchInterval)??!1},ie=function(e){__privateMethod(this,ee,se).call(this),__privateSet(this,Z,e),!qa&&!1!==Ka(this.options.enabled,__privateGet(this,$))&&za(__privateGet(this,Z))&&0!==__privateGet(this,Z)&&__privateSet(this,Y,setInterval((()=>{(this.options.refetchIntervalInBackground||uo.isFocused())&&__privateMethod(this,ee,te).call(this)}),__privateGet(this,Z)))},ae=function(){__privateMethod(this,ee,re).call(this),__privateMethod(this,ee,ie).call(this,__privateMethod(this,ee,ne).call(this))},oe=function(){__privateGet(this,X)&&(clearTimeout(__privateGet(this,X)),__privateSet(this,X,void 0))},se=function(){__privateGet(this,Y)&&(clearInterval(__privateGet(this,Y)),__privateSet(this,Y,void 0))},le=function(){const e=__privateGet(this,U).getQueryCache().build(__privateGet(this,U),this.options);if(e===__privateGet(this,$))return;const t=__privateGet(this,$);__privateSet(this,$,e),__privateSet(this,N,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){yo.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,H))})),__privateGet(this,U).getQueryCache().notify({query:__privateGet(this,$),type:"observerResultsUpdated"})}))},ue);function Eo(e,t){return function(e,t){return!1!==Ka(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&To(e,t,t.refetchOnMount)}function To(e,t,r){if(!1!==Ka(t.enabled,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Io(e,t)}return!1}function Lo(e,t,r,n){return(e!==t||!1===Ka(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Io(e,r)}function Io(e,t){return!1!==Ka(t.enabled,e)&&e.isStaleByTime(Qa(t.staleTime,e))}var Fo=Ze(void 0),Wo=({client:e,children:t})=>(xt((()=>(e.mount(),()=>{e.unmount()})),[e]),ua(Fo.Provider,{value:e,children:t})),Do=Ze(!1);Do.Provider;var Uo=Ze(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function $o(){}var No=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}));function Ho(e,t,r){var n,i,a,o,s;const l=(()=>{const e=Ot(Fo);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e})(),c=Ot(Do),u=Ot(Uo),d=l.defaultQueryOptions(e);null==(i=null==(n=l.getDefaultOptions().queries)?void 0:n._experimental_beforeQuery)||i.call(n,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,u),(e=>{xt((()=>{e.clearReset()}),[e])})(u);const p=!l.getQueryCache().get(d.queryHash),[h]=bt((()=>new t(l,d))),f=h.getOptimisticResult(d);if(Nr(Pt((e=>{const t=c?$o:h.subscribe(yo.batchCalls(e));return h.updateResult(),t}),[h,c]),(()=>h.getCurrentResult())),xt((()=>{h.setOptions(d,{listeners:!1})}),[d,h]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(d,f))throw No(d,h,u);if((({result:e,errorResetBoundary:t,throwOnError:r,query:n})=>{return e.isError&&!t.isReset()&&!e.isFetching&&n&&(i=r,a=[e.error,n],"function"==typeof i?i(...a):!!i);var i,a})({result:f,errorResetBoundary:u,throwOnError:d.throwOnError,query:l.getQueryCache().get(d.queryHash)}))throw f.error;if(null==(o=null==(a=l.getDefaultOptions().queries)?void 0:a._experimental_afterQuery)||o.call(a,d,f),d.experimental_prefetchInRender&&!qa&&((e,t)=>e.isLoading&&e.isFetching&&!t)(f,c)){const e=p?No(d,h,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch($o).finally((()=>{h.updateResult()}))}return d.notifyOnChangeProps?f:h.trackResult(f)}function qo(e,t){return Ho(e,Mo)}const jo=async e=>{if(!(e instanceof Ut))return"Unexpected error occurred";try{return(await e.response.json()).message||`${e.response.status} error occurred`}catch{return`${e.response.status} error occurred`}},zo=()=>{const[e,t]=bt(""),[r,n]=bt(""),{searchProfilesForAccount:i}=Br(),{data:a,refetch:o,error:s}=qo({queryKey:["searchProfilesForAccount"],queryFn:()=>i(e),enabled:!1,retry:!1});xt((()=>{e&&o()}),[e,o]),xt((()=>{s?(async()=>{n(await jo(s))})():n("")}),[s]);return pa($a,{columns:Na,data:a||[],title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:e=>{t(e)},text:"Search",error:r}})};let Bo;const Qo=()=>{if(Bo)return Bo;return Bo=new Ro({defaultOptions:{queries:{retry:(e,t)=>{var r;return t instanceof Ut&&![401,403].includes((null==(r=t.response)?void 0:r.status)||0)}}}}),Bo},Ko="linkedProfilesForAccount",Vo=[{name:"Profile Id",field:"id",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEDriverId",isSortable:!0},{name:"Contracts",field:"salaryPackagedItems",isSortable:!0,type:{kind:"list"}}],Xo=e=>({id:e.id,catchEDriverId:e.catchEDriverId,salaryPackagedItems:e.salaryPackagedItems.map((e=>e.catchEContractId)).join(",")}),Yo=()=>{const{linkedProfilesForAccount:e}=Br(),[t,r]=bt(""),{data:n,error:i}=qo({queryKey:[Ko],queryFn:e});return xt((()=>{i?(async()=>{r(await jo(i))})():r("")}),[i]),i?pa("div",{css:{fontWeight:"700","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:t}):pa($a,{columns:Vo,data:(null==n?void 0:n.map(Xo))||[],title:"Linked Profiles",subtitle:"Linked profiles for this account"})},Zo=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],Jo=e=>{switch(e){case"search":return pa(zo,{});case"linkedProfiles":return pa(Yo,{})}},es=()=>{const[e,t]=bt("search");return ha(da,{children:[pa(va,{tabs:Zo,currentTabId:e,onChange:t}),pa("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:Jo(e)})]})},ts=e=>{const[t,r]=bt(),[n,i]=bt({status:"NotLinked",message:"Access Denied"}),[a]=bt(Vr.create(e.accessToken)),[o,s]=bt("Loading");Gt((()=>{var t;t={backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}},Nt=Ze({...t,backend:{...t.backend,url:t.backend.url.replace(/\/?$/,"")}})}),[e.backendUrl,e.accessToken,e.accountId]);const{checkProfileSearchAuthorization:l,ingestClient:c}=Br();xt((()=>{(async()=>{if(a.isAuthorized&&e.backendUrl&&e.accessToken&&e.accountId)try{const e=await l();i(e),s("Linked"===e.status?"Main":"Unlinked")}catch(t){r(await jo(t)),s("Error")}})()}),[l,e.accessToken,e.accountId,e.backendUrl,a]),xt((()=>{a&&!a.isAuthorized&&(r("Access Denied"),s("Error"))}),[a]);const u=async()=>{try{return await c(),!0}catch(e){return r(await jo(e)),s("Error"),!1}},d=async()=>{try{const e=await l();return"Linked"===e.status?(i(e),s("Main"),!0):(n.status!==e.status||n.message!==e.message)&&(i(e),!0)}catch{return!1}},p=()=>{r("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again. "),s("Error")};switch(o){case"Loading":return pa("h1",{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Loading..."});case"Main":return pa(es,{});case"Error":return pa("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:t});case"Unlinked":return ha("div",{children:[pa("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:n.message}),pa(fa,{onClick:u,onCheck:d,onTimeout:p,checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}},rs=ea({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),ns=()=>ha(Me,{children:[pa(Ji,{styles:ea`
11
+ `;function gu({title:e,titleId:t,...n},r){return Pe("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},n),e?Pe("title",{id:t},e):null,Pe("path",{fillRule:"evenodd",d:"M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))}const _u=Vt(gu),yu=Vt((({label:e,id:t,type:n,icon:r,placeholder:i,setPlaceholderOnFocus:o,value:a,className:s,onChange:l,onBlur:c,onEnter:u,error:d,helperText:p,disabled:f,remove:h},v)=>ho("div",{className:s,children:[e&&fo("label",{htmlFor:t,css:{position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},children:e}),ho("div",{css:{position:"relative",marginTop:"0.5rem"},children:[r&&fo("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:r}),ho("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[fo(mu,{type:n,value:a,name:t,id:t,placeholder:i,onChange:e=>{const t=e;t.target instanceof HTMLInputElement&&l(t.target.value.trim())},onBlur:e=>{const t=e;t.target instanceof HTMLInputElement&&c&&c(t.target.value.trim())},onFocus:()=>{i&&o&&!(null==a?void 0:a.trim())&&l(i)},onKeyDown:e=>{"Enter"===e.key&&u&&u()},hasError:!!d,ref:v,disabled:f,prefix:!!r}),h&&ho("button",{type:"button",children:[fo(_u,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>h()})," "]})]})]}),d&&fo("p",{css:{marginTop:"0.5rem",marginBottom:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(220 38 38 / var(--tw-text-opacity))"},children:d}),p&&fo("span",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"400","--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:p})]}))),wu="asc",bu="desc",xu=e=>{var t,n;const[r,i]=bt(""),[o,a]=bt([]),[s,l]=bt(e.columns[0]),[c,u]=bt(wu),d=Tt((()=>s?[...e.data].sort(((e,t)=>{const n=s.sort?s.sort(e[s.field],t[s.field]):e[s.field].localeCompare(t[s.field]);return c===bu?-1*n:n})):e.data),[e.data,s,c]),p=Tt((()=>{const t=o.reduce(((e,t)=>e.filter(t.filterFunction)),d);return r&&!e.searchButton?t.filter((e=>e.id.toLowerCase().includes(r.toLowerCase()))):t}),[d,r,o,e.searchButton]),f=Tt((()=>e.columns.filter((e=>e.filters&&e.filters.length>0)).length>0),[e.columns]),h=()=>{e.searchButton&&e.searchButton.onClick(r)},v=(e,t)=>{const n={name:e.name,filterFunction:n=>e.predicate(n[t.field])},r=o.filter((e=>e.name!==n.name));return()=>r.length<o.length?a([...r]):a([...r,n])};return fo(po,{children:ho("div",{css:{paddingLeft:"1rem",paddingRight:"1rem","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:[e.error&&fo("div",{css:{marginBottom:"1rem",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(254 242 242 / var(--tw-bg-opacity))",padding:"1rem"},children:ho("div",{css:{display:"flex"},children:[fo("div",{css:{flexShrink:"0"},children:fo(hu,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(248 113 113 / var(--tw-text-opacity))"},"aria-hidden":"true"})}),fo("div",{css:{marginLeft:"0.75rem"},children:fo("h3",{css:{fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500","--tw-text-opacity":"1",color:"rgb(153 27 27 / var(--tw-text-opacity))"},children:e.error})})]})}),ho("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[ho("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[fo("h1",{css:{fontSize:"1rem",lineHeight:"1.5rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:e.title}),e.subtitle&&fo("p",{css:{marginTop:"0.5rem",fontSize:"0.875rem",lineHeight:"1.25rem","--tw-text-opacity":"1",color:"rgb(55 65 81 / var(--tw-text-opacity))"},children:e.subtitle}),ho("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[fo(yu,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:null==(t=e.searchButton)?void 0:t.text,icon:fo(ko,{css:{height:"1.25rem",width:"1.25rem","--tw-text-opacity":"1",color:"rgb(156 163 175 / var(--tw-text-opacity))"}}),id:"search",type:"text",error:null==(n=e.searchButton)?void 0:n.error,onChange:e=>i(e),onEnter:h}),e.searchButton&&fo("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:fo("button",{type:"button",onClick:h,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.searchButton.text})})]})]}),e.addButton&&fo("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:fo("button",{type:"button",onClick:e.addButton.onClick,css:{display:"block",borderRadius:"0.375rem","--tw-bg-opacity":"1",backgroundColor:"rgb(79 70 229 / var(--tw-bg-opacity))",paddingLeft:"0.75rem",paddingRight:"0.75rem",paddingTop:"0.5rem",paddingBottom:"0.5rem",textAlign:"center",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(255 255 255 / var(--tw-text-opacity))","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",":hover":{"--tw-bg-opacity":"1",backgroundColor:"rgb(99 102 241 / var(--tw-bg-opacity))"},":focus-visible":{outlineStyle:"solid",outlineWidth:"2px",outlineOffset:"2px",outlineColor:"#4f46e5"}},children:e.addButton.text})})]}),fo("div",{css:{marginTop:"2rem",display:"flow-root"},children:fo("div",{css:{marginLeft:"-1rem",marginRight:"-1rem",marginTop:"-0.5rem",marginBottom:"-0.5rem",overflowX:"auto","@media (min-width: 640px)":{marginLeft:"-1.5rem",marginRight:"-1.5rem"},"@media (min-width: 1024px)":{marginLeft:"-2rem",marginRight:"-2rem"}},children:fo("div",{css:{display:"inline-block",minWidth:"100%",paddingTop:"0.5rem",paddingBottom:"0.5rem",verticalAlign:"middle","@media (min-width: 640px)":{paddingLeft:"1.5rem",paddingRight:"1.5rem"},"@media (min-width: 1024px)":{paddingLeft:"2rem",paddingRight:"2rem"}},children:fo("div",{css:{overflow:"hidden","--tw-shadow":"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)","--tw-shadow-colored":"0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px 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-opacity":"0.05","--tw-ring-color":"rgb(0 0 0 / var(--tw-ring-opacity))","@media (min-width: 640px)":{borderRadius:"0.5rem"}},children:ho("table",{css:{minWidth:"100%","> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(209 213 219 / var(--tw-divide-opacity))"}},children:[f&&fo("thead",{children:fo("tr",{children:ho("td",{css:{padding:"1rem"},colSpan:e.columns.length,children:[fo(vu,{onClick:()=>a([]),isActive:0==o.length,children:"All"}),e.columns.map((e=>{var t;return null==(t=e.filters)?void 0:t.map((t=>fo(vu,{onClick:v(t,e),isActive:!!o.find((e=>e.name===t.name)),children:t.name},t.name)))}))]})})}),fo("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:fo("tr",{children:e.columns.map((e=>fo("th",{scope:"col",css:{paddingTop:"0.875rem",paddingBottom:"0.875rem",paddingLeft:"1rem",paddingRight:"0.75rem",textAlign:"left",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"600","--tw-text-opacity":"1",color:"rgb(17 24 39 / var(--tw-text-opacity))"},children:ho("button",{disabled:!e.isSortable,onClick:()=>(e=>{s===e?u(c===wu?bu:wu):(l(e),u(wu))})(e),css:{display:"inline-flex"},children:[fo("span",{children:e.name}),ho("span",{css:{marginLeft:"0.5rem"},children:[s===e&&c===wu&&fo(uu,{css:{height:"1.25rem",width:"1.25rem"}}),s===e&&c===bu&&fo(pu,{css:{height:"1.25rem",width:"1.25rem"}}),s!==e&&fo("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),fo("tbody",{css:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))","--tw-divide-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-divide-opacity))"},"--tw-bg-opacity":"1",backgroundColor:"rgb(255 255 255 / var(--tw-bg-opacity))"},children:p.map(((t,n)=>fo("tr",{children:e.columns.map(((e,r)=>fo(Oe,{children:lu(t.id,t[e.field],e.type)},`${t[e.field]}-${n}-${r}`)))},`${t[e.columns[0].field]}-${n}`)))})]})})})})})]})})},ku=[{name:"Profile Id",field:"id",isSortable:!0},{name:"Name",field:"name",isSortable:!0},{name:"Email",field:"email",isSortable:!0},{name:"External Id",field:"externalId",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEId",isSortable:!0}];var Su=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(){}},Eu="undefined"==typeof window||"Deno"in globalThis;function Cu(){}function Tu(e){return"number"==typeof e&&e>=0&&e!==1/0}function Pu(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Au(e,t){return"function"==typeof e?e(t):e}function Ru(e,t){return"function"==typeof e?e(t):e}function Ou(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:a,stale:s}=e;if(a)if(r){if(t.queryHash!==Lu(a,t.options))return!1}else if(!Iu(t.queryKey,a))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!=typeof s||t.isStale()===s)&&((!i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Mu(e,t){const{exact:n,status:r,predicate:i,mutationKey:o}=e;if(o){if(!t.options.mutationKey)return!1;if(n){if(Fu(t.options.mutationKey)!==Fu(o))return!1}else if(!Iu(t.options.mutationKey,o))return!1}return(!r||t.state.status===r)&&!(i&&!i(t))}function Lu(e,t){return((null==t?void 0:t.queryKeyHashFn)||Fu)(e)}function Fu(e){return JSON.stringify(e,((e,t)=>Hu(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Iu(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((n=>!Iu(e[n],t[n]))))}function Du(e,t){if(e===t)return e;const n=Nu(e)&&Nu(t);if(n||Hu(e)&&Hu(t)){const r=n?e:Object.keys(e),i=r.length,o=n?t:Object.keys(t),a=o.length,s=n?[]:{};let l=0;for(let c=0;c<a;c++){const i=n?c:o[c];(!n&&r.includes(i)||n)&&void 0===e[i]&&void 0===t[i]?(s[i]=void 0,l++):(s[i]=Du(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===a&&l===i?e:s}return t}function Gu(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function Nu(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Hu(e){if(!Wu(e))return!1;const t=e.constructor;if(void 0===t)return!0;const n=t.prototype;return!!Wu(n)&&(!!n.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function Wu(e){return"[object Object]"===Object.prototype.toString.call(e)}function $u(e,t,n){return"function"==typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Du(e,t):t}function ju(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Uu(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Bu=Symbol();function qu(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==Bu?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var zu=new(r=class extends Su{constructor(){super(),__privateAdd(this,e),__privateAdd(this,t),__privateAdd(this,n),__privateSet(this,n,(e=>{if(!Eu&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}))}onSubscribe(){__privateGet(this,t)||this.setEventListener(__privateGet(this,n))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,t))||e.call(this),__privateSet(this,t,void 0))}setEventListener(e){var r;__privateSet(this,n,e),null==(r=__privateGet(this,t))||r.call(this),__privateSet(this,t,e((e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})))}setFocused(t){__privateGet(this,e)!==t&&(__privateSet(this,e,t),this.onFocus())}onFocus(){const e=this.isFocused();this.listeners.forEach((t=>{t(e)}))}isFocused(){var t;return"boolean"==typeof __privateGet(this,e)?__privateGet(this,e):"hidden"!==(null==(t=globalThis.document)?void 0:t.visibilityState)}},e=new WeakMap,t=new WeakMap,n=new WeakMap,r),Vu=new(s=class extends Su{constructor(){super(),__privateAdd(this,i,!0),__privateAdd(this,o),__privateAdd(this,a),__privateSet(this,a,(e=>{if(!Eu&&window.addEventListener){const t=()=>e(!0),n=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",n,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",n)}}}))}onSubscribe(){__privateGet(this,o)||this.setEventListener(__privateGet(this,a))}onUnsubscribe(){var e;this.hasListeners()||(null==(e=__privateGet(this,o))||e.call(this),__privateSet(this,o,void 0))}setEventListener(e){var t;__privateSet(this,a,e),null==(t=__privateGet(this,o))||t.call(this),__privateSet(this,o,e(this.setOnline.bind(this)))}setOnline(e){__privateGet(this,i)!==e&&(__privateSet(this,i,e),this.listeners.forEach((t=>{t(e)})))}isOnline(){return __privateGet(this,i)}},i=new WeakMap,o=new WeakMap,a=new WeakMap,s);function Qu(){let e,t;const n=new Promise(((n,r)=>{e=n,t=r}));function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.status="pending",n.catch((()=>{})),n.resolve=t=>{r({status:"fulfilled",value:t}),e(t)},n.reject=e=>{r({status:"rejected",reason:e}),t(e)},n}function Ku(e){return Math.min(1e3*2**e,3e4)}function Yu(e){return"online"!==(e??"online")||Vu.isOnline()}var Xu=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function Zu(e){return e instanceof Xu}function Ju(e){let t,n=!1,r=0,i=!1;const o=Qu(),a=()=>zu.isFocused()&&("always"===e.networkMode||Vu.isOnline())&&e.canRun(),s=()=>Yu(e.networkMode)&&e.canRun(),l=n=>{var r;i||(i=!0,null==(r=e.onSuccess)||r.call(e,n),null==t||t(),o.resolve(n))},c=n=>{var r;i||(i=!0,null==(r=e.onError)||r.call(e,n),null==t||t(),o.reject(n))},u=()=>new Promise((n=>{var r;t=e=>{(i||a())&&n(e)},null==(r=e.onPause)||r.call(e)})).then((()=>{var n;t=void 0,i||null==(n=e.onContinue)||n.call(e)})),d=()=>{if(i)return;let t;const o=0===r?e.initialPromise:void 0;try{t=o??e.fn()}catch(s){t=Promise.reject(s)}Promise.resolve(t).then(l).catch((t=>{var o;if(i)return;const s=e.retry??(Eu?0:3),l=e.retryDelay??Ku,p="function"==typeof l?l(r,t):l,f=!0===s||"number"==typeof s&&r<s||"function"==typeof s&&s(r,t);var h;!n&&f?(r++,null==(o=e.onFail)||o.call(e,r,t),(h=p,new Promise((e=>{setTimeout(e,h)}))).then((()=>a()?void 0:u())).then((()=>{n?c(t):d()}))):c(t)}))};return{promise:o,cancel:t=>{var n;i||(c(new Xu(t)),null==(n=e.abort)||n.call(e))},continue:()=>(null==t||t(),o),cancelRetry:()=>{n=!0},continueRetry:()=>{n=!1},canStart:s,start:()=>(s()?d():u().then(d),o)}}var ed=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=e=>setTimeout(e,0);const o=r=>{t?e.push(r):i((()=>{n(r)}))};return{batch:o=>{let a;t++;try{a=o()}finally{t--,t||(()=>{const t=e;e=[],t.length&&i((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))})()}return a},batchCalls:e=>(...t)=>{o((()=>{e(...t)}))},schedule:o,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}(),td=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Tu(this.gcTime)&&__privateSet(this,l,setTimeout((()=>{this.optionalRemove()}),this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Eu?1/0:3e5))}clearGcTimeout(){__privateGet(this,l)&&(clearTimeout(__privateGet(this,l)),__privateSet(this,l,void 0))}},l=new WeakMap,c),nd=(_=class extends td{constructor(e){super(),__privateAdd(this,m),__privateAdd(this,u),__privateAdd(this,d),__privateAdd(this,p),__privateAdd(this,f),__privateAdd(this,h),__privateAdd(this,v),__privateSet(this,v,!1),__privateSet(this,h,e.defaultOptions),this.setOptions(e.options),this.observers=[],__privateSet(this,p,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,__privateSet(this,u,function(e){const t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==t,r=n?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}(this.options)),this.state=e.state??__privateGet(this,u),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var e;return null==(e=__privateGet(this,f))?void 0:e.promise}setOptions(e){this.options={...__privateGet(this,h),...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||__privateGet(this,p).remove(this)}setData(e,t){const n=$u(this.state.data,e,this.options);return __privateMethod(this,m,g).call(this,{data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){__privateMethod(this,m,g).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var t,n;const r=null==(t=__privateGet(this,f))?void 0:t.promise;return null==(n=__privateGet(this,f))||n.cancel(e),r?r.then(Cu).catch(Cu):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==Ru(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Bu||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some((e=>e.getCurrentResult().isStale)):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!Pu(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,f))||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));null==t||t.refetch({cancelRefetch:!1}),null==(e=__privateGet(this,f))||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),__privateGet(this,p).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(__privateGet(this,f)&&(__privateGet(this,v)?__privateGet(this,f).cancel({revert:!0}):__privateGet(this,f).cancelRetry()),this.scheduleGc()),__privateGet(this,p).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||__privateMethod(this,m,g).call(this,{type:"invalidate"})}fetch(e,t){var n,r,i;if("idle"!==this.state.fetchStatus)if(void 0!==this.state.data&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(__privateGet(this,f))return __privateGet(this,f).continueRetry(),__privateGet(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 o=new AbortController,a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(__privateSet(this,v,!0),o.signal)})},s={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{const e=qu(this.options,t),n={queryKey:this.queryKey,meta:this.meta};return a(n),__privateSet(this,v,!1),this.options.persister?this.options.persister(e,n,this):e(n)}};a(s),null==(n=this.options.behavior)||n.onFetch(s,this),__privateSet(this,d,this.state),"idle"!==this.state.fetchStatus&&this.state.fetchMeta===(null==(r=s.fetchOptions)?void 0:r.meta)||__privateMethod(this,m,g).call(this,{type:"fetch",meta:null==(i=s.fetchOptions)?void 0:i.meta});const l=e=>{var t,n,r,i;Zu(e)&&e.silent||__privateMethod(this,m,g).call(this,{type:"error",error:e}),Zu(e)||(null==(n=(t=__privateGet(this,p).config).onError)||n.call(t,e,this),null==(i=(r=__privateGet(this,p).config).onSettled)||i.call(r,this.state.data,e,this)),this.scheduleGc()};return __privateSet(this,f,Ju({initialPromise:null==t?void 0:t.initialPromise,fn:s.fetchFn,abort:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;if(void 0!==e){try{this.setData(e)}catch(o){return void l(o)}null==(n=(t=__privateGet(this,p).config).onSuccess)||n.call(t,e,this),null==(i=(r=__privateGet(this,p).config).onSettled)||i.call(r,e,this.state.error,this),this.scheduleGc()}else l(new Error(`${this.queryHash} data is undefined`))},onError:l,onFail:(e,t)=>{__privateMethod(this,m,g).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,m,g).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,m,g).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),__privateGet(this,f).start()}},u=new WeakMap,d=new WeakMap,p=new WeakMap,f=new WeakMap,h=new WeakMap,v=new WeakMap,m=new WeakSet,g=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...rd(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const n=e.error;return Zu(n)&&n.revert&&__privateGet(this,d)?{...__privateGet(this,d),fetchStatus:"idle"}:{...t,error:n,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:n,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),ed.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},_);function rd(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Yu(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var id=(w=class extends Su{constructor(e={}){super(),__privateAdd(this,y),this.config=e,__privateSet(this,y,new Map)}build(e,t,n){const r=t.queryKey,i=t.queryHash??Lu(r,t);let o=this.get(i);return o||(o=new nd({cache:this,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(o)),o}add(e){__privateGet(this,y).has(e.queryHash)||(__privateGet(this,y).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=__privateGet(this,y).get(e.queryHash);t&&(e.destroy(),t===e&&__privateGet(this,y).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){ed.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}get(e){return __privateGet(this,y).get(e)}getAll(){return[...__privateGet(this,y).values()]}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Ou(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Ou(e,t))):t}notify(e){ed.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){ed.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){ed.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},y=new WeakMap,w),od=(C=class extends td{constructor(e){super(),__privateAdd(this,S),__privateAdd(this,b),__privateAdd(this,x),__privateAdd(this,k),this.mutationId=e.mutationId,__privateSet(this,x,e.mutationCache),__privateSet(this,b,[]),this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){__privateGet(this,b).includes(e)||(__privateGet(this,b).push(e),this.clearGcTimeout(),__privateGet(this,x).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){__privateSet(this,b,__privateGet(this,b).filter((t=>t!==e))),this.scheduleGc(),__privateGet(this,x).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){__privateGet(this,b).length||("pending"===this.state.status?this.scheduleGc():__privateGet(this,x).remove(this))}continue(){var e;return(null==(e=__privateGet(this,k))?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var t,n,r,i,o,a,s,l,c,u,d,p,f,h,v,m,g,_,y,w;__privateSet(this,k,Ju({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(e,t)=>{__privateMethod(this,S,E).call(this,{type:"failed",failureCount:e,error:t})},onPause:()=>{__privateMethod(this,S,E).call(this,{type:"pause"})},onContinue:()=>{__privateMethod(this,S,E).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>__privateGet(this,x).canRun(this)}));const b="pending"===this.state.status,C=!__privateGet(this,k).canStart();try{if(!b){__privateMethod(this,S,E).call(this,{type:"pending",variables:e,isPaused:C}),await(null==(n=(t=__privateGet(this,x).config).onMutate)?void 0:n.call(t,e,this));const o=await(null==(i=(r=this.options).onMutate)?void 0:i.call(r,e));o!==this.state.context&&__privateMethod(this,S,E).call(this,{type:"pending",context:o,variables:e,isPaused:C})}const f=await __privateGet(this,k).start();return await(null==(a=(o=__privateGet(this,x).config).onSuccess)?void 0:a.call(o,f,e,this.state.context,this)),await(null==(l=(s=this.options).onSuccess)?void 0:l.call(s,f,e,this.state.context)),await(null==(u=(c=__privateGet(this,x).config).onSettled)?void 0:u.call(c,f,null,this.state.variables,this.state.context,this)),await(null==(p=(d=this.options).onSettled)?void 0:p.call(d,f,null,e,this.state.context)),__privateMethod(this,S,E).call(this,{type:"success",data:f}),f}catch(T){try{throw await(null==(h=(f=__privateGet(this,x).config).onError)?void 0:h.call(f,T,e,this.state.context,this)),await(null==(m=(v=this.options).onError)?void 0:m.call(v,T,e,this.state.context)),await(null==(_=(g=__privateGet(this,x).config).onSettled)?void 0:_.call(g,void 0,T,this.state.variables,this.state.context,this)),await(null==(w=(y=this.options).onSettled)?void 0:w.call(y,void 0,T,e,this.state.context)),T}finally{__privateMethod(this,S,E).call(this,{type:"error",error:T})}}finally{__privateGet(this,x).runNext(this)}}},b=new WeakMap,x=new WeakMap,k=new WeakMap,S=new WeakSet,E=function(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),ed.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,x).notify({mutation:this,type:"updated",action:e})}))},C);var ad=(A=class extends Su{constructor(e={}){super(),__privateAdd(this,T),__privateAdd(this,P),this.config=e,__privateSet(this,T,new Map),__privateSet(this,P,Date.now())}build(e,t,n){const r=new od({mutationCache:this,mutationId:++__privateWrapper(this,P)._,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){const t=sd(e),n=__privateGet(this,T).get(t)??[];n.push(e),__privateGet(this,T).set(t,n),this.notify({type:"added",mutation:e})}remove(e){var t;const n=sd(e);if(__privateGet(this,T).has(n)){const r=null==(t=__privateGet(this,T).get(n))?void 0:t.filter((t=>t!==e));r&&(0===r.length?__privateGet(this,T).delete(n):__privateGet(this,T).set(n,r))}this.notify({type:"removed",mutation:e})}canRun(e){var t;const n=null==(t=__privateGet(this,T).get(sd(e)))?void 0:t.find((e=>"pending"===e.state.status));return!n||n===e}runNext(e){var t;const n=null==(t=__privateGet(this,T).get(sd(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==n?void 0:n.continue())??Promise.resolve()}clear(){ed.batch((()=>{this.getAll().forEach((e=>{this.remove(e)}))}))}getAll(){return[...__privateGet(this,T).values()].flat()}find(e){const t={exact:!0,...e};return this.getAll().find((e=>Mu(t,e)))}findAll(e={}){return this.getAll().filter((t=>Mu(e,t)))}notify(e){ed.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return ed.batch((()=>Promise.all(e.map((e=>e.continue().catch(Cu))))))}},T=new WeakMap,P=new WeakMap,A);function sd(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function ld(e){return{onFetch:(t,n)=>{var r,i,o,a,s;const l=t.options,c=null==(o=null==(i=null==(r=t.fetchOptions)?void 0:r.meta)?void 0:i.fetchMore)?void 0:o.direction,u=(null==(a=t.state.data)?void 0:a.pages)||[],d=(null==(s=t.state.data)?void 0:s.pageParams)||[];let p={pages:[],pageParams:[]},f=0;const h=async()=>{let n=!1;const r=qu(t.options,t.fetchOptions),i=async(e,i,o)=>{if(n)return Promise.reject();if(null==i&&e.pages.length)return Promise.resolve(e);const a={queryKey:t.queryKey,pageParam:i,direction:o?"backward":"forward",meta:t.options.meta};var s;s=a,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>(t.signal.aborted?n=!0:t.signal.addEventListener("abort",(()=>{n=!0})),t.signal)});const l=await r(a),{maxPages:c}=t.options,u=o?Uu:ju;return{pages:u(e.pages,l,c),pageParams:u(e.pageParams,i,c)}};if(c&&u.length){const e="backward"===c,t={pages:u,pageParams:d},n=(e?ud:cd)(l,t);p=await i(t,n,e)}else{const t=e??u.length;do{const e=0===f?d[0]??l.initialPageParam:cd(l,p);if(f>0&&null==e)break;p=await i(p,e),f++}while(f<t)}return p};t.options.persister?t.fetchFn=()=>{var e,r;return null==(r=(e=t.options).persister)?void 0:r.call(e,h,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=h}}}function cd(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function ud(e,{pages:t,pageParams:n}){var r;return t.length>0?null==(r=e.getPreviousPageParam)?void 0:r.call(e,t[0],t,n[0],n):void 0}var dd=(N=class{constructor(e={}){__privateAdd(this,R),__privateAdd(this,O),__privateAdd(this,M),__privateAdd(this,L),__privateAdd(this,F),__privateAdd(this,I),__privateAdd(this,D),__privateAdd(this,G),__privateSet(this,R,e.queryCache||new id),__privateSet(this,O,e.mutationCache||new ad),__privateSet(this,M,e.defaultOptions||{}),__privateSet(this,L,new Map),__privateSet(this,F,new Map),__privateSet(this,I,0)}mount(){__privateWrapper(this,I)._++,1===__privateGet(this,I)&&(__privateSet(this,D,zu.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,G,Vu.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,I)._--,0===__privateGet(this,I)&&(null==(e=__privateGet(this,D))||e.call(this),__privateSet(this,D,void 0),null==(t=__privateGet(this,G))||t.call(this),__privateSet(this,G,void 0))}isFetching(e){return __privateGet(this,R).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return __privateGet(this,O).findAll({...e,status:"pending"}).length}getQueryData(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(n.queryHash))?void 0:t.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=__privateGet(this,R).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Au(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return __privateGet(this,R).findAll(e).map((({queryKey:e,state:t})=>[e,t.data]))}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=__privateGet(this,R).get(r.queryHash),o=function(e,t){return"function"==typeof e?e(t):e}(t,null==i?void 0:i.state.data);if(void 0!==o)return __privateGet(this,R).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return ed.batch((()=>__privateGet(this,R).findAll(e).map((({queryKey:e})=>[e,this.setQueryData(e,t,n)]))))}getQueryState(e){var t;const n=this.defaultQueryOptions({queryKey:e});return null==(t=__privateGet(this,R).get(n.queryHash))?void 0:t.state}removeQueries(e){const t=__privateGet(this,R);ed.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const n=__privateGet(this,R),r={type:"active",...e};return ed.batch((()=>(n.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(r,t))))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ed.batch((()=>__privateGet(this,R).findAll(e).map((e=>e.cancel(n)))));return Promise.all(r).then(Cu).catch(Cu)}invalidateQueries(e={},t={}){return ed.batch((()=>{if(__privateGet(this,R).findAll(e).forEach((e=>{e.invalidate()})),"none"===e.refetchType)return Promise.resolve();const n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)}))}refetchQueries(e={},t){const n={...t,cancelRefetch:(null==t?void 0:t.cancelRefetch)??!0},r=ed.batch((()=>__privateGet(this,R).findAll(e).filter((e=>!e.isDisabled())).map((e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(Cu)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(r).then(Cu)}fetchQuery(e){const t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);const n=__privateGet(this,R).build(this,t);return n.isStaleByTime(Au(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Cu).catch(Cu)}fetchInfiniteQuery(e){return e.behavior=ld(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Cu).catch(Cu)}ensureInfiniteQueryData(e){return e.behavior=ld(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Vu.isOnline()?__privateGet(this,O).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,R)}getMutationCache(){return __privateGet(this,O)}getDefaultOptions(){return __privateGet(this,M)}setDefaultOptions(e){__privateSet(this,M,e)}setQueryDefaults(e,t){__privateGet(this,L).set(Fu(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,L).values()];let n={};return t.forEach((t=>{Iu(e,t.queryKey)&&(n={...n,...t.defaultOptions})})),n}setMutationDefaults(e,t){__privateGet(this,F).set(Fu(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,F).values()];let n={};return t.forEach((t=>{Iu(e,t.mutationKey)&&(n={...n,...t.defaultOptions})})),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,M).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Lu(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===Bu&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,M).mutations,...(null==e?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){__privateGet(this,R).clear(),__privateGet(this,O).clear()}},R=new WeakMap,O=new WeakMap,M=new WeakMap,L=new WeakMap,F=new WeakMap,I=new WeakMap,D=new WeakMap,G=new WeakMap,N),pd=(ue=class extends Su{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,H),__privateAdd(this,W),__privateAdd(this,$),__privateAdd(this,j),__privateAdd(this,U),__privateAdd(this,B),__privateAdd(this,q),__privateAdd(this,z),__privateAdd(this,V),__privateAdd(this,Q),__privateAdd(this,K),__privateAdd(this,Y),__privateAdd(this,X),__privateAdd(this,Z),__privateAdd(this,J,new Set),this.options=t,__privateSet(this,H,e),__privateSet(this,z,null),__privateSet(this,q,Qu()),this.options.experimental_prefetchInRender||__privateGet(this,q).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(__privateGet(this,W).addObserver(this),fd(__privateGet(this,W),this.options)?__privateMethod(this,ee,te).call(this):this.updateResult(),__privateMethod(this,ee,oe).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hd(__privateGet(this,W),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hd(__privateGet(this,W),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,__privateMethod(this,ee,ae).call(this),__privateMethod(this,ee,se).call(this),__privateGet(this,W).removeObserver(this)}setOptions(e,t){const n=this.options,r=__privateGet(this,W);if(this.options=__privateGet(this,H).defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof Ru(this.options.enabled,__privateGet(this,W)))throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");__privateMethod(this,ee,le).call(this),__privateGet(this,W).setOptions(this.options),n._defaulted&&!Gu(this.options,n)&&__privateGet(this,H).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,W),observer:this});const i=this.hasListeners();i&&vd(__privateGet(this,W),r,this.options,n)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,W)===r&&Ru(this.options.enabled,__privateGet(this,W))===Ru(n.enabled,__privateGet(this,W))&&Au(this.options.staleTime,__privateGet(this,W))===Au(n.staleTime,__privateGet(this,W))||__privateMethod(this,ee,ne).call(this);const o=__privateMethod(this,ee,re).call(this);!i||__privateGet(this,W)===r&&Ru(this.options.enabled,__privateGet(this,W))===Ru(n.enabled,__privateGet(this,W))&&o===__privateGet(this,Z)||__privateMethod(this,ee,ie).call(this,o)}getOptimisticResult(e){const t=__privateGet(this,H).getQueryCache().build(__privateGet(this,H),e),n=this.createResult(t,e);return function(e,t){if(!Gu(e.getCurrentResult(),t))return!0;return!1}(this,n)&&(__privateSet(this,j,n),__privateSet(this,B,this.options),__privateSet(this,U,__privateGet(this,W).state)),n}getCurrentResult(){return __privateGet(this,j)}trackResult(e,t){const n={};return Object.keys(e).forEach((r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(r),null==t||t(r),e[r])})})),n}trackProp(e){__privateGet(this,J).add(e)}getCurrentQuery(){return __privateGet(this,W)}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){const t=__privateGet(this,H).defaultQueryOptions(e),n=__privateGet(this,H).getQueryCache().build(__privateGet(this,H),t);return n.fetch().then((()=>this.createResult(n,t)))}fetch(e){return __privateMethod(this,ee,te).call(this,{...e,cancelRefetch:e.cancelRefetch??!0}).then((()=>(this.updateResult(),__privateGet(this,j))))}createResult(e,t){var n;const r=__privateGet(this,W),i=this.options,o=__privateGet(this,j),a=__privateGet(this,U),s=__privateGet(this,B),l=e!==r?e.state:__privateGet(this,$),{state:c}=e;let u,d={...c},p=!1;if(t._optimisticResults){const n=this.hasListeners(),o=!n&&fd(e,t),a=n&&vd(e,r,t,i);(o||a)&&(d={...d,...rd(c.data,e.options)}),"isRestoring"===t._optimisticResults&&(d.fetchStatus="idle")}let{error:f,errorUpdatedAt:h,status:v}=d;if(t.select&&void 0!==d.data)if(o&&d.data===(null==a?void 0:a.data)&&t.select===__privateGet(this,V))u=__privateGet(this,Q);else try{__privateSet(this,V,t.select),u=t.select(d.data),u=$u(null==o?void 0:o.data,u,t),__privateSet(this,Q,u),__privateSet(this,z,null)}catch(x){__privateSet(this,z,x)}else u=d.data;if(void 0!==t.placeholderData&&void 0===u&&"pending"===v){let e;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==s?void 0:s.placeholderData))e=o.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(null==(n=__privateGet(this,K))?void 0:n.state.data,__privateGet(this,K)):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),__privateSet(this,z,null)}catch(x){__privateSet(this,z,x)}void 0!==e&&(v="success",u=$u(null==o?void 0:o.data,e,t),p=!0)}__privateGet(this,z)&&(f=__privateGet(this,z),u=__privateGet(this,Q),h=Date.now(),v="error");const m="fetching"===d.fetchStatus,g="pending"===v,_="error"===v,y=g&&m,w=void 0!==u,b={status:v,fetchStatus:d.fetchStatus,isPending:g,isSuccess:"success"===v,isError:_,isInitialLoading:y,isLoading:y,data:u,dataUpdatedAt:d.dataUpdatedAt,error:f,errorUpdatedAt:h,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:d.dataUpdateCount>0||d.errorUpdateCount>0,isFetchedAfterMount:d.dataUpdateCount>l.dataUpdateCount||d.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&!g,isLoadingError:_&&!w,isPaused:"paused"===d.fetchStatus,isPlaceholderData:p,isRefetchError:_&&w,isStale:md(e,t),refetch:this.refetch,promise:__privateGet(this,q)};if(this.options.experimental_prefetchInRender){const t=e=>{"error"===b.status?e.reject(b.error):void 0!==b.data&&e.resolve(b.data)},n=()=>{const e=__privateSet(this,q,b.promise=Qu());t(e)},i=__privateGet(this,q);switch(i.status){case"pending":e.queryHash===r.queryHash&&t(i);break;case"fulfilled":"error"!==b.status&&b.data===i.value||n();break;case"rejected":"error"===b.status&&b.error===i.reason||n()}}return b}updateResult(e){const t=__privateGet(this,j),n=this.createResult(__privateGet(this,W),this.options);if(__privateSet(this,U,__privateGet(this,W).state),__privateSet(this,B,this.options),void 0!==__privateGet(this,U).data&&__privateSet(this,K,__privateGet(this,W)),Gu(n,t))return;__privateSet(this,j,n);const r={};!1!==(null==e?void 0:e.listeners)&&(()=>{if(!t)return!0;const{notifyOnChangeProps:e}=this.options,n="function"==typeof e?e():e;if("all"===n||!n&&!__privateGet(this,J).size)return!0;const r=new Set(n??__privateGet(this,J));return this.options.throwOnError&&r.add("error"),Object.keys(__privateGet(this,j)).some((e=>{const n=e;return __privateGet(this,j)[n]!==t[n]&&r.has(n)}))})()&&(r.listeners=!0),__privateMethod(this,ee,ce).call(this,{...r,...e})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&__privateMethod(this,ee,oe).call(this)}},H=new WeakMap,W=new WeakMap,$=new WeakMap,j=new WeakMap,U=new WeakMap,B=new WeakMap,q=new WeakMap,z=new WeakMap,V=new WeakMap,Q=new WeakMap,K=new WeakMap,Y=new WeakMap,X=new WeakMap,Z=new WeakMap,J=new WeakMap,ee=new WeakSet,te=function(e){__privateMethod(this,ee,le).call(this);let t=__privateGet(this,W).fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(Cu)),t},ne=function(){__privateMethod(this,ee,ae).call(this);const e=Au(this.options.staleTime,__privateGet(this,W));if(Eu||__privateGet(this,j).isStale||!Tu(e))return;const t=Pu(__privateGet(this,j).dataUpdatedAt,e);__privateSet(this,Y,setTimeout((()=>{__privateGet(this,j).isStale||this.updateResult()}),t+1))},re=function(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(__privateGet(this,W)):this.options.refetchInterval)??!1},ie=function(e){__privateMethod(this,ee,se).call(this),__privateSet(this,Z,e),!Eu&&!1!==Ru(this.options.enabled,__privateGet(this,W))&&Tu(__privateGet(this,Z))&&0!==__privateGet(this,Z)&&__privateSet(this,X,setInterval((()=>{(this.options.refetchIntervalInBackground||zu.isFocused())&&__privateMethod(this,ee,te).call(this)}),__privateGet(this,Z)))},oe=function(){__privateMethod(this,ee,ne).call(this),__privateMethod(this,ee,ie).call(this,__privateMethod(this,ee,re).call(this))},ae=function(){__privateGet(this,Y)&&(clearTimeout(__privateGet(this,Y)),__privateSet(this,Y,void 0))},se=function(){__privateGet(this,X)&&(clearInterval(__privateGet(this,X)),__privateSet(this,X,void 0))},le=function(){const e=__privateGet(this,H).getQueryCache().build(__privateGet(this,H),this.options);if(e===__privateGet(this,W))return;const t=__privateGet(this,W);__privateSet(this,W,e),__privateSet(this,$,e.state),this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))},ce=function(e){ed.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,j))})),__privateGet(this,H).getQueryCache().notify({query:__privateGet(this,W),type:"observerResultsUpdated"})}))},ue);function fd(e,t){return function(e,t){return!1!==Ru(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&hd(e,t,t.refetchOnMount)}function hd(e,t,n){if(!1!==Ru(t.enabled,e)){const r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&md(e,t)}return!1}function vd(e,t,n,r){return(e!==t||!1===Ru(r.enabled,e))&&(!n.suspense||"error"!==e.state.status)&&md(e,n)}function md(e,t){return!1!==Ru(t.enabled,e)&&e.isStaleByTime(Au(t.staleTime,e))}var gd=Ze(void 0),_d=({client:e,children:t})=>(kt((()=>(e.mount(),()=>{e.unmount()})),[e]),uo(gd.Provider,{value:e,children:t})),yd=Ze(!1);yd.Provider;var wd=Ze(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function bd(){}var xd=(e,t,n)=>t.fetchOptimistic(e).catch((()=>{n.clearReset()}));function kd(e,t,n){var r,i,o,a,s;const l=(()=>{const e=At(gd);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e})(),c=At(yd),u=At(wd),d=l.defaultQueryOptions(e);null==(i=null==(r=l.getDefaultOptions().queries)?void 0:r._experimental_beforeQuery)||i.call(r,d),d._optimisticResults=c?"isRestoring":"optimistic",(e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))})(d),((e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(t.isReset()||(e.retryOnMount=!1))})(d,u),(e=>{kt((()=>{e.clearReset()}),[e])})(u);const p=!l.getQueryCache().get(d.queryHash),[f]=bt((()=>new t(l,d))),h=f.getOptimisticResult(d);if(jn(Pt((e=>{const t=c?bd:f.subscribe(ed.batchCalls(e));return f.updateResult(),t}),[f,c]),(()=>f.getCurrentResult())),kt((()=>{f.setOptions(d,{listeners:!1})}),[d,f]),((e,t)=>(null==e?void 0:e.suspense)&&t.isPending)(d,h))throw xd(d,f,u);if((({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>{return e.isError&&!t.isReset()&&!e.isFetching&&r&&(i=n,o=[e.error,r],"function"==typeof i?i(...o):!!i);var i,o})({result:h,errorResetBoundary:u,throwOnError:d.throwOnError,query:l.getQueryCache().get(d.queryHash)}))throw h.error;if(null==(a=null==(o=l.getDefaultOptions().queries)?void 0:o._experimental_afterQuery)||a.call(o,d,h),d.experimental_prefetchInRender&&!Eu&&((e,t)=>e.isLoading&&e.isFetching&&!t)(h,c)){const e=p?xd(d,f,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch(bd).finally((()=>{f.updateResult()}))}return d.notifyOnChangeProps?h:f.trackResult(h)}function Sd(e,t){return kd(e,pd)}const Ed=async e=>{if(!(e instanceof Ht))return"Unexpected error occurred";try{return(await e.response.json()).message||`${e.response.status} error occurred`}catch{return`${e.response.status} error occurred`}},Cd=()=>{const[e,t]=bt(""),[n,r]=bt(""),{searchProfilesForAccount:i}=Vn(),{data:o,refetch:a,error:s}=Sd({queryKey:["searchProfilesForAccount"],queryFn:()=>i(e),enabled:!1,retry:!1});kt((()=>{e&&a()}),[e,a]),kt((()=>{s?(async()=>{r(await Ed(s))})():r("")}),[s]);return fo(xu,{columns:ku,data:o||[],title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:e=>{t(e)},text:"Search",error:n}})};let Td;const Pd=()=>{if(Td)return Td;return Td=new dd({defaultOptions:{queries:{retry:(e,t)=>{var n;return t instanceof Ht&&![401,403].includes((null==(n=t.response)?void 0:n.status)||0)}}}}),Td},Ad="linkedProfilesForAccount",Rd=e=>[{name:"Profile Id",field:"id",isSortable:!0},{name:"Catch-E Driver Id",field:"catchEDriverId",isSortable:!0},{name:"Contracts",field:"salaryPackagedItems",isSortable:!0,type:{kind:"list"}},{name:"Actions",field:"menu",isSortable:!1,type:{kind:"menu",items:e}}],Od=e=>({id:e.id,catchEDriverId:e.catchEDriverId,salaryPackagedItems:e.salaryPackagedItems.map((e=>e.catchEContractId)).join(",")}),Md=()=>{const{linkedProfilesForAccount:e,unlinkProfile:t}=Vn(),[n,r]=bt(""),{data:i,error:o}=Sd({queryKey:[Ad],queryFn:async()=>(await e()).map(Od)}),a=[{label:"Unlink",onClick:async e=>{try{await t(e)}catch(n){r(await Ed(n))}}}];return kt((()=>{o?(async()=>{r(await Ed(o))})():r("")}),[o]),fo(xu,{columns:Rd(a),data:i||[],title:"Linked Profiles",subtitle:"Linked profiles for this account",error:n})},Ld=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],Fd=e=>{switch(e){case"search":return fo(Cd,{});case"linkedProfiles":return fo(Md,{})}},Id=()=>{const[e,t]=bt("search");return ho(po,{children:[fo(go,{tabs:Ld,currentTabId:e,onChange:t}),fo("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:Fd(e)})]})},Dd=e=>{const[t,n]=bt(),[r,i]=bt({status:"NotLinked",message:"Access Denied"}),[o]=bt(Yn.create(e.accessToken)),[a,s]=bt("Loading");Tt((()=>{var t;t={backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}},$t=Ze({...t,backend:{...t.backend,url:t.backend.url.replace(/\/?$/,"")}})}),[e.backendUrl,e.accessToken,e.accountId]);const{checkProfileSearchAuthorization:l,ingestClient:c}=Vn();kt((()=>{(async()=>{if(o.isAuthorized&&e.backendUrl&&e.accessToken&&e.accountId)try{const e=await l();i(e),s("Linked"===e.status?"Main":"Unlinked")}catch(t){n(await Ed(t)),s("Error")}})()}),[l,e.accessToken,e.accountId,e.backendUrl,o]),kt((()=>{o&&!o.isAuthorized&&(n("Access Denied"),s("Error"))}),[o]);const u=async()=>{try{return await c(),!0}catch(e){return n(await Ed(e)),s("Error"),!1}},d=async()=>{try{const e=await l();return"Linked"===e.status?(i(e),s("Main"),!0):(r.status!==e.status||r.message!==e.message)&&(i(e),!0)}catch{return!1}},p=()=>{n("Client sync took too long. Please confirm you have updated Catch-E correctly, refresh the page and try again. "),s("Error")};switch(a){case"Loading":return fo("h1",{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Loading..."});case"Main":return fo(Id,{});case"Error":return fo("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:t});case"Unlinked":return ho("div",{children:[fo("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:r.message}),fo(vo,{onClick:u,onCheck:d,onTimeout:p,checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}},Gd=eo({body:{WebkitTapHighlightColor:"#a855f7",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},":host":{"--fl-color-primary-900":"#000563","--fl-color-primary-800":"#031495","--fl-color-primary-700":"#1033c6","--fl-color-primary-600":"#2e66f7","--fl-color-primary-500":"#5786f8","--fl-color-primary-400":"#88abfa","--fl-color-primary-300":"#b5cbfb","--fl-color-primary-200":"#d6e2fc","--fl-color-primary-100":"#eaf0fe","--fl-color-primary-50":"#f2f6ff","--kit-font-family":"Inter, 'Source Sans Pro', sans-serif",fontFamily:"Inter, 'Source Sans Pro', sans-serif"}}),Nd=()=>ho(Oe,{children:[fo(Ji,{styles:eo`
12
12
  ${{"*, ::before, ::after":{boxSizing:"border-box",borderWidth:"0",borderStyle:"solid",borderColor:"#e5e7eb","--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"::before, ::after":{"--tw-content":"''"},"html, :host":{lineHeight:"1.5",WebkitTextSizeAdjust:"100%",MozTabSize:"4",tabSize:"4",fontFamily:'Inter, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',fontFeatureSettings:" normal",fontVariationSettings:" normal",WebkitTapHighlightColor:"transparent"},body:{margin:"0",lineHeight:"inherit"},hr:{height:"0",color:"inherit",borderTopWidth:"1px"},"abbr:where([title])":{textDecoration:"underline dotted"},"h1, h2, h3, h4, h5, h6":{fontSize:"inherit",fontWeight:"inherit"},a:{color:"inherit",textDecoration:"inherit"},"b, strong":{fontWeight:"bolder"},"code, kbd, samp, pre":{fontFamily:'ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace',fontFeatureSettings:" normal",fontVariationSettings:" normal",fontSize:"1em"},small:{fontSize:"80%"},"sub, sup":{fontSize:"75%",lineHeight:"0",position:"relative",verticalAlign:"baseline"},sub:{bottom:"-0.25em"},sup:{top:"-0.5em"},table:{textIndent:"0",borderColor:"inherit",borderCollapse:"collapse"},"button, input, optgroup, select, textarea":{fontFamily:"inherit",fontFeatureSettings:"inherit",fontVariationSettings:"inherit",fontSize:"100%",fontWeight:"inherit",lineHeight:"inherit",letterSpacing:"inherit",color:"inherit",margin:"0",padding:"0"},"button, select":{textTransform:"none"},"button, input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":{WebkitAppearance:"button",backgroundColor:"transparent",backgroundImage:"none"},":-moz-focusring":{outline:"auto"},":-moz-ui-invalid":{boxShadow:"none"},progress:{verticalAlign:"baseline"},"::-webkit-inner-spin-button, ::-webkit-outer-spin-button":{height:"auto"},"[type='search']":{WebkitAppearance:"textfield",outlineOffset:"-2px"},"::-webkit-search-decoration":{WebkitAppearance:"none"},"::-webkit-file-upload-button":{WebkitAppearance:"button",font:"inherit"},summary:{display:"list-item"},"blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre":{margin:"0"},fieldset:{margin:"0",padding:"0"},legend:{padding:"0"},"ol, ul, menu":{listStyle:"none",margin:"0",padding:"0"},dialog:{padding:"0"},textarea:{resize:"vertical"},"input::placeholder, textarea::placeholder":{opacity:"1",color:"#9ca3af"},'button, [role="button"]':{cursor:"pointer"},":disabled":{cursor:"default"},"img, svg, video, canvas, audio, iframe, embed, object":{display:"block",verticalAlign:"middle"},"img, video":{maxWidth:"100%",height:"auto"},'[hidden]:where(:not([hidden="until-found"]))':{display:"none"},"::backdrop":{"--tw-border-spacing-x":"0","--tw-border-spacing-y":"0","--tw-translate-x":"0","--tw-translate-y":"0","--tw-rotate":"0","--tw-skew-x":"0","--tw-skew-y":"0","--tw-scale-x":"1","--tw-scale-y":"1","--tw-pan-x":"var(--tw-empty,/*!*/ /*!*/)","--tw-pan-y":"var(--tw-empty,/*!*/ /*!*/)","--tw-pinch-zoom":"var(--tw-empty,/*!*/ /*!*/)","--tw-scroll-snap-strictness":"proximity","--tw-gradient-from-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-via-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-gradient-to-position":"var(--tw-empty,/*!*/ /*!*/)","--tw-ordinal":"var(--tw-empty,/*!*/ /*!*/)","--tw-slashed-zero":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-figure":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-spacing":"var(--tw-empty,/*!*/ /*!*/)","--tw-numeric-fraction":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-shadow":"0 0 #0000","--tw-ring-shadow":"0 0 #0000","--tw-shadow":"0 0 #0000","--tw-shadow-colored":"0 0 #0000","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"rgb(59 130 246 / 0.5)","--tw-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-drop-shadow":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-blur":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-brightness":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-contrast":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-grayscale":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-hue-rotate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-invert":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-opacity":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-saturate":"var(--tw-empty,/*!*/ /*!*/)","--tw-backdrop-sepia":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-size":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-layout":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-paint":"var(--tw-empty,/*!*/ /*!*/)","--tw-contain-style":"var(--tw-empty,/*!*/ /*!*/)"},"[type='text'],input:where(:not([type])),[type='email'],[type='url'],[type='password'],[type='number'],[type='date'],[type='datetime-local'],[type='month'],[type='search'],[type='tel'],[type='time'],[type='week'],[multiple],textarea,select":{appearance:"none",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px",borderRadius:"0px",paddingTop:"0.5rem",paddingRight:"0.75rem",paddingBottom:"0.5rem",paddingLeft:"0.75rem",fontSize:"1rem",lineHeight:"1.5rem","--tw-shadow":"0 0 #0000"},"[type='text']:focus, input:where(:not([type])):focus, [type='email']:focus, [type='url']:focus, [type='password']:focus, [type='number']:focus, [type='date']:focus, [type='datetime-local']:focus, [type='month']:focus, [type='search']:focus, [type='tel']:focus, [type='time']:focus, [type='week']:focus, [multiple]:focus, textarea:focus, select:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"0px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--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)",boxShadow:"var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow)",borderColor:"#2563eb"},"input::placeholder,textarea::placeholder":{color:"#6b7280",opacity:"1"},"::-webkit-datetime-edit-fields-wrapper":{padding:"0"},"::-webkit-date-and-time-value":{minHeight:"1.5em",textAlign:"inherit"},"::-webkit-datetime-edit":{display:"inline-flex"},"::-webkit-datetime-edit,::-webkit-datetime-edit-year-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-meridiem-field":{paddingTop:"0",paddingBottom:"0"},select:{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e\")",backgroundPosition:"right 0.5rem center",backgroundRepeat:"no-repeat",backgroundSize:"1.5em 1.5em",paddingRight:"2.5rem",printColorAdjust:"exact"},'[multiple],[size]:where(select:not([size="1"]))':{backgroundImage:"initial",backgroundPosition:"initial",backgroundRepeat:"unset",backgroundSize:"initial",paddingRight:"0.75rem",printColorAdjust:"unset"},"[type='checkbox'],[type='radio']":{appearance:"none",padding:"0",printColorAdjust:"exact",display:"inline-block",verticalAlign:"middle",backgroundOrigin:"border-box",userSelect:"none",flexShrink:"0",height:"1rem",width:"1rem",color:"#2563eb",backgroundColor:"#fff",borderColor:"#6b7280",borderWidth:"1px","--tw-shadow":"0 0 #0000"},"[type='checkbox']":{borderRadius:"0px"},"[type='radio']":{borderRadius:"100%"},"[type='checkbox']:focus,[type='radio']:focus":{outline:"2px solid transparent",outlineOffset:"2px","--tw-ring-inset":"var(--tw-empty,/*!*/ /*!*/)","--tw-ring-offset-width":"2px","--tw-ring-offset-color":"#fff","--tw-ring-color":"#2563eb","--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)"},"[type='checkbox']:checked,[type='radio']:checked":{borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e\")"},"@media (forced-colors: active)":{"[type='checkbox']:checked":{appearance:"auto"},"[type='radio']:checked":{appearance:"auto"},"[type='checkbox']:indeterminate":{appearance:"auto"}},"[type='radio']:checked":{backgroundImage:"url(\"data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e\")"},"[type='checkbox']:checked:hover,[type='checkbox']:checked:focus,[type='radio']:checked:hover,[type='radio']:checked:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='checkbox']:indeterminate":{backgroundImage:"url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 16 16'%3e%3cpath stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8h8'/%3e%3c/svg%3e\")",borderColor:"transparent",backgroundColor:"currentColor",backgroundSize:"100% 100%",backgroundPosition:"center",backgroundRepeat:"no-repeat"},"[type='checkbox']:indeterminate:hover,[type='checkbox']:indeterminate:focus":{borderColor:"transparent",backgroundColor:"currentColor"},"[type='file']":{background:"unset",borderColor:"inherit",borderWidth:"0",borderRadius:"0",padding:"0",fontSize:"unset",lineHeight:"inherit"},"[type='file']:focus":{outline:"1px auto -webkit-focus-ring-color"}}}
13
- `}),pa(Ji,{styles:rs})]});!function(e,t,r,n){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=n&&n.shadow?t.attachShadow({mode:n.mode||"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=rt,i.prototype.attributeChangedCallback=it,i.prototype.disconnectedCallback=at,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=r,r.forEach((function(e){Object.defineProperty(i.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var r=typeof t;null!=t&&"string"!==r&&"boolean"!==r&&"number"!==r||this.setAttribute(e,t)}})})),customElements.define(t,i)}((e=>{const t=Ct(null),{EmotionProvider:r}=((e,t)=>{const[r,n]=bt();return xt((()=>{const r=e=>{t&&t.current?e():requestAnimationFrame((()=>r(e)))};r((()=>{n(ti({container:t.current,key:e}))}))}),[e,t]),{EmotionProvider:({children:e})=>r?pa(zi,{value:r,children:e}):pa(da,{})}})("superhero-salpac-profile-admin",t);return ha(da,{children:[pa("head",{ref:t}),ha(r,{children:[pa(ns,{}),pa(Wo,{client:Qo(),children:pa("body",{children:pa(ts,{backendUrl:e.backendUrl||"",accessToken:e.accessToken||"",accountId:e.accountId||""})})})]})]})}),"superhero-salpac-profile-admin",["backend-url","access-token","account-id"],{shadow:!0})}();
13
+ `}),fo(Ji,{styles:Gd})]});!function(e,t,n,r){function i(){var t=Reflect.construct(HTMLElement,[],i);return t._vdomComponent=e,t._root=r&&r.shadow?t.attachShadow({mode:r.mode||"open"}):t,t}(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=nt,i.prototype.attributeChangedCallback=it,i.prototype.disconnectedCallback=ot,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach((function(e){Object.defineProperty(i.prototype,e,{get:function(){return this._vdom.props[e]},set:function(t){this._vdom?this.attributeChangedCallback(e,null,t):(this._props||(this._props={}),this._props[e]=t,this.connectedCallback());var n=typeof t;null!=t&&"string"!==n&&"boolean"!==n&&"number"!==n||this.setAttribute(e,t)}})})),customElements.define(t,i)}((e=>{const t=Et(null),{EmotionProvider:n}=((e,t)=>{const[n,r]=bt();return kt((()=>{const n=e=>{t&&t.current?e():requestAnimationFrame((()=>n(e)))};n((()=>{r(ti({container:t.current,key:e}))}))}),[e,t]),{EmotionProvider:({children:e})=>n?fo(qi,{value:n,children:e}):fo(po,{})}})("superhero-salpac-profile-admin",t);return ho(po,{children:[fo("head",{ref:t}),ho(n,{children:[fo(Nd,{}),fo(_d,{client:Pd(),children:fo("body",{children:fo(Dd,{backendUrl:e.backendUrl||"",accessToken:e.accessToken||"",accountId:e.accountId||""})})})]})]})}),"superhero-salpac-profile-admin",["backend-url","access-token","account-id"],{shadow:!0})}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/superhero-salpac-profile-admin",
3
- "version": "1.0.643",
3
+ "version": "1.0.644",
4
4
  "description": "Flare Superhero Profile Admin",
5
5
  "license": "MIT",
6
6
  "files": [