@flarehr/superhero-salpac-profile-admin 1.0.628 → 1.0.630

Sign up to get free protection for your applications and to get access to all the features.
@@ -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,O,P,R,M,T,E,L,W,F,I,D,U,$,N,H,q,z,j,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 Oe(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 Pe(e,o,n,i,null)}function Pe(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 Te(e,t){this.props=e,this.context=t}function Ee(e,t){if(null==t)return e.__?Ee(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?Ee(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 We(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),ze(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[a]:null,o,null==a?Ee(i):a,!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,je(o,n,s),n.__e!=a&&Le(n)),fe.length>t&&fe.sort(me));Fe.__r=0}function Ie(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?Pe(null,i,null,null,null):Ce(i)?Pe(Me,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Pe(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=Ee(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,ze(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=Ee(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 ze(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 Te(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)),Ie(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=""),Ie(e,Ce(p)?p:[p],t,r,n,"foreignObject"===g?"http://www.w3.org/1999/xhtml":i,a,o,a?a[0]:r.__k&&Ee(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 je(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=[],ze(t,e=(!n&&r||t).__k=Oe(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),je(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),Pe(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,We(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,Te.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),We(this))},Te.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),We(this))},Te.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=Oe(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]=Oe(ot,{name:c},l):n[a]=l}var u=r?Oe(ot,null,n):n;return Oe(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 Oe("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&&It(r.__H,t)&&(r.__=e,r.i=t,lt.__H.__h.push(r))}function St(e,t){var r=wt(st++,4);!ht.__s&&It(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 It(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ot(e,t){return dt=8,Gt((function(){return e}),t)}function Pt(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 Tt(){for(var e;e=pt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wt),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(Wt),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)(Tt)),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(Wt),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{Wt(e)}catch(r){t=r}})),r.__H=void 0,t&&ht.__e(t,r.__v))};var Et="function"==typeof requestAnimationFrame;function Lt(e){var t,r=function(){clearTimeout(n),Et&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Et&&(t=requestAnimationFrame(r))}function Wt(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 It(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.628",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;const Ht="/salary-packaging/admin/v1.0",qt=e=>async()=>{const t=new URL(`${e.backend.url}${Ht}/accounts/${e.account.accountId}/auth`);return $t(t,e.backend.accessToken,"GET")},zt=e=>async t=>{const r=new URL(`${e.backend.url}${Ht}/accounts/${e.account.accountId}/profile-search?search=${t}`);return $t(r,e.backend.accessToken,"GET")},jt=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}${Ht}/ingest/clients`);return $t(n,e.backend.accessToken,"POST",{startDate:t.toISOString().split("T")[0],endDate:r.toISOString().split("T")[0]},!0)},Bt=e=>async()=>{const t=new URL(`${e.backend.url}${Ht}/accounts/${e.account.accountId}/profiles`);return $t(t,e.backend.accessToken,"GET")},Qt=()=>{const e=Pt(Nt);return{checkProfileSearchAuthorization:qt(e),searchProfilesForAccount:zt(e),ingestClient:jt(e),linkedProfilesForAccount:Bt(e)}};class Kt extends Error{}function Vt(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return function(e){return decodeURIComponent(atob(e).replace(/(.)/g,((e,t)=>{let r=t.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r})))}(t)}catch(r){return atob(t)}}Kt.prototype.name="InvalidTokenError";class Xt{constructor(e){__publicField(this,"roles"),__publicField(this,"isAuthorized"),this.roles=e,this.isAuthorized=e.includes("SalaryPackaging.Access")}static create(e){const t=e?function(e,t){if("string"!=typeof e)throw new Kt("Invalid token specified: must be a string");t||(t={});const r=!0===t.header?0:1,n=e.split(".")[r];if("string"!=typeof n)throw new Kt(`Invalid token specified: missing part #${r+1}`);let i;try{i=Vt(n)}catch(a){throw new Kt(`Invalid token specified: invalid base64 for part #${r+1} (${a.message})`)}try{return JSON.parse(i)}catch(a){throw new Kt(`Invalid token specified: invalid json for part #${r+1} (${a.message})`)}}(e):{roles:[]};return new Xt(t.roles)}}function Yt(){return Yt=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},Yt.apply(null,arguments)}function Zt(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 Jt(e,t){this.props=e,this.context=t}function er(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:Zt(this.props,e)}function n(t){return this.shouldComponentUpdate=r,Oe(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(Jt.prototype=new Te).isPureReactComponent=!0,Jt.prototype.shouldComponentUpdate=function(e,t){return Zt(this.props,e)||Zt(this.state,t)};var tr=pe.__b;pe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),tr&&tr(e)};var rr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function nr(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=rr,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ir=function(e,t){return null==e?null:Ue(Ue(e).map(t))},ar={map:ir,forEach:ir,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},or=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);or(e,t,r,n)};var sr=pe.unmount;function lr(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 lr(e,t,r)}))),e}function cr(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return cr(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 ur(){this.__u=0,this.t=null,this.__b=null}function dr(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function pr(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 Oe(r,i)}return i.displayName="Lazy",i.__f=!0,i}function hr(){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),sr&&sr(e)},(ur.prototype=new Te).__c=function(e,t){var r=t.__c,n=this;null==n.t&&(n.t=[]),n.t.push(r);var i=dr(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]=cr(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)},ur.prototype.componentWillUnmount=function(){this.t=[]},ur.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]=lr(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Oe(Me,null,e.fallback);return i&&(i.__u&=-33),[Oe(Me,null,t.__a?null:e.children),i]};var fr=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 _r(e){return this.getChildContext=function(){return e.context},e.children}function vr(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(Oe(_r,{context:t.context},e.__v),t.l)}function mr(e,t){var r=Oe(vr,{__v:e,i:t});return r.containerInfo=t,r}(hr.prototype=new Te).__a=function(e){var t=this,r=dr(t.__v),n=t.o.get(e);return n[0]++,function(i){var a=function(){t.props.revealOrder?(n.push(i),fr(t,e,n)):i()};r?r(a):a()}},hr.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},hr.prototype.componentDidUpdate=hr.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,r){fr(e,r,t)}))};var gr="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,yr=/^(?: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]/,wr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,br=/[A-Z0-9]/g,kr="undefined"!=typeof document,xr=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};function Sr(e,t,r){return null==t.__k&&(t.textContent=""),Ve(e,t),"function"==typeof r&&r(),e?e.__c:null}function Cr(e,t,r){return Xe(e,t),"function"==typeof r&&r(),e?e.__c:null}Te.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Te.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var Ar=pe.event;function Gr(){}function Or(){return this.cancelBubble}function Pr(){return this.defaultPrevented}pe.event=function(e){return Ar&&(e=Ar(e)),e.persist=Gr,e.isPropagationStopped=Or,e.isDefaultPrevented=Pr,e.nativeEvent=e};var Rr,Mr={enumerable:!1,configurable:!0,get:function(){return this.class}},Tr=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||kr&&"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||xr(t.type)?"onfocus"===s?a="onfocusin":"onblur"===s?a="onfocusout":wr.test(a)&&(a=s):s=a="oninput":i&&yr.test(a)?a=a.replace(br,"-$&").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",Mr)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n}(e),e.$$typeof=gr,Tr&&Tr(e)};var Er=pe.__r;pe.__r=function(e){Er&&Er(e),Rr=e.__c};var Lr=pe.diffed;pe.diffed=function(e){Lr&&Lr(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),Rr=null};var Wr={ReactCurrentDispatcher:{current:{readContext:function(e){return Rr.__n[e.__c].props.value},useCallback:Ot,useContext:Pt,useDebugValue:Rt,useDeferredValue:Qr,useEffect:xt,useId:Mt,useImperativeHandle:At,useInsertionEffect:Vr,useLayoutEffect:St,useMemo:Gt,useReducer:kt,useRef:Ct,useState:bt,useSyncExternalStore:Yr,useTransition:Kr}}};function Fr(e){return Oe.bind(null,e)}function Ir(e){return!!e&&e.$$typeof===gr}function Dr(e){return Ir(e)&&e.type===Me}function Ur(e){return!!e&&!!e.displayName&&("string"==typeof e.displayName||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function $r(e){return Ir(e)?Ye.apply(null,arguments):e}function Nr(e){return!!e.__k&&(Ve(null,e),!0)}function Hr(e){return e&&(e.base||1===e.nodeType&&e)||null}var qr=function(e,t){return e(t)},zr=function(e,t){return e(t)},jr=Me;function Br(e){e()}function Qr(e){return e}function Kr(){return[!1,Br]}var Vr=St,Xr=Ir;function Yr(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,Zr(i)&&a({h:i})}),[e,r,t]),xt((function(){return Zr(i)&&a({h:i}),e((function(){Zr(i)&&a({h:i})}))}),[e]),r}function Zr(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 Jr={useState:bt,useId:Mt,useReducer:kt,useEffect:xt,useLayoutEffect:St,useInsertionEffect:Vr,useTransition:Kr,useDeferredValue:Qr,useSyncExternalStore:Yr,startTransition:Br,useRef:Ct,useImperativeHandle:At,useMemo:Gt,useCallback:Ot,useContext:Pt,useDebugValue:Rt,version:"18.3.1",Children:ar,render:Sr,hydrate:Cr,unmountComponentAtNode:Nr,createPortal:mr,createElement:Oe,createContext:Ze,createFactory:Fr,cloneElement:$r,createRef:Re,Fragment:Me,isValidElement:Ir,isElement:Xr,isFragment:Dr,isMemo:Ur,findDOMNode:Hr,Component:Te,PureComponent:Jt,memo:er,forwardRef:nr,flushSync:zr,unstable_batchedUpdates:qr,StrictMode:jr,Suspense:ur,SuspenseList:hr,lazy:pr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wr};const en=Object.freeze(Object.defineProperty({__proto__:null,Children:ar,Component:Te,Fragment:Me,PureComponent:Jt,StrictMode:jr,Suspense:ur,SuspenseList:hr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Wr,cloneElement:$r,createContext:Ze,createElement:Oe,createFactory:Fr,createPortal:mr,createRef:Re,default:Jr,findDOMNode:Hr,flushSync:zr,forwardRef:nr,hydrate:Cr,isElement:Xr,isFragment:Dr,isMemo:Ur,isValidElement:Ir,lazy:pr,memo:er,render:Sr,startTransition:Br,unmountComponentAtNode:Nr,unstable_batchedUpdates:qr,useCallback:Ot,useContext:Pt,useDebugValue:Rt,useDeferredValue:Qr,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:Vr,useLayoutEffect:St,useMemo:Gt,useReducer:kt,useRef:Ct,useState:bt,useSyncExternalStore:Yr,useTransition:Kr,version:"18.3.1"},Symbol.toStringTag,{value:"Module"}));function tn(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}var rn=/^((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)-.*))$/,nn=tn((function(e){return rn.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var an=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}(),on="-ms-",sn="-moz-",ln="-webkit-",cn="comm",un="rule",dn="decl",pn="@keyframes",hn=Math.abs,fn=String.fromCharCode,_n=Object.assign;function vn(e){return e.trim()}function mn(e,t,r){return e.replace(t,r)}function gn(e,t){return e.indexOf(t)}function yn(e,t){return 0|e.charCodeAt(t)}function wn(e,t,r){return e.slice(t,r)}function bn(e){return e.length}function kn(e){return e.length}function xn(e,t){return t.push(e),e}var Sn=1,Cn=1,An=0,Gn=0,On=0,Pn="";function Rn(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:Sn,column:Cn,length:o,return:""}}function Mn(e,t){return _n(Rn("",null,null,"",null,null,0),e,{length:-e.length},t)}function Tn(){return On=Gn<An?yn(Pn,Gn++):0,Cn++,10===On&&(Cn=1,Sn++),On}function En(){return yn(Pn,Gn)}function Ln(){return Gn}function Wn(e,t){return wn(Pn,e,t)}function Fn(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 In(e){return Sn=Cn=1,An=bn(Pn=e),Gn=0,[]}function Dn(e){return Pn="",e}function Un(e){return vn(Wn(Gn-1,Hn(91===e?e+2:40===e?e+1:e)))}function $n(e){for(;(On=En())&&On<33;)Tn();return Fn(e)>2||Fn(On)>3?"":" "}function Nn(e,t){for(;--t&&Tn()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return Wn(e,Ln()+(t<6&&32==En()&&32==Tn()))}function Hn(e){for(;Tn();)switch(On){case e:return Gn;case 34:case 39:34!==e&&39!==e&&Hn(On);break;case 40:41===e&&Hn(e);break;case 92:Tn()}return Gn}function qn(e,t){for(;Tn()&&e+On!==57&&(e+On!==84||47!==En()););return"/*"+Wn(t,Gn-1)+"*"+fn(47===e?e:Tn())}function zn(e){for(;!Fn(En());)Tn();return Wn(e,Gn)}function jn(e){return Dn(Bn("",null,null,null,[""],e=In(e),0,[0],e))}function Bn(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=Tn()){case 40:if(108!=f&&58==yn(x,d-1)){-1!=gn(x+=mn(Un(g),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:x+=Un(g);break;case 9:case 10:case 13:case 32:x+=$n(f);break;case 92:x+=Nn(Ln()-1,7);continue;case 47:switch(En()){case 42:case 47:xn(Kn(qn(Tn(),Ln()),t,r),l);break;default:x+="/"}break;case 123*_:s[c++]=bn(x)*m;case 125*_:case 59:case 0:switch(g){case 0:case 125:v=0;case 59+u:-1==m&&(x=mn(x,/\f/g,"")),h>0&&bn(x)-d&&xn(h>32?Vn(x+";",n,r,d-1):Vn(mn(x," ","")+";",n,r,d-2),l);break;case 59:x+=";";default:if(xn(k=Qn(x,t,r,c,u,i,s,y,w=[],b=[],d),a),123===g)if(0===u)Bn(x,t,k,k,w,a,d,s,b);else switch(99===p&&110===yn(x,3)?100:p){case 100:case 108:case 109:case 115:Bn(e,k,k,n&&xn(Qn(e,k,k,0,0,i,s,y,i,w=[],d),b),i,b,d,s,n?w:b);break;default:Bn(x,k,k,k,[""],b,0,s,b)}}c=u=h=0,_=m=1,y=x="",d=o;break;case 58:d=1+bn(x),h=f;default:if(_<1)if(123==g)--_;else if(125==g&&0==_++&&125==(On=Gn>0?yn(Pn,--Gn):0,Cn--,10===On&&(Cn=1,Sn--),On))continue;switch(x+=fn(g),g*_){case 38:m=u>0?1:(x+="\f",-1);break;case 44:s[c++]=(bn(x)-1)*m,m=1;break;case 64:45===En()&&(x+=Un(Tn())),p=En(),u=d=bn(y=x+=zn(Ln())),g++;break;case 45:45===f&&2==bn(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=kn(p),f=0,_=0,v=0;f<n;++f)for(var m=0,g=wn(e,d+1,d=hn(_=o[f])),y=e;m<h;++m)(y=vn(_>0?p[m]+" "+g:mn(g,/&\f/g,p[m])))&&(l[v++]=y);return Rn(e,t,r,0===i?un:s,l,c,u)}function Kn(e,t,r){return Rn(e,t,r,cn,fn(On),wn(e,2,-2),0)}function Vn(e,t,r,n){return Rn(e,t,r,dn,wn(e,0,n),wn(e,n+1,-1),n)}function Xn(e,t){for(var r="",n=kn(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function Yn(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case dn:return e.return=e.return||e.value;case cn:return"";case pn:return e.return=e.value+"{"+Xn(e.children,n)+"}";case un:e.value=e.props.join(",")}return bn(r=Xn(e.children,n))?e.return=e.value+"{"+r+"}":""}var Zn=function(e,t,r){for(var n=0,i=0;n=i,i=En(),38===n&&12===i&&(t[r]=1),!Fn(i);)Tn();return Wn(e,Gn)},Jn=function(e,t){return Dn(function(e,t){var r=-1,n=44;do{switch(Fn(n)){case 0:38===n&&12===En()&&(t[r]=1),e[r]+=Zn(Gn-1,t,r);break;case 2:e[r]+=Un(n);break;case 4:if(44===n){e[++r]=58===En()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=fn(n)}}while(n=Tn());return e}(In(e),t))},ei=new WeakMap,ti=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)||ei.get(r))&&!n){ei.set(e,!0);for(var i=[],a=Jn(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]}}},ri=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function ni(e,t){switch(function(e,t){return 45^yn(e,0)?(((t<<2^yn(e,0))<<2^yn(e,1))<<2^yn(e,2))<<2^yn(e,3):0}(e,t)){case 5103:return ln+"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 ln+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ln+e+sn+e+on+e+e;case 6828:case 4268:return ln+e+on+e+e;case 6165:return ln+e+on+"flex-"+e+e;case 5187:return ln+e+mn(e,/(\w+).+(:[^]+)/,ln+"box-$1$2"+on+"flex-$1$2")+e;case 5443:return ln+e+on+"flex-item-"+mn(e,/flex-|-self/,"")+e;case 4675:return ln+e+on+"flex-line-pack"+mn(e,/align-content|flex-|-self/,"")+e;case 5548:return ln+e+on+mn(e,"shrink","negative")+e;case 5292:return ln+e+on+mn(e,"basis","preferred-size")+e;case 6060:return ln+"box-"+mn(e,"-grow","")+ln+e+on+mn(e,"grow","positive")+e;case 4554:return ln+mn(e,/([^-])(transform)/g,"$1"+ln+"$2")+e;case 6187:return mn(mn(mn(e,/(zoom-|grab)/,ln+"$1"),/(image-set)/,ln+"$1"),e,"")+e;case 5495:case 3959:return mn(e,/(image-set\([^]*)/,ln+"$1$`$1");case 4968:return mn(mn(e,/(.+:)(flex-)?(.*)/,ln+"box-pack:$3"+on+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ln+e+e;case 4095:case 3583:case 4068:case 2532:return mn(e,/(.+)-inline(.+)/,ln+"$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(bn(e)-1-t>6)switch(yn(e,t+1)){case 109:if(45!==yn(e,t+4))break;case 102:return mn(e,/(.+:)(.+)-([^]+)/,"$1"+ln+"$2-$3$1"+sn+(108==yn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~gn(e,"stretch")?ni(mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==yn(e,t+1))break;case 6444:switch(yn(e,bn(e)-3-(~gn(e,"!important")&&10))){case 107:return mn(e,":",":"+ln)+e;case 101:return mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ln+(45===yn(e,14)?"inline-":"")+"box$3$1"+ln+"$2$3$1"+on+"$2box$3")+e}break;case 5936:switch(yn(e,t+11)){case 114:return ln+e+on+mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ln+e+on+mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ln+e+on+mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ln+e+on+e+e}return e}var ii=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case dn:e.return=ni(e.value,e.length);break;case pn:return Xn([Mn(e,{value:mn(e.value,"@","@"+ln)})],n);case un: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 Xn([Mn(e,{props:[mn(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return Xn([Mn(e,{props:[mn(t,/:(plac\w+)/,":"+ln+"input-$1")]}),Mn(e,{props:[mn(t,/:(plac\w+)/,":-moz-$1")]}),Mn(e,{props:[mn(t,/:(plac\w+)/,on+"input-$1")]})],n)}return""}))}}],ai=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||ii,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=[Yn,(d=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&d(e)})],h=(c=[ti,ri].concat(a,p),u=kn(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,Xn(jn(e?e+"{"+t.styles+"}":t.styles),h),n&&(f.inserted[t.name]=!0)};var f={key:t,sheet:new an({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},oi={exports:{}},si={},li="function"==typeof Symbol&&Symbol.for,ci=li?Symbol.for("react.element"):60103,ui=li?Symbol.for("react.portal"):60106,di=li?Symbol.for("react.fragment"):60107,pi=li?Symbol.for("react.strict_mode"):60108,hi=li?Symbol.for("react.profiler"):60114,fi=li?Symbol.for("react.provider"):60109,_i=li?Symbol.for("react.context"):60110,vi=li?Symbol.for("react.async_mode"):60111,mi=li?Symbol.for("react.concurrent_mode"):60111,gi=li?Symbol.for("react.forward_ref"):60112,yi=li?Symbol.for("react.suspense"):60113,wi=li?Symbol.for("react.suspense_list"):60120,bi=li?Symbol.for("react.memo"):60115,ki=li?Symbol.for("react.lazy"):60116,xi=li?Symbol.for("react.block"):60121,Si=li?Symbol.for("react.fundamental"):60117,Ci=li?Symbol.for("react.responder"):60118,Ai=li?Symbol.for("react.scope"):60119;function Gi(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case ci:switch(e=e.type){case vi:case mi:case di:case hi:case pi:case yi:return e;default:switch(e=e&&e.$$typeof){case _i:case gi:case ki:case bi:case fi:return e;default:return t}}case ui:return t}}}function Oi(e){return Gi(e)===mi}si.AsyncMode=vi,si.ConcurrentMode=mi,si.ContextConsumer=_i,si.ContextProvider=fi,si.Element=ci,si.ForwardRef=gi,si.Fragment=di,si.Lazy=ki,si.Memo=bi,si.Portal=ui,si.Profiler=hi,si.StrictMode=pi,si.Suspense=yi,si.isAsyncMode=function(e){return Oi(e)||Gi(e)===vi},si.isConcurrentMode=Oi,si.isContextConsumer=function(e){return Gi(e)===_i},si.isContextProvider=function(e){return Gi(e)===fi},si.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===ci},si.isForwardRef=function(e){return Gi(e)===gi},si.isFragment=function(e){return Gi(e)===di},si.isLazy=function(e){return Gi(e)===ki},si.isMemo=function(e){return Gi(e)===bi},si.isPortal=function(e){return Gi(e)===ui},si.isProfiler=function(e){return Gi(e)===hi},si.isStrictMode=function(e){return Gi(e)===pi},si.isSuspense=function(e){return Gi(e)===yi},si.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===di||e===mi||e===hi||e===pi||e===yi||e===wi||"object"==typeof e&&null!==e&&(e.$$typeof===ki||e.$$typeof===bi||e.$$typeof===fi||e.$$typeof===_i||e.$$typeof===gi||e.$$typeof===Si||e.$$typeof===Ci||e.$$typeof===Ai||e.$$typeof===xi)},si.typeOf=Gi,oi.exports=si;var Pi=oi.exports,Ri={};Ri[Pi.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ri[Pi.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};function Mi(e,t,r){var n="";return r.split(" ").forEach((function(r){void 0!==e[r]?t.push(e[r]+";"):r&&(n+=r+" ")})),n}var Ti=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Ei=function(e,t,r){Ti(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 Li={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},Wi=/[A-Z]|^ms/g,Fi=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ii=function(e){return 45===e.charCodeAt(1)},Di=function(e){return null!=e&&"boolean"!=typeof e},Ui=tn((function(e){return Ii(e)?e:e.replace(Wi,"-$&").toLowerCase()})),$i=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Fi,(function(e,t,r){return Hi={name:t,styles:r,next:Hi},t}))}return 1===Li[e]||Ii(e)||"number"!=typeof t||0===t?t:t+"px"};function Ni(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 Hi={name:i.name,styles:i.styles,next:Hi},i.name;var a=r;if(void 0!==a.styles){var o=a.next;if(void 0!==o)for(;void 0!==o;)Hi={name:o.name,styles:o.styles,next:Hi},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+=Ni(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]+"}":Di(s)&&(n+=Ui(a)+":"+$i(a,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=Ni(e,t,o);switch(a){case"animation":case"animationName":n+=Ui(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<o.length;c++)Di(o[c])&&(n+=Ui(a)+":"+$i(a,o[c])+";")}return n}(e,t,r);case"function":if(void 0!==e){var s=Hi,l=r(e);return Hi=s,Ni(e,t,l)}}var c=r;if(null==t)return c;var u=t[c];return void 0!==u?u:c}var Hi,qi=/label:\s*([^\s;{]+)\s*(;|$)/g;function zi(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="";Hi=void 0;var a=e[0];null==a||void 0===a.raw?(n=!1,i+=Ni(r,t,a)):i+=a[0];for(var o=1;o<e.length;o++){if(i+=Ni(r,t,e[o]),n)i+=a[o]}qi.lastIndex=0;for(var s,l="";null!==(s=qi.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:Hi}}var ji=!!en.useInsertionEffect&&en.useInsertionEffect,Bi=ji||function(e){return e()},Qi=ji||St,Ki=Ze("undefined"!=typeof HTMLElement?ai({key:"css"}):null),Vi=Ki.Provider,Xi=function(e){return nr((function(t,r){var n=Pt(Ki);return e(t,n,r)}))},Yi=Ze({}),Zi={}.hasOwnProperty,Ji="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ea=function(e,t){var r={};for(var n in t)Zi.call(t,n)&&(r[n]=t[n]);return r[Ji]=e,r},ta=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ti(t,r,n),Bi((function(){return Ei(t,r,n)})),null},ra=Xi((function(e,t,r){var n=e.css;"string"==typeof n&&void 0!==t.registered[n]&&(n=t.registered[n]);var i=e[Ji],a=[n],o="";"string"==typeof e.className?o=Mi(t.registered,a,e.className):null!=e.className&&(o=e.className+" ");var s=zi(a,void 0,Pt(Yi));o+=t.key+"-"+s.name;var l={};for(var c in e)Zi.call(e,c)&&"css"!==c&&c!==Ji&&(l[c]=e[c]);return l.className=o,r&&(l.ref=r),Oe(Me,null,Oe(ta,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Oe(i,l))})),na=Xi((function(e,t){var r=zi([e.styles],void 0,Pt(Yi)),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&&Ei(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 ia(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return zi(t)}var aa=nn,oa=function(e){return"theme"!==e},sa=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?aa:oa},la=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},ca=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ti(t,r,n),Bi((function(){return Ei(t,r,n)})),null},ua=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=la(t,r,a),l=s||sa(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=Xi((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=Pt(Yi)}"string"==typeof e.className?a=Mi(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var f=zi(d.concat(u),t.registered,p);a+=t.key+"-"+f.name,void 0!==i&&(a+=" "+i);var _=c&&void 0===s?sa(n):l,v={};for(var m in e)c&&"as"===m||_(m)&&(v[m]=e[m]);return v.className=a,r&&(v.ref=r),Oe(Me,null,Oe(ca,{cache:t,serialized:f,isStringTag:"string"==typeof n}),Oe(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,Yt({},r,n,{shouldForwardProp:la(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){ua[e]=ua(e)}));const da=ua.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))"}}),pa=ua.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 ha=0;function fa(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:--ha,__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 _a=Me;function va(e,t,r){return Zi.call(t,"css")?fa(ra,ea(e,t),r):fa(e,t,r)}function ma(e,t,r){return Zi.call(t,"css")?fa(ra,ea(e,t),r):fa(e,t,r)}const ga=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 va(da,{onClick:async()=>{r(!0),await e.onClick()||r(!1)},disabled:t,children:t?ma(_a,{children:[va(pa,{}),va("span",{css:{marginLeft:"0.5rem"},children:e.processingText})]}):va(_a,{children:e.text})})},ya=ua.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")),wa=({tabs:e,currentTabId:t,onChange:r})=>{const n=Gt((()=>e.find((e=>e.id==t))),[e,t]);return ma("div",{children:[ma("div",{css:{"@media (min-width: 640px)":{display:"none"}},children:[va("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"}),va("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=>va("option",{value:e.id,children:e.displayName},e.id)))})]}),va("div",{css:{display:"none","@media (min-width: 640px)":{display:"block"}},children:va("div",{css:{borderBottomWidth:"1px","--tw-border-opacity":"1",borderColor:"rgb(229 231 235 / var(--tw-border-opacity))"},children:va("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 va(ya,{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 ba({title:e,titleId:t,...r},n){return Oe("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?Oe("title",{id:t},e):null,Oe("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 ka=nr(ba);function xa({title:e,titleId:t,...r},n){return Oe("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?Oe("title",{id:t},e):null,Oe("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 Sa=nr(xa),Ca=ua.td`
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,O,P,R,M,T,E,L,W,F,I,D,U,$,N,H,q,z,j,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 Oe(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 Pe(e,o,n,i,null)}function Pe(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 Te(e,t){this.props=e,this.context=t}function Ee(e,t){if(null==t)return e.__?Ee(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?Ee(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 We(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),ze(r.__P,n,i,r.__n,r.__P.namespaceURI,32&i.__u?[a]:null,o,null==a?Ee(i):a,!!(32&i.__u),s),n.__v=i.__v,n.__.__k[n.__i]=n,je(o,n,s),n.__e!=a&&Le(n)),fe.length>t&&fe.sort(me));Fe.__r=0}function Ie(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?Pe(null,i,null,null,null):Ce(i)?Pe(Me,{children:i},null,null,null):void 0===i.constructor&&i.__b>0?Pe(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=Ee(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,ze(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=Ee(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 ze(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 Te(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)),Ie(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=""),Ie(e,Ce(p)?p:[p],t,r,n,"foreignObject"===g?"http://www.w3.org/1999/xhtml":i,a,o,a?a[0]:r.__k&&Ee(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 je(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=[],ze(t,e=(!n&&r||t).__k=Oe(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),je(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),Pe(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,We(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,Te.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),We(this))},Te.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),We(this))},Te.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=Oe(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]=Oe(ot,{name:c},l):n[a]=l}var u=r?Oe(ot,null,n):n;return Oe(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 Oe("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&&It(r.__H,t)&&(r.__=e,r.i=t,lt.__H.__h.push(r))}function St(e,t){var r=wt(st++,4);!ht.__s&&It(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 It(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ot(e,t){return dt=8,Gt((function(){return e}),t)}function Pt(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 Tt(){for(var e;e=pt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wt),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(Wt),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)(Tt)),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(Wt),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{Wt(e)}catch(r){t=r}})),r.__H=void 0,t&&ht.__e(t,r.__v))};var Et="function"==typeof requestAnimationFrame;function Lt(e){var t,r=function(){clearTimeout(n),Et&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Et&&(t=requestAnimationFrame(r))}function Wt(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 It(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.630",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 zt(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,Oe(e,t)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(qt.prototype=new Te).isPureReactComponent=!0,qt.prototype.shouldComponentUpdate=function(e,t){return Ht(this.props,e)||Ht(this.state,t)};var jt=pe.__b;pe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),jt&&jt(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 Oe(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 Te).__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&&Oe(Me,null,e.fallback);return i&&(i.__u&=-33),[Oe(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(Oe(ar,{context:t.context},e.__v),t.l)}function sr(e,t){var r=Oe(or,{__v:e,i:t});return r.containerInfo=t,r}(nr.prototype=new Te).__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}Te.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(Te.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:Ot,useContext:Pt,useDebugValue:Rt,useDeferredValue:Ir,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 Oe.bind(null,e)}function Gr(e){return!!e&&e.$$typeof===lr}function Or(e){return Gr(e)&&e.type===Me}function Pr(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 Tr(e){return e&&(e.base||1===e.nodeType&&e)||null}var Er=function(e,t){return e(t)},Lr=function(e,t){return e(t)},Wr=Me;function Fr(e){e()}function Ir(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:Ir,useSyncExternalStore:Nr,startTransition:Fr,useRef:Ct,useImperativeHandle:At,useMemo:Gt,useCallback:Ot,useContext:Pt,useDebugValue:Rt,version:"18.3.1",Children:Vt,render:fr,hydrate:_r,unmountComponentAtNode:Mr,createPortal:sr,createElement:Oe,createContext:Ze,createFactory:Ar,cloneElement:Rr,createRef:Re,Fragment:Me,isValidElement:Gr,isElement:$r,isFragment:Or,isMemo:Pr,findDOMNode:Tr,Component:Te,PureComponent:qt,memo:zt,forwardRef:Qt,flushSync:Lr,unstable_batchedUpdates:Er,StrictMode:Wr,Suspense:er,SuspenseList:nr,lazy:rr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cr};const zr=Object.freeze(Object.defineProperty({__proto__:null,Children:Vt,Component:Te,Fragment:Me,PureComponent:qt,StrictMode:Wr,Suspense:er,SuspenseList:nr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Cr,cloneElement:Rr,createContext:Ze,createElement:Oe,createFactory:Ar,createPortal:sr,createRef:Re,default:qr,findDOMNode:Tr,flushSync:Lr,forwardRef:Qt,hydrate:_r,isElement:$r,isFragment:Or,isMemo:Pr,isValidElement:Gr,lazy:rr,memo:zt,render:fr,startTransition:Fr,unmountComponentAtNode:Mr,unstable_batchedUpdates:Er,useCallback:Ot,useContext:Pt,useDebugValue:Rt,useDeferredValue:Ir,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"})),jr="/salary-packaging/admin/v1.0",Br=()=>{const e=Pt(Nt);return{checkProfileSearchAuthorization:Gt((()=>(console.log(e),(e=>async()=>{const t=new URL(`${e.backend.url}${jr}/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}${jr}/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}${jr}/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}${jr}/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 On(){return Sn=xn<kn?_n(Cn,xn++):0,bn++,10===Sn&&(bn=1,wn++),Sn}function Pn(){return _n(Cn,xn)}function Rn(){return xn}function Mn(e,t){return vn(Cn,e,t)}function Tn(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 En(e){return wn=bn=1,kn=mn(Cn=e),xn=0,[]}function Ln(e){return Cn="",e}function Wn(e){return pn(Mn(xn-1,Dn(91===e?e+2:40===e?e+1:e)))}function Fn(e){for(;(Sn=Pn())&&Sn<33;)On();return Tn(e)>2||Tn(Sn)>3?"":" "}function In(e,t){for(;--t&&On()&&!(Sn<48||Sn>102||Sn>57&&Sn<65||Sn>70&&Sn<97););return Mn(e,Rn()+(t<6&&32==Pn()&&32==On()))}function Dn(e){for(;On();)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:On()}return xn}function Un(e,t){for(;On()&&e+Sn!==57&&(e+Sn!==84||47!==Pn()););return"/*"+Mn(t,xn-1)+"*"+un(47===e?e:On())}function $n(e){for(;!Tn(Pn());)On();return Mn(e,xn)}function Nn(e){return Ln(Hn("",null,null,null,[""],e=En(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=On()){case 40:if(108!=f&&58==_n(x,d-1)){-1!=fn(x+=hn(Wn(g),"&","&\f"),"&\f")&&(m=-1);break}case 34:case 39:case 91:x+=Wn(g);break;case 9:case 10:case 13:case 32:x+=Fn(f);break;case 92:x+=In(Rn()-1,7);continue;case 47:switch(Pn()){case 42:case 47:yn(zn(Un(On(),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?jn(x+";",n,r,d-1):jn(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===Pn()&&(x+=Wn(On())),p=Pn(),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 zn(e,t,r){return An(e,t,r,an,un(Sn),vn(e,2,-2),0)}function jn(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=Pn(),38===n&&12===i&&(t[r]=1),!Tn(i);)On();return Mn(e,xn)},Vn=function(e,t){return Ln(function(e,t){var r=-1,n=44;do{switch(Tn(n)){case 0:38===n&&12===Pn()&&(t[r]=1),e[r]+=Kn(xn-1,t,r);break;case 2:e[r]+=Wn(n);break;case 4:if(44===n){e[++r]=58===Pn()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=un(n)}}while(n=On());return e}(En(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 Oi=function(e,t,r){var n=e.key+"-"+t.name;!1===r&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},Pi=function(e,t,r){Oi(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,Ti=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ei=function(e){return 45===e.charCodeAt(1)},Li=function(e){return null!=e&&"boolean"!=typeof e},Wi=Yr((function(e){return Ei(e)?e:e.replace(Mi,"-$&").toLowerCase()})),Fi=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Ti,(function(e,t,r){return Di={name:t,styles:r,next:Di},t}))}return 1===Ri[e]||Ei(e)||"number"!=typeof t||0===t?t:t+"px"};function Ii(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+=Ii(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+=Wi(a)+":"+Fi(a,s)+";")}else if(!Array.isArray(o)||"string"!=typeof o[0]||null!=t&&void 0!==t[o[0]]){var l=Ii(e,t,o);switch(a){case"animation":case"animationName":n+=Wi(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}else for(var c=0;c<o.length;c++)Li(o[c])&&(n+=Wi(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,Ii(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+=Ii(r,t,a)):i+=a[0];for(var o=1;o<e.length;o++){if(i+=Ii(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=!!zr.useInsertionEffect&&zr.useInsertionEffect,Hi=Ni||function(e){return e()},qi=Ni||St,zi=Ze("undefined"!=typeof HTMLElement?ti({key:"css"}):null),ji=zi.Provider,Bi=function(e){return Qt((function(t,r){var n=Pt(zi);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 Oi(t,r,n),Hi((function(){return Pi(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,Pt(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),Oe(Me,null,Oe(Yi,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Oe(i,l))})),Ji=Bi((function(e,t){var r=$i([e.styles],void 0,Pt(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&&Pi(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 Oi(t,r,n),Hi((function(){return Pi(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=Pt(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),Oe(Me,null,Oe(aa,{cache:t,serialized:f,isStringTag:"string"==typeof n}),Oe(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 Oe("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?Oe("title",{id:t},e):null,Oe("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 Oe("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?Oe("title",{id:t},e):null,Oe("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`
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
- `,Aa=ua.td`
3
+ `,ka=oa.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
- `,Ga=ua.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)),Oa=e=>{const t=new Date(e.value);return ma(Ca,{children:[t.toLocaleDateString(),va("br",{}),t.toLocaleTimeString()]})},Pa=e=>e.url?va(Aa,{children:ma(Ga,{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:[va("span",{css:{lineHeight:"1.25rem"},children:"Linked"}),va(ka,{css:{marginTop:"auto",marginBottom:"auto",marginLeft:"0.25rem",height:"0.75rem",width:"0.75rem"}})]})}):va(Aa,{children:va(Ga,{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"})}),Ra=e=>va(Aa,{children:va("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})}),Ma=e=>va(Ca,{children:va("ul",{css:{listStyleType:"none"},children:e.value.split(",").map((e=>va("li",{children:e},e)))})}),Ta=(e,t,r)=>{var n;switch(null==r?void 0:r.kind){case"status":return va(Aa,{children:va(Ga,{className:null==(n=r.styleOverrides)?void 0:n[t],children:t})});case"date":return va(Oa,{value:t});case"link":return va(Pa,{url:t});case"button":return va(Ra,{id:e,value:t,onClick:r.onClick,children:r.children});case"list":return va(Ma,{value:t});default:return va(Ca,{children:t})}};function Ea({title:e,titleId:t,...r},n){return Oe("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?Oe("title",{id:t},e):null,Oe("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 La=nr(Ea);function Wa({title:e,titleId:t,...r},n){return Oe("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?Oe("title",{id:t},e):null,Oe("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 Fa=nr(Wa),Ia=ua.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))"})),Da=ua.input`
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)))})}),Oa=(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 Pa({title:e,titleId:t,...r},n){return Oe("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?Oe("title",{id:t},e):null,Oe("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(Pa);function Ma({title:e,titleId:t,...r},n){return Oe("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?Oe("title",{id:t},e):null,Oe("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 Ta=Qt(Ma),Ea=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`
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 Ua({title:e,titleId:t,...r},n){return Oe("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?Oe("title",{id:t},e):null,Oe("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 $a=nr(Ua),Na=nr((({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},_)=>ma("div",{className:s,children:[e&&va("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}),ma("div",{css:{position:"relative",marginTop:"0.5rem"},children:[n&&va("span",{css:{position:"absolute",marginLeft:"0.5rem",marginTop:"0.5rem"},children:n}),ma("div",{css:{marginTop:"0.5rem",display:"flex",alignItems:"center"},children:[va(Da,{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&&ma("button",{type:"button",children:[va($a,{css:{marginLeft:"0.5rem",height:"1.25rem",width:"1.25rem"},onClick:()=>f()})," "]})]})]}),d&&va("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&&va("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})]}))),Ha="asc",qa="desc",za=e=>{var t,r;const[n,i]=bt(""),[a,o]=bt([]),[s,l]=bt(e.columns[0]),[c,u]=bt(Ha),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===qa?-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 va(_a,{children:ma("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:[ma("div",{css:{"@media (min-width: 640px)":{display:"flex",alignItems:"center"}},children:[ma("div",{css:{"@media (min-width: 640px)":{flex:"1 1 auto"}},children:[va("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&&va("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}),ma("div",{css:{marginTop:"0.5rem",display:"inline-flex"},children:[va(Na,{css:{marginTop:"auto",marginBottom:"auto",maxWidth:"20rem"},label:null==(t=e.searchButton)?void 0:t.text,icon:va(Sa,{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&&va("div",{css:{marginLeft:"1rem",marginTop:"0.5rem"},children:va("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&&va("div",{css:{marginTop:"1rem","@media (min-width: 640px)":{marginLeft:"4rem",marginTop:"0px",flex:"none"}},children:va("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})})]}),va("div",{css:{marginTop:"2rem",display:"flow-root"},children:va("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:va("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:va("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:ma("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&&va("thead",{children:va("tr",{children:ma("td",{css:{padding:"1rem"},colspan:e.columns.length,children:[va(Ia,{onClick:()=>o([]),isActive:0==a.length,children:"All"}),e.columns.map((e=>{var t;return null==(t=e.filters)?void 0:t.map((t=>va(Ia,{onClick:_(t,e),isActive:!!a.find((e=>e.name===t.name)),children:t.name},t.name)))}))]})})}),va("thead",{css:{"--tw-bg-opacity":"1",backgroundColor:"rgb(249 250 251 / var(--tw-bg-opacity))"},children:va("tr",{children:e.columns.map((e=>va("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:ma("button",{disabled:!e.isSortable,onClick:()=>(e=>{s===e?u(c===Ha?qa:Ha):(l(e),u(Ha))})(e),css:{display:"inline-flex"},children:[va("span",{children:e.name}),ma("span",{css:{marginLeft:"0.5rem"},children:[s===e&&c===Ha&&va(La,{css:{height:"1.25rem",width:"1.25rem"}}),s===e&&c===qa&&va(Fa,{css:{height:"1.25rem",width:"1.25rem"}}),s!==e&&va("svg",{css:{height:"1.25rem",width:"1.25rem"}})]})]})},e.field)))})}),va("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)=>va("tr",{children:e.columns.map(((e,n)=>va(Me,{children:Ta(t.id,t[e.field],e.type)},`${t[e.field]}-${r}-${n}`)))},`${t[e.columns[0].field]}-${r}`)))})]})})})})})]})})},ja=[{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 Ba=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 Ka(){}function Va(e){return"number"==typeof e&&e>=0&&e!==1/0}function Xa(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ya(e,t){return"function"==typeof e?e(t):e}function Za(e,t){return"function"==typeof e?e(t):e}function Ja(e,t){const{type:r="all",exact:n,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o)if(n){if(t.queryHash!==to(o,t.options))return!1}else if(!no(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 eo(e,t){const{exact:r,status:n,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(r){if(ro(t.options.mutationKey)!==ro(a))return!1}else if(!no(t.options.mutationKey,a))return!1}return(!n||t.state.status===n)&&!(i&&!i(t))}function to(e,t){return((null==t?void 0:t.queryKeyHashFn)||ro)(e)}function ro(e){return JSON.stringify(e,((e,t)=>so(t)?Object.keys(t).sort().reduce(((e,r)=>(e[r]=t[r],e)),{}):t))}function no(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((r=>!no(e[r],t[r]))))}function io(e,t){if(e===t)return e;const r=oo(e)&&oo(t);if(r||so(e)&&so(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]=io(e[i],t[i]),s[i]===e[i]&&void 0!==e[i]&&l++)}return i===o&&l===i?e:s}return t}function ao(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 oo(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function so(e){if(!lo(e))return!1;const t=e.constructor;if(void 0===t)return!0;const r=t.prototype;return!!lo(r)&&(!!r.hasOwnProperty("isPrototypeOf")&&Object.getPrototypeOf(e)===Object.prototype)}function lo(e){return"[object Object]"===Object.prototype.toString.call(e)}function co(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?io(e,t):t}function uo(e,t,r=0){const n=[...e,t];return r&&n.length>r?n.slice(1):n}function po(e,t,r=0){const n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var ho=Symbol();function fo(e,t){return!e.queryFn&&(null==t?void 0:t.initialPromise)?()=>t.initialPromise:e.queryFn&&e.queryFn!==ho?e.queryFn:()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`))}var _o=new(n=class extends Ba{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),vo=new(s=class extends Ba{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 mo(){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 go(e){return Math.min(1e3*2**e,3e4)}function yo(e){return"online"!==(e??"online")||vo.isOnline()}var wo=class extends Error{constructor(e){super("CancelledError"),this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}};function bo(e){return e instanceof wo}function ko(e){let t,r=!1,n=0,i=!1;const a=mo(),o=()=>_o.isFocused()&&("always"===e.networkMode||vo.isOnline())&&e.canRun(),s=()=>yo(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??go,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 wo(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 xo=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}}}(),So=(c=class{constructor(){__privateAdd(this,l)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Va(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),Co=(g=class extends So{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=co(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(Ka).catch(Ka):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(__privateGet(this,u))}isActive(){return this.observers.some((e=>!1!==Za(e.options.enabled,this)))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ho||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||!Xa(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=fo(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;bo(e)&&e.silent||__privateMethod(this,v,m).call(this,{type:"error",error:e}),bo(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,ko({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,...Ao(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 bo(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),xo.batch((()=>{this.observers.forEach((e=>{e.onQueryUpdate()})),__privateGet(this,p).notify({query:this,type:"updated",action:e})}))},g);function Ao(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:yo(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}var Go=(w=class extends Ba{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??to(n,t);let a=this.get(i);return a||(a=new Co({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(){xo.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=>Ja(t,e)))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter((t=>Ja(e,t))):t}notify(e){xo.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}onFocus(){xo.batch((()=>{this.getAll().forEach((e=>{e.onFocus()}))}))}onOnline(){xo.batch((()=>{this.getAll().forEach((e=>{e.onOnline()}))}))}},y=new WeakMap,w),Oo=(A=class extends So{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,ko({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),xo.batch((()=>{__privateGet(this,b).forEach((t=>{t.onMutationUpdate(e)})),__privateGet(this,k).notify({mutation:this,type:"updated",action:e})}))},A);var Po=(P=class extends Ba{constructor(e={}){super(),__privateAdd(this,G),__privateAdd(this,O),this.config=e,__privateSet(this,G,new Map),__privateSet(this,O,Date.now())}build(e,t,r){const n=new Oo({mutationCache:this,mutationId:++__privateWrapper(this,O)._,options:e.defaultMutationOptions(t),state:r});return this.add(n),n}add(e){const t=Ro(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=Ro(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(Ro(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(Ro(e)))?void 0:t.find((t=>t!==e&&t.state.isPaused));return(null==r?void 0:r.continue())??Promise.resolve()}clear(){xo.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=>eo(t,e)))}findAll(e={}){return this.getAll().filter((t=>eo(e,t)))}notify(e){xo.batch((()=>{this.listeners.forEach((t=>{t(e)}))}))}resumePausedMutations(){const e=this.getAll().filter((e=>e.state.isPaused));return xo.batch((()=>Promise.all(e.map((e=>e.continue().catch(Ka))))))}},G=new WeakMap,O=new WeakMap,P);function Ro(e){var t;return(null==(t=e.options.scope)?void 0:t.id)??String(e.mutationId)}function Mo(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=fo(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?po:uo;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?Eo:To)(l,t);p=await i(t,r,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:To(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 To(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 Eo(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 Lo=(D=class{constructor(e={}){__privateAdd(this,R),__privateAdd(this,M),__privateAdd(this,T),__privateAdd(this,E),__privateAdd(this,L),__privateAdd(this,W),__privateAdd(this,F),__privateAdd(this,I),__privateSet(this,R,e.queryCache||new Go),__privateSet(this,M,e.mutationCache||new Po),__privateSet(this,T,e.defaultOptions||{}),__privateSet(this,E,new Map),__privateSet(this,L,new Map),__privateSet(this,W,0)}mount(){__privateWrapper(this,W)._++,1===__privateGet(this,W)&&(__privateSet(this,F,_o.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,I,vo.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,W)._--,0===__privateGet(this,W)&&(null==(e=__privateGet(this,F))||e.call(this),__privateSet(this,F,void 0),null==(t=__privateGet(this,I))||t.call(this),__privateSet(this,I,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(Ya(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 xo.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);xo.batch((()=>{t.findAll(e).forEach((e=>{t.remove(e)}))}))}resetQueries(e,t){const r=__privateGet(this,R),n={type:"active",...e};return xo.batch((()=>(r.findAll(e).forEach((e=>{e.reset()})),this.refetchQueries(n,t))))}cancelQueries(e={},t={}){const r={revert:!0,...t},n=xo.batch((()=>__privateGet(this,R).findAll(e).map((e=>e.cancel(r)))));return Promise.all(n).then(Ka).catch(Ka)}invalidateQueries(e={},t={}){return xo.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=xo.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(Ka)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(Ka)}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(Ya(t.staleTime,r))?r.fetch(t):Promise.resolve(r.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Ka).catch(Ka)}fetchInfiniteQuery(e){return e.behavior=Mo(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Ka).catch(Ka)}ensureInfiniteQueryData(e){return e.behavior=Mo(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return vo.isOnline()?__privateGet(this,M).resumePausedMutations():Promise.resolve()}getQueryCache(){return __privateGet(this,R)}getMutationCache(){return __privateGet(this,M)}getDefaultOptions(){return __privateGet(this,T)}setDefaultOptions(e){__privateSet(this,T,e)}setQueryDefaults(e,t){__privateGet(this,E).set(ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,E).values()];let r={};return t.forEach((t=>{no(e,t.queryKey)&&(r={...r,...t.defaultOptions})})),r}setMutationDefaults(e,t){__privateGet(this,L).set(ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...__privateGet(this,L).values()];let r={};return t.forEach((t=>{no(e,t.mutationKey)&&(r={...r,...t.defaultOptions})})),r}defaultQueryOptions(e){if(e._defaulted)return e;const t={...__privateGet(this,T).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=to(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===ho&&(t.enabled=!1),t}defaultMutationOptions(e){return(null==e?void 0:e._defaulted)?e:{...__privateGet(this,T).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,T=new WeakMap,E=new WeakMap,L=new WeakMap,W=new WeakMap,F=new WeakMap,I=new WeakMap,D),Wo=(ue=class extends Ba{constructor(e,t){super(),__privateAdd(this,ee),__privateAdd(this,U),__privateAdd(this,$),__privateAdd(this,N),__privateAdd(this,H),__privateAdd(this,q),__privateAdd(this,z),__privateAdd(this,j),__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,j,mo()),this.options.experimental_prefetchInRender||__privateGet(this,j).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),Fo(__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 Io(__privateGet(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Io(__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 Za(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&&!ao(this.options,r)&&__privateGet(this,U).getQueryCache().notify({type:"observerOptionsUpdated",query:__privateGet(this,$),observer:this});const i=this.hasListeners();i&&Do(__privateGet(this,$),n,this.options,r)&&__privateMethod(this,ee,te).call(this),this.updateResult(t),!i||__privateGet(this,$)===n&&Za(this.options.enabled,__privateGet(this,$))===Za(r.enabled,__privateGet(this,$))&&Ya(this.options.staleTime,__privateGet(this,$))===Ya(r.staleTime,__privateGet(this,$))||__privateMethod(this,ee,re).call(this);const a=__privateMethod(this,ee,ne).call(this);!i||__privateGet(this,$)===n&&Za(this.options.enabled,__privateGet(this,$))===Za(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(!ao(e.getCurrentResult(),t))return!0;return!1}(this,r)&&(__privateSet(this,H,r),__privateSet(this,z,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,z),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&&Fo(e,t),o=r&&Do(e,n,t,i);(a||o)&&(d={...d,...Ao(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=co(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=co(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:Uo(e,t),refetch:this.refetch,promise:__privateGet(this,j)};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,j,b.promise=mo());t(e)},i=__privateGet(this,j);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,z,this.options),void 0!==__privateGet(this,q).data&&__privateSet(this,V,__privateGet(this,$)),ao(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,z=new WeakMap,j=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(Ka)),t},re=function(){__privateMethod(this,ee,oe).call(this);const e=Ya(this.options.staleTime,__privateGet(this,$));if(Qa||__privateGet(this,H).isStale||!Va(e))return;const t=Xa(__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!==Za(this.options.enabled,__privateGet(this,$))&&Va(__privateGet(this,Z))&&0!==__privateGet(this,Z)&&__privateSet(this,Y,setInterval((()=>{(this.options.refetchIntervalInBackground||_o.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){xo.batch((()=>{e.listeners&&this.listeners.forEach((e=>{e(__privateGet(this,H))})),__privateGet(this,U).getQueryCache().notify({query:__privateGet(this,$),type:"observerResultsUpdated"})}))},ue);function Fo(e,t){return function(e,t){return!1!==Za(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)}(e,t)||void 0!==e.state.data&&Io(e,t,t.refetchOnMount)}function Io(e,t,r){if(!1!==Za(t.enabled,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Uo(e,t)}return!1}function Do(e,t,r,n){return(e!==t||!1===Za(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Uo(e,r)}function Uo(e,t){return!1!==Za(t.enabled,e)&&e.isStaleByTime(Ya(t.staleTime,e))}var $o=Ze(void 0),No=({client:e,children:t})=>(xt((()=>(e.mount(),()=>{e.unmount()})),[e]),fa($o.Provider,{value:e,children:t})),Ho=Ze(!1);Ho.Provider;var qo=Ze(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}());function zo(){}var jo=(e,t,r)=>t.fetchOptimistic(e).catch((()=>{r.clearReset()}));function Bo(e,t,r){var n,i,a,o,s;const l=(()=>{const e=Pt($o);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e})(),c=Pt(Ho),u=Pt(qo),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(Yr(Ot((e=>{const t=c?zo:h.subscribe(xo.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 jo(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?jo(d,h,u):null==(s=l.getQueryCache().get(d.queryHash))?void 0:s.promise;null==e||e.catch(zo).finally((()=>{h.updateResult()}))}return d.notifyOnChangeProps?f:h.trackResult(f)}const Qo=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`}},Ko=()=>{const[e,t]=bt(""),[r,n]=bt(""),{searchProfilesForAccount:i}=Qt(),{data:a,refetch:o,error:s}=Bo({queryKey:["searchProfilesForAccount"],queryFn:()=>i(e),enabled:!1,retry:!1},Wo);xt((()=>{e&&o()}),[e,o]),xt((()=>{s?(async()=>{n(await Qo(s))})():n("")}),[s]);return va(za,{columns:ja,data:a||[],title:"Profile Search",subtitle:"Search for a profile using name or email",searchButton:{onClick:e=>{t(e)},text:"Search",error:r}})},Vo=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],Xo=e=>{switch(e){case"search":return va(Ko,{});case"linkedProfiles":return va("div",{children:"Coming soon..."})}},Yo=()=>{const[e,t]=bt("search");return ma(_a,{children:[va(wa,{tabs:Vo,currentTabId:e,onChange:t}),va("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:Xo(e)})]})},Zo=e=>{const[t,r]=bt(),[n,i]=bt({status:"NotLinked",message:"Access Denied"}),[a]=bt(Xt.create(e.accessToken)),[o,s]=bt("Loading");var l;l={backend:{url:e.backendUrl,accessToken:e.accessToken},account:{accountId:e.accountId}},Nt=Ze({...l,backend:{...l.backend,url:l.backend.url.replace(/\/?$/,"")}});const{checkProfileSearchAuthorization:c,ingestClient:u}=Qt();xt((()=>{(async()=>{if(a.isAuthorized&&e.backendUrl&&e.accessToken&&e.accountId)try{const e=await c();i(e),s("Linked"===e.status?"Main":"Unlinked")}catch(t){r(await Qo(t)),s("Error")}})()}),[e.accessToken,e.accountId,e.backendUrl,a]),xt((()=>{a&&!a.isAuthorized&&(r("Access Denied"),s("Error"))}),[a]);const d=async()=>{try{return await u(),!0}catch(e){return r(await Qo(e)),s("Error"),!1}},p=async()=>{try{const e=await c();return"Linked"===e.status?(i(e),s("Main"),!0):(n.status!==e.status||n.message!==e.message)&&(i(e),!0)}catch{return!1}},h=()=>{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 va("h1",{css:{"--tw-text-opacity":"1",color:"rgb(107 114 128 / var(--tw-text-opacity))"},children:"Loading..."});case"Main":return va(Yo,{});case"Error":return va("h1",{css:{"--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:t});case"Unlinked":return ma("div",{children:[va("h1",{css:{marginBottom:"1rem",marginLeft:"1rem","--tw-text-opacity":"1",color:"rgb(239 68 68 / var(--tw-text-opacity))"},children:n.message}),va(ga,{onClick:d,onCheck:p,onTimeout:h,checkInterval:5e3,timeout:3e4,text:"Sync Clients",processingText:"Syncing..."})]})}},Jo=ia({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"}}),es=()=>ma(Me,{children:[va(na,{styles:ia`
11
+ `;function Wa({title:e,titleId:t,...r},n){return Oe("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?Oe("title",{id:t},e):null,Oe("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(Wa),Ia=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(Ia,{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(Ea,{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(Ea,{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(Ta,{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:Oa(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 za(){}function ja(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(),ja(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(za).catch(za):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=(P=class extends Ha{constructor(e={}){super(),__privateAdd(this,G),__privateAdd(this,O),this.config=e,__privateSet(this,G,new Map),__privateSet(this,O,Date.now())}build(e,t,r){const n=new So({mutationCache:this,mutationId:++__privateWrapper(this,O)._,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(za))))))}},G=new WeakMap,O=new WeakMap,P);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?Po:Oo)(l,t);p=await i(t,r,e)}else{const t=e??u.length;do{const e=0===h?d[0]??l.initialPageParam:Oo(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 Oo(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 Po(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,T),__privateAdd(this,E),__privateAdd(this,L),__privateAdd(this,W),__privateAdd(this,F),__privateAdd(this,I),__privateSet(this,R,e.queryCache||new xo),__privateSet(this,M,e.mutationCache||new Co),__privateSet(this,T,e.defaultOptions||{}),__privateSet(this,E,new Map),__privateSet(this,L,new Map),__privateSet(this,W,0)}mount(){__privateWrapper(this,W)._++,1===__privateGet(this,W)&&(__privateSet(this,F,uo.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onFocus())}))),__privateSet(this,I,po.subscribe((async e=>{e&&(await this.resumePausedMutations(),__privateGet(this,R).onOnline())}))))}unmount(){var e,t;__privateWrapper(this,W)._--,0===__privateGet(this,W)&&(null==(e=__privateGet(this,F))||e.call(this),__privateSet(this,F,void 0),null==(t=__privateGet(this,I))||t.call(this),__privateSet(this,I,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(za).catch(za)}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(za)),"paused"===e.state.fetchStatus?Promise.resolve():t}))));return Promise.all(n).then(za)}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(za).catch(za)}fetchInfiniteQuery(e){return e.behavior=Go(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(za).catch(za)}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,T)}setDefaultOptions(e){__privateSet(this,T,e)}setQueryDefaults(e,t){__privateGet(this,E).set(Za(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...__privateGet(this,E).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,T).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,T).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,T=new WeakMap,E=new WeakMap,L=new WeakMap,W=new WeakMap,F=new WeakMap,I=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,z),__privateAdd(this,j),__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,j,ho()),this.options.experimental_prefetchInRender||__privateGet(this,j).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),To(__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 Eo(__privateGet(this,$),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Eo(__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,z,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,z),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&&To(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:Wo(e,t),refetch:this.refetch,promise:__privateGet(this,j)};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,j,b.promise=ho());t(e)},i=__privateGet(this,j);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,z,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,z=new WeakMap,j=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(za)),t},re=function(){__privateMethod(this,ee,oe).call(this);const e=Qa(this.options.staleTime,__privateGet(this,$));if(qa||__privateGet(this,H).isStale||!ja(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,$))&&ja(__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 To(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&&Eo(e,t,t.refetchOnMount)}function Eo(e,t,r){if(!1!==Ka(t.enabled,e)){const n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&Wo(e,t)}return!1}function Lo(e,t,r,n){return(e!==t||!1===Ka(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&Wo(e,r)}function Wo(e,t){return!1!==Ka(t.enabled,e)&&e.isStaleByTime(Qa(t.staleTime,e))}var Fo=Ze(void 0),Io=({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=Pt(Fo);if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e})(),c=Pt(Do),u=Pt(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(Ot((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)}const qo=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}=Ho({queryKey:["searchProfilesForAccount"],queryFn:()=>i(e),enabled:!1,retry:!1},Mo);xt((()=>{e&&o()}),[e,o]),xt((()=>{s?(async()=>{n(await qo(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}})},jo=[{id:"search",displayName:"Search"},{id:"linkedProfiles",displayName:"Linked Profiles"}],Bo=e=>{switch(e){case"search":return pa(zo,{});case"linkedProfiles":return pa("div",{children:"Coming soon..."})}},Qo=()=>{const[e,t]=bt("search");return ha(da,{children:[pa(va,{tabs:jo,currentTabId:e,onChange:t}),pa("div",{css:{marginLeft:"1rem",marginTop:"1rem"},children:Bo(e)})]})},Ko=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 qo(t)),s("Error")}})()}),[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 qo(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(Qo,{});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..."})]})}},Vo=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"}}),Xo=()=>ha(Me,{children:[pa(Ji,{styles:ea`
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
- `}),va(na,{styles:Jo})]});let ts;const rs=()=>{if(ts)return ts;return ts=new Lo({defaultOptions:{queries:{retry:(e,t)=>{var r;return t instanceof Ut&&![401,403].includes((null==(r=t.response)?void 0:r.status)||0)}}}}),ts};!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(ai({container:t.current,key:e}))}))}),[e,t]),{EmotionProvider:({children:e})=>r?va(Vi,{value:r,children:e}):va(_a,{})}})("superhero-salpac-profile-admin",t);return ma(_a,{children:[va("head",{ref:t}),ma(r,{children:[va(es,{}),va(No,{client:rs(),children:va("body",{children:va(Zo,{backendUrl:e.backendUrl||"",accessToken:e.accessToken||"",accountId:e.accountId||""})})})]})]})}),"superhero-salpac-profile-admin",["backend-url","access-token","account-id"],{shadow:!0})}();
13
+ `}),pa(Ji,{styles:Vo})]});let Yo;const Zo=()=>{if(Yo)return Yo;return Yo=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)}}}}),Yo};!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(ji,{value:r,children:e}):pa(da,{})}})("superhero-salpac-profile-admin",t);return ha(da,{children:[pa("head",{ref:t}),ha(r,{children:[pa(Xo,{}),pa(Io,{client:Zo(),children:pa("body",{children:pa(Ko,{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.628",
3
+ "version": "1.0.630",
4
4
  "description": "Flare Superhero Profile Admin",
5
5
  "license": "MIT",
6
6
  "files": [