@flarehr/apollo-import-workspace-app 0.1.419 → 0.1.422

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,17 +1,17 @@
1
- var br,Y,Qs,mn,_a,el,Ji,xo,Qi,eo,tl,_r={},nl=[],Nc=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,mi=Array.isArray;function jt(e,t){for(var n in t)e[n]=t[n];return e}function rl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,n){var r,i,o,a={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?br.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return mr(e,a,r,i,null)}function mr(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Qs,__i:-1,__u:0};return i==null&&Y.vnode!=null&&Y.vnode(o),o}function So(){return{current:null}}function xe(e){return e.children}function Et(e,t){this.props=e,this.context=t}function zn(e,t){if(t==null)return e.__?zn(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?zn(e):null}function il(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return il(e)}}function to(e){(!e.__d&&(e.__d=!0)&&mn.push(e)&&!zr.__r++||_a!==Y.debounceRendering)&&((_a=Y.debounceRendering)||el)(zr)}function zr(){var e,t,n,r,i,o,a,s;for(mn.sort(Ji);e=mn.shift();)e.__d&&(t=mn.length,r=void 0,o=(i=(n=e).__v).__e,a=[],s=[],n.__P&&((r=jt({},i)).__v=i.__v+1,Y.vnode&&Y.vnode(r),Eo(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,a,o??zn(i),!!(32&i.__u),s),r.__v=i.__v,r.__.__k[r.__i]=r,sl(a,r,s),r.__e!=o&&il(r)),mn.length>t&&mn.sort(Ji));zr.__r=0}function ol(e,t,n,r,i,o,a,s,l,u,d){var c,m,h,p,y,_=r&&r.__k||nl,E=t.length;for(n.__d=l,$c(n,t,_),l=n.__d,c=0;c<E;c++)(h=n.__k[c])!=null&&(m=h.__i===-1?_r:_[h.__i]||_r,h.__i=c,Eo(e,h,m,i,o,a,s,l,u,d),p=h.__e,h.ref&&m.ref!=h.ref&&(m.ref&&ko(m.ref,null,h),d.push(h.ref,h.__c||p,h)),y==null&&p!=null&&(y=p),65536&h.__u||m.__k===h.__k?l=al(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:p&&(l=p.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=y}function $c(e,t,n){var r,i,o,a,s,l=t.length,u=n.length,d=u,c=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(a=r+c,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?mr(null,i,null,null,null):mi(i)?mr(xe,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?mr(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(s=i.__i=Dc(i,n,a,d))!==-1&&(d--,(o=n[s])&&(o.__u|=131072)),o==null||o.__v===null?(s==-1&&c--,typeof i.type!="function"&&(i.__u|=65536)):s!==a&&(s==a-1?c--:s==a+1?c++:(s>a?c--:c++,i.__u|=65536))):i=e.__k[r]=null;if(d)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=zn(o)),ll(o,o))}function al(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=al(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=zn(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Gt(e,t){return t=t||[],e==null||typeof e=="boolean"||(mi(e)?e.some(function(n){Gt(n,t)}):t.push(e)),t}function Dc(e,t,n,r){var i=e.key,o=e.type,a=n-1,s=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===xe||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a--}if(s<t.length){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s++}}return-1}function ya(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Nc.test(t)?n:n+"px"}function Ir(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ya(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ya(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=xo,e.addEventListener(t,o?eo:Qi,o)):e.removeEventListener(t,o?eo:Qi,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function va(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=xo++;else if(t.t<n.u)return;return Y.event&&(t=Y.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function Eo(e,t,n,r,i,o,a,s,l,u){var d,c,m,h,p,y,_,E,k,N,P,z,G,R,w,g,C=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[s=t.__e=n.__e]),(d=Y.__b)&&d(t);e:if(typeof C=="function")try{if(E=t.props,k="prototype"in C&&C.prototype.render,N=(d=C.contextType)&&r[d.__c],P=d?N?N.props.value:d.__:r,n.__c?_=(c=t.__c=n.__c).__=c.__E:(k?t.__c=c=new C(E,P):(t.__c=c=new Et(E,P),c.constructor=C,c.render=Oc),N&&N.sub(c),c.props=E,c.state||(c.state={}),c.context=P,c.__n=r,m=c.__d=!0,c.__h=[],c._sb=[]),k&&c.__s==null&&(c.__s=c.state),k&&C.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=jt({},c.__s)),jt(c.__s,C.getDerivedStateFromProps(E,c.__s))),h=c.props,p=c.state,c.__v=t,m)k&&C.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),k&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(k&&C.getDerivedStateFromProps==null&&E!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(E,P),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(E,c.__s,P)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=E,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),z=0;z<c._sb.length;z++)c.__h.push(c._sb[z]);c._sb=[],c.__h.length&&a.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(E,c.__s,P),k&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,p,y)})}if(c.context=P,c.props=E,c.__P=e,c.__e=!1,G=Y.__r,R=0,k){for(c.state=c.__s,c.__d=!1,G&&G(t),d=c.render(c.props,c.state,c.context),w=0;w<c._sb.length;w++)c.__h.push(c._sb[w]);c._sb=[]}else do c.__d=!1,G&&G(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++R<25);c.state=c.__s,c.getChildContext!=null&&(r=jt(jt({},r),c.getChildContext())),k&&!m&&c.getSnapshotBeforeUpdate!=null&&(y=c.getSnapshotBeforeUpdate(h,p)),ol(e,mi(g=d!=null&&d.type===xe&&d.key==null?d.props.children:d)?g:[g],t,n,r,i,o,a,s,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&a.push(c),_&&(c.__E=c.__=null)}catch(T){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else t.__e=n.__e,t.__k=n.__k;Y.__e(T,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Ic(n.__e,t,n,r,i,o,a,l,u);(d=Y.diffed)&&d(t)}function sl(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ko(n[r],n[++r],n[++r]);Y.__c&&Y.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Y.__e(o,i.__v)}})}function Ic(e,t,n,r,i,o,a,s,l){var u,d,c,m,h,p,y,_=n.props,E=t.props,k=t.type;if(k==="svg"?i="http://www.w3.org/2000/svg":k==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!k&&(k?h.localName===k:h.nodeType===3)){e=h,o[u]=null;break}}if(e==null){if(k===null)return document.createTextNode(E);e=document.createElementNS(i,k,E.is&&E),s&&(Y.__m&&Y.__m(t,o),s=!1),o=null}if(k===null)_===E||s&&e.data===E||(e.data=E);else{if(o=o&&br.call(e.childNodes),_=n.props||_r,!s&&o!=null)for(_={},u=0;u<e.attributes.length;u++)_[(h=e.attributes[u]).name]=h.value;for(u in _)if(h=_[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in E)){if(u=="value"&&"defaultValue"in E||u=="checked"&&"defaultChecked"in E)continue;Ir(e,u,null,h,i)}}for(u in E)h=E[u],u=="children"?m=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?p=h:u=="checked"?y=h:s&&typeof h!="function"||_[u]===h||Ir(e,u,h,_[u],i);if(d)s||c&&(d.__html===c.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),ol(e,mi(m)?m:[m],t,n,r,k==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:n.__k&&zn(n,0),s,l),o!=null)for(u=o.length;u--;)rl(o[u]);s||(u="value",k==="progress"&&p==null?e.removeAttribute("value"):p!==void 0&&(p!==e[u]||k==="progress"&&!p||k==="option"&&p!==_[u])&&Ir(e,u,p,_[u],i),u="checked",y!==void 0&&y!==e[u]&&Ir(e,u,y,_[u],i))}return e}function ko(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){Y.__e(i,n)}}function ll(e,t,n){var r,i;if(Y.unmount&&Y.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ko(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Y.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&ll(r[i],t,n||typeof e.type!="function");n||rl(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Oc(e,t,n){return this.constructor(e,n)}function on(e,t,n){var r,i,o,a;Y.__&&Y.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],a=[],Eo(t,e=(!r&&n||t).__k=f(xe,null,[e]),i||_r,_r,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?br.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,a),sl(o,e,a)}function To(e,t){on(e,t,To)}function Ao(e,t,n){var r,i,o,a,s=jt({},e.props);for(o in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o]===void 0&&a!==void 0?a[o]:t[o];return arguments.length>2&&(s.children=arguments.length>3?br.call(arguments,2):n),mr(e.type,s,r||e.key,i||e.ref,null)}function ct(e,t){var n={__c:t="__cC"+tl++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(a){this.props.value!==a.value&&i.forEach(function(s){s.__e=!0,to(s)})},this.sub=function(a){i.add(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){i&&i.delete(a),s&&s.call(a)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}br=nl.slice,Y={__e:function(e,t,n,r){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Qs=0,Et.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=jt({},this.state),typeof e=="function"&&(e=e(jt({},n),this.props)),e&&jt(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),to(this))},Et.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),to(this))},Et.prototype.render=xe,mn=[],el=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ji=function(e,t){return e.__v.__b-t.__v.__b},zr.__r=0,xo=0,Qi=va(!1),eo=va(!0),tl=0;function Mo(){return(Mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Pc=["context","children"];function Fc(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,a,s={},l=Object.keys(r);for(a=0;a<l.length;a++)i.indexOf(o=l[a])>=0||(s[o]=r[o]);return s}(e,Pc);return Ao(t,n)}function Rc(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=f(Fc,Mo({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},a=0,s=n.attributes,l=n.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(o[s[a].name]=s[a].value,o[ul(s[a].name)]=s[a].value);for(a=l.length;a--;){var u=t(l[a],null),d=l[a].slot;d?o[d]=f(ba,{name:d},u):i[a]=u}var c=r?f(ba,null,i):i;return f(r||n.nodeName.toLowerCase(),o,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?To:on)(this._vdom,this._root)}function ul(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Lc(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[ul(e)]=n,this._vdom=Ao(this._vdom,r),on(this._vdom,this._root)}}function Hc(){on(this._vdom=null,this._root)}function ba(e,t){var n=this;return f("slot",Mo({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Uc(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=Rc,i.prototype.attributeChangedCallback=Lc,i.prototype.disconnectedCallback=Hc,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(a){this._vdom?this.attributeChangedCallback(o,null,a):(this._props||(this._props={}),this._props[o]=a,this.connectedCallback());var s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(o,a)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i)}function No(e,t){Uc(e,t)}var zt,ge,Li,Ca,Yn=0,cl=[],Ee=Y,xa=Ee.__b,Sa=Ee.__r,Ea=Ee.diffed,ka=Ee.__c,Ta=Ee.unmount,Aa=Ee.__;function An(e,t){Ee.__h&&Ee.__h(ge,e,Yn||t),Yn=0;var n=ge.__H||(ge.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Oe(e){return Yn=1,Cr(dl,e)}function Cr(e,t,n){var r=An(zt++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):dl(void 0,t),function(s){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,s);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=ge,!ge.u)){var i=function(s,l,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(m){return!!m.__c});if(d.every(function(m){return!m.__N}))return!o||o.call(this,s,l,u);var c=r.__c.props!==s;return d.forEach(function(m){if(m.__N){var h=m.__[0];m.__=m.__N,m.__N=void 0,h!==m.__[0]&&(c=!0)}}),o&&o.call(this,s,l,u)||c};ge.u=!0;var o=ge.shouldComponentUpdate,a=ge.componentWillUpdate;ge.componentWillUpdate=function(s,l,u){if(this.__e){var d=o;o=void 0,i(s,l,u),o=d}a&&a.call(this,s,l,u)},ge.shouldComponentUpdate=i}return r.__N||r.__}function Pe(e,t){var n=An(zt++,3);!Ee.__s&&Io(n.__H,t)&&(n.__=e,n.i=t,ge.__H.__h.push(n))}function Mn(e,t){var n=An(zt++,4);!Ee.__s&&Io(n.__H,t)&&(n.__=e,n.i=t,ge.__h.push(n))}function de(e){return Yn=5,Ue(function(){return{current:e}},[])}function $o(e,t,n){Yn=6,Mn(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Ue(e,t){var n=An(zt++,7);return Io(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function xt(e,t){return Yn=8,Ue(function(){return e},t)}function Je(e){var t=ge.context[e.__c],n=An(zt++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(ge)),t.props.value):e.__}function Do(e,t){Ee.useDebugValue&&Ee.useDebugValue(t?t(e):e)}function jc(e){var t=An(zt++,10),n=Oe();return t.__=e,ge.componentDidCatch||(ge.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function ln(){var e=An(zt++,11);if(!e.__){for(var t=ge.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Vc(){for(var e;e=cl.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(jr),e.__H.__h.forEach(no),e.__H.__h=[]}catch(t){e.__H.__h=[],Ee.__e(t,e.__v)}}Ee.__b=function(e){ge=null,xa&&xa(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Aa&&Aa(e,t)},Ee.__r=function(e){Sa&&Sa(e),zt=0;var t=(ge=e.__c).__H;t&&(Li===ge?(t.__h=[],ge.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(jr),t.__h.forEach(no),t.__h=[],zt=0)),Li=ge},Ee.diffed=function(e){Ea&&Ea(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(cl.push(t)!==1&&Ca===Ee.requestAnimationFrame||((Ca=Ee.requestAnimationFrame)||Wc)(Vc)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),Li=ge=null},Ee.__c=function(e,t){t.some(function(n){try{n.__h.forEach(jr),n.__h=n.__h.filter(function(r){return!r.__||no(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ee.__e(r,n.__v)}}),ka&&ka(e,t)},Ee.unmount=function(e){Ta&&Ta(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{jr(r)}catch(i){t=i}}),n.__H=void 0,t&&Ee.__e(t,n.__v))};var Ma=typeof requestAnimationFrame=="function";function Wc(e){var t,n=function(){clearTimeout(r),Ma&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Ma&&(t=requestAnimationFrame(n))}function jr(e){var t=ge,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),ge=t}function no(e){var t=ge;e.__c=e.__(),ge=t}function Io(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function dl(e,t){return typeof t=="function"?t(e):t}function ro(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function pi(e,t){var n=t(),r=Oe({t:{__:n,u:t}}),i=r[0].t,o=r[1];return Mn(function(){i.__=n,i.u=t,Hi(i)&&o({t:i})},[e,n,t]),Pe(function(){return Hi(i)&&o({t:i}),e(function(){Hi(i)&&o({t:i})})},[e]),n}function Hi(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function Oo(e){e()}function Po(e){return e}function Fo(){return[!1,Oo]}var Ro=Mn;function Yr(e,t){this.props=e,this.context=t}function fl(e,t){function n(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:ro(this.props,i)}function r(i){return this.shouldComponentUpdate=n,f(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Yr.prototype=new Et).isPureReactComponent=!0,Yr.prototype.shouldComponentUpdate=function(e,t){return ro(this.props,e)||ro(this.state,t)};var Na=Y.__b;Y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Na&&Na(e)};var Bc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Lo(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=Bc,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var $a=function(e,t){return e==null?null:Gt(Gt(e).map(t))},hl={map:$a,forEach:$a,count:function(e){return e?Gt(e).length:0},only:function(e){var t=Gt(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Gt},Gc=Y.__e;Y.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}Gc(e,t,n,r)};var Da=Y.unmount;function ml(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return ml(r,t,n)})),e}function pl(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return pl(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function pr(){this.__u=0,this.o=null,this.__b=null}function gl(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function wl(e){var t,n,r;function i(o){if(t||(t=e()).then(function(a){n=a.default||a},function(a){r=a}),r)throw r;if(!n)throw t;return f(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Hn(){this.i=null,this.l=null}Y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Da&&Da(e)},(pr.prototype=new Et).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=gl(r.__v),o=!1,a=function(){o||(o=!0,n.__R=null,i?i(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=pl(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},pr.prototype.componentWillUnmount=function(){this.o=[]},pr.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=ml(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&f(xe,null,e.fallback);return i&&(i.__u&=-33),[f(xe,null,t.__a?null:e.children),i]};var Ia=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function qc(e){return this.getChildContext=function(){return e.context},e.children}function zc(e){var t=this,n=e.h;t.componentWillUnmount=function(){on(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),on(f(qc,{context:t.context},e.__v),t.v)}function Ho(e,t){var n=f(zc,{__v:e,h:t});return n.containerInfo=t,n}(Hn.prototype=new Et).__a=function(e){var t=this,n=gl(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Ia(t,e,r)):i()};n?n(o):o()}},Hn.prototype.render=function(e){this.i=null,this.l=new Map;var t=Gt(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},Hn.prototype.componentDidUpdate=Hn.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Ia(e,n,t)})};var _l=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,Yc=/^(?: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]/,Zc=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Kc=/[A-Z0-9]/g,Xc=typeof document<"u",Jc=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function yl(e,t,n){return t.__k==null&&(t.textContent=""),on(e,t),typeof n=="function"&&n(),e?e.__c:null}function vl(e,t,n){return To(e,t),typeof n=="function"&&n(),e?e.__c:null}Et.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Et.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Oa=Y.event;function Qc(){}function ed(){return this.cancelBubble}function td(){return this.defaultPrevented}Y.event=function(e){return Oa&&(e=Oa(e)),e.persist=Qc,e.isPropagationStopped=ed,e.isDefaultPrevented=td,e.nativeEvent=e};var Uo,nd={enumerable:!1,configurable:!0,get:function(){return this.class}},Pa=Y.vnode;Y.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var a in n){var s=n[a];if(!(a==="value"&&"defaultValue"in n&&s==null||Xc&&a==="children"&&r==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in n&&n.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||Jc(n.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Zc.test(a)&&(a=l):l=a="oninput":o&&Yc.test(a)?a=a.replace(Kc,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Gt(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Gt(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",nd)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=_l,Pa&&Pa(e)};var Fa=Y.__r;Y.__r=function(e){Fa&&Fa(e),Uo=e.__c};var Ra=Y.diffed;Y.diffed=function(e){Ra&&Ra(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),Uo=null};var bl={ReactCurrentDispatcher:{current:{readContext:function(e){return Uo.__n[e.__c].props.value},useCallback:xt,useContext:Je,useDebugValue:Do,useDeferredValue:Po,useEffect:Pe,useId:ln,useImperativeHandle:$o,useInsertionEffect:Ro,useLayoutEffect:Mn,useMemo:Ue,useReducer:Cr,useRef:de,useState:Oe,useSyncExternalStore:pi,useTransition:Fo}}},rd="18.3.1";function Cl(e){return f.bind(null,e)}function Jn(e){return!!e&&e.$$typeof===_l}function xl(e){return Jn(e)&&e.type===xe}function Sl(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function jo(e){return Jn(e)?Ao.apply(null,arguments):e}function El(e){return!!e.__k&&(on(null,e),!0)}function kl(e){return e&&(e.base||e.nodeType===1&&e)||null}var Tl=function(e,t){return e(t)},Al=function(e,t){return e(t)},Ml=xe,Nl=Jn,V={useState:Oe,useId:ln,useReducer:Cr,useEffect:Pe,useLayoutEffect:Mn,useInsertionEffect:Ro,useTransition:Fo,useDeferredValue:Po,useSyncExternalStore:pi,startTransition:Oo,useRef:de,useImperativeHandle:$o,useMemo:Ue,useCallback:xt,useContext:Je,useDebugValue:Do,version:"18.3.1",Children:hl,render:yl,hydrate:vl,unmountComponentAtNode:El,createPortal:Ho,createElement:f,createContext:ct,createFactory:Cl,cloneElement:jo,createRef:So,Fragment:xe,isValidElement:Jn,isElement:Nl,isFragment:xl,isMemo:Sl,findDOMNode:kl,Component:Et,PureComponent:Yr,memo:fl,forwardRef:Lo,flushSync:Al,unstable_batchedUpdates:Tl,StrictMode:Ml,Suspense:pr,SuspenseList:Hn,lazy:wl,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:bl};const io=Object.freeze(Object.defineProperty({__proto__:null,Children:hl,Component:Et,Fragment:xe,PureComponent:Yr,StrictMode:Ml,Suspense:pr,SuspenseList:Hn,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:bl,cloneElement:jo,createContext:ct,createElement:f,createFactory:Cl,createPortal:Ho,createRef:So,default:V,findDOMNode:kl,flushSync:Al,forwardRef:Lo,hydrate:vl,isElement:Nl,isFragment:xl,isMemo:Sl,isValidElement:Jn,lazy:wl,memo:fl,render:yl,startTransition:Oo,unmountComponentAtNode:El,unstable_batchedUpdates:Tl,useCallback:xt,useContext:Je,useDebugValue:Do,useDeferredValue:Po,useEffect:Pe,useErrorBoundary:jc,useId:ln,useImperativeHandle:$o,useInsertionEffect:Ro,useLayoutEffect:Mn,useMemo:Ue,useReducer:Cr,useRef:de,useState:Oe,useSyncExternalStore:pi,useTransition:Fo,version:rd},Symbol.toStringTag,{value:"Module"})),id=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[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{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height: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;outline-offset: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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align: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{padding-top:0;padding-bottom:0}select{background-image: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");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset: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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image: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{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image: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")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image: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");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:BRSonoma;font-weight:900;src:url(/assets/BRSonoma-Black-Dd-41VER.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:700;src:url(/assets/BRSonoma-Bold-ntHe2u-j.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:500;src:url(/assets/BRSonoma-Medium-j1GGAHzV.otf) format("opentype")}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-4{grid-column:span 4 / span 4}.mx-12{margin-left:3rem;margin-right:3rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[60px\\]{height:60px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-96{width:24rem}.w-\\[120px\\]{width:120px}.w-\\[480px\\]{width:480px}.w-full{width:100%}.max-w-\\[640px\\]{max-width:640px}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.resize{resize:both}.list-disc{list-style-type:disc}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary-600{border-color:var(--fl-color-primary-600)}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-primary-600{background-color:var(--fl-color-primary-600)}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[0\\.5625rem\\]{padding-top:.5625rem;padding-bottom:.5625rem}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[3px\\]{padding-bottom:3px}.pl-3{padding-left:.75rem}.pr-3{padding-right:.75rem}.pt-0\\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-center{text-align:center}.font-sonoma{font-family:BRSonoma}.text-2xl{font-size:1.5rem;line-height:2rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-7{line-height:1.75rem}.leading-tight{line-height:1.25}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-primary-600{color:var(--fl-color-primary-600)}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline{outline-style:solid}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:text-gray-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-500::placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.focus\\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:ring-2: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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-primary-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}`;function $t(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function od(e){return e!=null&&typeof e.GetEnumerator=="function"}function ad(e){return e!=null&&typeof e.CompareTo=="function"}function sd(e){return e!=null&&typeof e.Equals=="function"}function ld(e){return e!=null&&typeof e.GetHashCode=="function"}function oo(e){return e!=null&&typeof e.Dispose=="function"}function Te(e){oo(e)&&e.Dispose()}function Dt(){return null}function Zr(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class ud{constructor(t){this.iter=t,this.current=Dt()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Le(e){return od(e)?e.GetEnumerator():new ud(e[Symbol.iterator]())}function gi(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function ye(e,t){return e.toString(10).padStart(t,"0")}function La(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function cd(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Nt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class nn{static id(t){return nn.idMap.has(t)||nn.idMap.set(t,++nn.count),nn.idMap.get(t)}}nn.idMap=new WeakMap;nn.count=0;function Vo(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Lt(e){return e*2654435761|0}function dd(e){return Vo(e.toString(32))}function xr(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function fd(e){return e.getTime()}function hd(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Yt(e[r]);return xr(n)}function Yt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Lt(e);case"bigint":return dd(e);case"string":return Vo(e);default:{if(ld(e))return e.GetHashCode();if($t(e))return hd(e);if(e instanceof Date)return fd(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Yt(r));return xr(n)}else return Lt(nn.id(e))}}}function ao(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function $l(e,t){return ao(e,t,Ge)}function md(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!Ge(e[n[i]],t[r[i]]))return!1;return!0}function Ge(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:sd(e)?e.Equals(t):$t(e)?$t(t)&&$l(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Dl(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&md(e,t)}function Dl(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+La(e),r=t.getTime()+La(t)),n===r?0:n<r?-1:1}function Wo(e,t){return e===t?0:e<t?-1:1}function pd(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function Il(e,t){return pd(e,t,nt)}function gd(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const a=n[i];if(a!==r[i])return a<r[i]?-1:1;if(o=nt(e[a],t[a]),o!==0)return o}return 0}function nt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:ad(e)?e.CompareTo(t):$t(e)?$t(t)?Il(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Dl(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?gd(e,t):-1}function x(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function wd(e){$t(e)?e.splice(0):e.clear()}const wi=new WeakMap;function $e(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return wi.set(t,e),t}function pn(e){return wi.get(e)??(t=>n=>e(t,n))}function so(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return wi.set(t,e),t}function Ui(e){return wi.get(e)??(t=>n=>r=>e(t,n,r))}function _d(e){let t=0,n="[";for(const r of e){if(t===0)n+=kt(r);else if(t===100){n+="; ...";break}else n+="; "+kt(r);t++}return n+"]"}function kt(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return _d(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+kt(o,t+1)).join(`
2
- `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function yd(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=kt(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>kt(i)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class H{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return yd(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Yt(n));return t.splice(0,0,Lt(this.tag)),xr(t)}Equals(t){return this===t?!0:Zr(this,t)&&this.tag===t.tag?$l(this.fields,t.fields):!1}CompareTo(t){return this===t?0:Zr(this,t)?this.tag===t.tag?Il(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function vd(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function bd(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+kt(n)).join(`
3
- `)+" }"}function Cd(e){const t=Object.values(e).map(n=>Yt(n));return xr(t)}function xd(e,t){if(e===t)return!0;if(Zr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Ge(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Sd(e,t){if(e===t)return 0;if(Zr(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=nt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class ve{toJSON(){return vd(this)}toString(){return bd(this)}GetHashCode(){return Cd(this)}Equals(t){return xd(this,t)}CompareTo(t){return Sd(this,t)}}class Tt{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Ed{constructor(t){this.message=t}}function kd(e){return e instanceof Ed||e instanceof Error}function Td(e){return e instanceof Promise}function Kr(e){return kd(e)||Td(e)?e:new Error(String(e))}const Bo=kt(id),Qn=Symbol("numeric");function Ol(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Qn])}function Ad(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function lo(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Qn]().multiply(t)}function Vr(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Qn]().toFixed(t)}function Xr(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Qn]().toPrecision(t)}function Jr(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Qn]().toExponential(t)}function Qr(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Qn]().toHex()}const Md=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Nd=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],$d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Dd=["January","February","March","April","May","June","July","August","September","October","November","December"];function ot(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Ha(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Id(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const a=e[t];if(a===r){o=!0;break}else if(a==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=a}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Go(e,t,n){let r=0,i=0,o="";const a=n?Sr(e.getTime(),1):e;for(;r<t.length;){const s=t[r];switch(s){case"d":switch(i=ot(t,r,"d"),r+=i,i){case 1:o+=ja(a);break;case 2:o+=ye(ja(a),2);break;case 3:o+=Md[Ba(a)];break;case 4:o+=Nd[Ba(a)];break}break;case"f":if(i=ot(t,r,"f"),r+=i,i<=3){const _=10**(3-i);o+=ye(Math.floor(Pr(a)/_),i)}else i<=7&&(o+=(""+Pr(a)).padEnd(i,"0"));break;case"F":if(i=ot(t,r,"F"),r+=i,i<=3){const _=10**(3-i),E=Math.floor(Pr(a)/_);E!=0&&(o+=ye(E,i))}else if(i<=7){const _=Pr(a);_!=0&&(o+=ye(_,3))}break;case"g":i=ot(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=ot(t,r,"h"),r+=i,i){case 1:o+=Or(a)%12;break;case 2:o+=ye(Or(a)%12,2);break}break;case"H":switch(i=ot(t,r,"H"),r+=i,i){case 1:o+=Or(a);break;case 2:o+=ye(Or(a),2);break}break;case"K":switch(i=ot(t,r,"K"),r+=i,i){case 1:switch(Ua(a)){case 1:o+="Z";break;case 2:o+=jn(a.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=ot(t,r,"m"),r+=i,i){case 1:o+=Va(a);break;case 2:o+=ye(Va(a),2);break}break;case"M":switch(i=ot(t,r,"M"),r+=i,i){case 1:o+=Fr(a);break;case 2:o+=ye(Fr(a),2);break;case 3:o+=$d[Fr(a)-1];break;case 4:o+=Dd[Fr(a)-1];break}break;case"s":switch(i=ot(t,r,"s"),r+=i,i){case 1:o+=Wa(a);break;case 2:o+=ye(Wa(a),2);break}break;case"t":switch(i=ot(t,r,"t"),r+=i,i){case 1:o+=a.getHours()<12?"A":"P";break;case 2:o+=a.getHours()<12?"AM":"PM";break}break;case"y":switch(i=ot(t,r,"y"),r+=i,i){case 1:o+=a.getFullYear()%100;break;case 2:o+=ye(a.getFullYear()%100,2);break;case 3:o+=ye(a.getFullYear(),3);break;case 4:o+=ye(a.getFullYear(),4);break;case 5:o+=ye(a.getFullYear(),5);break}break;case"z":i=ot(t,r,"z"),r+=i;let l="";switch(Ua(a)){case 1:l="+00:00";break;case 2:l=jn(a.getTimezoneOffset()*-6e4);break;case 0:l=jn(Vd(a).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${d}`;break;case 2:o+=`${u}${ye(d,2)}`;break;default:o+=`${u}${ye(d,2)}:${ye(c,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[m,h]=Id(t,r);o+=m,r+=h;break;case"%":const p=Ha(t,r);if(p>=0&&p!==37)r+=2,o+=Go(a,String.fromCharCode(p),n);else throw new Error("Invalid format string");break;case"\\":const y=Ha(t,r);if(y>=0)r+=2,o+=String.fromCharCode(y);else throw new Error("Invalid format string");break;default:r++,o+=s;break}}return o}function Ua(e){return e.kind||0}function jn(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+ye(n,2)+":"+ye(r,2)}function ei(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Od(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return ye(e.getFullYear(),4)+"-"+ye(e.getMonth()+1,2)+"-"+ye(e.getDate(),2)+"T"+ye(e.getHours(),2)+":"+ye(e.getMinutes(),2)+":"+ye(e.getSeconds(),2)+"."+ye(e.getMilliseconds(),3)+(n?jn(e.getTimezoneOffset()*-6e4):"")}}function Pd(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+jn(t)}function Fd(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+jn(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ei(n,"first");case"T":case"t":return ei(n,"second");case"O":case"o":return Pd(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Go(n,t,!0)}function Rd(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?ei(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ei(e,"second"):e.toLocaleTimeString();case"O":case"o":return Od(e,n);default:throw new Error("Unrecognized Date print format")}else return Go(e,t,n)}function Pl(e,t,n){return e.offset!=null?Fd(e,t):Rd(e,t)}function Sr(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Ld(){return Sr(-621355968e5,1)}function Fl(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,a=0;if(i[2]!=null){const s=i[2].split(":"),l=parseInt(s[0],10);a=l*3600+parseInt(s[1]||"0",10)*60+parseFloat(s[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(a+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const s=new Date;o=new Date(s.getUTCFullYear()+"/"+(s.getUTCMonth()+1)+"/"+s.getUTCDate())}if(i[4]==="Z")r="Z";else{let s=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(s*=-1),r=s,a-=s*60}}else if(i[1]!=null)o=new Date(i[1]);else{const s=new Date;o=new Date(s.getFullYear()+"/"+(s.getMonth()+1)+"/"+s.getDate())}n=new Date(o.getTime()+a*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Hd(e,t=!1){const[n,r]=Fl(e),i=r!=null?t&&r==="Z"?1:2:0;return Sr(n.getTime(),i)}function Ud(e,t){try{return t.contents=Hd(e),!0}catch{return!1}}function jd(e){return e.kind===1?e:Sr(e.getTime(),1)}function Vd(e){return e.kind===2?e:Sr(e.getTime(),2)}function ja(e){return e.kind===1?e.getUTCDate():e.getDate()}function Or(e){return e.kind===1?e.getUTCHours():e.getHours()}function Pr(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Va(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Fr(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Wa(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Ba(e){return e.kind===1?e.getUTCDay():e.getDay()}function Wd(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Rl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ga(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function Bd(e,t,n,r,i=0){function o(){let a=arguments[0];if(r){r--;const s=[],l=arguments.length,u=typeof arguments[l-1]!="string";let d=u?l-3:l-2;for(let c=0;c<d;c++)s.push(arguments[c]);s.index=arguments[d++],s.input=arguments[d++],u&&(s.groups=arguments[d]),a=n(s)}return a}if(typeof e=="string"){const a=e;e=Wd(t,r??0),t=a,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,a=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let a;const s=t.substring(i),l=Ga(e,s),u=Ga.length>r?(a=l[r-1],s.substring(0,a.index+a[0].length)):s;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const lr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Gd=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function Ll(e,t){return Ad(e,t)<0}function Zn(e){return{input:e,cont:Yd(e)}}function Hl(e,t){return typeof t=="string"?e(t):t.cont(e)}function yr(e){return Hl(t=>t,e)}function qd(e){return Hl(t=>{throw new Error(t)},e)}function zd(e,t,n,r,i){let o="";if(t=t||"",i=i||"",Ol(e))switch(i.toLowerCase()!=="x"&&(Ll(e,0)?(e=lo(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=Vr(e,r);break;case"g":case"G":e=r!=null?Xr(e,r):Xr(e);break;case"e":case"E":e=r!=null?Jr(e,r):Jr(e);break;case"x":e=Qr(e);break;case"X":e=Qr(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Pl(e):e=kt(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const a=t.indexOf("0")>=0,s=t.indexOf("-")>=0,l=s||!a?" ":"0";l==="0"?(e=vr(e,n-o.length,l,s),e=o+e):e=vr(o+e,n,l,s)}return e}function Ul(e,t,n,r="",i=-1){return(...o)=>{let a=r;const s=t.slice(),l=n.slice();for(const u of o){const[,,d,c,m,h]=l[0];let p=c;if(i>=0)p=i,i=-1;else if(p==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}a+=s[0],a+=zd(u,d,p,m,h),s.splice(0,1),l.splice(0,1)}return l.length===0?(a+=s[0],e(a)):Ul(e,s,l,a,i)}}function Yd(e){return t=>{lr.lastIndex=0;const n=[],r=[];let i=0,o=lr.exec(e);for(;o;){const a=o.index+(o[1]||"").length;n.push(e.substring(i,a).replace(/%%/g,"%")),r.push(o),i=lr.lastIndex,lr.lastIndex-=1,o=lr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Ul(t,n,r))}}function jl(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Gd,(r,i,o,a,s,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(Ol(u))switch(s=s==null?null:parseInt(s,10),a){case"f":case"F":s=s??2,u=Vr(u,s);break;case"g":case"G":u=s!=null?Xr(u,s):Xr(u);break;case"e":case"E":u=s!=null?Jr(u,s):Jr(u);break;case"p":case"P":s=s??2,u=Vr(lo(u,100),s)+" %";break;case"d":case"D":u=s!=null?ji(String(u),s,"0"):String(u);break;case"x":case"X":u=s!=null?ji(Qr(u),s,"0"):Qr(u),a==="X"&&(u=u.toUpperCase());break;default:if(l){let d="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,m,h)=>{Ll(u,0)&&(u=lo(u,-1),d="-"),h=h==null?"":h.substring(1),u=Vr(u,Math.max(h.length,0));let[p,y]=u.split(".");y||(y="");const _=m.replace(/,/g,"").replace(/^#+/,"").length;p=ji(p,_,"0");const E=h.replace(/#+$/,"").length;if(E>y.length?y=Zd(y,E,"0"):E<y.length&&(y=y.substring(0,E)+y.substring(E).replace(/0+$/,"")),m.indexOf(",")>0){const k=p.length%3,N=Math.floor(p.length/3);let P=k>0?p.substr(0,k)+(N>0?",":""):"";for(let z=0;z<N;z++)P+=p.substr(k+z*3,3)+(z<N-1?",":"");p=P}return y.length>0?p+"."+y:p}),u=d+u}}else u instanceof Date?u=Pl(u,l||a):u=kt(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=vr(String(u),Math.abs(o)," ",o<0)),u})}function qo(e){return typeof e!="string"||e.length===0}function It(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function vr(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function ji(e,t,n){return vr(e,t,n)}function Zd(e,t,n){return vr(e,t,n,!0)}function Kd(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(d=>d).map(Rl),t=t.length>0?t:["\\s"];const a=[],s=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const d=s.exec(e);if(d===null){const c=o?e.substring(u).trim():e.substring(u);(!i||c.length>0)&&a.push(c),l=!1}else{const c=o?e.substring(u,d.index).trim():e.substring(u,d.index);(!i||c.length>0)&&(n!=null&&a.length+1===n?(a.push(o?e.substring(u).trim():e.substring(u)),l=!1):a.push(c)),u=s.lastIndex}}while(l);return a}function Xd(e,...t){if(t.length===0)return e.trim();const n="["+Rl(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Sn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Yt(this.value)}Equals(t){return t==null?!1:Ge(this.value,t instanceof Sn?t.value:t)}CompareTo(t){return t==null?1:nt(this.value,t instanceof Sn?t.value:t)}}function M(e){if(e==null)throw new Error("Option has no value");return e instanceof Sn?e.value:e}function Vl(e){return e instanceof Sn?e.value:e}function mt(e){return e==null||e instanceof Sn?new Sn(e):e}function Wl(e){return e==null?[]:[M(e)]}function _i(e,t){return e!=null?M(e):t}function Er(e,t){return t!=null?mt(e(M(t))):void 0}class Jd{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class gt{constructor(t,n,r,i,o,a,s){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=a,this.enumCases=s}toString(){return We(this)}GetHashCode(){return Bl(this)}Equals(t){return uo(this,t)}}function Ht(e){return e.generics!=null?e.generics:[]}function Bl(e){const t=Vo(e.fullname),n=Ht(e).map(Bl);return xr([t,...n])}function uo(e,t){return e.fullname===""?t.fullname===""&&ao(ri(e),ri(t),([n,r],[i,o])=>n===i&&uo(r,o)):e.fullname===t.fullname&&ao(Ht(e),Ht(t),uo)}function En(e,t,n,r){return new gt(e,t,n,r)}function Nn(e,t,n,r){return new gt(e,t,n,void 0,r)}function Gl(e,t,n,r){const i=new gt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((a,s)=>new Jd(i,s,o[s],a))});return i}function Vn(e){return new gt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function ti(e){return new gt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const Qd=new gt("System.Object"),ni=new gt("System.String"),ht=new gt("System.Int32");function zo(e){if(Array.isArray(e))return e[0];if(e instanceof gt){const t=yi(e);if(t!=null)return zo(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function We(e){const t=yi(e);return t!=null?We(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>We(n)).join(",")+"]"}function ef(e){return yi(e)!=null}function yi(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function tf(e){return e.generics!=null&&e.generics.length>0}function ql(e){return e.enumCases!=null&&e.enumCases.length>0}function nf(e){return e.generics==null?e:new gt(e.fullname,e.generics.map(()=>Qd))}function rf(e){var t;return(t=e.generics)==null?void 0:t[0]}function In(e){if(ql(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function of(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function On(e,t){const n=parseInt(t,10);return of(e,isNaN(n)?t:n)[1]}function af(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function ri(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function sf(e){if(zl(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function lf(e){return e instanceof gt?e.cases!=null:e instanceof H}function uf(e){return e instanceof gt?e.fields!=null:e instanceof ve}function zl(e){return e.fullname.startsWith("System.Tuple")}function cf(e){return e.fields==null?[]:e.fields}function df(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function ff(e,t){const n=ri(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],a)=>(r[i]=t[a],r),{})}function hf(e,t){return e}const Yl="Collection was empty.",mf="The input must be non-negative.",Zl="The input sequence has an insufficient number of elements.";function Yo(e,t){return new Array(t)}function qa(e,t){return e>t?e:t}function za(e,t){return e<t?e:t}function Zo(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function pf(e,t,n){const r=t.length|0,i=Yo(n,r);for(let o=0;o<=r-1;o++)Zt(i,o,e(o,Re(o,t)));return i}function er(e,t,n){const r=t.length|0,i=Yo(n,r);for(let o=0;o<=r-1;o++)Zt(i,o,e(Re(o,t)));return i}function gf(e,t){const n=Yo(t,1);return Zt(n,0,e),n}function wf(e){return e.slice().reverse()}function _f(e,t){return t.find(e)}function yf(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(Re(i,t));if(o!=null){const a=M(o);r.push(a)}}return Ge(n,Dt())?r:er(i=>i,r,n)}function vi(e,t,n){const r=e;return n.reduce(r,t)}function vf(e,t,n){return t==null}function bf(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return Re(0,e)}function Cf(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function Re(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function Zt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Kl(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class rt extends ve{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+It("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const a=i,s=o,l=a.tail,u=s.tail;if(l!=null)if(u!=null){const d=M(l),c=M(u);if(Ge(a.head,s.head)){i=d,o=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const a=r,s=i,l=o,u=l.tail;if(u!=null){const d=M(u);if(a>18)return s|0;r=a+1,i=(s<<1)+Yt(l.head)+631*a,o=d;continue e}else return s|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const a=i,s=o,l=a.tail,u=s.tail;if(l!=null)if(u!=null){const d=M(l),c=M(u),m=nt(a.head,s.head)|0;if(m===0){i=d,o=c;continue e}else return m|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Sf(this)}[Symbol.iterator](){return gi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class xf{constructor(t){this.xs=t,this.it=this.xs,this.current=Dt()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=M(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Dt()}Dispose(){}}function Sf(e){return new xf(e)}function He(){return new rt(Dt(),void 0)}function kr(e,t){return new rt(e,t)}function Tr(e){return e.tail==null}function Xl(e){return((n,r)=>{e:for(;;){const i=n,a=r.tail;if(a!=null){n=i+1,r=M(a);continue e}else return i|0}})(0,e)|0}function Ko(e){if(e.tail!=null)return e.head;throw new Error(Yl+"\\nParameter name: list")}function pt(e){const t=e.tail;if(t!=null)return M(t);throw new Error(Yl+"\\nParameter name: list")}function je(){return He()}function ft(e,t){return kr(e,t)}function he(e){return kr(e,He())}function le(e){return Tr(e)}function Jl(e){return Xl(e)}function U(e){return Ko(e)}function se(e){return pt(e)}function tr(e){const t=Xl(e)|0,n=Zo(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const a=i,s=o;if(!Tr(s)){Zt(n,a,Ko(s)),i=a+1,o=pt(s);continue e}break}})(0,e),n}function Xt(e,t,n){let r=t,i=n;for(;!Tr(i);)r=e(r,U(i)),i=pt(i);return r}function Xo(e){return Xt((t,n)=>kr(n,t),He(),e)}function Ef(e,t,n){return Kl(e,tr(t),n)}function ii(e,t){Xt((n,r)=>{e(r)},void 0,t)}function Se(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=kr(Re(r,e),n);return n}function v(e){return Se(e,He())}function kf(e){let t,n;if($t(e))return v(e);if(e instanceof rt)return e;{const r=He();let i=r;const o=Le(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new rt(l,void 0),t.tail=n,n)}}finally{Te(o)}const a=i,s=He();return a.tail=s,pt(r)}}function bi(e,t){return Xt((n,r)=>kr(r,n),t,Xo(e))}function Ar(e,t){const n=He(),r=Xt((o,a)=>{const s=new rt(e(a),void 0);return o.tail=s,s},n,t),i=He();return r.tail=i,pt(n)}function Ql(e,t){const n=He(),r=Xt((o,a)=>{if(e(a)){const s=new rt(a,void 0);return o.tail=s,s}else return o},n,t),i=He();return r.tail=i,pt(n)}function Tf(e,t){const n=He(),r=He(),i=n,o=Xt((l,u)=>{let d,c;const m=l[0],h=l[1];return e(u)?[(d=new rt(u,void 0),m.tail=d,d),h]:[m,(c=new rt(u,void 0),h.tail=c,c)]},[i,r],t),a=He();o[0].tail=a;const s=He();return o[1].tail=s,[pt(i),pt(r)]}function Af(e,t){const n=He(),r=Xt((o,a)=>{const s=e(a);if(s==null)return o;{const l=new rt(M(s),void 0);return o.tail=l,l}},n,t),i=He();return r.tail=i,pt(n)}function eu(e,t){const n=tr(t);return n.sort(e),v(n)}function Mf(e,t,n){return eu((r,i)=>n.Compare(e(r),e(i)),t)}function Nf(e,t,n){return eu((r,i)=>n.Compare(e(r),e(i))*-1,t)}function $f(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(Tr(r))throw new Error(Zl+"\\nParameter name: list");e=n-1,t=pt(r);continue e}}function Df(e,t){if(e<0)throw new Error(mf+"\\nParameter name: count");const n=(a,s,l)=>{let u;e:for(;;){const d=a,c=s,m=l;if(d<=0)return c;if(Tr(m))throw new Error(Zl+"\\nParameter name: list");a=d-1,s=(u=new rt(Ko(m),void 0),c.tail=u,u),l=pt(m);continue e}},r=He(),i=n(e,r,t),o=He();return i.tail=o,pt(r)}const S=V;function If(e){const t=v([f("style",{children:[Bo]}),f("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return f("div",{children:S.Children.toArray(Array.from(t))})}class Of{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Ci extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Ci.prototype)}}class Jo{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Jo.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Vt(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Ci);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Kr(n))}});else try{e(t)}catch(n){t.onError(Kr(n))}}}function Pf(e,t){return Vt(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Kr(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function Ff(e){return Vt(t=>t.onSuccess(e))}class Rf{Bind(t,n){return Pf(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Vt(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return Ff(t)}ReturnFrom(t){return t}TryFinally(t,n){return Vt(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Vt(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Kr(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Vt(t=>t.onSuccess(void 0))}}const ze=new Rf;function Lf(e){return new tu(0,[e])}function Hf(e){return new tu(1,[e])}class tu extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Uf(e){return Lf(e)}function jf(e){return Hf(e)}function Vi(e){}const Vf=new Of;function Wf(e){return Vt(t=>{e({onSuccess:n=>t.onSuccess(Uf(n)),onError:n=>t.onSuccess(jf(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function Bf(e){return Vt(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Gf(e){return Vt(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Ci)})})}function qf(e,t){return zf(e,t)}function nu(e,t){return qf(e,t)}function zf(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new Jo;e({onSuccess:t||Vi,onError:Vi,onCancel:Vi,cancelToken:i||Vf,trampoline:o})}class ru extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class Yf extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Qo extends ve{constructor(t,n,r,i,o,a,s,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=a,this.timeout=s,this.content=l}}class Ln extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class iu extends ve{constructor(t,n,r,i,o,a){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=a}}function Zf(e){throw new Error(e)}const Kf="Enumeration already finished.",Xf="Enumeration has not started. Call MoveNext.",ou="The input sequence has an insufficient number of elements.",Jf="Reset is not supported on this enumerator.";function Qf(){throw new Error(Jf)}function ea(){throw new Error(Xf)}function co(){throw new Error(Kf)}class eh{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Le(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+kt(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Te(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return gi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function th(e){return new eh(e)}class nh{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){Qf()}Dispose(){this.dispose()}}function xi(e,t,n){return new nh(e,t,n)}function rh(e){let t,n,r=!1,i=!1,o;const a=()=>{if(i=!0,n!=null){const s=M(n);try{Te(s)}finally{n=void 0}}if(t!=null){const s=M(t);try{Te(s)}finally{t=void 0}}};return xi(()=>(r?i&&co():ea(),o!=null?M(o):co()),()=>{let s;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,d=n;if(u!=null)if(d!=null){const c=M(d);if(c["System.Collections.IEnumerator.MoveNext"]())o=mt(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Te(c)}finally{n=void 0}}else{const c=M(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(s=c["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(s)):(a(),l=!1)}else t=Le(e)}return M(l)}},()=>{i||a()})}function ih(e,t){return xi(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Te(t)}finally{}})}function au(e,t,n){let r=!1,i,o=mt(e());const a=()=>{if(o!=null){const l=M(o);try{n(l)}finally{o=void 0}}},s=()=>{try{a()}finally{i=void 0}};return xi(()=>(r||ea(),i!=null?M(i):co()),()=>{if(r||(r=!0),o!=null){const l=M(o);let u;try{u=t(l)}catch(d){throw s(),d}return u!=null?(i=u,!0):(s(),!1)}else return!1},a)}function oh(e,t){let n,r=t;return xi(()=>{if(n!=null){const i=M(n)[0];return M(n)[1],i}else return ea()},()=>(n=e(r),n!=null?(M(n)[0],r=M(n)[1],!0):!1),()=>{})}function ah(e,t){t==null&&Zf(e)}function nr(e){return th(e)}function kn(e){return ah("source",e),Le(e)}function _e(e){return nr(()=>Le(e()))}function su(e){return nr(()=>rh(e))}function sh(e,t){return nr(()=>oh(e,t))}function ue(e){return _e(()=>gf(e))}function lh(e){return e instanceof rt?tr(e):Array.from(e)}function Wt(e){return $t(e)?v(e):e instanceof rt?e:kf(e)}function uh(e,t,n){return nr(()=>au(e,t,n))}function ch(e,t,n){return nr(()=>{let r=-1;return au(e,i=>(r=r+1|0,t(r,i)),n)})}function tt(e,t){return su([e,t])}function dh(e,t,n){const r=kn(t);try{const i=kn(n);try{let o=0,a=r["System.Collections.IEnumerator.MoveNext"](),s=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&a&&s;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(a=r["System.Collections.IEnumerator.MoveNext"](),s=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:a?1:s?-1:0)|0}finally{Te(i)}}finally{Te(r)}}function Pn(e,t,n){const r=kn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{Te(r)}}function lu(e,t,n){const r=kn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{Te(r)}}function ta(e,t){lu((n,r)=>{e(r)},void 0,t)}function Bt(e,t){return uh(()=>kn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?mt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Te(n)})}function fh(e){return _e(()=>wf(lh(e)))}function hh(e,t){return nr(()=>{const n=kn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(ou+"\\nParameter name: source");return ih(()=>{},n)}catch(r){throw Te(n),r}})}function mh(e,t){return ch(()=>kn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return mt(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(ou+"\\nParameter name: source")}else return},n=>{Te(n)})}function ph(e,t){return _e(()=>su(Bt(e,t)))}class uu{constructor(t,n){this.k=t,this.v=n}}function oi(e,t){return new uu(e,t)}function Ke(e){return e.k}function ut(e){return e.v}class Fe extends uu{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function Wr(e,t,n,r,i){return new Fe(e,t,n,r,i)}function Ye(e){return e.left}function Ze(e){return e.right}function yn(e){return e.h}function cu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=M(r);if(i instanceof Fe){const o=i;e=cu(n+1,Ye(o)),t=Ze(o);continue e}else return n+1|0}else return n|0}}function gh(e){return cu(0,e)}function yt(e,t,n,r){let i,o,a;const s=e;if(s!=null){const c=M(s);a=c instanceof Fe?(i=c,yn(i)):1}else a=0;let l;const u=r;if(u!=null){const c=M(u);l=c instanceof Fe?(o=c,yn(o)):1}else l=0;const d=(a<l?l:a)|0;return d===0?oi(t,n):Wr(t,n,e,r,d+1)}function Ya(e,t,n,r){let i,o,a,s,l,u,d,c,m;const h=e;if(h!=null){const _=M(h);m=_ instanceof Fe?(i=_,yn(i)):1}else m=0;let p;const y=r;if(y!=null){const _=M(y);p=_ instanceof Fe?(o=_,yn(o)):1}else p=0;if(p>m+2){const _=M(r);if(_ instanceof Fe){const E=_;if(a=Ye(E),(a!=null?(s=M(a),s instanceof Fe?(l=s,yn(l)):1):0)>m+1){const k=M(Ye(E));if(k instanceof Fe){const N=k;return yt(yt(e,t,n,Ye(N)),Ke(N),ut(N),yt(Ze(N),Ke(E),ut(E),Ze(E)))}else throw new Error("internal error: Map.rebalance")}else return yt(yt(e,t,n,Ye(E)),Ke(E),ut(E),Ze(E))}else throw new Error("internal error: Map.rebalance")}else if(m>p+2){const _=M(e);if(_ instanceof Fe){const E=_;if(u=Ze(E),(u!=null?(d=M(u),d instanceof Fe?(c=d,yn(c)):1):0)>p+1){const k=M(Ze(E));if(k instanceof Fe){const N=k;return yt(yt(Ye(E),Ke(E),ut(E),Ye(N)),Ke(N),ut(N),yt(Ze(N),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return yt(Ye(E),Ke(E),ut(E),yt(Ze(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return yt(e,t,n,r)}function Kn(e,t,n,r){if(r!=null){const i=M(r),o=e.Compare(t,Ke(i))|0;if(i instanceof Fe){const a=i;return o<0?Ya(Kn(e,t,n,Ye(a)),Ke(a),ut(a),Ze(a)):o===0?Wr(t,n,Ye(a),Ze(a),yn(a)):Ya(Ye(a),Ke(a),ut(a),Kn(e,t,n,Ze(a)))}else return o<0?Wr(t,n,void 0,r,2):o===0?oi(t,n):Wr(t,n,r,void 0,2)}else return oi(t,n)}function du(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=M(o),s=r.Compare(i,Ke(a))|0;if(s===0)return mt(ut(a));if(a instanceof Fe){const l=a;e=r,t=i,n=s<0?Ye(l):Ze(l);continue e}else return}else return}}function wh(e,t,n){const r=du(e,t,n);if(r==null)throw new Error;return M(r)}function _h(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=M(o),s=r.Compare(i,Ke(a))|0;if(a instanceof Fe){const l=a;if(s<0){e=r,t=i,n=Ye(l);continue e}else{if(s===0)return!0;e=r,t=i,n=Ze(l);continue e}}else return s===0}else return!1}}function fu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=M(r);if(i instanceof Fe){const o=i;fu(n,Ye(o)),n(Ke(o),ut(o)),e=n,t=Ze(o);continue e}else n(Ke(i),ut(i))}break}}function yh(e,t){fu(e,t)}function vh(e,t,n){let r=n;yh((i,o)=>{Zt(t,r,[i,o]),r=r+1|0},e)}function bh(e,t){return Xt((n,r)=>Kn(e,r[0],r[1],n),void 0,t)}function Ch(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const a=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=Kn(r,a[0],a[1],i),n=o;continue e}else return i}}function xh(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=Re(r,t);n=Kn(e,i[0],i[1],n)}return n}function hu(e,t){if($t(t))return xh(e,t);if(t instanceof rt)return bh(e,t);{const n=Le(t);try{return Ch(e,void 0,n)}finally{Te(n)}}}class Sh extends ve{constructor(t,n){super(),this.stack=t,this.started=n}}function mu(e){e:for(;;){const t=e;if(le(t))return je();{const n=se(t),r=U(t);if(r!=null){const i=M(r);if(i instanceof Fe){const o=i;e=Se([Ye(o),oi(Ke(o),ut(o)),Ze(o)],n);continue e}else return t}else{e=n;continue e}}}}function Za(e){return new Sh(mu(he(e)),!1)}function Eh(){throw new Error("enumeration not started")}function kh(){throw new Error("enumeration already finished")}function Ka(e){if(e.started){const t=e.stack;if(le(t))return kh();if(U(t)!=null){const n=M(U(t));if(n instanceof Fe)throw new Error("Please report error: Map iterator, unexpected stack for current");return[Ke(n),ut(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Eh()}function Th(e){if(e.started){const t=e.stack;if(le(t))return!1;if(U(t)!=null){if(M(U(t))instanceof Fe)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=mu(se(t)),!le(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!le(e.stack)}function Xa(e){let t=Za(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ka(t)},"System.Collections.IEnumerator.get_Current"(){return Ka(t)},"System.Collections.IEnumerator.MoveNext"(){return Th(t)},"System.Collections.IEnumerator.Reset"(){t=Za(e)},Dispose(){}}}class ai{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return $h(this)|0}Equals(t){const n=this;if(t instanceof ai){const r=t,i=Le(n);try{const o=Le(r);try{const a=()=>{const s=i["System.Collections.IEnumerator.MoveNext"]();if(s===o["System.Collections.IEnumerator.MoveNext"]())if(s){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Ge(l[0],u[0])&&Ge(l[1],u[1])?a():!1}else return!0;else return!1};return a()}finally{Te(o)}}finally{Te(i)}}else return!1}toString(){return"map ["+It("; ",Bt(n=>jl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Xa(this.tree)}[Symbol.iterator](){return gi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Xa(this.tree)}CompareTo(t){const n=this;if(t instanceof ai)return dh((i,o)=>{const a=n.comparer.Compare(i[0],o[0])|0;return(a!==0?a:nt(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Qa(n,t[0])&&Ge(Ja(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){vh(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Wi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Wi(this)|0}get size(){return Wi(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Bt(n=>[n[0],n[1]],this)}get(t){return Ja(this,t)}has(t){return Qa(this,t)}keys(){return Bt(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Bt(n=>n[1],this)}forEach(t,n){const r=this;ta(i=>{t(i[1],i[0],r)},r)}}function Si(e,t){return new ai(e,t)}function Ah(e){return Si(e,void 0)}function Mh(e,t,n){return Si(e.comparer,Kn(e.comparer,t,n,e.tree))}function Ja(e,t){return wh(e.comparer,t,e.tree)}function Wi(e){return gh(e.tree)}function Qa(e,t){return _h(e.comparer,t,e.tree)}function Nh(e,t){return du(e.comparer,t,e.tree)}function $h(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Yt(i[0]))|0,n=t(n,Yt(i[1]))|0}}finally{Te(r)}return n|0}function Dh(e,t,n){return Mh(n,e,t)}function Ih(e,t){return Nh(t,e)}function Oh(e,t){return Si(t,hu(t,e))}function Ph(e,t){return Si(t,hu(t,e))}function pu(e){return Ah(e)}const dn=new Qo("",new ru(0,[]),je(),!1,void 0,void 0,void 0,new Yf(0,[]));new iu(0,"","","",pu({Compare:Wo}),new Ln(0,[""]));function es(e,t){return qo(t)?new Array(0):Kd(t,[e],void 0,0)}function Fh(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Rh(e){return new Qo(e,dn.method,dn.headers,dn.withCredentials,dn.overridenMimeType,dn.overridenResponseType,dn.timeout,dn.content)}function Lh(e,t){return new Qo(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Hh(e){return Bf(t=>{const n=new XMLHttpRequest;n.open(Fh(e.method),e.url),n.onreadystatechange=()=>{let l,u,d,c,m,h,p;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),d=n.status|0,c=n.responseType,m=(h=n.responseType,h===""?new Ln(0,[n.responseText]):h==="text"?new Ln(0,[n.responseText]):h==="arraybuffer"?new Ln(2,[n.response]):h==="blob"?new Ln(1,[n.response]):new Ln(3,[n.response])),p=Ph(yf(y=>{const _=v(es(":",y));if(!le(_))return[U(_).toLocaleLowerCase(),It(":",se(_)).trim()]},es(`\r
4
- `,n.getAllResponseHeaders())),{Compare:Wo}),new iu(d,l,c,n.responseURL,p,m)))};const r=Le(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{Te(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const a=e.timeout;if(a!=null){const l=a|0;n.timeout=l|0}const s=e.content;switch(s.tag){case 1:{n.send(mt(s.fields[0]));break}case 3:{n.send(mt(s.fields[0]));break}case 2:{n.send(mt(s.fields[0]));break}default:n.send()}})}function Uh(e){return new b(0,[e])}function gu(e){return new b(1,[e])}class b extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Kt(e,t){return t.tag===0?Uh(e(t.fields[0])):gu(t.fields[0])}function jh(e,t){return t.tag===0?e(t.fields[0]):gu(t.fields[0])}const gn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function Bi(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Vh(e,t){switch(t){case gn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case gn.SnakeCase:return Bi(e,"_");case gn.SnakeCaseAllCaps:return Bi(e,"_").toUpperCase();case gn.KebabCase:return Bi(e,"-");case gn.None:default:return e}}function na(e,t=gn.None){const n={},r=t;function i(a){throw new Error("Cannot infer key and value of "+String(a))}function o(a,s,l){a=Vh(a,s),n[a]=l}for(let a of e){let s=gn.None;if(a==null&&i(a),a instanceof H){const l=a.cases()[a.tag];a=a.fields.length===0?l:[l].concat(a.fields),s=r}if(Array.isArray(a))switch(a.length){case 0:i(a);break;case 1:o(a[0],s,!0);break;case 2:const l=a[1];o(a[0],s,l);break;default:o(a[0],s,a.slice(1))}else typeof a=="string"?o(a,s,!0):i(a)}return n}class O extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class wu extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function ts(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Wh(e,t){switch(e.tag){case 2:return Bd(ts(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return ts(t)}}const Bh=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,ns=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Gh=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function qh(e){function t(r){return r.replace(ns,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Bh.test(n))return Xd(n,"{","}","(",")");if(ns.test(n))return t(n);if(Gh.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function zh(e,t){try{return t.contents=qh(e),!0}catch{return!1}}var fo;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(fo||(fo={}));function Yh(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function rs(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function Zh(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function Kh(e,t){if(t&fo.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function Xh(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,a]=i;if(n=n||Kh(o,t),!Zh(n).test(a))return Yh(i,n)}return null}function Jh(e,t,n,r,i){const o=Xh(e,t,i);if(o!=null){let a=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(a)){const[s,l]=rs(!0,r);!n&&o.radix!==10&&a>=s&&a<=l&&(a=a<<32-r>>32-r);const[u,d]=rs(n,r);if(a>=u&&a<=d)return a}}throw new Error(`The input string ${e} was not in a correct format.`)}function rr(e,t,n,r,i){try{return i.contents=Jh(e,t,n,r),!0}catch{return!1}}function _u(e,t){Qh(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function Qh(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function e0(){return _u(-621355968e5,0)}function t0(e){const[t,n]=Fl(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return _u(t.getTime(),r)}function n0(e,t){try{return t.contents=t0(e),!0}catch{return!1}}function is(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return r0(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function r0(e){return Number(BigInt(e)/10000n)}function i0(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return is(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,a=0;const s=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(a=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return s*is(i,l,u,a,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function o0(e,t){try{return t.contents=i0(e),!0}catch{return!1}}class yu{constructor(t){this.k=t}}function st(e){return new yu(e)}function W(e){return e.k}class ce extends yu{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function lt(e,t,n,r){return new ce(e,t,n,r)}function we(e){return e.left}function pe(e){return e.right}function Un(e){return e.h}function vu(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=M(n);if(i instanceof ce){const o=i;e=we(o),t=vu(pe(o),r+1);continue e}else return r+1|0}else return r|0}}function a0(e){return vu(e,0)}function vt(e,t,n){let r,i,o;const a=e;if(a!=null){const d=M(a);o=d instanceof ce?(r=d,Un(r)):1}else o=0;let s;const l=n;if(l!=null){const d=M(l);s=d instanceof ce?(i=d,Un(i)):1}else s=0;const u=(o<s?s:o)|0;return u===0?st(t):lt(t,e,n,u+1)}function os(e,t,n){let r,i,o,a,s,l,u,d,c;const m=e;if(m!=null){const y=M(m);c=y instanceof ce?(r=y,Un(r)):1}else c=0;let h;const p=n;if(p!=null){const y=M(p);h=y instanceof ce?(i=y,Un(i)):1}else h=0;if(h>c+2){const y=M(n);if(y instanceof ce){const _=y;if(o=we(_),(o!=null?(a=M(o),a instanceof ce?(s=a,Un(s)):1):0)>c+1){const E=M(we(_));if(E instanceof ce){const k=E;return vt(vt(e,t,we(k)),W(k),vt(pe(k),W(_),pe(_)))}else throw new Error("internal error: Set.rebalance")}else return vt(vt(e,t,we(_)),W(_),pe(_))}else throw new Error("internal error: Set.rebalance")}else if(c>h+2){const y=M(e);if(y instanceof ce){const _=y;if(l=pe(_),(l!=null?(u=M(l),u instanceof ce?(d=u,Un(d)):1):0)>h+1){const E=M(pe(_));if(E instanceof ce){const k=E;return vt(vt(we(_),W(_),we(k)),W(k),vt(pe(k),t,n))}else throw new Error("internal error: Set.rebalance")}else return vt(we(_),W(_),vt(pe(_),t,n))}else throw new Error("internal error: Set.rebalance")}else return vt(e,t,n)}function Xn(e,t,n){if(n!=null){const r=M(n),i=e.Compare(t,W(r))|0;if(r instanceof ce){const o=r;return i<0?os(Xn(e,t,we(o)),W(o),pe(o)):i===0?n:os(we(o),W(o),Xn(e,t,pe(o)))}else{const o=e.Compare(t,W(r))|0;return o<0?lt(t,void 0,n,2):o===0?n:lt(t,n,void 0,2)}}else return st(t)}function bu(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const a=M(o),s=r.Compare(i,W(a))|0;if(a instanceof ce){const l=a;if(s<0){e=r,t=i,n=we(l);continue e}else{if(s===0)return!0;e=r,t=i,n=pe(l);continue e}}else return s===0}else return!1}}function Cu(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=M(r);if(i instanceof ce){const o=i;Cu(n,we(o)),n(W(o)),e=n,t=pe(o);continue e}else n(W(i))}break}}class s0 extends ve{constructor(t,n){super(),this.stack=t,this.started=n}}function xu(e){e:for(;;){const t=e;if(le(t))return je();{const n=U(t),r=se(t);if(n!=null){const i=M(n);if(i instanceof ce){const o=i;e=Se([we(o),st(W(o)),pe(o)],r);continue e}else return t}else{e=r;continue e}}}}function as(e){return new s0(xu(he(e)),!1)}function l0(){throw new Error("Enumeration not started")}function u0(){throw new Error("Enumeration already started")}function ss(e){if(e.started){const t=e.stack;if(le(t))return u0();if(U(t)!=null){const n=M(U(t));return W(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return l0()}function c0(e){if(e.started){const t=e.stack;if(le(t))return!1;if(U(t)!=null){if(M(U(t))instanceof ce)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=xu(se(t)),!le(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!le(e.stack)}function ls(e){let t=as(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ss(t)},"System.Collections.IEnumerator.get_Current"(){return ss(t)},"System.Collections.IEnumerator.MoveNext"(){return c0(t)},"System.Collections.IEnumerator.Reset"(){t=as(e)},Dispose(){}}}function d0(e,t,n){e:for(;;){const r=e,i=t,o=n;if(le(i))return le(o)?0:-1;if(le(o))return 1;if(U(o)!=null)if(U(i)!=null){const a=M(U(i)),s=M(U(o));if(a instanceof ce){const l=a;if(we(l)==null)if(s instanceof ce){const u=s;if(we(u)==null){const d=r.Compare(W(l),W(u))|0;if(d!==0)return d|0;e=r,t=ft(pe(l),se(i)),n=ft(pe(u),se(o));continue e}else{let d,c,m,h,p;switch(le(i)?le(o)?d=2:U(o)!=null?(d=1,h=se(o),p=M(U(o))):d=2:U(i)!=null?(d=0,c=se(i),m=M(U(i))):le(o)?d=2:U(o)!=null?(d=1,h=se(o),p=M(U(o))):d=2,d){case 0:if(m instanceof ce){const y=m;e=r,t=Se([we(y),lt(W(y),void 0,pe(y),0)],c),n=o;continue e}else{e=r,t=Se([void 0,st(W(m))],c),n=o;continue e}case 1:if(p instanceof ce){const y=p;e=r,t=i,n=Se([we(y),lt(W(y),void 0,pe(y),0)],h);continue e}else{e=r,t=i,n=Se([void 0,st(W(p))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(W(l),W(s))|0;if(u!==0)return u|0;e=r,t=ft(pe(l),se(i)),n=ft(void 0,se(o));continue e}else{let u,d,c,m,h;switch(le(i)?le(o)?u=2:U(o)!=null?(u=1,m=se(o),h=M(U(o))):u=2:U(i)!=null?(u=0,d=se(i),c=M(U(i))):le(o)?u=2:U(o)!=null?(u=1,m=se(o),h=M(U(o))):u=2,u){case 0:if(c instanceof ce){const p=c;e=r,t=Se([we(p),lt(W(p),void 0,pe(p),0)],d),n=o;continue e}else{e=r,t=Se([void 0,st(W(c))],d),n=o;continue e}case 1:if(h instanceof ce){const p=h;e=r,t=i,n=Se([we(p),lt(W(p),void 0,pe(p),0)],m);continue e}else{e=r,t=i,n=Se([void 0,st(W(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(s instanceof ce){const l=s;if(we(l)==null){const u=r.Compare(W(a),W(l))|0;if(u!==0)return u|0;e=r,t=ft(void 0,se(i)),n=ft(pe(l),se(o));continue e}else{let u,d,c,m,h;switch(le(i)?le(o)?u=2:U(o)!=null?(u=1,m=se(o),h=M(U(o))):u=2:U(i)!=null?(u=0,d=se(i),c=M(U(i))):le(o)?u=2:U(o)!=null?(u=1,m=se(o),h=M(U(o))):u=2,u){case 0:if(c instanceof ce){const p=c;e=r,t=Se([we(p),lt(W(p),void 0,pe(p),0)],d),n=o;continue e}else{e=r,t=Se([void 0,st(W(c))],d),n=o;continue e}case 1:if(h instanceof ce){const p=h;e=r,t=i,n=Se([we(p),lt(W(p),void 0,pe(p),0)],m);continue e}else{e=r,t=i,n=Se([void 0,st(W(h))],m);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(W(a),W(s))|0;if(l!==0)return l|0;e=r,t=se(i),n=se(o);continue e}}else{M(U(o));let a,s,l,u,d;switch(le(i)?le(o)?a=2:U(o)!=null?(a=1,u=se(o),d=M(U(o))):a=2:U(i)!=null?(a=0,s=se(i),l=M(U(i))):le(o)?a=2:U(o)!=null?(a=1,u=se(o),d=M(U(o))):a=2,a){case 0:if(l instanceof ce){const c=l;e=r,t=Se([we(c),lt(W(c),void 0,pe(c),0)],s),n=o;continue e}else{e=r,t=Se([void 0,st(W(l))],s),n=o;continue e}case 1:if(d instanceof ce){const c=d;e=r,t=i,n=Se([we(c),lt(W(c),void 0,pe(c),0)],u);continue e}else{e=r,t=i,n=Se([void 0,st(W(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(U(i)!=null){M(U(i));let a,s,l,u,d;switch(le(i)?le(o)?a=2:U(o)!=null?(a=1,u=se(o),d=M(U(o))):a=2:U(i)!=null?(a=0,s=se(i),l=M(U(i))):le(o)?a=2:U(o)!=null?(a=1,u=se(o),d=M(U(o))):a=2,a){case 0:if(l instanceof ce){const c=l;e=r,t=Se([we(c),lt(W(c),void 0,pe(c),0)],s),n=o;continue e}else{e=r,t=Se([void 0,st(W(l))],s),n=o;continue e}case 1:if(d instanceof ce){const c=d;e=r,t=i,n=Se([we(c),lt(W(c),void 0,pe(c),0)],u);continue e}else{e=r,t=i,n=Se([void 0,st(W(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=se(i),n=se(o);continue e}}}function us(e,t,n){return t==null?n==null?0:-1:n==null?1:d0(e,he(t),he(n))|0}function f0(e,t,n){let r=n;Cu(i=>{Zt(t,r,i),r=r+1|0},e)}function h0(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Xn(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function m0(e,t){return vi((n,r)=>Xn(e,r,n),void 0,t)}function p0(e,t){return Xt((n,r)=>Xn(e,r,n),void 0,t)}function Su(e,t){if($t(t))return m0(e,t);if(t instanceof rt)return p0(e,t);{const n=Le(t);try{return h0(e,void 0,n)}finally{Te(n)}}}class ra{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return _0(this)|0}Equals(t){let n;const r=this;return t instanceof ra&&(n=t,us(Wn(r),bt(r),bt(n))===0)}toString(){return"set ["+It("; ",Bt(n=>kt(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return us(Wn(n),bt(n),bt(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return bu(Wn(n),t,bt(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){f0(bt(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return Gi(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return Gi(this)|0}GetEnumerator(){return ls(bt(this))}[Symbol.iterator](){return gi(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return ls(bt(this))}get size(){return Gi(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Eu(this,t)}keys(){return Bt(n=>n,this)}values(){return Bt(n=>n,this)}entries(){return Bt(n=>[n,n],this)}forEach(t,n){const r=this;ta(i=>{t(i,i,r)},r)}}function Ei(e,t){return new ra(e,t)}function Wn(e){return e.comparer}function bt(e){return e.tree}function g0(e){return Ei(e,void 0)}function w0(e,t){return Ei(Wn(e),Xn(Wn(e),t,bt(e)))}function Gi(e){return a0(bt(e))}function Eu(e,t){return bu(Wn(e),t,bt(e))}function _0(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Yt(r)+631|0}}finally{Te(n)}return Math.abs(t)|0}function ho(e,t){return Eu(t,e)}function y0(e,t){return w0(t,e)}function v0(e){return g0(e)}function b0(e,t){return Ei(t,Su(t,e))}function C0(e,t){return Ei(t,Su(t,e))}function ur(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
1
+ var bo,de,hc,Hn,dl,mc,ks,na,Ts,As,pc,mo={},gc=[],Hh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ti=Array.isArray;function an(e,t){for(var n in t)e[n]=t[n];return e}function wc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function m(e,t,n){var r,o,i,s={};for(i in t)i=="key"?r=t[i]:i=="ref"?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?bo.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)s[i]===void 0&&(s[i]=e.defaultProps[i]);return lo(e,s,r,o,null)}function lo(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++hc,__i:-1,__u:0};return o==null&&de.vnode!=null&&de.vnode(i),i}function Ai(){return{current:null}}function Oe(e){return e.children}function Ut(e,t){this.props=e,this.context=t}function Er(e,t){if(t==null)return e.__?Er(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?Er(e):null}function yc(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return yc(e)}}function $s(e){(!e.__d&&(e.__d=!0)&&Hn.push(e)&&!ni.__r++||dl!==de.debounceRendering)&&((dl=de.debounceRendering)||mc)(ni)}function ni(){var e,t,n,r,o,i,s,a;for(Hn.sort(ks);e=Hn.shift();)e.__d&&(t=Hn.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=an({},o)).__v=o.__v+1,de.vnode&&de.vnode(r),ra(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Er(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,_c(s,r,a),r.__e!=i&&yc(r)),Hn.length>t&&Hn.sort(ks));ni.__r=0}function vc(e,t,n,r,o,i,s,a,l,u,d){var c,p,f,h,g,w=r&&r.__k||gc,_=t.length;for(n.__d=l,jh(n,t,w),l=n.__d,c=0;c<_;c++)(f=n.__k[c])!=null&&(p=f.__i===-1?mo:w[f.__i]||mo,f.__i=c,ra(e,f,p,o,i,s,a,l,u,d),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&oa(p.ref,null,f),d.push(f.ref,f.__c||h,f)),g==null&&h!=null&&(g=h),65536&f.__u||p.__k===f.__k?l=bc(f,l,e):typeof f.type=="function"&&f.__d!==void 0?l=f.__d:h&&(l=h.nextSibling),f.__d=void 0,f.__u&=-196609);n.__d=l,n.__e=g}function jh(e,t,n){var r,o,i,s,a,l=t.length,u=n.length,d=u,c=0;for(e.__k=[],r=0;r<l;r++)(o=t[r])!=null&&typeof o!="boolean"&&typeof o!="function"?(s=r+c,(o=e.__k[r]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?lo(null,o,null,null,null):Ti(o)?lo(Oe,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?lo(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(a=o.__i=Bh(o,n,s,d))!==-1&&(d--,(i=n[a])&&(i.__u|=131072)),i==null||i.__v===null?(a==-1&&c--,typeof o.type!="function"&&(o.__u|=65536)):a!==s&&(a==s-1?c--:a==s+1?c++:(a>s?c--:c++,o.__u|=65536))):o=e.__k[r]=null;if(d)for(r=0;r<u;r++)(i=n[r])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=Er(i)),xc(i,i))}function bc(e,t,n){var r,o;if(typeof e.type=="function"){for(r=e.__k,o=0;r&&o<r.length;o++)r[o]&&(r[o].__=e,t=bc(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Er(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function cn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ti(e)?e.some(function(n){cn(n,t)}):t.push(e)),t}function Bh(e,t,n,r){var o=e.key,i=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&o==l.key&&i===l.type&&!(131072&l.__u))return n;if((typeof i!="function"||i===Oe||o)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&o==l.key&&i===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&o==l.key&&i===l.type)return a;a++}}return-1}function fl(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Hh.test(t)?n:n+"px"}function Ho(e,t,n,r,o){var i;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||fl(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||fl(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")i=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r?n.u=r.u:(n.u=na,e.addEventListener(t,i?As:Ts,i)):e.removeEventListener(t,i?As:Ts,i);else{if(o=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function hl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=na++;else if(t.t<n.u)return;return de.event&&(t=de.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function ra(e,t,n,r,o,i,s,a,l,u){var d,c,p,f,h,g,w,_,C,S,$,O,P,F,v,y,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),i=[a=t.__e=n.__e]),(d=de.__b)&&d(t);e:if(typeof k=="function")try{if(_=t.props,C="prototype"in k&&k.prototype.render,S=(d=k.contextType)&&r[d.__c],$=d?S?S.props.value:d.__:r,n.__c?w=(c=t.__c=n.__c).__=c.__E:(C?t.__c=c=new k(_,$):(t.__c=c=new Ut(_,$),c.constructor=k,c.render=Uh),S&&S.sub(c),c.props=_,c.state||(c.state={}),c.context=$,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),C&&c.__s==null&&(c.__s=c.state),C&&k.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=an({},c.__s)),an(c.__s,k.getDerivedStateFromProps(_,c.__s))),f=c.props,h=c.state,c.__v=t,p)C&&k.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),C&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(C&&k.getDerivedStateFromProps==null&&_!==f&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(_,$),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(_,c.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=_,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),O=0;O<c._sb.length;O++)c.__h.push(c._sb[O]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(_,c.__s,$),C&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(f,h,g)})}if(c.context=$,c.props=_,c.__P=e,c.__e=!1,P=de.__r,F=0,C){for(c.state=c.__s,c.__d=!1,P&&P(t),d=c.render(c.props,c.state,c.context),v=0;v<c._sb.length;v++)c.__h.push(c._sb[v]);c._sb=[]}else do c.__d=!1,P&&P(t),d=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++F<25);c.state=c.__s,c.getChildContext!=null&&(r=an(an({},r),c.getChildContext())),C&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(f,h)),vc(e,Ti(y=d!=null&&d.type===Oe&&d.key==null?d.props.children:d)?y:[y],t,n,r,o,i,s,a,l,u),c.base=t.__e,t.__u&=-161,c.__h.length&&s.push(c),w&&(c.__E=c.__=null)}catch(T){if(t.__v=null,l||i!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;i[i.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;de.__e(T,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Vh(n.__e,t,n,r,o,i,s,l,u);(d=de.diffed)&&d(t)}function _c(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)oa(n[r],n[++r],n[++r]);de.__c&&de.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){de.__e(i,o.__v)}})}function Vh(e,t,n,r,o,i,s,a,l){var u,d,c,p,f,h,g,w=n.props,_=t.props,C=t.type;if(C==="svg"?o="http://www.w3.org/2000/svg":C==="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(u=0;u<i.length;u++)if((f=i[u])&&"setAttribute"in f==!!C&&(C?f.localName===C:f.nodeType===3)){e=f,i[u]=null;break}}if(e==null){if(C===null)return document.createTextNode(_);e=document.createElementNS(o,C,_.is&&_),a&&(de.__m&&de.__m(t,i),a=!1),i=null}if(C===null)w===_||a&&e.data===_||(e.data=_);else{if(i=i&&bo.call(e.childNodes),w=n.props||mo,!a&&i!=null)for(w={},u=0;u<e.attributes.length;u++)w[(f=e.attributes[u]).name]=f.value;for(u in w)if(f=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=f;else if(!(u in _)){if(u=="value"&&"defaultValue"in _||u=="checked"&&"defaultChecked"in _)continue;Ho(e,u,null,f,o)}}for(u in _)f=_[u],u=="children"?p=f:u=="dangerouslySetInnerHTML"?d=f:u=="value"?h=f:u=="checked"?g=f:a&&typeof f!="function"||w[u]===f||Ho(e,u,f,w[u],o);if(d)a||c&&(d.__html===c.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(c&&(e.innerHTML=""),vc(e,Ti(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Er(n,0),a,l),i!=null)for(u=i.length;u--;)wc(i[u]);a||(u="value",C==="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[u]||C==="progress"&&!h||C==="option"&&h!==w[u])&&Ho(e,u,h,w[u],o),u="checked",g!==void 0&&g!==e[u]&&Ho(e,u,g,w[u],o))}return e}function oa(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(o){de.__e(o,n)}}function xc(e,t,n){var r,o;if(de.unmount&&de.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||oa(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){de.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&xc(r[o],t,n||typeof e.type!="function");n||wc(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Uh(e,t,n){return this.constructor(e,n)}function Tn(e,t,n){var r,o,i,s;de.__&&de.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],ra(t,e=(!r&&n||t).__k=m(Oe,null,[e]),o||mo,mo,t.namespaceURI,!r&&n?[n]:o?null:t.firstChild?bo.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r,s),_c(i,e,s)}function ia(e,t){Tn(e,t,ia)}function sa(e,t,n){var r,o,i,s,a=an({},e.props);for(i in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)i=="key"?r=t[i]:i=="ref"?o=t[i]:a[i]=t[i]===void 0&&s!==void 0?s[i]:t[i];return arguments.length>2&&(a.children=arguments.length>3?bo.call(arguments,2):n),lo(e.type,a,r||e.key,o||e.ref,null)}function Be(e,t){var n={__c:t="__cC"+pc++,__:e,Consumer:function(r,o){return r.children(o)},Provider:function(r){var o,i;return this.getChildContext||(o=new Set,(i={})[t]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){o=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&o.forEach(function(a){a.__e=!0,$s(a)})},this.sub=function(s){o.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){o&&o.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}bo=gc.slice,de={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(a){e=a}throw e}},hc=0,Ut.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=an({},this.state),typeof e=="function"&&(e=e(an({},n),this.props)),e&&an(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),$s(this))},Ut.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),$s(this))},Ut.prototype.render=Oe,Hn=[],mc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ks=function(e,t){return e.__v.__b-t.__v.__b},ni.__r=0,na=0,Ts=hl(!1),As=hl(!0),pc=0;function aa(){return(aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Wh=["context","children"];function Gh(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,o){if(r==null)return{};var i,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)o.indexOf(i=l[s])>=0||(a[i]=r[i]);return a}(e,Wh);return sa(t,n)}function zh(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(Gh,aa({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var o=[],i={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(i[a[s].name]=a[s].value,i[Cc(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),d=l[s].slot;d?i[d]=m(ml,{name:d},u):o[s]=u}var c=r?m(ml,null,o):o;return m(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ia:Tn)(this._vdom,this._root)}function Cc(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function qh(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Cc(e)]=n,this._vdom=sa(this._vdom,r),Tn(this._vdom,this._root)}}function Yh(){Tn(this._vdom=null,this._root)}function ml(e,t){var n=this;return m("slot",aa({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(o){o.stopPropagation(),o.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function Zh(e,t,n,r){function o(){var i=Reflect.construct(HTMLElement,[],o);return i._vdomComponent=e,i._root=i,i}return(o.prototype=Object.create(HTMLElement.prototype)).constructor=o,o.prototype.connectedCallback=zh,o.prototype.attributeChangedCallback=qh,o.prototype.disconnectedCallback=Yh,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=n,n.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(s){this._vdom?this.attributeChangedCallback(i,null,s):(this._props||(this._props={}),this._props[i]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(i,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,o)}function la(e,t){Zh(e,t)}var hn,Me,ts,pl,kr=0,Sc=[],je=de,gl=je.__b,wl=je.__r,yl=je.diffed,vl=je.__c,bl=je.unmount,_l=je.__;function rr(e,t){je.__h&&je.__h(Me,e,kr||t),kr=0;var n=Me.__H||(Me.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ae(e){return kr=1,or(Ec,e)}function or(e,t,n){var r=rr(hn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ec(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=Me,!Me.u)){var o=function(a,l,u){if(!r.__c.__H)return!0;var d=r.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!i||i.call(this,a,l,u);var c=r.__c.props!==a;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};Me.u=!0;var i=Me.shouldComponentUpdate,s=Me.componentWillUpdate;Me.componentWillUpdate=function(a,l,u){if(this.__e){var d=i;i=void 0,o(a,l,u),i=d}s&&s.call(this,a,l,u)},Me.shouldComponentUpdate=o}return r.__N||r.__}function Se(e,t){var n=rr(hn++,3);!je.__s&&da(n.__H,t)&&(n.__=e,n.i=t,Me.__H.__h.push(n))}function wn(e,t){var n=rr(hn++,4);!je.__s&&da(n.__H,t)&&(n.__=e,n.i=t,Me.__h.push(n))}function K(e){return kr=5,te(function(){return{current:e}},[])}function ua(e,t,n){kr=6,wn(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function te(e,t){var n=rr(hn++,7);return da(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ve(e,t){return kr=8,te(function(){return e},t)}function Ee(e){var t=Me.context[e.__c],n=rr(hn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Me)),t.props.value):e.__}function ca(e,t){je.useDebugValue&&je.useDebugValue(t?t(e):e)}function Kh(e){var t=rr(hn++,10),n=ae();return t.__=e,Me.componentDidCatch||(Me.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ft(){var e=rr(hn++,11);if(!e.__){for(var t=Me.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function Xh(){for(var e;e=Sc.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Zo),e.__H.__h.forEach(Ms),e.__H.__h=[]}catch(t){e.__H.__h=[],je.__e(t,e.__v)}}je.__b=function(e){Me=null,gl&&gl(e)},je.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_l&&_l(e,t)},je.__r=function(e){wl&&wl(e),hn=0;var t=(Me=e.__c).__H;t&&(ts===Me?(t.__h=[],Me.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Zo),t.__h.forEach(Ms),t.__h=[],hn=0)),ts=Me},je.diffed=function(e){yl&&yl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Sc.push(t)!==1&&pl===je.requestAnimationFrame||((pl=je.requestAnimationFrame)||Qh)(Xh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ts=Me=null},je.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Zo),n.__h=n.__h.filter(function(r){return!r.__||Ms(r)})}catch(r){t.some(function(o){o.__h&&(o.__h=[])}),t=[],je.__e(r,n.__v)}}),vl&&vl(e,t)},je.unmount=function(e){bl&&bl(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Zo(r)}catch(o){t=o}}),n.__H=void 0,t&&je.__e(t,n.__v))};var xl=typeof requestAnimationFrame=="function";function Qh(e){var t,n=function(){clearTimeout(r),xl&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);xl&&(t=requestAnimationFrame(n))}function Zo(e){var t=Me,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Me=t}function Ms(e){var t=Me;e.__c=e.__(),Me=t}function da(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Ec(e,t){return typeof t=="function"?t(e):t}function Ns(e,t){for(var n in e)if(n!=="__source"&&!(n in t))return!0;for(var r in t)if(r!=="__source"&&e[r]!==t[r])return!0;return!1}function $i(e,t){var n=t(),r=ae({t:{__:n,u:t}}),o=r[0].t,i=r[1];return wn(function(){o.__=n,o.u=t,ns(o)&&i({t:o})},[e,n,t]),Se(function(){return ns(o)&&i({t:o}),e(function(){ns(o)&&i({t:o})})},[e]),n}function ns(e){var t,n,r=e.u,o=e.__;try{var i=r();return!((t=o)===(n=i)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function fa(e){e()}function ha(e){return e}function ma(){return[!1,fa]}var pa=wn;function ri(e,t){this.props=e,this.context=t}function kc(e,t){function n(o){var i=this.props.ref,s=i==o.ref;return!s&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!s:Ns(this.props,o)}function r(o){return this.shouldComponentUpdate=n,m(e,o)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(ri.prototype=new Ut).isPureReactComponent=!0,ri.prototype.shouldComponentUpdate=function(e,t){return Ns(this.props,e)||Ns(this.state,t)};var Cl=de.__b;de.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cl&&Cl(e)};var Jh=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function ga(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var o=e(n,r);return n.ref=r,o}return t.$$typeof=Jh,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Sl=function(e,t){return e==null?null:cn(cn(e).map(t))},Tc={map:Sl,forEach:Sl,count:function(e){return e?cn(e).length:0},only:function(e){var t=cn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:cn},em=de.__e;de.__e=function(e,t,n,r){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t)}em(e,t,n,r)};var El=de.unmount;function Ac(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,o){for(var i in o)r[i]=o[i];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Ac(r,t,n)})),e}function $c(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return $c(r,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=n)),e}function uo(){this.__u=0,this.o=null,this.__b=null}function Mc(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Nc(e){var t,n,r;function o(i){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return m(n,i)}return o.displayName="Lazy",o.__f=!0,o}function gr(){this.i=null,this.l=null}de.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),El&&El(e)},(uo.prototype=new Ut).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var o=Mc(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=$c(l,l.__c.__P,l.__c.__O)}var u;for(r.setState({__a:r.__b=null});u=r.o.pop();)u.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},uo.prototype.componentWillUnmount=function(){this.o=[]},uo.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Ac(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&m(Oe,null,e.fallback);return o&&(o.__u&=-33),[m(Oe,null,t.__a?null:e.children),o]};var kl=function(e,t,n){if(++n[1]===n[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(n=e.i;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.i=n=n[2]}};function tm(e){return this.getChildContext=function(){return e.context},e.children}function nm(e){var t=this,n=e.h;t.componentWillUnmount=function(){Tn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,o){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Tn(m(tm,{context:t.context},e.__v),t.v)}function Mi(e,t){var n=m(nm,{__v:e,h:t});return n.containerInfo=t,n}(gr.prototype=new Ut).__a=function(e){var t=this,n=Mc(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),kl(t,e,r)):o()};n?n(i):i()}},gr.prototype.render=function(e){this.i=null,this.l=new Map;var t=cn(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var n=t.length;n--;)this.l.set(t[n],this.i=[1,0,this.i]);return e.children},gr.prototype.componentDidUpdate=gr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){kl(e,n,t)})};var Ic=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,rm=/^(?: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]/,om=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,im=/[A-Z0-9]/g,sm=typeof document<"u",am=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Oc(e,t,n){return t.__k==null&&(t.textContent=""),Tn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Fc(e,t,n){return ia(e,t),typeof n=="function"&&n(),e?e.__c:null}Ut.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ut.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Tl=de.event;function lm(){}function um(){return this.cancelBubble}function cm(){return this.defaultPrevented}de.event=function(e){return Tl&&(e=Tl(e)),e.persist=lm,e.isPropagationStopped=um,e.isDefaultPrevented=cm,e.nativeEvent=e};var wa,dm={enumerable:!1,configurable:!0,get:function(){return this.class}},Al=de.vnode;de.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,o={},i=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||sm&&s==="children"&&r==="noscript"||s==="class"||s==="className")){var l=s.toLowerCase();s==="defaultValue"&&"value"in n&&n.value==null?s="value":s==="download"&&a===!0?a="":l==="translate"&&a==="no"?a=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?s="ondblclick":l!=="onchange"||r!=="input"&&r!=="textarea"||am(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":om.test(s)&&(s=l):l=s="oninput":i&&rm.test(s)?s=s.replace(im,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&o[s=l]&&(s="oninputCapture"),o[s]=a}}r=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=cn(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=cn(n.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),n.class&&!n.className?(o.class=n.class,Object.defineProperty(o,"className",dm)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Ic,Al&&Al(e)};var $l=de.__r;de.__r=function(e){$l&&$l(e),wa=e.__c};var Ml=de.diffed;de.diffed=function(e){Ml&&Ml(e);var t=e.props,n=e.__e;n!=null&&e.type==="textarea"&&"value"in t&&t.value!==n.value&&(n.value=t.value==null?"":t.value),wa=null};var Dc={ReactCurrentDispatcher:{current:{readContext:function(e){return wa.__n[e.__c].props.value},useCallback:ve,useContext:Ee,useDebugValue:ca,useDeferredValue:ha,useEffect:Se,useId:Ft,useImperativeHandle:ua,useInsertionEffect:pa,useLayoutEffect:wn,useMemo:te,useReducer:or,useRef:K,useState:ae,useSyncExternalStore:$i,useTransition:ma}}},fm="18.3.1";function Pc(e){return m.bind(null,e)}function Fr(e){return!!e&&e.$$typeof===Ic}function Rc(e){return Fr(e)&&e.type===Oe}function Lc(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function ya(e){return Fr(e)?sa.apply(null,arguments):e}function Hc(e){return!!e.__k&&(Tn(null,e),!0)}function jc(e){return e&&(e.base||e.nodeType===1&&e)||null}var Bc=function(e,t){return e(t)},St=function(e,t){return e(t)},Vc=Oe,Uc=Fr,V={useState:ae,useId:Ft,useReducer:or,useEffect:Se,useLayoutEffect:wn,useInsertionEffect:pa,useTransition:ma,useDeferredValue:ha,useSyncExternalStore:$i,startTransition:fa,useRef:K,useImperativeHandle:ua,useMemo:te,useCallback:ve,useContext:Ee,useDebugValue:ca,version:"18.3.1",Children:Tc,render:Oc,hydrate:Fc,unmountComponentAtNode:Hc,createPortal:Mi,createElement:m,createContext:Be,createFactory:Pc,cloneElement:ya,createRef:Ai,Fragment:Oe,isValidElement:Fr,isElement:Uc,isFragment:Rc,isMemo:Lc,findDOMNode:jc,Component:Ut,PureComponent:ri,memo:kc,forwardRef:ga,flushSync:St,unstable_batchedUpdates:Bc,StrictMode:Vc,Suspense:uo,SuspenseList:gr,lazy:Nc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Dc};const oi=Object.freeze(Object.defineProperty({__proto__:null,Children:Tc,Component:Ut,Fragment:Oe,PureComponent:ri,StrictMode:Vc,Suspense:uo,SuspenseList:gr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Dc,cloneElement:ya,createContext:Be,createElement:m,createFactory:Pc,createPortal:Mi,createRef:Ai,default:V,findDOMNode:jc,flushSync:St,forwardRef:ga,hydrate:Fc,isElement:Uc,isFragment:Rc,isMemo:Lc,isValidElement:Fr,lazy:Nc,memo:kc,render:Oc,startTransition:fa,unmountComponentAtNode:Hc,unstable_batchedUpdates:Bc,useCallback:ve,useContext:Ee,useDebugValue:ca,useDeferredValue:ha,useEffect:Se,useErrorBoundary:Kh,useId:Ft,useImperativeHandle:ua,useInsertionEffect:pa,useLayoutEffect:wn,useMemo:te,useReducer:or,useRef:K,useState:ae,useSyncExternalStore:$i,useTransition:ma,version:fm},Symbol.toStringTag,{value:"Module"})),hm=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}[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{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:#fff;border-color:#6b7280;border-width:1px;border-radius:0;padding:.5rem .75rem;font-size:1rem;line-height: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;outline-offset: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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);border-color:#2563eb}input::-moz-placeholder,textarea::-moz-placeholder{color:#6b7280;opacity:1}input::placeholder,textarea::placeholder{color:#6b7280;opacity:1}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-date-and-time-value{min-height:1.5em;text-align: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{padding-top:0;padding-bottom:0}select{background-image: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");background-position:right .5rem center;background-repeat:no-repeat;background-size:1.5em 1.5em;padding-right:2.5rem;-webkit-print-color-adjust:exact;print-color-adjust:exact}[multiple],[size]:where(select:not([size="1"])){background-image:initial;background-position:initial;background-repeat:unset;background-size:initial;padding-right:.75rem;-webkit-print-color-adjust:unset;print-color-adjust:unset}[type=checkbox],[type=radio]{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;-webkit-print-color-adjust:exact;print-color-adjust:exact;display:inline-block;vertical-align:middle;background-origin:border-box;-webkit-user-select:none;-moz-user-select:none;user-select:none;flex-shrink:0;height:1rem;width:1rem;color:#2563eb;background-color:#fff;border-color:#6b7280;border-width:1px;--tw-shadow: 0 0 #0000}[type=checkbox]{border-radius:0}[type=radio]{border-radius:100%}[type=checkbox]:focus,[type=radio]:focus{outline:2px solid transparent;outline-offset: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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}[type=checkbox]:checked,[type=radio]:checked{border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}[type=checkbox]:checked{background-image: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{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=radio]:checked{background-image: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")}@media (forced-colors: active){[type=radio]:checked{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:checked:hover,[type=checkbox]:checked:focus,[type=radio]:checked:hover,[type=radio]:checked:focus{border-color:transparent;background-color:currentColor}[type=checkbox]:indeterminate{background-image: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");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}@media (forced-colors: active){[type=checkbox]:indeterminate{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}}[type=checkbox]:indeterminate:hover,[type=checkbox]:indeterminate:focus{border-color:transparent;background-color:currentColor}[type=file]{background:unset;border-color:inherit;border-width:0;border-radius:0;padding:0;font-size:unset;line-height:inherit}[type=file]:focus{outline:1px solid ButtonText;outline:1px auto -webkit-focus-ring-color}@font-face{font-family:BRSonoma;font-weight:900;src:url(/assets/BRSonoma-Black-Dd-41VER.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:700;src:url(/assets/BRSonoma-Bold-ntHe2u-j.otf) format("opentype")}@font-face{font-family:BRSonoma;font-weight:500;src:url(/assets/BRSonoma-Medium-j1GGAHzV.otf) format("opentype")}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.bottom-0{bottom:0}.left-0{left:0}.right-0{right:0}.top-0{top:0}.z-10{z-index:10}.col-span-1{grid-column:span 1 / span 1}.col-span-2{grid-column:span 2 / span 2}.col-span-4{grid-column:span 4 / span 4}.col-start-1{grid-column-start:1}.row-start-1{grid-row-start:1}.mx-12{margin-left:3rem;margin-right:3rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.-mt-\\[226px\\]{margin-top:-226px}.mb-12{margin-bottom:3rem}.mb-6{margin-bottom:1.5rem}.ml-3{margin-left:.75rem}.mt-0\\.5{margin-top:.125rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.inline-table{display:inline-table}.table-caption{display:table-caption}.table-cell{display:table-cell}.table-column{display:table-column}.table-column-group{display:table-column-group}.table-footer-group{display:table-footer-group}.table-header-group{display:table-header-group}.table-row-group{display:table-row-group}.table-row{display:table-row}.flow-root{display:flow-root}.grid{display:grid}.inline-grid{display:inline-grid}.contents{display:contents}.list-item{display:list-item}.hidden{display:none}.size-5{width:1.25rem;height:1.25rem}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-9{height:2.25rem}.h-\\[120px\\]{height:120px}.h-\\[34px\\]{height:34px}.h-\\[38px\\]{height:38px}.h-\\[52px\\]{height:52px}.h-\\[58px\\]{height:58px}.h-\\[60px\\]{height:60px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:12rem}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[120px\\]{width:120px}.w-\\[218px\\]{width:218px}.w-\\[230px\\]{width:230px}.w-\\[260px\\]{width:260px}.w-\\[480px\\]{width:480px}.w-\\[640px\\]{width:640px}.w-full{width:100%}.max-w-\\[640px\\]{max-width:640px}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize{resize:both}.list-disc{list-style-type:disc}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\\.5{gap:.375rem}.gap-12{gap:3rem}.gap-2{gap:.5rem}.gap-2\\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.self-center{align-self:center}.self-stretch{align-self:stretch}.justify-self-end{justify-self:end}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-emerald-200{--tw-border-opacity: 1;border-color:rgb(167 243 208 / var(--tw-border-opacity, 1))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(243 244 246 / var(--tw-border-opacity, 1))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-primary-600{border-color:var(--fl-color-primary-600)}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-emerald-50{--tw-bg-opacity: 1;background-color:rgb(236 253 245 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-500\\/50{background-color:#6b728080}.bg-primary-600{background-color:var(--fl-color-primary-600)}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.px-0\\.5{padding-left:.125rem;padding-right:.125rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-3\\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\\[13px\\]{padding-left:13px;padding-right:13px}.px-\\[3px\\]{padding-left:3px;padding-right:3px}.py-0\\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\\.5{padding-top:.875rem;padding-bottom:.875rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-\\[0\\.5625rem\\]{padding-top:.5625rem;padding-bottom:.5625rem}.py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.py-\\[9px\\]{padding-top:9px;padding-bottom:9px}.pb-12{padding-bottom:3rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-\\[3px\\]{padding-bottom:3px}.pl-1{padding-left:.25rem}.pl-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-6{padding-right:1.5rem}.pr-\\[11px\\]{padding-right:11px}.pt-0\\.5{padding-top:.125rem}.pt-1{padding-top:.25rem}.pt-1\\.5{padding-top:.375rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sonoma{font-family:BRSonoma}.text-2xl{font-size:1.5rem;line-height:2rem}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.leading-4{line-height:1rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-black{--tw-text-opacity: 1;color:rgb(0 0 0 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-800{--tw-text-opacity: 1;color:rgb(30 64 175 / var(--tw-text-opacity, 1))}.text-emerald-700{--tw-text-opacity: 1;color:rgb(4 120 87 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-primary-600{color:var(--fl-color-primary-600)}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity, 1))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 29 29 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.line-through{text-decoration-line:line-through}.opacity-50{opacity:.5}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-gray-300{--tw-shadow-color: #d1d5db;--tw-shadow: var(--tw-shadow-colored)}.outline{outline-style:solid}.outline-1{outline-width:1px}.-outline-offset-1{outline-offset:-1px}.outline-gray-300{outline-color:#d1d5db}.outline-red-300{outline-color:#fca5a5}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-inset{--tw-ring-inset: inset}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow{--tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / .1)) drop-shadow(0 1px 1px rgb(0 0 0 / .06));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.invert{--tw-invert: invert(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.sepia{--tw-sepia: sepia(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-filter{-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.placeholder\\:text-gray-500::-moz-placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.placeholder\\:text-gray-500::placeholder{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.hover\\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.focus\\:border-blue-600:focus{--tw-border-opacity: 1;border-color:rgb(37 99 235 / var(--tw-border-opacity, 1))}.focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\\:outline:focus{outline-style:solid}.focus\\:outline-2:focus{outline-width:2px}.focus\\:-outline-offset-2:focus{outline-offset:-2px}.focus\\:outline-blue-600:focus{outline-color:#2563eb}.focus\\:ring-2: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);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\\:ring-inset:focus{--tw-ring-inset: inset}.focus\\:ring-primary-600:focus{--tw-ring-color: var(--fl-color-primary-600)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:opacity-50:disabled{opacity:.5}@media (min-width: 640px){.sm\\:size-4{width:1rem;height:1rem}}`;function Zt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function mm(e){return e!=null&&typeof e.GetEnumerator=="function"}function pm(e){return e!=null&&typeof e.CompareTo=="function"}function gm(e){return e!=null&&typeof e.Equals=="function"}function Wc(e){return e!=null&&typeof e.GetHashCode=="function"}function Is(e){return e!=null&&typeof e.Dispose=="function"}function Fe(e){Is(e)&&e.Dispose()}function Ke(){return null}function ii(e,t){var n,r;return((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===((r=Object.getPrototypeOf(t))==null?void 0:r.constructor)}class wm{constructor(t){this.iter=t,this.current=Ke()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this.iter.next();return this.current=t.value,!t.done}"System.Collections.IEnumerator.Reset"(){throw new Error("JS iterators cannot be reset")}Dispose(){}}function Le(e){return mm(e)?e.GetEnumerator():new wm(e[Symbol.iterator]())}function _o(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),n=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:n}}}}function De(e,t){return e.toString(10).padStart(t,"0")}function Nl(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function ym(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function Wt(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class ln{static id(t){return ln.idMap.has(t)||ln.idMap.set(t,++ln.count),ln.idMap.get(t)}}ln.idMap=new WeakMap;ln.count=0;function Dr(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function Bt(e){return e*2654435761|0}function Gc(e){return Dr(e.toString(32))}function xo(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const o=e[r];t=(t<<5)+t^o}return t}function vm(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Bt(e);case"bigint":return Gc(e);case"string":return Dr(e);default:return Bt(ln.id(e))}}function bm(e){return Wc(e)?e.GetHashCode():vm(e)}function _m(e){return e.getTime()}function xm(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=mn(e[r]);return xo(n)}function mn(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Bt(e);case"bigint":return Gc(e);case"string":return Dr(e);default:{if(Wc(e))return e.GetHashCode();if(Zt(e))return xm(e);if(e instanceof Date)return _m(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>mn(r));return xo(n)}else return Bt(ln.id(e))}}}function Cm(e){return bm(e)}function Os(e,t,n){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!n(e[r],t[r]))return!1;return!0}function zc(e,t){return Os(e,t,me)}function Sm(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let o=0;o<n.length;o++)if(n[o]!==r[o]||!me(e[n[o]],t[r[o]]))return!1;return!0}function me(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:gm(e)?e.Equals(t):Zt(e)?Zt(t)&&zc(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&qc(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Sm(e,t)}function qc(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Nl(e),r=t.getTime()+Nl(t)),n===r?0:n<r?-1:1}function va(e,t){return e===t?0:e<t?-1:1}function Em(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,o=0;r<e.length;r++)if(o=n(e[r],t[r]),o!==0)return o;return 0}function Yc(e,t){return Em(e,t,wt)}function km(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let o=0,i=0;o<n.length;o++){const s=n[o];if(s!==r[o])return s<r[o]?-1:1;if(i=wt(e[s],t[s]),i!==0)return i}return 0}function wt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:pm(e)?e.CompareTo(t):Zt(e)?Zt(t)?Yc(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?qc(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?km(e,t):-1}function x(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Tm(e){Zt(e)?e.splice(0):e.clear()}const Ni=new WeakMap;function Ge(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Ni.set(t,e),t}function jn(e){return Ni.get(e)??(t=>n=>e(t,n))}function Fs(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Ni.set(t,e),t}function rs(e){return Ni.get(e)??(t=>n=>r=>e(t,n,r))}function Am(e){let t=0,n="[";for(const r of e){if(t===0)n+=It(r);else if(t===100){n+="; ...";break}else n+="; "+It(r);t++}return n+"]"}function It(e,t=0){var n;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Am(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+It(i,t+1)).join(`
2
+ `)+" }":(r==null?void 0:r.name)??""}}return String(e)}function $m(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=It(t[0]),r=n.indexOf(" ")>=0):n=t.map(o=>It(o)).join(", "),e+(r?" (":" ")+n+(r?")":"")}}class z{get name(){return this.cases()[this.tag]}toJSON(){return this.fields.length===0?this.name:[this.name].concat(this.fields)}toString(){return $m(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>mn(n));return t.splice(0,0,Bt(this.tag)),xo(t)}Equals(t){return this===t?!0:ii(this,t)&&this.tag===t.tag?zc(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ii(this,t)?this.tag===t.tag?Yc(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Mm(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Nm(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+It(n)).join(`
3
+ `)+" }"}function Im(e){const t=Object.values(e).map(n=>mn(n));return xo(t)}function Om(e,t){if(e===t)return!0;if(ii(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!me(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Fm(e,t){if(e===t)return 0;if(ii(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const o=wt(e[n[r]],t[n[r]]);if(o!==0)return o}return 0}else return-1}class Te{toJSON(){return Mm(this)}toString(){return Nm(this)}GetHashCode(){return Im(this)}Equals(t){return Om(this,t)}CompareTo(t){return Fm(this,t)}}class kt{get contents(){return this.getter()}set contents(t){this.setter(t)}constructor(t,n){typeof n=="function"?(this.getter=t,this.setter=n):(this.getter=()=>t,this.setter=r=>{t=r})}}class Dm{constructor(t){this.message=t}}function Pm(e){return e instanceof Dm||e instanceof Error}function Rm(e){return e instanceof Promise}function si(e){return Pm(e)||Rm(e)?e:new Error(String(e))}const ba=It(hm),Pr=Symbol("numeric");function Zc(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Pr])}function Lm(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ds(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Pr]().multiply(t)}function Ko(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Pr]().toFixed(t)}function ai(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Pr]().toPrecision(t)}function li(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Pr]().toExponential(t)}function ui(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Pr]().toHex()}const Hm=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],jm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Bm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Vm=["January","February","March","April","May","June","July","August","September","October","November","December"];function vt(e,t,n){let r=0,o=t;for(;o<e.length&&e[o]===n;)o++,r++;return r}function Il(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Um(e,t){let n=t;const r=e[t];let o="",i=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){i=!0;break}else if(s==="\\")if(t<e.length)t++,o+=e[t];else throw new Error("Invalid string format");else o+=s}if(!i)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[o,t-n+1]}function _a(e,t,n){let r=0,o=0,i="";const s=n?Co(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(o=vt(t,r,"d"),r+=o,o){case 1:i+=Fl(s);break;case 2:i+=De(Fl(s),2);break;case 3:i+=Hm[Rl(s)];break;case 4:i+=jm[Rl(s)];break}break;case"f":if(o=vt(t,r,"f"),r+=o,o<=3){const w=10**(3-o);i+=De(Math.floor(Bo(s)/w),o)}else o<=7&&(i+=(""+Bo(s)).padEnd(o,"0"));break;case"F":if(o=vt(t,r,"F"),r+=o,o<=3){const w=10**(3-o),_=Math.floor(Bo(s)/w);_!=0&&(i+=De(_,o))}else if(o<=7){const w=Bo(s);w!=0&&(i+=De(w,3))}break;case"g":o=vt(t,r,"g"),r+=o,o<=2&&(i+="A.D.");break;case"h":switch(o=vt(t,r,"h"),r+=o,o){case 1:i+=jo(s)%12;break;case 2:i+=De(jo(s)%12,2);break}break;case"H":switch(o=vt(t,r,"H"),r+=o,o){case 1:i+=jo(s);break;case 2:i+=De(jo(s),2);break}break;case"K":switch(o=vt(t,r,"K"),r+=o,o){case 1:switch(Ol(s)){case 1:i+="Z";break;case 2:i+=yr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=vt(t,r,"m"),r+=o,o){case 1:i+=Dl(s);break;case 2:i+=De(Dl(s),2);break}break;case"M":switch(o=vt(t,r,"M"),r+=o,o){case 1:i+=Vo(s);break;case 2:i+=De(Vo(s),2);break;case 3:i+=Bm[Vo(s)-1];break;case 4:i+=Vm[Vo(s)-1];break}break;case"s":switch(o=vt(t,r,"s"),r+=o,o){case 1:i+=Pl(s);break;case 2:i+=De(Pl(s),2);break}break;case"t":switch(o=vt(t,r,"t"),r+=o,o){case 1:i+=s.getHours()<12?"A":"P";break;case 2:i+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(o=vt(t,r,"y"),r+=o,o){case 1:i+=s.getFullYear()%100;break;case 2:i+=De(s.getFullYear()%100,2);break;case 3:i+=De(s.getFullYear(),3);break;case 4:i+=De(s.getFullYear(),4);break;case 5:i+=De(s.getFullYear(),5);break}break;case"z":o=vt(t,r,"z"),r+=o;let l="";switch(Ol(s)){case 1:l="+00:00";break;case 2:l=yr(s.getTimezoneOffset()*-6e4);break;case 0:l=yr(Qm(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",d=parseInt(l.substring(1,3),10),c=parseInt(l.substring(4,6),10);switch(o){case 1:i+=`${u}${d}`;break;case 2:i+=`${u}${De(d,2)}`;break;default:i+=`${u}${De(d,2)}:${De(c,2)}`;break}break;case":":i+=":",r++;break;case"/":i+="/",r++;break;case"'":case'"':const[p,f]=Um(t,r);i+=p,r+=f;break;case"%":const h=Il(t,r);if(h>=0&&h!==37)r+=2,i+=_a(s,String.fromCharCode(h),n);else throw new Error("Invalid format string");break;case"\\":const g=Il(t,r);if(g>=0)r+=2,i+=String.fromCharCode(g);else throw new Error("Invalid format string");break;default:r++,i+=a;break}}return i}function Ol(e){return e.kind||0}function yr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+De(n,2)+":"+De(r,2)}function ci(e,t){const n=e.toISOString();return t==="first"?n.substring(0,n.indexOf("T")):n.substring(n.indexOf("T")+1,n.length-1)}function Wm(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return De(e.getFullYear(),4)+"-"+De(e.getMonth()+1,2)+"-"+De(e.getDate(),2)+"T"+De(e.getHours(),2)+":"+De(e.getMinutes(),2)+":"+De(e.getSeconds(),2)+"."+De(e.getMilliseconds(),3)+(n?yr(e.getTimezoneOffset()*-6e4):"")}}function Gm(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+yr(t)}function zm(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+yr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ci(n,"first");case"T":case"t":return ci(n,"second");case"O":case"o":return Gm(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return _a(n,t,!0)}function qm(e,t){const n=e.kind===1;if(typeof t!="string")return n?e.toUTCString():e.toLocaleString();if(t.length===1)switch(t){case"D":case"d":return n?ci(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ci(e,"second"):e.toLocaleTimeString();case"O":case"o":return Wm(e,n);default:throw new Error("Unrecognized Date print format")}else return _a(e,t,n)}function Kc(e,t,n){return e.offset!=null?zm(e,t):qm(e,t)}function Co(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Ym(){return Co(-621355968e5,1)}function Xc(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const o=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(o!=null){let i,s=0;if(o[2]!=null){const a=o[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),o[3]!=null&&o[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(o[4]!=null){if(o[1]!=null)i=new Date(o[1]+" UTC");else{const a=new Date;i=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(o[4]==="Z")r="Z";else{let a=parseInt(o[5],10)*60+parseInt(o[6]||"0",10);o[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(o[1]!=null)i=new Date(o[1]);else{const a=new Date;i=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(i.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-i.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Zm(e,t=!1){const[n,r]=Xc(e),o=r!=null?t&&r==="Z"?1:2:0;return Co(n.getTime(),o)}function Km(e,t){try{return t.contents=Zm(e),!0}catch{return!1}}function Xm(e){return e.kind===1?e:Co(e.getTime(),1)}function Qm(e){return e.kind===2?e:Co(e.getTime(),2)}function Fl(e){return e.kind===1?e.getUTCDate():e.getDate()}function jo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Bo(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Dl(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Vo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Pl(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Rl(e){return e.kind===1?e.getUTCDay():e.getDay()}function Jm(e,t=0){if(t&-284)throw new Error("RegexOptions only supports: IgnoreCase, Multiline, Compiled, Singleline and ECMAScript");let n="gu";return n+=t&1?"i":"",n+=t&2?"m":"",n+=t&16?"s":"",new RegExp(e,n)}function Qc(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Ll(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let o,i=-1;for(;(o=e.exec(t))!=null;)o.index===i?e.lastIndex++:(i=o.index,r.push(o));return r}function Jc(e,t,n,r,o=0){function i(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let d=u?l-3:l-2;for(let c=0;c<d;c++)a.push(arguments[c]);a.index=arguments[d++],a.input=arguments[d++],u&&(a.groups=arguments[d]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=Jm(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,o)+t.substring(o).replace(e,i);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(o),l=Ll(e,a),u=Ll.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,o)+u.replace(e,n)+t.substring(o+u.length)}else return t.replace(e,n)}const Zr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,e0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function ed(e,t){return Lm(e,t)<0}function Tr(e){return{input:e,cont:r0(e)}}function td(e,t){return typeof t=="string"?e(t):t.cont(e)}function po(e){return td(t=>t,e)}function t0(e){return td(t=>{throw new Error(t)},e)}function n0(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Zc(e))switch(o.toLowerCase()!=="x"&&(ed(e,0)?(e=Ds(e,-1),i="-"):t.indexOf(" ")>=0?i=" ":t.indexOf("+")>=0&&(i="+")),r=r==null?null:parseInt(r,10),o){case"f":case"F":r=r??6,e=Ko(e,r);break;case"g":case"G":e=r!=null?ai(e,r):ai(e);break;case"e":case"E":e=r!=null?li(e,r):li(e);break;case"x":e=ui(e);break;case"X":e=ui(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Kc(e):e=It(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=i+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=go(e,n-i.length,l,a),e=i+e):e=go(i+e,n,l,a)}return e}function nd(e,t,n,r="",o=-1){return(...i)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of i){const[,,d,c,p,f]=l[0];let h=c;if(o>=0)h=o,o=-1;else if(h==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=n0(u,d,h,p,f),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):nd(e,a,l,s,o)}}function r0(e){return t=>{Zr.lastIndex=0;const n=[],r=[];let o=0,i=Zr.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Zr.lastIndex,Zr.lastIndex-=1,i=Zr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),nd(t,n,r))}}function rd(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(e0,(r,o,i,s,a,l)=>{if(o<0||o>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[o];if(Zc(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Ko(u,a);break;case"g":case"G":u=a!=null?ai(u,a):ai(u);break;case"e":case"E":u=a!=null?li(u,a):li(u);break;case"p":case"P":a=a??2,u=Ko(Ds(u,100),a)+" %";break;case"d":case"D":u=a!=null?os(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?os(ui(u),a,"0"):ui(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let d="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,f)=>{ed(u,0)&&(u=Ds(u,-1),d="-"),f=f==null?"":f.substring(1),u=Ko(u,Math.max(f.length,0));let[h,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;h=os(h,w,"0");const _=f.replace(/#+$/,"").length;if(_>g.length?g=o0(g,_,"0"):_<g.length&&(g=g.substring(0,_)+g.substring(_).replace(/0+$/,"")),p.indexOf(",")>0){const C=h.length%3,S=Math.floor(h.length/3);let $=C>0?h.substr(0,C)+(S>0?",":""):"";for(let O=0;O<S;O++)$+=h.substr(C+O*3,3)+(O<S-1?",":"");h=$}return g.length>0?h+"."+g:h}),u=d+u}}else u instanceof Date?u=Kc(u,l||s):u=It(u);return i=parseInt((i||" ").substring(1),10),isNaN(i)||(u=go(String(u),Math.abs(i)," ",i<0)),u})}function xa(e){return typeof e!="string"||e.length===0}function Kt(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function go(e,t,n,r){n=n||" ",t=t-e.length;for(let o=0;o<t;o++)e=r?e+n:n+e;return e}function os(e,t,n){return go(e,t,n)}function o0(e,t,n){return go(e,t,n,!0)}function i0(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const o=(r&1)===1,i=(r&2)===2;t=t||[],t=t.filter(d=>d).map(Qc),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const d=a.exec(e);if(d===null){const c=i?e.substring(u).trim():e.substring(u);(!o||c.length>0)&&s.push(c),l=!1}else{const c=i?e.substring(u,d.index).trim():e.substring(u,d.index);(!o||c.length>0)&&(n!=null&&s.length+1===n?(s.push(i?e.substring(u).trim():e.substring(u)),l=!1):s.push(c)),u=a.lastIndex}}while(l);return s}function s0(e,...t){if(t.length===0)return e.trim();const n="["+Qc(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Kn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return mn(this.value)}Equals(t){return t==null?!1:me(this.value,t instanceof Kn?t.value:t)}CompareTo(t){return t==null?1:wt(this.value,t instanceof Kn?t.value:t)}}function R(e){if(e==null)throw new Error("Option has no value");return e instanceof Kn?e.value:e}function Ps(e){return e instanceof Kn?e.value:e}function pt(e){return e==null||e instanceof Kn?new Kn(e):e}function a0(e){return e==null?null:R(e)}function Ca(e){return e==null?[]:[R(e)]}function Ar(e,t){return e!=null?R(e):t}function yn(e,t){return t!=null?pt(e(R(t))):void 0}function l0(e,t){return t!=null?e(R(t)):void 0}class u0{constructor(t,n,r,o){this.declaringType=t,this.tag=n,this.name=r,this.fields=o}}class Dt{constructor(t,n,r,o,i,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=o,this.fields=i,this.cases=s,this.enumCases=a}toString(){return nt(this)}GetHashCode(){return od(this)}Equals(t){return Rs(this,t)}}function rn(e){return e.generics!=null?e.generics:[]}function od(e){const t=Dr(e.fullname),n=rn(e).map(od);return xo([t,...n])}function Rs(e,t){return e.fullname===""?t.fullname===""&&Os(hi(e),hi(t),([n,r],[o,i])=>n===o&&Rs(r,i)):e.fullname===t.fullname&&Os(rn(e),rn(t),Rs)}function Xn(e,t,n,r){return new Dt(e,t,n,r)}function ir(e,t,n,r){return new Dt(e,t,n,void 0,r)}function id(e,t,n,r){const o=new Dt(e,t,n,void 0,void 0,()=>{const i=n.prototype.cases();return r().map((s,a)=>new u0(o,a,i[a],s))});return o}function vr(e){return new Dt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function di(e){return new Dt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const c0=new Dt("System.Object"),fi=new Dt("System.String"),Mt=new Dt("System.Int32");function Sa(e){if(Array.isArray(e))return e[0];if(e instanceof Dt){const t=Ii(e);if(t!=null)return Sa(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function nt(e){const t=Ii(e);return t!=null?nt(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>nt(n)).join(",")+"]"}function d0(e){return Ii(e)!=null}function Ii(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function f0(e){return e.generics!=null&&e.generics.length>0}function sd(e){return e.enumCases!=null&&e.enumCases.length>0}function h0(e){return e.generics==null?e:new Dt(e.fullname,e.generics.map(()=>c0))}function m0(e){var t;return(t=e.generics)==null?void 0:t[0]}function lr(e){if(sd(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function p0(e,t){if(e.enumCases!=null)if(typeof t=="string"){for(const n of e.enumCases)if(n[0]===t)return n;throw new Error(`'${t}' was not found in ${e.fullname}`)}else{for(const n of e.enumCases)if(n[1]===t)return n;return["",t]}else throw new Error(`${e.fullname} is not an enum type`)}function ur(e,t){const n=parseInt(t,10);return p0(e,isNaN(n)?t:n)[1]}function g0(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function hi(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function w0(e){if(ad(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function y0(e){return e instanceof Dt?e.cases!=null:e instanceof z}function v0(e){return e instanceof Dt?e.fields!=null:e instanceof Te}function ad(e){return e.fullname.startsWith("System.Tuple")}function b0(e){return e.fields==null?[]:e.fields}function _0(e,t){const n=(e.fields||[]).length;if(t.length!==n)throw new Error(`Expected an array of length ${n} but got ${t.length}`);const r=e.declaringType.construct;return r==null?{}:(e.declaringType.cases?e.declaringType.cases().length==1:!1)?new r(...t):new r(e.tag,t)}function x0(e,t){const n=hi(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[o,i],s)=>(r[o]=t[s],r),{})}function C0(e,t){return e}const ld="Collection was empty.",S0="The input must be non-negative.",ud="The input sequence has an insufficient number of elements.";function Ea(e,t){return new Array(t)}function Hl(e,t){return e>t?e:t}function jl(e,t){return e<t?e:t}function ka(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function cd(e,t,n){const r=t.length|0,o=Ea(n,r);for(let i=0;i<=r-1;i++)Xt(o,i,e(i,ze(i,t)));return o}function pn(e,t,n){const r=t.length|0,o=Ea(n,r);for(let i=0;i<=r-1;i++)Xt(o,i,e(ze(i,t)));return o}function E0(e,t,n,r,o){const i=Ar(n,0)|0,s=Ar(yn(l=>i+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(o.Equals(t,ze(u,e)))return u|0;l=u+1;continue e}})(i)|0}function dd(e,t,n){return E0(t,e,void 0,void 0,n)>=0}function k0(e,t){const n=Ea(t,1);return Xt(n,0,e),n}function T0(e){return e.slice().reverse()}function Ta(e,t){return t.find(e)}function on(e,t,n){const r=[];for(let o=0;o<=t.length-1;o++){const i=e(ze(o,t));if(i!=null){const s=R(i);r.push(s)}}return me(n,Ke())?r:pn(o=>o,r,n)}function Oi(e,t,n){const r=e;return n.reduce(r,t)}function A0(e,t,n){return t==null}function is(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return ze(0,e)}function $0(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function ze(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function Xt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function fd(e,t){if(!(e<0||e>=t.length))return pt(t[e])}function hd(e,t,n){return t.reduceRight((r,o)=>e(o,r),n)}class yt extends Te{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+Kt("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const d=R(l),c=R(u);if(me(s.head,a.head)){o=d,i=c;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,o,i)=>{e:for(;;){const s=r,a=o,l=i,u=l.tail;if(u!=null){const d=R(u);if(s>18)return a|0;r=s+1,o=(a<<1)+mn(l.head)+631*s,i=d;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const s=o,a=i,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const d=R(l),c=R(u),p=wt(s.head,a.head)|0;if(p===0){o=d,i=c;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return N0(this)}[Symbol.iterator](){return _o(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}}class M0{constructor(t){this.xs=t,this.it=this.xs,this.current=Ke()}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current}"System.Collections.IEnumerator.get_Current"(){return this.current}"System.Collections.IEnumerator.MoveNext"(){const t=this,n=t.it.tail;if(n!=null){const r=R(n);return t.current=t.it.head,t.it=r,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=Ke()}Dispose(){}}function N0(e){return new M0(e)}function Qe(){return new yt(Ke(),void 0)}function So(e,t){return new yt(e,t)}function Eo(e){return e.tail==null}function md(e){return((n,r)=>{e:for(;;){const o=n,s=r.tail;if(s!=null){n=o+1,r=R(s);continue e}else return o|0}})(0,e)|0}function Aa(e){if(e.tail!=null)return e.head;throw new Error(ld+"\\nParameter name: list")}function Ot(e){const t=e.tail;if(t!=null)return R(t);throw new Error(ld+"\\nParameter name: list")}function Je(){return Qe()}function At(e,t){return So(e,t)}function ge(e){return So(e,Qe())}function xe(e){return Eo(e)}function pd(e){return md(e)}function ne(e){return Aa(e)}function be(e){return Ot(e)}function Rr(e){const t=md(e)|0,n=ka(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Eo(a)){Xt(n,s,Aa(a)),o=s+1,i=Ot(a);continue e}break}})(0,e),n}function vn(e,t,n){let r=t,o=n;for(;!Eo(o);)r=e(r,ne(o)),o=Ot(o);return r}function $a(e){return vn((t,n)=>So(n,t),Qe(),e)}function I0(e,t,n){return hd(e,Rr(t),n)}function mi(e,t){vn((n,r)=>{e(r)},void 0,t)}function He(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=So(ze(r,e),n);return n}function b(e){return He(e,Qe())}function O0(e){let t,n;if(Zt(e))return b(e);if(e instanceof yt)return e;{const r=Qe();let o=r;const i=Le(e);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"]();o=(t=o,n=new yt(l,void 0),t.tail=n,n)}}finally{Fe(i)}const s=o,a=Qe();return s.tail=a,Ot(r)}}function Fi(e,t){return vn((n,r)=>So(r,n),t,$a(e))}function ko(e,t){const n=Qe(),r=vn((i,s)=>{const a=new yt(e(s),void 0);return i.tail=a,a},n,t),o=Qe();return r.tail=o,Ot(n)}function gd(e,t){const n=Qe(),r=vn((i,s)=>{if(e(s)){const a=new yt(s,void 0);return i.tail=a,a}else return i},n,t),o=Qe();return r.tail=o,Ot(n)}function F0(e,t){const n=Qe(),r=Qe(),o=n,i=vn((l,u)=>{let d,c;const p=l[0],f=l[1];return e(u)?[(d=new yt(u,void 0),p.tail=d,d),f]:[p,(c=new yt(u,void 0),f.tail=c,c)]},[o,r],t),s=Qe();i[0].tail=s;const a=Qe();return i[1].tail=a,[Ot(o),Ot(r)]}function D0(e,t){const n=Qe(),r=vn((i,s)=>{const a=e(s);if(a==null)return i;{const l=new yt(R(a),void 0);return i.tail=l,l}},n,t),o=Qe();return r.tail=o,Ot(n)}function wd(e,t){const n=Rr(t);return n.sort(e),b(n)}function P0(e,t,n){return wd((r,o)=>n.Compare(e(r),e(o)),t)}function R0(e,t,n){return wd((r,o)=>n.Compare(e(r),e(o))*-1,t)}function L0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(Eo(r))throw new Error(ud+"\\nParameter name: list");e=n-1,t=Ot(r);continue e}}function H0(e,t){if(e<0)throw new Error(S0+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const d=s,c=a,p=l;if(d<=0)return c;if(Eo(p))throw new Error(ud+"\\nParameter name: list");s=d-1,a=(u=new yt(Aa(p),void 0),c.tail=u,u),l=Ot(p);continue e}},r=Qe(),o=n(e,r,t),i=Qe();return o.tail=i,Ot(r)}const E=V;function j0(e){const t=b([m("style",{children:[ba]}),m("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return m("div",{children:E.Children.toArray(Array.from(t))})}class B0{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,o=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(o)}}}Dispose(){}}class Di extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Di.prototype)}}class Ma{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Ma.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function un(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Di);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(si(n))}});else try{e(t)}catch(n){t.onError(si(n))}}}function V0(e,t){return un(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(o){n.onError(si(o))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function U0(e){return un(t=>t.onSuccess(e))}class W0{Bind(t,n){return V0(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return un(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let o=r.next();return this.While(()=>!o.done,this.Delay(()=>{const i=n(o.value);return o=r.next(),i}))}Return(t){return U0(t)}ReturnFrom(t){return t}TryFinally(t,n){return un(r=>{t({onSuccess:o=>{n(),r.onSuccess(o)},onError:o=>{n(),r.onError(o)},onCancel:o=>{n(),r.onCancel(o)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return un(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:o=>{try{n(o)(r)}catch(i){r.onError(si(i))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return un(t=>t.onSuccess(void 0))}}const at=new W0;function G0(e){return new yd(0,[e])}function z0(e){return new yd(1,[e])}class yd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function q0(e){return G0(e)}function Y0(e){return z0(e)}function ss(e){}const Z0=new B0;function K0(e){return un(t=>{e({onSuccess:n=>t.onSuccess(q0(n)),onError:n=>t.onSuccess(Y0(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function X0(e){return un(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Q0(e){return un(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Di)})})}function J0(e,t){return ep(e,t)}function vd(e,t){return J0(e,t)}function ep(e,t,n,r,o){typeof t!="function"&&(o=t,t=void 0);const i=new Ma;e({onSuccess:t||ss,onError:ss,onCancel:ss,cancelToken:o||Z0,trampoline:i})}class bd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class tp extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Na extends Te{constructor(t,n,r,o,i,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=o,this.overridenMimeType=i,this.overridenResponseType=s,this.timeout=a,this.content=l}}class hr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class _d extends Te{constructor(t,n,r,o,i,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=o,this.responseHeaders=i,this.content=s}}function np(e){throw new Error(e)}const rp="Enumeration already finished.",op="Enumeration has not started. Call MoveNext.",xd="The input sequence has an insufficient number of elements.",ip="Reset is not supported on this enumerator.";function sp(){throw new Error(ip)}function Ia(){throw new Error(op)}function Ls(){throw new Error(rp)}class ap{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=Le(t);try{for(;n<4&&o["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+It(o["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{Fe(o)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return _o(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function lp(e){return new ap(e)}class up{constructor(t,n,r){this.current=t,this.next=n,this.dispose=r}"System.Collections.Generic.IEnumerator`1.get_Current"(){return this.current()}"System.Collections.IEnumerator.get_Current"(){return this.current()}"System.Collections.IEnumerator.MoveNext"(){return this.next()}"System.Collections.IEnumerator.Reset"(){sp()}Dispose(){this.dispose()}}function Pi(e,t,n){return new up(e,t,n)}function cp(e){let t,n,r=!1,o=!1,i;const s=()=>{if(o=!0,n!=null){const a=R(n);try{Fe(a)}finally{n=void 0}}if(t!=null){const a=R(t);try{Fe(a)}finally{t=void 0}}};return Pi(()=>(r?o&&Ls():Ia(),i!=null?R(i):Ls()),()=>{let a;if(r||(r=!0),o)return!1;{let l;for(;l==null;){const u=t,d=n;if(u!=null)if(d!=null){const c=R(d);if(c["System.Collections.IEnumerator.MoveNext"]())i=pt(c["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{Fe(c)}finally{n=void 0}}else{const c=R(u);c["System.Collections.IEnumerator.MoveNext"]()?n=(a=c["System.Collections.Generic.IEnumerator`1.get_Current"](),Le(a)):(s(),l=!1)}else t=Le(e)}return R(l)}},()=>{o||s()})}function dp(e,t){return Pi(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Fe(t)}finally{}})}function Cd(e,t,n){let r=!1,o,i=pt(e());const s=()=>{if(i!=null){const l=R(i);try{n(l)}finally{i=void 0}}},a=()=>{try{s()}finally{o=void 0}};return Pi(()=>(r||Ia(),o!=null?R(o):Ls()),()=>{if(r||(r=!0),i!=null){const l=R(i);let u;try{u=t(l)}catch(d){throw a(),d}return u!=null?(o=u,!0):(a(),!1)}else return!1},s)}function fp(e,t){let n,r=t;return Pi(()=>{if(n!=null){const o=R(n)[0];return R(n)[1],o}else return Ia()},()=>(n=e(r),n!=null?(R(n)[0],r=R(n)[1],!0):!1),()=>{})}function hp(e,t){t==null&&np(e)}function Lr(e){return lp(e)}function An(e){return hp("source",e),Le(e)}function G(e){return Lr(()=>Le(e()))}function Oa(e){return Lr(()=>cp(e))}function mp(e,t){return Lr(()=>fp(e,t))}function Bl(){return G(()=>new Array(0))}function j(e){return G(()=>k0(e))}function Sd(e){return e instanceof yt?Rr(e):Array.from(e)}function Ue(e){return Zt(e)?b(e):e instanceof yt?e:O0(e)}function Ed(e,t,n){return Lr(()=>Cd(e,t,n))}function pp(e,t,n){return Lr(()=>{let r=-1;return Cd(e,o=>(r=r+1|0,t(r,o)),n)})}function ye(e,t){return Oa([e,t])}function gp(e,t){return Ed(()=>An(t),n=>{let r;for(;r==null&&n["System.Collections.IEnumerator.MoveNext"]();)r=e(n["System.Collections.Generic.IEnumerator`1.get_Current"]());return r},n=>{Fe(n)})}function wp(e,t,n){const r=An(t);try{const o=An(n);try{let i=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]();for(;i===0&&s&&a;)i=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),o["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,i===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=o["System.Collections.IEnumerator.MoveNext"]());return(i!==0?i:s?1:a?-1:0)|0}finally{Fe(o)}}finally{Fe(r)}}function cr(e,t,n){const r=An(t);try{let o=!1;for(;!o&&r["System.Collections.IEnumerator.MoveNext"]();)o=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Fe(r)}}function yp(e,t){return gp(n=>{if(e(n))return pt(n)},t)}function Fa(e,t,n){const r=An(n);try{let o=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)o=e(o,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return o}finally{Fe(r)}}function To(e,t){Fa((n,r)=>{e(r)},void 0,t)}function vp(e,t){Fa((n,r)=>(e(n,r),n+1|0),0,t)}function Nt(e,t){return Ed(()=>An(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?pt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Fe(n)})}function bp(e){return G(()=>T0(Sd(e)))}function _p(e,t){return Lr(()=>{const n=An(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(xd+"\\nParameter name: source");return dp(()=>{},n)}catch(r){throw Fe(n),r}})}function xp(e,t){return pp(()=>An(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return pt(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(xd+"\\nParameter name: source")}else return},n=>{Fe(n)})}function kd(e,t){return G(()=>Oa(Nt(e,t)))}class Td{constructor(t,n){this.k=t,this.v=n}}function pi(e,t){return new Td(e,t)}function ct(e){return e.k}function Ct(e){return e.v}class Ze extends Td{constructor(t,n,r,o,i){super(t,n),this.left=r,this.right=o,this.h=i|0}}function Xo(e,t,n,r,o){return new Ze(e,t,n,r,o)}function lt(e){return e.left}function ut(e){return e.right}function Wn(e){return e.h}function Ad(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=R(r);if(o instanceof Ze){const i=o;e=Ad(n+1,lt(i)),t=ut(i);continue e}else return n+1|0}else return n|0}}function Cp(e){return Ad(0,e)}function Rt(e,t,n,r){let o,i,s;const a=e;if(a!=null){const c=R(a);s=c instanceof Ze?(o=c,Wn(o)):1}else s=0;let l;const u=r;if(u!=null){const c=R(u);l=c instanceof Ze?(i=c,Wn(i)):1}else l=0;const d=(s<l?l:s)|0;return d===0?pi(t,n):Xo(t,n,e,r,d+1)}function Vl(e,t,n,r){let o,i,s,a,l,u,d,c,p;const f=e;if(f!=null){const w=R(f);p=w instanceof Ze?(o=w,Wn(o)):1}else p=0;let h;const g=r;if(g!=null){const w=R(g);h=w instanceof Ze?(i=w,Wn(i)):1}else h=0;if(h>p+2){const w=R(r);if(w instanceof Ze){const _=w;if(s=lt(_),(s!=null?(a=R(s),a instanceof Ze?(l=a,Wn(l)):1):0)>p+1){const C=R(lt(_));if(C instanceof Ze){const S=C;return Rt(Rt(e,t,n,lt(S)),ct(S),Ct(S),Rt(ut(S),ct(_),Ct(_),ut(_)))}else throw new Error("internal error: Map.rebalance")}else return Rt(Rt(e,t,n,lt(_)),ct(_),Ct(_),ut(_))}else throw new Error("internal error: Map.rebalance")}else if(p>h+2){const w=R(e);if(w instanceof Ze){const _=w;if(u=ut(_),(u!=null?(d=R(u),d instanceof Ze?(c=d,Wn(c)):1):0)>h+1){const C=R(ut(_));if(C instanceof Ze){const S=C;return Rt(Rt(lt(_),ct(_),Ct(_),lt(S)),ct(S),Ct(S),Rt(ut(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Rt(lt(_),ct(_),Ct(_),Rt(ut(_),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Rt(e,t,n,r)}function $r(e,t,n,r){if(r!=null){const o=R(r),i=e.Compare(t,ct(o))|0;if(o instanceof Ze){const s=o;return i<0?Vl($r(e,t,n,lt(s)),ct(s),Ct(s),ut(s)):i===0?Xo(t,n,lt(s),ut(s),Wn(s)):Vl(lt(s),ct(s),Ct(s),$r(e,t,n,ut(s)))}else return i<0?Xo(t,n,void 0,r,2):i===0?pi(t,n):Xo(t,n,r,void 0,2)}else return pi(t,n)}function $d(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=R(i),a=r.Compare(o,ct(s))|0;if(a===0)return pt(Ct(s));if(s instanceof Ze){const l=s;e=r,t=o,n=a<0?lt(l):ut(l);continue e}else return}else return}}function Sp(e,t,n){const r=$d(e,t,n);if(r==null)throw new Error;return R(r)}function Ep(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=R(i),a=r.Compare(o,ct(s))|0;if(s instanceof Ze){const l=s;if(a<0){e=r,t=o,n=lt(l);continue e}else{if(a===0)return!0;e=r,t=o,n=ut(l);continue e}}else return a===0}else return!1}}function Md(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=R(r);if(o instanceof Ze){const i=o;Md(n,lt(i)),n(ct(i),Ct(i)),e=n,t=ut(i);continue e}else n(ct(o),Ct(o))}break}}function kp(e,t){Md(e,t)}function Tp(e,t,n){let r=n;kp((o,i)=>{Xt(t,r,[o,i]),r=r+1|0},e)}function Ap(e,t){return vn((n,r)=>$r(e,r[0],r[1],n),void 0,t)}function $p(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){const s=i["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=$r(r,s[0],s[1],o),n=i;continue e}else return o}}function Mp(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ze(r,t);n=$r(e,o[0],o[1],n)}return n}function Nd(e,t){if(Zt(t))return Mp(e,t);if(t instanceof yt)return Ap(e,t);{const n=Le(t);try{return $p(e,void 0,n)}finally{Fe(n)}}}class Np extends Te{constructor(t,n){super(),this.stack=t,this.started=n}}function Id(e){e:for(;;){const t=e;if(xe(t))return Je();{const n=be(t),r=ne(t);if(r!=null){const o=R(r);if(o instanceof Ze){const i=o;e=He([lt(i),pi(ct(i),Ct(i)),ut(i)],n);continue e}else return t}else{e=n;continue e}}}}function Ul(e){return new Np(Id(ge(e)),!1)}function Ip(){throw new Error("enumeration not started")}function Op(){throw new Error("enumeration already finished")}function Wl(e){if(e.started){const t=e.stack;if(xe(t))return Op();if(ne(t)!=null){const n=R(ne(t));if(n instanceof Ze)throw new Error("Please report error: Map iterator, unexpected stack for current");return[ct(n),Ct(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return Ip()}function Fp(e){if(e.started){const t=e.stack;if(xe(t))return!1;if(ne(t)!=null){if(R(ne(t))instanceof Ze)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Id(be(t)),!xe(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!xe(e.stack)}function Gl(e){let t=Ul(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Wl(t)},"System.Collections.IEnumerator.get_Current"(){return Wl(t)},"System.Collections.IEnumerator.MoveNext"(){return Fp(t)},"System.Collections.IEnumerator.Reset"(){t=Ul(e)},Dispose(){}}}class gi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Lp(this)|0}Equals(t){const n=this;if(t instanceof gi){const r=t,o=Le(n);try{const i=Le(r);try{const s=()=>{const a=o["System.Collections.IEnumerator.MoveNext"]();if(a===i["System.Collections.IEnumerator.MoveNext"]())if(a){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"](),u=i["System.Collections.Generic.IEnumerator`1.get_Current"]();return me(l[0],u[0])&&me(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{Fe(i)}}finally{Fe(o)}}else return!1}toString(){return"map ["+Kt("; ",Nt(n=>rd("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Gl(this.tree)}[Symbol.iterator](){return _o(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Gl(this.tree)}CompareTo(t){const n=this;if(t instanceof gi)return wp((o,i)=>{const s=n.comparer.Compare(o[0],i[0])|0;return(s!==0?s:wt(o[1],i[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return ql(n,t[0])&&me(zl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Tp(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return as(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return as(this)|0}get size(){return as(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return Nt(n=>[n[0],n[1]],this)}get(t){return zl(this,t)}has(t){return ql(this,t)}keys(){return Nt(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Nt(n=>n[1],this)}forEach(t,n){const r=this;To(o=>{t(o[1],o[0],r)},r)}}function Ri(e,t){return new gi(e,t)}function Dp(e){return Ri(e,void 0)}function Pp(e,t,n){return Ri(e.comparer,$r(e.comparer,t,n,e.tree))}function zl(e,t){return Sp(e.comparer,t,e.tree)}function as(e){return Cp(e.tree)}function ql(e,t){return Ep(e.comparer,t,e.tree)}function Rp(e,t){return $d(e.comparer,t,e.tree)}function Lp(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=Le(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,mn(o[0]))|0,n=t(n,mn(o[1]))|0}}finally{Fe(r)}return n|0}function Hp(e,t,n){return Pp(n,e,t)}function jp(e,t){return Rp(t,e)}function Bp(e,t){return Ri(t,Nd(t,e))}function Vp(e,t){return Ri(t,Nd(t,e))}function Od(e){return Dp(e)}const Dn=new Na("",new bd(0,[]),Je(),!1,void 0,void 0,void 0,new tp(0,[]));new _d(0,"","","",Od({Compare:va}),new hr(0,[""]));function Yl(e,t){return xa(t)?new Array(0):i0(t,[e],void 0,0)}function Up(e){switch(e.tag){case 1:return"POST";case 3:return"PATCH";case 2:return"PUT";case 4:return"DELETE";case 6:return"OPTIONS";case 5:return"HEAD";default:return"GET"}}function Wp(e){return new Na(e,Dn.method,Dn.headers,Dn.withCredentials,Dn.overridenMimeType,Dn.overridenResponseType,Dn.timeout,Dn.content)}function Gp(e,t){return new Na(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function zp(e){return X0(t=>{const n=new XMLHttpRequest;n.open(Up(e.method),e.url),n.onreadystatechange=()=>{let l,u,d,c,p,f,h;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),d=n.status|0,c=n.responseType,p=(f=n.responseType,f===""?new hr(0,[n.responseText]):f==="text"?new hr(0,[n.responseText]):f==="arraybuffer"?new hr(2,[n.response]):f==="blob"?new hr(1,[n.response]):new hr(3,[n.response])),h=Vp(on(g=>{const w=b(Yl(":",g));if(!xe(w))return[ne(w).toLocaleLowerCase(),Kt(":",be(w)).trim()]},Yl(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:va}),new _d(d,l,c,n.responseURL,h,p)))};const r=Le(e.headers);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const l=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n.setRequestHeader(l.fields[0],l.fields[1])}}finally{Fe(r)}n.withCredentials=e.withCredentials;const o=e.overridenMimeType;if(o!=null){const l=o;n.overrideMimeType(l)}const i=e.overridenResponseType;if(i!=null)switch(i.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const s=e.timeout;if(s!=null){const l=s|0;n.timeout=l|0}const a=e.content;switch(a.tag){case 1:{n.send(pt(a.fields[0]));break}case 3:{n.send(pt(a.fields[0]));break}case 2:{n.send(pt(a.fields[0]));break}default:n.send()}})}function qp(e){return new A(0,[e])}function Fd(e){return new A(1,[e])}class A extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function gn(e,t){return t.tag===0?qp(e(t.fields[0])):Fd(t.fields[0])}function Yp(e,t){return t.tag===0?e(t.fields[0]):Fd(t.fields[0])}const Bn={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ls(e,t){return e.replace(/[a-z]?[A-Z]/g,n=>n.length===1?n.toLowerCase():n.charAt(0)+t+n.charAt(1).toLowerCase())}function Zp(e,t){switch(t){case Bn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Bn.SnakeCase:return ls(e,"_");case Bn.SnakeCaseAllCaps:return ls(e,"_").toUpperCase();case Bn.KebabCase:return ls(e,"-");case Bn.None:default:return e}}function sr(e,t=Bn.None){const n={},r=t;function o(s){throw new Error("Cannot infer key and value of "+String(s))}function i(s,a,l){s=Zp(s,a),n[s]=l}for(let s of e){let a=Bn.None;if(s==null&&o(s),s instanceof z){const l=s.cases()[s.tag];s=s.fields.length===0?l:[l].concat(s.fields),a=r}if(Array.isArray(s))switch(s.length){case 0:o(s);break;case 1:i(s[0],a,!0);break;case 2:const l=s[1];i(s[0],a,l);break;default:i(s[0],a,s.slice(1))}else typeof s=="string"?i(s,a,!0):o(s)}return n}function Kp(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Xp(e,t){return t.has(e)?!1:(t.add(e),!0)}function Dd(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Z extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class Pd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Zl(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function Qp(e,t){switch(e.tag){case 2:return Jc(Zl(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Zl(t)}}const Jp=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Kl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,eg=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function tg(e){function t(r){return r.replace(Kl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(Jp.test(n))return s0(n,"{","}","(",")");if(Kl.test(n))return t(n);if(eg.test(n))return t(n.replace(/[\{\},]|0x/g,""));throw new Error("Guid should contain 32 digits with 4 dashes: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")}function ng(e,t){try{return t.contents=tg(e),!0}catch{return!1}}var Hs;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(Hs||(Hs={}));function rg(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function Xl(e,t){switch(t){case 8:return e?[0,255]:[-128,127];case 16:return e?[0,65535]:[-32768,32767];case 32:return e?[0,4294967295]:[-2147483648,2147483647];default:throw new Error("Invalid bit size.")}}function og(e){switch(e){case 2:return/[^0-1]/;case 8:return/[^0-7]/;case 10:return/[^0-9]/;case 16:return/[^0-9a-fA-F]/;default:throw new Error("Invalid Base.")}}function ig(e,t){if(t&Hs.AllowHexSpecifier)return 16;switch(e){case"0b":case"0B":return 2;case"0o":case"0O":return 8;case"0x":case"0X":return 16;default:return 10}}function sg(e,t,n){const o=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(o!=null){const[,,i,s]=o;if(n=n||ig(i,t),!og(n).test(s))return rg(o,n)}return null}function ag(e,t,n,r,o){const i=sg(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=Xl(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,d]=Xl(n,r);if(s>=u&&s<=d)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function Hr(e,t,n,r,o){try{return o.contents=ag(e,t,n,r),!0}catch{return!1}}function Rd(e,t){lg(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function lg(e){if(e!=null&&e!==0){if(e%6e4!==0)throw new Error("Offset must be specified in whole minutes.");if(Math.abs(e/36e5)>14)throw new Error("Offset must be within plus or minus 14 hours.")}}function ug(){return Rd(-621355968e5,0)}function cg(e){const[t,n]=Xc(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Rd(t.getTime(),r)}function dg(e,t){try{return t.contents=cg(e),!0}catch{return!1}}function Ql(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return fg(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],o=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+o}function fg(e){return Number(BigInt(e)/10000n)}function hg(e){const t=e.search("\\."),n=e.search("\\:");if(t===-1&&n===-1){const r=parseInt(e,0);if(isNaN(r))throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`);return Ql(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let o=0,i=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(o=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:i=+r[8]*100;break;case 2:i=+r[8]*10;break;case 3:i=+r[8];break;case 4:i=+r[8]/10;break;case 5:i=+r[8]/100;break;case 6:i=+r[8]/1e3;break;case 7:i=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Ql(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function mg(e,t){try{return t.contents=hg(e),!0}catch{return!1}}class pg{constructor(t,n){const r=new kt(Ke());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=Le(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const i=o["System.Collections.Generic.IEnumerator`1.get_Current"]();us(r.contents,i)}}finally{Fe(o)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Le(this)}GetEnumerator(){return Le(Oa(this.hashMap.values()))}[Symbol.iterator](){return _o(Le(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){us(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){Jl(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return tu(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){vp((o,i)=>{Xt(t,n+o,i)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return eu(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return nu(this,t)}get size(){return eu(this)|0}add(t){const n=this;return us(n,t),n}clear(){Jl(this)}delete(t){return nu(this,t)}has(t){return tu(this,t)}keys(){return Nt(n=>n,this)}values(){return Nt(n=>n,this)}entries(){return Nt(n=>[n,n],this)}forEach(t,n){const r=this;To(o=>{t(o,o,r)},r)}}function Da(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=Ke();return r=[Kp(e.hashMap,n,new kt(()=>o,i=>{o=i})),o],r[0]?[!0,n,r[1].findIndex(i=>e.comparer.Equals(t,i))]:[!1,n,-1]}function Jl(e){e.hashMap.clear()}function eu(e){let t=0,n=Le(e.hashMap.values());try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=t+r.length|0}}finally{Fe(n)}return t|0}function us(e,t){const n=Da(e,t);return n[0]?n[2]>-1?!1:(Dd(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function tu(e,t){const n=Da(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function nu(e,t){const n=Da(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Dd(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class Ld{constructor(t){this.k=t}}function _t(e){return new Ld(e)}function se(e){return e.k}class Ce extends Ld{constructor(t,n,r,o){super(t),this.left=n,this.right=r,this.h=o|0}}function xt(e,t,n,r){return new Ce(e,t,n,r)}function Ie(e){return e.left}function $e(e){return e.right}function wr(e){return e.h}function Hd(e,t){e:for(;;){const n=e,r=t;if(n!=null){const o=R(n);if(o instanceof Ce){const i=o;e=Ie(i),t=Hd($e(i),r+1);continue e}else return r+1|0}else return r|0}}function gg(e){return Hd(e,0)}function Lt(e,t,n){let r,o,i;const s=e;if(s!=null){const d=R(s);i=d instanceof Ce?(r=d,wr(r)):1}else i=0;let a;const l=n;if(l!=null){const d=R(l);a=d instanceof Ce?(o=d,wr(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?_t(t):xt(t,e,n,u+1)}function ru(e,t,n){let r,o,i,s,a,l,u,d,c;const p=e;if(p!=null){const g=R(p);c=g instanceof Ce?(r=g,wr(r)):1}else c=0;let f;const h=n;if(h!=null){const g=R(h);f=g instanceof Ce?(o=g,wr(o)):1}else f=0;if(f>c+2){const g=R(n);if(g instanceof Ce){const w=g;if(i=Ie(w),(i!=null?(s=R(i),s instanceof Ce?(a=s,wr(a)):1):0)>c+1){const _=R(Ie(w));if(_ instanceof Ce){const C=_;return Lt(Lt(e,t,Ie(C)),se(C),Lt($e(C),se(w),$e(w)))}else throw new Error("internal error: Set.rebalance")}else return Lt(Lt(e,t,Ie(w)),se(w),$e(w))}else throw new Error("internal error: Set.rebalance")}else if(c>f+2){const g=R(e);if(g instanceof Ce){const w=g;if(l=$e(w),(l!=null?(u=R(l),u instanceof Ce?(d=u,wr(d)):1):0)>f+1){const _=R($e(w));if(_ instanceof Ce){const C=_;return Lt(Lt(Ie(w),se(w),Ie(C)),se(C),Lt($e(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return Lt(Ie(w),se(w),Lt($e(w),t,n))}else throw new Error("internal error: Set.rebalance")}else return Lt(e,t,n)}function Mr(e,t,n){if(n!=null){const r=R(n),o=e.Compare(t,se(r))|0;if(r instanceof Ce){const i=r;return o<0?ru(Mr(e,t,Ie(i)),se(i),$e(i)):o===0?n:ru(Ie(i),se(i),Mr(e,t,$e(i)))}else{const i=e.Compare(t,se(r))|0;return i<0?xt(t,void 0,n,2):i===0?n:xt(t,n,void 0,2)}}else return _t(t)}function jd(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i!=null){const s=R(i),a=r.Compare(o,se(s))|0;if(s instanceof Ce){const l=s;if(a<0){e=r,t=o,n=Ie(l);continue e}else{if(a===0)return!0;e=r,t=o,n=$e(l);continue e}}else return a===0}else return!1}}function Bd(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=R(r);if(o instanceof Ce){const i=o;Bd(n,Ie(i)),n(se(i)),e=n,t=$e(i);continue e}else n(se(o))}break}}class wg extends Te{constructor(t,n){super(),this.stack=t,this.started=n}}function Vd(e){e:for(;;){const t=e;if(xe(t))return Je();{const n=ne(t),r=be(t);if(n!=null){const o=R(n);if(o instanceof Ce){const i=o;e=He([Ie(i),_t(se(i)),$e(i)],r);continue e}else return t}else{e=r;continue e}}}}function ou(e){return new wg(Vd(ge(e)),!1)}function yg(){throw new Error("Enumeration not started")}function vg(){throw new Error("Enumeration already started")}function iu(e){if(e.started){const t=e.stack;if(xe(t))return vg();if(ne(t)!=null){const n=R(ne(t));return se(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return yg()}function bg(e){if(e.started){const t=e.stack;if(xe(t))return!1;if(ne(t)!=null){if(R(ne(t))instanceof Ce)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Vd(be(t)),!xe(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!xe(e.stack)}function su(e){let t=ou(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return iu(t)},"System.Collections.IEnumerator.get_Current"(){return iu(t)},"System.Collections.IEnumerator.MoveNext"(){return bg(t)},"System.Collections.IEnumerator.Reset"(){t=ou(e)},Dispose(){}}}function _g(e,t,n){e:for(;;){const r=e,o=t,i=n;if(xe(o))return xe(i)?0:-1;if(xe(i))return 1;if(ne(i)!=null)if(ne(o)!=null){const s=R(ne(o)),a=R(ne(i));if(s instanceof Ce){const l=s;if(Ie(l)==null)if(a instanceof Ce){const u=a;if(Ie(u)==null){const d=r.Compare(se(l),se(u))|0;if(d!==0)return d|0;e=r,t=At($e(l),be(o)),n=At($e(u),be(i));continue e}else{let d,c,p,f,h;switch(xe(o)?xe(i)?d=2:ne(i)!=null?(d=1,f=be(i),h=R(ne(i))):d=2:ne(o)!=null?(d=0,c=be(o),p=R(ne(o))):xe(i)?d=2:ne(i)!=null?(d=1,f=be(i),h=R(ne(i))):d=2,d){case 0:if(p instanceof Ce){const g=p;e=r,t=He([Ie(g),xt(se(g),void 0,$e(g),0)],c),n=i;continue e}else{e=r,t=He([void 0,_t(se(p))],c),n=i;continue e}case 1:if(h instanceof Ce){const g=h;e=r,t=o,n=He([Ie(g),xt(se(g),void 0,$e(g),0)],f);continue e}else{e=r,t=o,n=He([void 0,_t(se(h))],f);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(se(l),se(a))|0;if(u!==0)return u|0;e=r,t=At($e(l),be(o)),n=At(void 0,be(i));continue e}else{let u,d,c,p,f;switch(xe(o)?xe(i)?u=2:ne(i)!=null?(u=1,p=be(i),f=R(ne(i))):u=2:ne(o)!=null?(u=0,d=be(o),c=R(ne(o))):xe(i)?u=2:ne(i)!=null?(u=1,p=be(i),f=R(ne(i))):u=2,u){case 0:if(c instanceof Ce){const h=c;e=r,t=He([Ie(h),xt(se(h),void 0,$e(h),0)],d),n=i;continue e}else{e=r,t=He([void 0,_t(se(c))],d),n=i;continue e}case 1:if(f instanceof Ce){const h=f;e=r,t=o,n=He([Ie(h),xt(se(h),void 0,$e(h),0)],p);continue e}else{e=r,t=o,n=He([void 0,_t(se(f))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Ce){const l=a;if(Ie(l)==null){const u=r.Compare(se(s),se(l))|0;if(u!==0)return u|0;e=r,t=At(void 0,be(o)),n=At($e(l),be(i));continue e}else{let u,d,c,p,f;switch(xe(o)?xe(i)?u=2:ne(i)!=null?(u=1,p=be(i),f=R(ne(i))):u=2:ne(o)!=null?(u=0,d=be(o),c=R(ne(o))):xe(i)?u=2:ne(i)!=null?(u=1,p=be(i),f=R(ne(i))):u=2,u){case 0:if(c instanceof Ce){const h=c;e=r,t=He([Ie(h),xt(se(h),void 0,$e(h),0)],d),n=i;continue e}else{e=r,t=He([void 0,_t(se(c))],d),n=i;continue e}case 1:if(f instanceof Ce){const h=f;e=r,t=o,n=He([Ie(h),xt(se(h),void 0,$e(h),0)],p);continue e}else{e=r,t=o,n=He([void 0,_t(se(f))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(se(s),se(a))|0;if(l!==0)return l|0;e=r,t=be(o),n=be(i);continue e}}else{R(ne(i));let s,a,l,u,d;switch(xe(o)?xe(i)?s=2:ne(i)!=null?(s=1,u=be(i),d=R(ne(i))):s=2:ne(o)!=null?(s=0,a=be(o),l=R(ne(o))):xe(i)?s=2:ne(i)!=null?(s=1,u=be(i),d=R(ne(i))):s=2,s){case 0:if(l instanceof Ce){const c=l;e=r,t=He([Ie(c),xt(se(c),void 0,$e(c),0)],a),n=i;continue e}else{e=r,t=He([void 0,_t(se(l))],a),n=i;continue e}case 1:if(d instanceof Ce){const c=d;e=r,t=o,n=He([Ie(c),xt(se(c),void 0,$e(c),0)],u);continue e}else{e=r,t=o,n=He([void 0,_t(se(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(ne(o)!=null){R(ne(o));let s,a,l,u,d;switch(xe(o)?xe(i)?s=2:ne(i)!=null?(s=1,u=be(i),d=R(ne(i))):s=2:ne(o)!=null?(s=0,a=be(o),l=R(ne(o))):xe(i)?s=2:ne(i)!=null?(s=1,u=be(i),d=R(ne(i))):s=2,s){case 0:if(l instanceof Ce){const c=l;e=r,t=He([Ie(c),xt(se(c),void 0,$e(c),0)],a),n=i;continue e}else{e=r,t=He([void 0,_t(se(l))],a),n=i;continue e}case 1:if(d instanceof Ce){const c=d;e=r,t=o,n=He([Ie(c),xt(se(c),void 0,$e(c),0)],u);continue e}else{e=r,t=o,n=He([void 0,_t(se(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=be(o),n=be(i);continue e}}}function au(e,t,n){return t==null?n==null?0:-1:n==null?1:_g(e,ge(t),ge(n))|0}function xg(e,t,n){let r=n;Bd(o=>{Xt(t,r,o),r=r+1|0},e)}function Cg(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Mr(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Sg(e,t){return Oi((n,r)=>Mr(e,r,n),void 0,t)}function Eg(e,t){return vn((n,r)=>Mr(e,r,n),void 0,t)}function Ud(e,t){if(Zt(t))return Sg(e,t);if(t instanceof yt)return Eg(e,t);{const n=Le(t);try{return Cg(e,void 0,n)}finally{Fe(n)}}}class Pa{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Ag(this)|0}Equals(t){let n;const r=this;return t instanceof Pa&&(n=t,au(br(r),Ht(r),Ht(n))===0)}toString(){return"set ["+Kt("; ",Nt(n=>It(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return au(br(n),Ht(n),Ht(t))|0}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("ReadOnlyCollection")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return jd(br(n),t,Ht(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){xg(Ht(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return cs(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return cs(this)|0}GetEnumerator(){return su(Ht(this))}[Symbol.iterator](){return _o(Le(this))}"System.Collections.IEnumerable.GetEnumerator"(){return su(Ht(this))}get size(){return cs(this)|0}add(t){throw new Error("Set cannot be mutated")}clear(){throw new Error("Set cannot be mutated")}delete(t){throw new Error("Set cannot be mutated")}has(t){return Wd(this,t)}keys(){return Nt(n=>n,this)}values(){return Nt(n=>n,this)}entries(){return Nt(n=>[n,n],this)}forEach(t,n){const r=this;To(o=>{t(o,o,r)},r)}}function Li(e,t){return new Pa(e,t)}function br(e){return e.comparer}function Ht(e){return e.tree}function kg(e){return Li(e,void 0)}function Tg(e,t){return Li(br(e),Mr(br(e),t,Ht(e)))}function cs(e){return gg(Ht(e))}function Wd(e,t){return jd(br(e),t,Ht(e))}function Ag(e){let t=0;const n=Le(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+mn(r)+631|0}}finally{Fe(n)}return Math.abs(t)|0}function js(e,t){return Wd(t,e)}function $g(e,t){return Tg(t,e)}function Mg(e){return kg(e)}function Ng(e,t){return Li(t,Ud(t,e))}function Ig(e,t){return Li(t,Ud(t,e))}function Kr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
5
5
  `:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
6
- `:" ")}}function x0(e,t){const n=t.tag===2?ur(t.fields[0],t.fields[1],!0):t.tag===1?ur(t.fields[0],t.fields[1],!1)+`
7
- Reason: `+t.fields[2]:t.tag===3?ur(t.fields[0],t.fields[1],!0):t.tag===4?ur(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
6
+ `:" ")}}function Og(e,t){const n=t.tag===2?Kr(t.fields[0],t.fields[1],!0):t.tag===1?Kr(t.fields[0],t.fields[1],!1)+`
7
+ Reason: `+t.fields[2]:t.tag===3?Kr(t.fields[0],t.fields[1],!0):t.tag===4?Kr(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
8
8
  `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
9
9
 
10
- `+It(`
10
+ `+Kt(`
11
11
 
12
- `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:ur(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function ku(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new b(1,[x0(i[0],i[1])])}else return new b(0,[r.fields[0]])}function S0(e,t){try{return ku("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new b(1,["Given an invalid JSON: "+n.message]);throw n}}function Tu(e,t){return typeof t=="string"?new b(0,[t]):new b(1,[[e,new O(0,["a string",t])]])}function E0(e,t){if(typeof t=="string"){const n=t;return n.length===1?new b(0,[n[0]]):new b(1,[[e,new O(0,["a single character string",t])]])}else return new b(1,[[e,new O(0,["a char",t])]])}function k0(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[zh(t,new Tt(()=>r,i=>{r=i})),r],n[0]?new b(0,[n[1]]):new b(1,[[e,new O(0,["a guid",t])]])}else return new b(1,[[e,new O(0,["a guid",t])]])}function T0(e,t){return t==null?new b(0,[void 0]):new b(1,[[e,new O(0,["null",t])]])}const cs=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new b(0,[(i+128&255)-128]):new b(1,[[n,new O(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new b(1,[[n,new O(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[rr(r,511,!1,8,new Tt(()=>o,a=>{o=a|0})),o],i[0]?new b(0,[i[1]]):new b(1,[[n,new O(0,["a sbyte",r])]])}else return new b(1,[[n,new O(0,["a sbyte",r])]])},ds=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new b(0,[i&255]):new b(1,[[n,new O(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new b(1,[[n,new O(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[rr(r,511,!0,8,new Tt(()=>o,a=>{o=a})),o],i[0]?new b(0,[i[1]]):new b(1,[[n,new O(0,["a byte",r])]])}else return new b(1,[[n,new O(0,["a byte",r])]])},fs=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new b(0,[(i+32768&65535)-32768]):new b(1,[[n,new O(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new b(1,[[n,new O(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[rr(r,511,!1,16,new Tt(()=>o,a=>{o=a|0})),o],i[0]?new b(0,[i[1]]):new b(1,[[n,new O(0,["an int16",r])]])}else return new b(1,[[n,new O(0,["an int16",r])]])},hs=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new b(0,[i&65535]):new b(1,[[n,new O(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new b(1,[[n,new O(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[rr(r,511,!0,16,new Tt(()=>o,a=>{o=a})),o],i[0]?new b(0,[i[1]]):new b(1,[[n,new O(0,["an uint16",r])]])}else return new b(1,[[n,new O(0,["an uint16",r])]])},ms=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new b(0,[~~i]):new b(1,[[n,new O(1,["an int",i,"Value was either too large or too small for an int"])]]):new b(1,[[n,new O(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[rr(r,511,!1,32,new Tt(()=>o,a=>{o=a|0})),o],i[0]?new b(0,[i[1]]):new b(1,[[n,new O(0,["an int",r])]])}else return new b(1,[[n,new O(0,["an int",r])]])},ps=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new b(0,[i>>>0]):new b(1,[[n,new O(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new b(1,[[n,new O(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[rr(r,511,!0,32,new Tt(()=>o,a=>{o=a})),o],i[0]?new b(0,[i[1]]):new b(1,[[n,new O(0,["an uint32",r])]])}else return new b(1,[[n,new O(0,["an uint32",r])]])};function A0(e,t){return typeof t=="boolean"?new b(0,[t]):new b(1,[[e,new O(0,["a boolean",t])]])}function M0(e,t){return typeof t=="number"?new b(0,[t]):new b(1,[[e,new O(0,["a float",t])]])}function N0(e,t){return typeof t=="number"?new b(0,[t]):new b(1,[[e,new O(0,["a float32",t])]])}function $0(e,t){if(typeof t=="string"){let n,r=Ld();return n=[Ud(t,new Tt(()=>r,i=>{r=i})),r],n[0]?new b(0,[jd(n[1])]):new b(1,[[e,new O(0,["a datetime",t])]])}else return new b(1,[[e,new O(0,["a datetime",t])]])}function D0(e,t){if(typeof t=="string"){let n,r=e0();return n=[n0(t,new Tt(()=>r,i=>{r=i})),r],n[0]?new b(0,[n[1]]):new b(1,[[e,new O(0,["a datetimeoffset",t])]])}else return new b(1,[[e,new O(0,["a datetime",t])]])}function I0(e,t){if(typeof t=="string"){let n,r=0;return n=[o0(t,new Tt(()=>r,i=>{r=i})),r],n[0]?new b(0,[n[1]]):new b(1,[[e,new O(0,["a timespan",t])]])}else return new b(1,[[e,new O(0,["a timespan",t])]])}function gs(e,t,n,r){let i;const o=n+".["+Nt(e)+"]";if(Array.isArray(r)){const a=r;return e<a.length?t(o,Re(e,a)):new b(1,[[o,new O(5,["a longer array. Need index `"+Nt(e)+"` but there are only `"+(i=a.length,Nt(i))+"` entries",r])]])}else return new b(1,[[o,new O(0,["an array",r])]])}function O0(e,t,n){return n==null?new b(0,[void 0]):Kt(mt,e(t,n))}function ws(e,t,n){if(Array.isArray(n)){let r=-1;return Kt(Xo,vi((i,o)=>{if(r=r+1|0,i.tag===0){const a=e(t+".["+Nt(r)+"]",o);return a.tag===0?new b(0,[ft(a.fields[0],i.fields[0])]):new b(1,[a.fields[0]])}else return i},new b(0,[je()]),n))}else return new b(1,[[t,new O(0,["a list",n])]])}function P0(e,t,n){if(Array.isArray(n)){let r=-1;return Kt(fh,vi((i,o)=>{if(r=r+1|0,i.tag===0){const a=e(t+".["+Nt(r)+"]",o);return a.tag===0?new b(0,[tt([a.fields[0]],i.fields[0])]):new b(1,[a.fields[0]])}else return i},new b(0,[[]]),n))}else return new b(1,[[t,new O(0,["a seq",n])]])}function _s(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return vi((o,a)=>{if(r=r+1|0,o.tag===0){const s=o.fields[0],l=e(t+".["+Nt(r)+"]",a);return l.tag===0?(Zt(s,r,l.fields[0]),new b(0,[s])):new b(1,[l.fields[0]])}else return o},new b(0,[Zo(new Array(i.length),0,i.length,null)]),i)}else return new b(1,[[t,new O(0,["an array",n])]])}function F0(e,t,n){return((i,o)=>{e:for(;;){const a=i,s=o;if(le(a))return new b(1,[[t,new O(7,[s])]]);{const l=ku(t,$e(U(a)),n);if(l.tag===1){i=se(a),o=bi(s,he(l.fields[0]));continue e}else return new b(0,[l.fields[0]])}}})(e,je())}function R0(e,t,n){return new b(0,[e])}function ys(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new b(1,[i.fields[0]])}function L0(e,t,n,r){const i=t(n,r);return i.tag===1?new b(1,[i.fields[0]]):new b(0,[e(i.fields[0])])}function H0(e,t){let n;const r=e;return n=i=>o=>gs(0,r,i,o),i=>o=>ys(so(a=>{let s;const l=t;return s=u=>d=>gs(1,l,u,d),u=>d=>ys((c,m,h)=>R0([a,c]),$e(s),u,d)}),$e(n),i,o)}function U0(e){return Oh(e,{Compare:nt})}function j0(e){return C0(e,{Compare:nt})}function V0(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Kl((r,i)=>{const o=r[0];return i.tag===0?Kt(a=>ft(a,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new b(0,[je()])):new b(1,[[t,new O(0,["an object",n])]])}function W0(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?lu((i,o)=>{if(i.tag===0){const a=e(n,o);if(a.tag===0){const s=t(n+"."+o,r[o]);return s.tag===0?new b(0,[ft([a.fields[0],s.fields[0]],i.fields[0])]):new b(1,[s.fields[0]])}else return new b(1,[a.fields[0]])}else return i},new b(0,[je()]),Object.keys(r)):new b(1,[[n,new O(0,["an object",r])]])}function Au(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new b(1,[[n,new O(6,[(i=r.length|0,yr(Zn("Expected array of length %i but got %i"))(o)(i))])]]);{let a=new b(0,[je()]);for(let s=e;s<=r.length-1;s++)if(a.tag===0){const l=a.fields[0],u=yr(Zn("%s[%i]"))(n)(s),d=Re(s-e,t),c=Re(s,r);a=Kt(m=>ft(m,l),d(u)(c))}return Kt(Xo,a)}}function vs(e,t,n,r,i,o){const a=_f(s=>zo(s)===r,af(n));if(a!=null){const s=a,l=er(u=>Ct(e,t,!1,u[1]),cf(s));return Kt(u=>df(s,tr(u)),l.length===0&&o.length<=1?new b(0,[je()]):Au(1,l,i,o))}else return new b(1,[[i,new O(6,["Cannot find case "+r+" in "+We(n)])]])}function bs(e,t,n,r){let i;const o=new Tt(Dt());let a;const s=We(r);a=s===""?e:Dh(s,o,e);let l;if(uf(r)){const u=er(d=>[Wh(t,zo(d)),Ct(a,t,!1,d[1])],ri(r));l=d=>c=>Kt(m=>ff(r,tr(m)),V0(u,d,c))}else if(lf(r))l=u=>d=>{if(typeof d=="string")return vs(a,t,r,d,u,[]);if(Array.isArray(d)){const c=d;return jh(m=>vs(a,t,r,m,u,c),Tu(u+"[0]",Re(0,c)))}else return new b(1,[[u,new O(0,["a string or array",d])]])};else if(n)l=u=>d=>new b(1,[[u,new O(2,["an extra coder for "+We(r),d])]]);else throw new Error((i=We(r),yr(Zn(`Cannot generate auto decoder for %s. Please pass an extra decoder.
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Kr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function Gd(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new A(1,[Og(o[0],o[1])])}else return new A(0,[r.fields[0]])}function Fg(e,t){try{return Gd("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new A(1,["Given an invalid JSON: "+n.message]);throw n}}function zd(e,t){return typeof t=="string"?new A(0,[t]):new A(1,[[e,new Z(0,["a string",t])]])}function Dg(e,t){if(typeof t=="string"){const n=t;return n.length===1?new A(0,[n[0]]):new A(1,[[e,new Z(0,["a single character string",t])]])}else return new A(1,[[e,new Z(0,["a char",t])]])}function Pg(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[ng(t,new kt(()=>r,o=>{r=o})),r],n[0]?new A(0,[n[1]]):new A(1,[[e,new Z(0,["a guid",t])]])}else return new A(1,[[e,new Z(0,["a guid",t])]])}function Rg(e,t){return t==null?new A(0,[void 0]):new A(1,[[e,new Z(0,["null",t])]])}const lu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-128<=o&&o<=127?new A(0,[(o+128&255)-128]):new A(1,[[n,new Z(1,["a sbyte",o,"Value was either too large or too small for a sbyte"])]]):new A(1,[[n,new Z(1,["a sbyte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Hr(r,511,!1,8,new kt(()=>i,s=>{i=s|0})),i],o[0]?new A(0,[o[1]]):new A(1,[[n,new Z(0,["a sbyte",r])]])}else return new A(1,[[n,new Z(0,["a sbyte",r])]])},uu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=255?new A(0,[o&255]):new A(1,[[n,new Z(1,["a byte",o,"Value was either too large or too small for a byte"])]]):new A(1,[[n,new Z(1,["a byte",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Hr(r,511,!0,8,new kt(()=>i,s=>{i=s})),i],o[0]?new A(0,[o[1]]):new A(1,[[n,new Z(0,["a byte",r])]])}else return new A(1,[[n,new Z(0,["a byte",r])]])},cu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-32768<=o&&o<=32767?new A(0,[(o+32768&65535)-32768]):new A(1,[[n,new Z(1,["an int16",o,"Value was either too large or too small for an int16"])]]):new A(1,[[n,new Z(1,["an int16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Hr(r,511,!1,16,new kt(()=>i,s=>{i=s|0})),i],o[0]?new A(0,[o[1]]):new A(1,[[n,new Z(0,["an int16",r])]])}else return new A(1,[[n,new Z(0,["an int16",r])]])},du=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=65535?new A(0,[o&65535]):new A(1,[[n,new Z(1,["an uint16",o,"Value was either too large or too small for an uint16"])]]):new A(1,[[n,new Z(1,["an uint16",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Hr(r,511,!0,16,new kt(()=>i,s=>{i=s})),i],o[0]?new A(0,[o[1]]):new A(1,[[n,new Z(0,["an uint16",r])]])}else return new A(1,[[n,new Z(0,["an uint16",r])]])},fu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?-2147483648<=o&&o<=2147483647?new A(0,[~~o]):new A(1,[[n,new Z(1,["an int",o,"Value was either too large or too small for an int"])]]):new A(1,[[n,new Z(1,["an int",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Hr(r,511,!1,32,new kt(()=>i,s=>{i=s|0})),i],o[0]?new A(0,[o[1]]):new A(1,[[n,new Z(0,["an int",r])]])}else return new A(1,[[n,new Z(0,["an int",r])]])},hu=e=>t=>{const n=e,r=t;if(typeof r=="number"){const o=r;return isFinite(o)&&Math.floor(o)===o?0<=o&&o<=4294967295?new A(0,[o>>>0]):new A(1,[[n,new Z(1,["an uint32",o,"Value was either too large or too small for an uint32"])]]):new A(1,[[n,new Z(1,["an uint32",o,"Value is not an integral value"])]])}else if(typeof r=="string"){let o,i=0;return o=[Hr(r,511,!0,32,new kt(()=>i,s=>{i=s})),i],o[0]?new A(0,[o[1]]):new A(1,[[n,new Z(0,["an uint32",r])]])}else return new A(1,[[n,new Z(0,["an uint32",r])]])};function Lg(e,t){return typeof t=="boolean"?new A(0,[t]):new A(1,[[e,new Z(0,["a boolean",t])]])}function Hg(e,t){return typeof t=="number"?new A(0,[t]):new A(1,[[e,new Z(0,["a float",t])]])}function jg(e,t){return typeof t=="number"?new A(0,[t]):new A(1,[[e,new Z(0,["a float32",t])]])}function Bg(e,t){if(typeof t=="string"){let n,r=Ym();return n=[Km(t,new kt(()=>r,o=>{r=o})),r],n[0]?new A(0,[Xm(n[1])]):new A(1,[[e,new Z(0,["a datetime",t])]])}else return new A(1,[[e,new Z(0,["a datetime",t])]])}function Vg(e,t){if(typeof t=="string"){let n,r=ug();return n=[dg(t,new kt(()=>r,o=>{r=o})),r],n[0]?new A(0,[n[1]]):new A(1,[[e,new Z(0,["a datetimeoffset",t])]])}else return new A(1,[[e,new Z(0,["a datetime",t])]])}function Ug(e,t){if(typeof t=="string"){let n,r=0;return n=[mg(t,new kt(()=>r,o=>{r=o})),r],n[0]?new A(0,[n[1]]):new A(1,[[e,new Z(0,["a timespan",t])]])}else return new A(1,[[e,new Z(0,["a timespan",t])]])}function mu(e,t,n,r){let o;const i=n+".["+Wt(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(i,ze(e,s)):new A(1,[[i,new Z(5,["a longer array. Need index `"+Wt(e)+"` but there are only `"+(o=s.length,Wt(o))+"` entries",r])]])}else return new A(1,[[i,new Z(0,["an array",r])]])}function Wg(e,t,n){return n==null?new A(0,[void 0]):gn(pt,e(t,n))}function pu(e,t,n){if(Array.isArray(n)){let r=-1;return gn($a,Oi((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Wt(r)+"]",i);return s.tag===0?new A(0,[At(s.fields[0],o.fields[0])]):new A(1,[s.fields[0]])}else return o},new A(0,[Je()]),n))}else return new A(1,[[t,new Z(0,["a list",n])]])}function Gg(e,t,n){if(Array.isArray(n)){let r=-1;return gn(bp,Oi((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Wt(r)+"]",i);return s.tag===0?new A(0,[ye([s.fields[0]],o.fields[0])]):new A(1,[s.fields[0]])}else return o},new A(0,[[]]),n))}else return new A(1,[[t,new Z(0,["a seq",n])]])}function gu(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Oi((i,s)=>{if(r=r+1|0,i.tag===0){const a=i.fields[0],l=e(t+".["+Wt(r)+"]",s);return l.tag===0?(Xt(a,r,l.fields[0]),new A(0,[a])):new A(1,[l.fields[0]])}else return i},new A(0,[ka(new Array(o.length),0,o.length,null)]),o)}else return new A(1,[[t,new Z(0,["an array",n])]])}function zg(e,t,n){return((o,i)=>{e:for(;;){const s=o,a=i;if(xe(s))return new A(1,[[t,new Z(7,[a])]]);{const l=Gd(t,Ge(ne(s)),n);if(l.tag===1){o=be(s),i=Fi(a,ge(l.fields[0]));continue e}else return new A(0,[l.fields[0]])}}})(e,Je())}function qg(e,t,n){return new A(0,[e])}function wu(e,t,n,r){const o=t(n,r);return o.tag===0?e(o.fields[0],n,r):new A(1,[o.fields[0]])}function Yg(e,t,n,r){const o=t(n,r);return o.tag===1?new A(1,[o.fields[0]]):new A(0,[e(o.fields[0])])}function Zg(e,t){let n;const r=e;return n=o=>i=>mu(0,r,o,i),o=>i=>wu(Fs(s=>{let a;const l=t;return a=u=>d=>mu(1,l,u,d),u=>d=>wu((c,p,f)=>qg([s,c]),Ge(a),u,d)}),Ge(n),o,i)}function Kg(e){return Bp(e,{Compare:wt})}function Xg(e){return Ig(e,{Compare:wt})}function Qg(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?hd((r,o)=>{const i=r[0];return o.tag===0?gn(s=>At(s,o.fields[0]),r[1](t+"."+i)(n[i])):o},e,new A(0,[Je()])):new A(1,[[t,new Z(0,["an object",n])]])}function Jg(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Fa((o,i)=>{if(o.tag===0){const s=e(n,i);if(s.tag===0){const a=t(n+"."+i,r[i]);return a.tag===0?new A(0,[At([s.fields[0],a.fields[0]],o.fields[0])]):new A(1,[a.fields[0]])}else return new A(1,[s.fields[0]])}else return o},new A(0,[Je()]),Object.keys(r)):new A(1,[[n,new Z(0,["an object",r])]])}function qd(e,t,n,r){let o;const i=t.length+e|0;if(i!==r.length)return new A(1,[[n,new Z(6,[(o=r.length|0,po(Tr("Expected array of length %i but got %i"))(i)(o))])]]);{let s=new A(0,[Je()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=po(Tr("%s[%i]"))(n)(a),d=ze(a-e,t),c=ze(a,r);s=gn(p=>At(p,l),d(u)(c))}return gn($a,s)}}function yu(e,t,n,r,o,i){const s=Ta(a=>Sa(a)===r,g0(n));if(s!=null){const a=s,l=pn(u=>jt(e,t,!1,u[1]),b0(a));return gn(u=>_0(a,Rr(u)),l.length===0&&i.length<=1?new A(0,[Je()]):qd(1,l,o,i))}else return new A(1,[[o,new Z(6,["Cannot find case "+r+" in "+nt(n)])]])}function vu(e,t,n,r){let o;const i=new kt(Ke());let s;const a=nt(r);s=a===""?e:Hp(a,i,e);let l;if(v0(r)){const u=pn(d=>[Qp(t,Sa(d)),jt(s,t,!1,d[1])],hi(r));l=d=>c=>gn(p=>x0(r,Rr(p)),Qg(u,d,c))}else if(y0(r))l=u=>d=>{if(typeof d=="string")return yu(s,t,r,d,u,[]);if(Array.isArray(d)){const c=d;return Yp(p=>yu(s,t,r,p,u,c),zd(u+"[0]",ze(0,c)))}else return new A(1,[[u,new Z(0,["a string or array",d])]])};else if(n)l=u=>d=>new A(1,[[u,new Z(2,["an extra coder for "+nt(r),d])]]);else throw new Error((o=nt(r),po(Tr(`Cannot generate auto decoder for %s. Please pass an extra decoder.
13
13
 
14
- Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function Ct(e,t,n,r){let i,o,a,s;const l=We(r),u=Ih(l,e);if(u==null)if(ef(r)){const d=Ct(e,t,!1,yi(r));return c=>m=>_s($e(d),c,m)}else if(ql(r))switch(We(rf(r))){case"System.SByte":return c=>m=>{const h=r,p=c,y=m,_=cs(p)(y);if(_.tag===1)return new b(1,[_.fields[0]]);{const E=_.fields[0]|0;return Pn(E,In(h),{Equals:(k,N)=>k===N,GetHashCode:Lt})?new b(0,[On(h,E.toString())]):new b(1,[[p,new O(1,[We(h),y,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>m=>{const h=r,p=c,y=m,_=ds(p)(y);if(_.tag===1)return new b(1,[_.fields[0]]);{const E=_.fields[0];return Pn(E,In(h),{Equals:(k,N)=>k===N,GetHashCode:Lt})?new b(0,[On(h,E.toString())]):new b(1,[[p,new O(1,[We(h),y,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>m=>{const h=r,p=c,y=m,_=fs(p)(y);if(_.tag===1)return new b(1,[_.fields[0]]);{const E=_.fields[0]|0;return Pn(E,In(h),{Equals:(k,N)=>k===N,GetHashCode:Lt})?new b(0,[On(h,cd(E))]):new b(1,[[p,new O(1,[We(h),y,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>m=>{const h=r,p=c,y=m,_=hs(p)(y);if(_.tag===1)return new b(1,[_.fields[0]]);{const E=_.fields[0];return Pn(E,In(h),{Equals:(k,N)=>k===N,GetHashCode:Lt})?new b(0,[On(h,E.toString())]):new b(1,[[p,new O(1,[We(h),y,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>m=>{const h=r,p=c,y=m,_=ms(p)(y);if(_.tag===1)return new b(1,[_.fields[0]]);{const E=_.fields[0]|0;return Pn(E,In(h),{Equals:(k,N)=>k===N,GetHashCode:Lt})?new b(0,[On(h,Nt(E))]):new b(1,[[p,new O(1,[We(h),y,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>m=>{const h=r,p=c,y=m,_=ps(p)(y);if(_.tag===1)return new b(1,[_.fields[0]]);{const E=_.fields[0];return Pn(E,In(h),{Equals:(k,N)=>k===N,GetHashCode:Lt})?new b(0,[On(h,E.toString())]):new b(1,[[p,new O(1,[We(h),y,"Unkown value provided for the enum"])]])}};default:{const c=We(r),m=qd(Zn(`Cannot generate auto decoder for %s.
14
+ Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(o)));return i.contents=l,l}function jt(e,t,n,r){let o,i,s,a;const l=nt(r),u=jp(l,e);if(u==null)if(d0(r)){const d=jt(e,t,!1,Ii(r));return c=>p=>gu(Ge(d),c,p)}else if(sd(r))switch(nt(m0(r))){case"System.SByte":return c=>p=>{const f=r,h=c,g=p,w=lu(h)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const _=w.fields[0]|0;return cr(_,lr(f),{Equals:(C,S)=>C===S,GetHashCode:Bt})?new A(0,[ur(f,_.toString())]):new A(1,[[h,new Z(1,[nt(f),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const f=r,h=c,g=p,w=uu(h)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const _=w.fields[0];return cr(_,lr(f),{Equals:(C,S)=>C===S,GetHashCode:Bt})?new A(0,[ur(f,_.toString())]):new A(1,[[h,new Z(1,[nt(f),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const f=r,h=c,g=p,w=cu(h)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const _=w.fields[0]|0;return cr(_,lr(f),{Equals:(C,S)=>C===S,GetHashCode:Bt})?new A(0,[ur(f,ym(_))]):new A(1,[[h,new Z(1,[nt(f),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const f=r,h=c,g=p,w=du(h)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const _=w.fields[0];return cr(_,lr(f),{Equals:(C,S)=>C===S,GetHashCode:Bt})?new A(0,[ur(f,_.toString())]):new A(1,[[h,new Z(1,[nt(f),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const f=r,h=c,g=p,w=fu(h)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const _=w.fields[0]|0;return cr(_,lr(f),{Equals:(C,S)=>C===S,GetHashCode:Bt})?new A(0,[ur(f,Wt(_))]):new A(1,[[h,new Z(1,[nt(f),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const f=r,h=c,g=p,w=hu(h)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const _=w.fields[0];return cr(_,lr(f),{Equals:(C,S)=>C===S,GetHashCode:Bt})?new A(0,[ur(f,_.toString())]):new A(1,[[h,new Z(1,[nt(f),g,"Unkown value provided for the enum"])]])}};default:{const c=nt(r),p=t0(Tr(`Cannot generate auto decoder for %s.
15
15
  Thoth.Json.Net only support the following enum types:
16
16
  - sbyte
17
17
  - byte
@@ -20,7 +20,7 @@ Thoth.Json.Net only support the following enum types:
20
20
  - int
21
21
  - uint32
22
22
  If you can't use one of these types, please pass an extra decoder.
23
- `))(c);return h=>m(h)}}else if(tf(r))if(zl(r)){const d=er(c=>Ct(e,t,!1,c),sf(r));return c=>m=>Array.isArray(m)?Kt(h=>hf(tr(h)),Au(0,d,c,m)):new b(1,[[c,new O(0,["an array",m])]])}else switch(We(nf(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=Ct(e,t,!0,Re(0,Ht(r))),c=>m=>O0($e(i),c,m);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=Ct(e,t,!1,Re(0,Ht(r))),c=>m=>ws($e(o),c,m);case"System.Collections.Generic.IEnumerable`1[System.Object]":return a=Ct(e,t,!1,Re(0,Ht(r))),c=>m=>P0($e(a),c,m);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=Ct(e,t,!1,Re(0,Ht(r))),m=Ct(e,t,!1,Re(1,Ht(r)));let h;const p=v([y=>_=>W0($e(c),$e(m),y,_),(s=H0($e(c),$e(m)),y=>_=>ws($e(s),y,_))]);return h=y=>_=>F0(p,y,_),y=>_=>L0(U0,$e(h),y,_)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=Ct(e,t,!1,Re(0,Ht(r)));return m=>h=>{const p=_s($e(c),m,h);return p.tag===0?new b(0,[j0(p.fields[0])]):new b(1,[p.fields[0]])}}default:return bs(e,t,n,r)}else switch(l){case"System.Boolean":return d=>c=>A0(d,c);case"Microsoft.FSharp.Core.Unit":return d=>c=>T0(d,c);case"System.String":return d=>c=>Tu(d,c);case"System.Char":return d=>c=>E0(d,c);case"System.SByte":return cs;case"System.Byte":return ds;case"System.Int16":return fs;case"System.UInt16":return hs;case"System.Int32":return ms;case"System.UInt32":return ps;case"System.Double":return d=>c=>M0(d,c);case"System.Single":return d=>c=>N0(d,c);case"System.DateTime":return d=>c=>$0(d,c);case"System.DateTimeOffset":return d=>c=>D0(d,c);case"System.TimeSpan":return d=>c=>I0(d,c);case"System.Guid":return d=>c=>k0(d,c);case"System.Object":return d=>c=>new b(0,[c]);default:return bs(e,t,n,r)}else{const d=u;return c=>m=>d.contents(c)(m)}}function B0(e){return pu({Compare:Wo})}function G0(e,t,n){const r=_i(t,new wu(0,[]));return Ct(B0(),r,!1,e)}class q0 extends ve{constructor(t,n){super(),this.Name=t,this.Email=n}}function ia(){return Nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],q0,()=>[["Name",ni],["Email",Vn(ni)]])}class z0 extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function Mu(){return Gl("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],z0,()=>[[],[]])}class Y0 extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Z0(){return Gl("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],Y0,()=>[[],[]])}class K0 extends ve{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function X0(){return Nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],K0,()=>[["User",ia()],["ProfileCount",ht],["RequestType",Z0()],["RequestedAt",En("System.DateTime")]])}class J0 extends ve{constructor(t,n,r,i,o,a){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=a}}function Q0(){return Nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],J0,()=>[["Stage",Mu()],["InputRowCount",ht],["StartTime",En("System.DateTime")],["SucceededRowCount",Vn(ht)],["FailedRowCount",Vn(ht)],["RemainingRowCount",Vn(ht)]])}class em extends ve{constructor(t,n,r,i,o,a){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=a}}function Nu(){return Nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],em,()=>[["Stage",Mu()],["InputRowCount",ht],["SucceededRowCount",ht],["FailedRowCount",ht],["StartTime",En("System.DateTime")],["StopTime",En("System.DateTime")]])}class tm extends ve{constructor(t,n,r,i,o,a,s){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=a,this.StartTime=s}}function nm(){return Nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],tm,()=>[["ImportId",ht],["User",ia()],["Filename",ni],["NumberOfRecords",ht],["CurrentStage",Vn(Q0())],["CompletedStages",ti(Nu())],["StartTime",En("System.DateTime")]])}class rm extends ve{constructor(t,n,r,i,o,a,s,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=a,this.StartTime=s,this.StopTime=l}}function im(){return Nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],rm,()=>[["ImportId",ht],["User",ia()],["Filename",ni],["NumberOfRecords",ht],["CompletedStages",ti(Nu())],["BenefitsRequests",ti(X0())],["StartTime",En("System.DateTime")],["StopTime",En("System.DateTime")]])}class om extends ve{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function am(){return Nn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],om,()=>[["ActiveImport",Vn(nm())],["ImportHistory",ti(im())]])}class sm{constructor(t){this.baseUrl=`${t}/import/workspace/v1.0/accounts/current/imports`}}function lm(e){return new sm(e)}function um(e){return ze.Delay(()=>{let t;const n=Hh(Lh(new ru(0,[]),Rh(e.baseUrl)));return t=ze.Bind(n,r=>ze.Return(new b(0,[r]))),ze.Bind(t,r=>{const i=r;if(i.tag===1)return ze.Return(new b(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let s;const l=S0($e(G0(am(),new wu(1,[]))),o.responseText);return s=l.tag===1?new b(1,[l.fields[0]]):new b(0,[l.fields[0]]),ze.Return(s)}case 404:return ze.Return(new b(0,[void 0]));default:return ze.Return(new b(1,["Failed to get account imports"]))}}})})}function cm(){return je()}function oa(e){return It("/",e)}function dm(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+oa(t),n])}function $u(e,t,n){try{Te(n)}catch(r){e(["Error stopping subscription: "+oa(t),r])}}function fm(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+oa(n),i]);return}}function hm(e,t){ii(n=>{$u(e,n[0],n[1])},t)}function Cs(e,t,n,r,i,o){return ii(a=>{dm(e,a)},n),ii(a=>{$u(e,a[0],a[1])},r),bi(i,Af(a=>fm(e,t,a[0],a[1]),o))}function mm(){return[je(),v0({Compare:nt}),je()]}function pm(e,t,n,r,i){return ho(e,r)?[ft(e,n),r,i]:[n,y0(e,r),ft([e,t],i)]}function gm(e){return Ef((t,n)=>pm(t[0],t[1],n[0],n[1],n[2]),e,mm())}const wm=je();function xs(e,t){const n=b0(Ar(a=>a[0],e),{Compare:nt}),r=gm(t),i=r[1],o=r[0];if(n.Equals(i))return[o,je(),e,je()];{const a=Tf(s=>ho(s[0],i),e);return[o,a[1],a[0],Ql(s=>!ho(s[0],n),r[2])]}}class _m{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function ym(e,t){t.Subscribe(new _m(e))}class vm{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return Cm(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let bm=class extends vm{};function Cm(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class xm{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new bm}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function Sm(e,t){console.error(mt(e),t)}function Em(e,t){let n,r=new xm(e);r.AutoReset=!1,n=r,ym(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Ss(e,t,n){ii(r=>{try{r(t)}catch(i){e(i)}},n)}function X(){return je()}function km(e){return he(e)}function Tm(e,t,n,r){return he(i=>{e(ze.Delay(()=>ze.Bind(Wf(t(n)),o=>{const a=o;return a.tag===0&&i(r(a.fields[0])),ze.Zero()})))})}function Am(e){Em(1,t=>{nu(e)})}function Mm(e,t,n,r){const i=nt(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return a=>{const s=nt(a,t)|0;return o&&s<=0||!o&&s>=0?[a,r(a,e)]:void 0}}function Nm(e,t,n,r,i){const o=Mm(t,n,r,i);return _e(()=>sh(o,e))}function Du(e,t,n){return Nm(e,t,n,0,(r,i)=>r+i)}class Bn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class $m{constructor(t){this.state=new Bn(0,[Zo(new Array(qa(t,10)),0,qa(t,10),null),0])}}function Dm(e){return new $m(e)}function Es(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new Bn(0,[i,n]):e.state=new Bn(1,[i,n,o]),mt(Re(r,i))}else return}function Im(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];Zt(o,r,t);const a=(r+1)%o.length|0;a===i?e.state=new Bn(1,[Om(e,i,o),o.length,0]):e.state=new Bn(1,[o,a,i])}else{const r=n.fields[1]|0,i=n.fields[0];Zt(i,r,t);const o=(r+1)%i.length|0;e.state=new Bn(1,[i,o,r])}}function Om(e,t,n){return Array.from(_e(()=>tt(hh(t,n),_e(()=>tt(mh(t,n),_e(()=>ph(r=>ue(Dt()),Du(0,1,n.length))))))))}class aa extends ve{constructor(t,n,r,i,o,a,s){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=a,this.termination=s}}function ki(e,t,n){return new aa(e,t,r=>cm(),n,$e(r=>{const i=pn(n)(r);return o=>{i(o)}}),r=>{Sm(r[0],r[1])},[r=>!1,r=>{}])}function Pm(e,t){return new aa(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Fm(e){return e.init}function Rm(e,t,n,r,i,o,a){const s=pn(e)(a.init),l=Ui(t)(pn(a.update)),u=Ui(n)(pn(a.view)),d=Ui(r)(pn(a.setState));return new aa(s,$e(l),pn(i)(a.subscribe),$e(u),$e(d),a.onError,o(a.termination))}function Lm(e,t,n){let r;const i=n.init(t),o=i[0],a=n.subscribe(o),s=n.termination,l=Dm(10);let u=!1,d=o,c=wm,m=!1;const h=_=>{m||(Im(l,_),u||(u=!0,y(),u=!1))},p=pn(e)(h),y=()=>{let _,E=Es(l);for(;!m&&E!=null;){const k=M(E);if(s[0](k))hm(n.onError,c),s[1](d),m=!0;else{const N=n.update(k,d),P=N[0],z=n.subscribe(P);n.setState(P,p),Ss(G=>{n.onError([yr(Zn("Error handling the message: %A"))(k),G])},p,N[1]),d=P,c=(_=xs(c,z),Cs(n.onError,p,_[0],_[1],_[2],_[3])),E=Es(l)}}};u=!0,n.setState(o,p),Ss(_=>{n.onError([yr(Zn("Error intitializing:")),_])},p,i[1]),c=(r=xs(c,a),Cs(n.onError,p,r[0],r[1],r[2],r[3])),y(),u=!1}function Hm(e,t){Lm($e(n=>n),e,t)}function Um(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var qi={exports:{}},zi={};const jm=Um(io);/**
23
+ `))(c);return f=>p(f)}}else if(f0(r))if(ad(r)){const d=pn(c=>jt(e,t,!1,c),w0(r));return c=>p=>Array.isArray(p)?gn(f=>C0(Rr(f)),qd(0,d,c,p)):new A(1,[[c,new Z(0,["an array",p])]])}else switch(nt(h0(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=jt(e,t,!0,ze(0,rn(r))),c=>p=>Wg(Ge(o),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=jt(e,t,!1,ze(0,rn(r))),c=>p=>pu(Ge(i),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=jt(e,t,!1,ze(0,rn(r))),c=>p=>Gg(Ge(s),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=jt(e,t,!1,ze(0,rn(r))),p=jt(e,t,!1,ze(1,rn(r)));let f;const h=b([g=>w=>Jg(Ge(c),Ge(p),g,w),(a=Zg(Ge(c),Ge(p)),g=>w=>pu(Ge(a),g,w))]);return f=g=>w=>zg(h,g,w),g=>w=>Yg(Kg,Ge(f),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=jt(e,t,!1,ze(0,rn(r)));return p=>f=>{const h=gu(Ge(c),p,f);return h.tag===0?new A(0,[Xg(h.fields[0])]):new A(1,[h.fields[0]])}}default:return vu(e,t,n,r)}else switch(l){case"System.Boolean":return d=>c=>Lg(d,c);case"Microsoft.FSharp.Core.Unit":return d=>c=>Rg(d,c);case"System.String":return d=>c=>zd(d,c);case"System.Char":return d=>c=>Dg(d,c);case"System.SByte":return lu;case"System.Byte":return uu;case"System.Int16":return cu;case"System.UInt16":return du;case"System.Int32":return fu;case"System.UInt32":return hu;case"System.Double":return d=>c=>Hg(d,c);case"System.Single":return d=>c=>jg(d,c);case"System.DateTime":return d=>c=>Bg(d,c);case"System.DateTimeOffset":return d=>c=>Vg(d,c);case"System.TimeSpan":return d=>c=>Ug(d,c);case"System.Guid":return d=>c=>Pg(d,c);case"System.Object":return d=>c=>new A(0,[c]);default:return vu(e,t,n,r)}else{const d=u;return c=>p=>d.contents(c)(p)}}function e1(e){return Od({Compare:va})}function t1(e,t,n){const r=Ar(t,new Pd(0,[]));return jt(e1(),r,!1,e)}class n1 extends Te{constructor(t,n){super(),this.Name=t,this.Email=n}}function Ra(){return ir("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],n1,()=>[["Name",fi],["Email",vr(fi)]])}class r1 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function Yd(){return id("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],r1,()=>[[],[]])}class o1 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function i1(){return id("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],o1,()=>[[],[]])}class s1 extends Te{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function a1(){return ir("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],s1,()=>[["User",Ra()],["ProfileCount",Mt],["RequestType",i1()],["RequestedAt",Xn("System.DateTime")]])}class l1 extends Te{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=o,this.FailedRowCount=i,this.RemainingRowCount=s}}function u1(){return ir("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],l1,()=>[["Stage",Yd()],["InputRowCount",Mt],["StartTime",Xn("System.DateTime")],["SucceededRowCount",vr(Mt)],["FailedRowCount",vr(Mt)],["RemainingRowCount",vr(Mt)]])}class c1 extends Te{constructor(t,n,r,o,i,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=o|0,this.StartTime=i,this.StopTime=s}}function Zd(){return ir("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],c1,()=>[["Stage",Yd()],["InputRowCount",Mt],["SucceededRowCount",Mt],["FailedRowCount",Mt],["StartTime",Xn("System.DateTime")],["StopTime",Xn("System.DateTime")]])}class d1 extends Te{constructor(t,n,r,o,i,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CurrentStage=i,this.CompletedStages=s,this.StartTime=a}}function f1(){return ir("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],d1,()=>[["ImportId",Mt],["User",Ra()],["Filename",fi],["NumberOfRecords",Mt],["CurrentStage",vr(u1())],["CompletedStages",di(Zd())],["StartTime",Xn("System.DateTime")]])}class h1 extends Te{constructor(t,n,r,o,i,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=o|0,this.CompletedStages=i,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function m1(){return ir("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],h1,()=>[["ImportId",Mt],["User",Ra()],["Filename",fi],["NumberOfRecords",Mt],["CompletedStages",di(Zd())],["BenefitsRequests",di(a1())],["StartTime",Xn("System.DateTime")],["StopTime",Xn("System.DateTime")]])}class p1 extends Te{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function g1(){return ir("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],p1,()=>[["ActiveImport",vr(f1())],["ImportHistory",di(m1())]])}class w1{constructor(t){this.baseUrl=`${t}/import/workspace/v1.0/accounts/current/imports`}}function y1(e){return new w1(e)}function v1(e){return at.Delay(()=>{let t;const n=zp(Gp(new bd(0,[]),Wp(e.baseUrl)));return t=at.Bind(n,r=>at.Return(new A(0,[r]))),at.Bind(t,r=>{const o=r;if(o.tag===1)return at.Return(new A(1,[o.fields[0]]));{const i=o.fields[0];switch(i.statusCode|0){case 200:{let a;const l=Fg(Ge(t1(g1(),new Pd(1,[]))),i.responseText);return a=l.tag===1?new A(1,[l.fields[0]]):new A(0,[l.fields[0]]),at.Return(a)}case 404:return at.Return(new A(0,[void 0]));default:return at.Return(new A(1,["Failed to get account imports"]))}}})})}function b1(){return Je()}function La(e){return Kt("/",e)}function _1(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+La(t),n])}function Kd(e,t,n){try{Fe(n)}catch(r){e(["Error stopping subscription: "+La(t),r])}}function x1(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+La(n),o]);return}}function C1(e,t){mi(n=>{Kd(e,n[0],n[1])},t)}function bu(e,t,n,r,o,i){return mi(s=>{_1(e,s)},n),mi(s=>{Kd(e,s[0],s[1])},r),Fi(o,D0(s=>x1(e,t,s[0],s[1]),i))}function S1(){return[Je(),Mg({Compare:wt}),Je()]}function E1(e,t,n,r,o){return js(e,r)?[At(e,n),r,o]:[n,$g(e,r),At([e,t],o)]}function k1(e){return I0((t,n)=>E1(t[0],t[1],n[0],n[1],n[2]),e,S1())}const T1=Je();function _u(e,t){const n=Ng(ko(s=>s[0],e),{Compare:wt}),r=k1(t),o=r[1],i=r[0];if(n.Equals(o))return[i,Je(),e,Je()];{const s=F0(a=>js(a[0],o),e);return[i,s[1],s[0],gd(a=>!js(a[0],n),r[2])]}}class A1{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function $1(e,t){t.Subscribe(new A1(e))}class M1{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return I1(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const o=n===void 0?t:(r=t,n);this.delegates.forEach(i=>{i(r,o)})}}let N1=class extends M1{};function I1(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(o,i)=>n.OnNext(i);return e(r),{Dispose(){t(r)}}}}}class O1{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new N1}Elapsed(){return this._elapsed.Publish}get Enabled(){return this._enabled}set Enabled(t){!this._isDisposed&&this._enabled!==t&&(this._enabled=t,this._enabled?this.AutoReset?this._intervalId=setInterval(()=>{this.AutoReset||(this.Enabled=!1),this._elapsed.Trigger(new Date)},this.Interval):this._timeoutId=setTimeout(()=>{this.Enabled=!1,this._timeoutId=0,this.AutoReset&&(this.Enabled=!0),this._elapsed.Trigger(new Date)},this.Interval):(this._timeoutId&&(clearTimeout(this._timeoutId),this._timeoutId=0),this._intervalId&&(clearInterval(this._intervalId),this._intervalId=0)))}Dispose(){this.Enabled=!1,this._isDisposed=!0}Close(){this.Dispose()}Start(){this.Enabled=!0}Stop(){this.Enabled=!1}}function F1(e,t){console.error(pt(e),t)}function D1(e,t){let n,r=new O1(e);r.AutoReset=!1,n=r,$1(t,n.Elapsed()),n.Enabled=!0,n.Start()}function xu(e,t,n){mi(r=>{try{r(t)}catch(o){e(o)}},n)}function J(){return Je()}function P1(e){return ge(e)}function R1(e,t,n,r){return ge(o=>{e(at.Delay(()=>at.Bind(K0(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),at.Zero()})))})}function L1(e){D1(1,t=>{vd(e)})}function H1(e,t,n,r){const o=wt(e,n)|0;if(o===0)throw new Error("The step of a range cannot be zero");const i=o>0;return s=>{const a=wt(s,t)|0;return i&&a<=0||!i&&a>=0?[s,r(s,e)]:void 0}}function j1(e,t,n,r,o){const i=H1(t,n,r,o);return G(()=>mp(i,e))}function Xd(e,t,n){return j1(e,t,n,0,(r,o)=>r+o)}class _r extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class B1{constructor(t){this.state=new _r(0,[ka(new Array(Hl(t,10)),0,Hl(t,10),null),0])}}function V1(e){return new B1(e)}function Cu(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,o=t.fields[0],i=(r+1)%o.length|0;return i===n?e.state=new _r(0,[o,n]):e.state=new _r(1,[o,n,i]),pt(ze(r,o))}else return}function U1(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,o=n.fields[2]|0,i=n.fields[0];Xt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new _r(1,[W1(e,o,i),i.length,0]):e.state=new _r(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];Xt(o,r,t);const i=(r+1)%o.length|0;e.state=new _r(1,[o,i,r])}}function W1(e,t,n){return Array.from(G(()=>ye(_p(t,n),G(()=>ye(xp(t,n),G(()=>kd(r=>j(Ke()),Xd(0,1,n.length))))))))}class Ha extends Te{constructor(t,n,r,o,i,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=o,this.setState=i,this.onError=s,this.termination=a}}function Ao(e,t,n){return new Ha(e,t,r=>b1(),n,Ge(r=>{const o=jn(n)(r);return i=>{o(i)}}),r=>{F1(r[0],r[1])},[r=>!1,r=>{}])}function G1(e,t){return new Ha(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function z1(e){return e.init}function q1(e,t,n,r,o,i,s){const a=jn(e)(s.init),l=rs(t)(jn(s.update)),u=rs(n)(jn(s.view)),d=rs(r)(jn(s.setState));return new Ha(a,Ge(l),jn(o)(s.subscribe),Ge(u),Ge(d),s.onError,i(s.termination))}function Y1(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=V1(10);let u=!1,d=i,c=T1,p=!1;const f=w=>{p||(U1(l,w),u||(u=!0,g(),u=!1))},h=jn(e)(f),g=()=>{let w,_=Cu(l);for(;!p&&_!=null;){const C=R(_);if(a[0](C))C1(n.onError,c),a[1](d),p=!0;else{const S=n.update(C,d),$=S[0],O=n.subscribe($);n.setState($,h),xu(P=>{n.onError([po(Tr("Error handling the message: %A"))(C),P])},h,S[1]),d=$,c=(w=_u(c,O),bu(n.onError,h,w[0],w[1],w[2],w[3])),_=Cu(l)}}};u=!0,n.setState(i,h),xu(w=>{n.onError([po(Tr("Error intitializing:")),w])},h,o[1]),c=(r=_u(c,s),bu(n.onError,h,r[0],r[1],r[2],r[3])),g(),u=!1}function Z1(e,t){Y1(Ge(n=>n),e,t)}function K1(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ds={exports:{}},fs={};const X1=K1(oi);/**
24
24
  * @license React
25
25
  * use-sync-external-store-shim.production.min.js
26
26
  *
@@ -28,24 +28,24 @@ If you can't use one of these types, please pass an extra decoder.
28
28
  *
29
29
  * This source code is licensed under the MIT license found in the
30
30
  * LICENSE file in the root directory of this source tree.
31
- */var ks;function Vm(){if(ks)return zi;ks=1;var e=jm;function t(c,m){return c===m&&(c!==0||1/c===1/m)||c!==c&&m!==m}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,a=e.useDebugValue;function s(c,m){var h=m(),p=r({inst:{value:h,getSnapshot:m}}),y=p[0].inst,_=p[1];return o(function(){y.value=h,y.getSnapshot=m,l(y)&&_({inst:y})},[c,h,m]),i(function(){return l(y)&&_({inst:y}),c(function(){l(y)&&_({inst:y})})},[c]),a(h),h}function l(c){var m=c.getSnapshot;c=c.value;try{var h=m();return!n(c,h)}catch{return!0}}function u(c,m){return m()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:s;return zi.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,zi}var Ts;function Wm(){return Ts||(Ts=1,qi.exports=Vm()),qi.exports}var Bm=Wm();class Gm{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let a;const s=Fm(i)(this.arg);let l=s[0],u=s[1];a=[[l,d=>{const c=this.finalDispatch;c==null?o.push(d):c(d)},!1,o],u],this.state=a[0],this.cmd=a[1],this.subscribe=d=>{let c=!1;const m=oo(this.state[0]);return Hm(this.arg,Pm((h,p)=>{const y=this.state;this.finalDispatch=p,this.state=[h,y[1],!0,o],h!==y[0]&&d()},Rm((h,p)=>{const y=this.cmd;return this.cmd=X(),[this.state[0],y]},(h,p,y)=>h(p)(this.state[0]),so(h=>h),so(h=>h),$e(h=>h),h=>[p=>h[0](p)?!0:m&&c,p=>{const y=p;oo(y)?Te(y):h[1](p)}],i))),()=>{c=!0}}}}function As(e,t,n){return new Gm(e,t,n)}function qm(e){return e.state}function zm(e){return e.subscribe}function Ym(e,t,n){return Ge(e.arg,t)?!Ge(e.dependencies,n):!0}function Ti(e,t,n){const r=Oe(()=>As(e,t,n)),i=r[0];Ym(i,t,n)&&r[1](As(e,t,n));const o=Bm.useSyncExternalStore(zm(i),()=>qm(i)),a=o[2],s=o[3],l=o[1];return Pe(()=>{if(a&&s.length>0){let u=Le(s);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const d=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{Te(u)}wd(s)}},[a,s]),[o[0],l]}class mo extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Zm(e){return e.tag===1?new mo(0,[]):new mo(1,[])}function Km(e,t,n){return e.tag===1?Nf(t,n,{Compare:nt}):Mf(t,n,{Compare:nt})}class vn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Br=class extends ve{constructor(t){super(),this.View=t}},Gr=class extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Iu=class extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Xm(){return[new Br(new Gr(0,[])),he(e=>{e(new Iu(new vn(0,[void 0])))})]}function Jm(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Br(new Gr(2,[t.fields[0].fields[0].fields[0]])),X()]:[new Br(new Gr(1,[t.fields[0].fields[0].fields[0]])),X()]:[new Br(new Gr(0,[])),Tm(r=>{Am(r)},e,void 0,r=>new Iu(new vn(1,[r])))]}class Qm extends ve{constructor(t){super(),this.UserActivities=t}}class Ms extends ve{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function ep(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:_i(Er(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function tp(e){return bi(v(Wl(Er(t=>new Ms(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),Ar(t=>new Ms(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function np(e){return new Qm(_i(Er(tp,e),je()))}class Ns extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class rp extends ve{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class Mr extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class ip extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class op extends ve{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Ou extends ve{constructor(t,n){super(),this.Column=t,this.Direction=n}}class ap extends H{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class si extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class sp extends ve{constructor(t,n,r,i,o){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=i|0,this.PageSize=o|0}}function lp(e){return e.tag===1?Pu(e.fields[0].Data):Lu()}function up(e){return e.tag===1?ir(e.fields[0].Data):new si(1,[])}function cp(e){const t=sa(Lu(),e);return new Mr([Uu(Jl(e),20),t])}function Nr(e){return e.fields[0][1]}function Pu(e){return Ru(Nr(e))}function dp(e){return la(Nr(e))}function ir(e){return e.fields[0][0]}function fp(e){const t=ir(e);if(t.tag===0){const n=t.fields[0],r=$f(n.FirstRowIndex,dp(e));return Df(Sp(n),r)}else return je()}function Fu(e,t){const n=sa(Pu(e),t);return new Mr([bp(ir(e),Jl(la(n))),n])}function hp(e){return new Mr([ir(e),gp(Nr(e))])}function mp(e){return new Mr([vp(ir(e)),Nr(e)])}function pp(e){return new Mr([yp(ir(e)),Nr(e)])}function sa(e,t){return new ip([e,Km(e.Direction,n=>n.Timestamp,t)])}function la(e){return e.fields[0][1]}function Ru(e){return e.fields[0][0]}function gp(e){return sa(wp(Ru(e)),la(e))}function Lu(){return new Ou(new ap,new mo(0,[]))}function wp(e){return new Ou(e.Column,Zm(e.Direction))}function Hu(e,t){return~~(e/t)+(e%t===0?0:1)}function Ai(e,t,n){if(e<=0)return new si(1,[]);{const r=za(n,Hu(e,t))|0,i=(r-1)*t|0;return new si(0,[new sp(r,i,za(i+t-1,e-1),e,t)])}}function Uu(e,t){return Ai(e,t,1)}function _p(e){if(e.tag===0){const t=e.fields[0];return Hu(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function ju(e){return e.tag===0?e.fields[0].CurrentPage<_p(e):!1}function Vu(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function yp(e){const t=Vu(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Ai(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function vp(e){const t=ju(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Ai(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function bp(e,t){return t<=0?new si(1,[]):e.tag===0?Ai(t,20,e.fields[0].CurrentPage):Uu(t,20)}function Cp(e){return e.FirstRowIndex+1}function xp(e){return e.LastRowIndex+1}function Sp(e){return e.LastRowIndex-e.FirstRowIndex+1}let an=class extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class or extends ve{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class ua extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Ep(e){if(e.tag===1)return Wu(e.fields[0])}function kp(e){return e.tag===0}function Tp(e){return e.tag===1?new Ns(1,[Op(e.fields[0])]):new Ns(0,[])}function Wu(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Ap(e){return Wu(e)!=null}function Mp(e,t){return new an(1,[new or(e.ImportHistory,new ua(1,[t]),Fu(e.PaginatedList,Ql(n=>ep(n.User,t),e.ImportHistory.UserActivities)))])}function Np(e){return new an(1,[new or(e.ImportHistory,new ua(0,[]),Fu(e.PaginatedList,e.ImportHistory.UserActivities))])}function $p(e){return new an(1,[new or(e.ImportHistory,e.View,hp(e.PaginatedList))])}function Dp(e){return new an(1,[new or(e.ImportHistory,e.View,mp(e.PaginatedList))])}function Ip(e){return new an(1,[new or(e.ImportHistory,e.View,pp(e.PaginatedList))])}function Op(e){return new rp(e.PaginatedList,Ap(e))}let Gn=class extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Pp(e){let t;return[e.tag===1?new an(0,[]):(t=e.fields[0],new an(1,[new or(t,new ua(0,[]),cp(t.UserActivities))])),X()]}function Bu(e,t){return e.tag===1?t(e.fields[0]):[new an(0,[]),X()]}function Fp(e,t){return Bu(e,n=>[t(n),X()])}function Rp(e,t){const n=r=>Fp(t,r);switch(e.tag){case 1:return n(Np);case 2:return n($p);case 3:return n(Dp);case 4:return n(Ip);default:{const r=e.fields[0];return Bu(t,i=>qo(r)?[t,he(o=>{o(new Gn(1,[]))})]:[Mp(i,r),X()])}}}function Lp(e,t){let n,r;return f("svg",x(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=he(f("path",x(v([(r="M6.77835 19.8844C6.74702 19.9444 6.7414 20.0146 6.76278 20.0789C6.78416 20.1432 6.83071 20.196 6.89177 20.2254L7.82464 20.6734C7.9462 20.7317 8.09214 20.6832 8.15452 20.5636L16.5023 4.56364C16.5337 4.50358 16.5393 4.43338 16.5179 4.3691C16.4965 4.30482 16.45 4.25197 16.3889 4.22264L15.4561 3.77464C15.3345 3.71627 15.1886 3.76481 15.1262 3.88436L6.77835 19.8844Z",["d",r]),["fill","#D1D5DB"],["stroke","#D1D5DB"],["strokeWidth",.5],["strokeLinejoin","round"]])))),["children",S.Children.toArray(Array.from(n))])])))}function Hp(){let e,t,n;return f("div",x(v([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[f("div",x(v([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[f("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),f("div",x(v([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Lp(24,24)],["children",S.Children.toArray(Array.from(n))])]))),f("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",S.Children.toArray(Array.from(t))])])))],["children",S.Children.toArray(Array.from(e))])])))}function Up(e,t){let n,r;return f("svg",x(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=he(f("path",x(v([["clipRule","evenodd"],(r="M8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4ZM2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 9.29583 13.5892 10.4957 12.8907 11.4765L17.7071 16.2929C18.0976 16.6834 18.0976 17.3166 17.7071 17.7071C17.3166 18.0976 16.6834 18.0976 16.2929 17.7071L11.4765 12.8907C10.4957 13.5892 9.29583 14 8 14C4.68629 14 2 11.3137 2 8Z",["d",r]),["fill","#9CA3AF"]])))),["children",S.Children.toArray(Array.from(n))])])))}function po(e,t){let n,r;return f("svg",x(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=he(f("path",x(v([(r="M9.70757 0.292433C9.52026 0.105188 9.26626 0 9.00142 0C8.73658 0 8.48257 0.105188 8.29527 0.292433L5.00624 3.58146L1.71721 0.292433C1.52884 0.110495 1.27654 0.00982222 1.01466 0.0120979C0.752781 0.0143736 0.502271 0.119416 0.317087 0.3046C0.131902 0.489785 0.0268602 0.740295 0.0245845 1.00218C0.0223088 1.26406 0.122982 1.51635 0.30492 1.70473L3.59395 4.99376L0.30492 8.28279C0.209525 8.37492 0.133435 8.48513 0.0810888 8.60699C0.028743 8.72885 0.00119014 8.85991 3.77112e-05 8.99253C-0.00111471 9.12515 0.0241565 9.25667 0.0743768 9.37942C0.124597 9.50216 0.19876 9.61368 0.29254 9.70746C0.386319 9.80124 0.497837 9.8754 0.620585 9.92562C0.743333 9.97584 0.874854 10.0011 1.00747 9.99996C1.14009 9.99881 1.27115 9.97126 1.39301 9.91891C1.51487 9.86657 1.62508 9.79047 1.71721 9.69508L5.00624 6.40605L8.29527 9.69508C8.48365 9.87702 8.73594 9.97769 8.99782 9.97542C9.25971 9.97314 9.51022 9.8681 9.6954 9.68291C9.88058 9.49773 9.98563 9.24722 9.9879 8.98534C9.99018 8.72346 9.88951 8.47116 9.70757 8.28279L6.41854 4.99376L9.70757 1.70473C9.89481 1.51743 10 1.26343 10 0.998581C10 0.733736 9.89481 0.479735 9.70757 0.292433Z",["d",r]),["fill","currentColor"]])))),["children",S.Children.toArray(Array.from(n))])])))}class $s extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function jp(e){let t,n;const r=_i(e.Value,"");return f("div",x(v([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[f("div",x(v([["className",It(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Wt(_e(()=>{let i;return tt(ue(f("div",x(v([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[Up(20,20)],["children",S.Children.toArray(Array.from(i))])])))),_e(()=>{let o;return tt(ue(f("input",x(v([(o="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",o]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",a=>{e.ActionHandler(new $s(0,[a.target.value]))}],["value",r],["disabled",e.Disabled]])))),_e(()=>{let a;return qo(r)?ue(Dt()):ue(f("div",x(v([["onClick",s=>{e.ActionHandler(new $s(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(a=[po(10,10)],["children",S.Children.toArray(Array.from(a))])]))))}))}))})),["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}function Vp(e){let t,n;const r=e.height,i=e.width;return f("svg",x(v([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=he(f("path",x(v([(n="M4.98771 6.01229C4.72252 6.01223 4.4682 5.90684 4.28071 5.71929L0.280712 1.71929C0.0985537 1.53069 -0.00224062 1.27808 3.78026e-05 1.01589C0.00231622 0.75369 0.107485 0.502878 0.292893 0.31747C0.478301 0.132062 0.729114 0.0268924 0.99131 0.0246139C1.25351 0.0223355 1.50611 0.12313 1.69471 0.305288L4.98771 3.59829L8.28071 0.305288C8.37296 0.209778 8.4833 0.133596 8.60531 0.0811869C8.72731 0.0287779 8.85853 0.00119157 8.99131 3.77571e-05C9.12409 -0.00111606 9.25577 0.0241854 9.37867 0.0744663C9.50156 0.124747 9.61321 0.199 9.70711 0.292893C9.801 0.386786 9.87525 0.498438 9.92553 0.621334C9.97581 0.744231 10.0011 0.87591 9.99996 1.00869C9.99881 1.14147 9.97122 1.27269 9.91881 1.39469C9.8664 1.5167 9.79022 1.62704 9.69471 1.71929L5.69471 5.71929C5.50722 5.90684 5.25291 6.01223 4.98771 6.01229Z",["d",n]),["fill","#111827"]])))),["children",S.Children.toArray(Array.from(t))])])))}function Wp(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return f("div",x(v([["className",It(" ",Wt(_e(()=>tt(ue("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),_e(()=>r.tag===1?ue("rotate-180"):ue(""))))))],["onClick",i=>{n(void 0)}],(t=[f(Vp,{width:10,height:7})],["children",S.Children.toArray(Array.from(t))])])))}function Bp(e){const t=e.toggleSortDirection,n=e.props;return f(Wp,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function Gp(e){let t,n,r,i;const o=f(Bp,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return f("div",x(v([["className","flex-none grid grid-cols-7"],(t=[f("div",x(v([["className","col-span-1 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(n=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",S.Children.toArray(Array.from(n))])]))),f("div",x(v([["className","col-span-2 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(r=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",S.Children.toArray(Array.from(r))])]))),f("div",x(v([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(i=[f("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",S.Children.toArray(Array.from(i))])])))],["children",S.Children.toArray(Array.from(t))])])))}function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function Tn(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function Qe(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Ot(e){Qe(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||li(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function qp(e,t){Qe(2,arguments);var n=Ot(e).getTime(),r=Tn(t);return new Date(n+r)}var zp={};function Mi(){return zp}function Yp(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function Zp(e){return Qe(1,arguments),e instanceof Date||li(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Kp(e){if(Qe(1,arguments),!Zp(e)&&typeof e!="number")return!1;var t=Ot(e);return!isNaN(Number(t))}function Xp(e,t){Qe(2,arguments);var n=Tn(t);return qp(e,-n)}var Jp=864e5;function Qp(e){Qe(1,arguments);var t=Ot(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/Jp)+1}function ui(e){Qe(1,arguments);var t=1,n=Ot(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Gu(e){Qe(1,arguments);var t=Ot(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=ui(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var a=ui(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function eg(e){Qe(1,arguments);var t=Gu(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ui(n);return r}var tg=6048e5;function ng(e){Qe(1,arguments);var t=Ot(e),n=ui(t).getTime()-eg(t).getTime();return Math.round(n/tg)+1}function ci(e,t){var n,r,i,o,a,s,l,u;Qe(1,arguments);var d=Mi(),c=Tn((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Ot(e),h=m.getUTCDay(),p=(h<c?7:0)+h-c;return m.setUTCDate(m.getUTCDate()-p),m.setUTCHours(0,0,0,0),m}function qu(e,t){var n,r,i,o,a,s,l,u;Qe(1,arguments);var d=Ot(e),c=d.getUTCFullYear(),m=Mi(),h=Tn((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:m.firstWeekContainsDate)!==null&&r!==void 0?r:(l=m.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(c+1,0,h),p.setUTCHours(0,0,0,0);var y=ci(p,t),_=new Date(0);_.setUTCFullYear(c,0,h),_.setUTCHours(0,0,0,0);var E=ci(_,t);return d.getTime()>=y.getTime()?c+1:d.getTime()>=E.getTime()?c:c-1}function rg(e,t){var n,r,i,o,a,s,l,u;Qe(1,arguments);var d=Mi(),c=Tn((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&i!==void 0?i:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),m=qu(e,t),h=new Date(0);h.setUTCFullYear(m,0,c),h.setUTCHours(0,0,0,0);var p=ci(h,t);return p}var ig=6048e5;function og(e,t){Qe(1,arguments);var n=Ot(e),r=ci(n,t).getTime()-rg(n,t).getTime();return Math.round(r/ig)+1}function fe(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var en={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return fe(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):fe(r+1,2)},d:function(t,n){return fe(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return fe(t.getUTCHours()%12||12,n.length)},H:function(t,n){return fe(t.getUTCHours(),n.length)},m:function(t,n){return fe(t.getUTCMinutes(),n.length)},s:function(t,n){return fe(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return fe(o,n.length)}},Fn={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ag={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return en.y(t,n)},Y:function(t,n,r,i){var o=qu(t,i),a=o>0?o:1-o;if(n==="YY"){var s=a%100;return fe(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):fe(a,n.length)},R:function(t,n){var r=Gu(t);return fe(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return fe(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return fe(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return fe(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return en.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return fe(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=og(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):fe(o,n.length)},I:function(t,n,r){var i=ng(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):fe(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):en.d(t,n)},D:function(t,n,r){var i=Qp(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):fe(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return fe(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),a=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return fe(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return fe(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Fn.noon:i===0?o=Fn.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Fn.evening:i>=12?o=Fn.afternoon:i>=4?o=Fn.morning:o=Fn.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return en.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):en.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):fe(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):fe(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):en.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):en.s(t,n)},S:function(t,n){return en.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return Is(a);case"XXXX":case"XX":return fn(a);case"XXXXX":case"XXX":default:return fn(a,":")}},x:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"x":return Is(a);case"xxxx":case"xx":return fn(a);case"xxxxx":case"xxx":default:return fn(a,":")}},O:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Ds(a,":");case"OOOO":default:return"GMT"+fn(a,":")}},z:function(t,n,r,i){var o=i._originalDate||t,a=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Ds(a,":");case"zzzz":default:return"GMT"+fn(a,":")}},t:function(t,n,r,i){var o=i._originalDate||t,a=Math.floor(o.getTime()/1e3);return fe(a,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,a=o.getTime();return fe(a,n.length)}};function Ds(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var a=t;return n+String(i)+a+fe(o,2)}function Is(e,t){if(e%60===0){var n=e>0?"-":"+";return n+fe(Math.abs(e)/60,2)}return fn(e,t)}function fn(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=fe(Math.floor(i/60),2),a=fe(i%60,2);return r+o+n+a}var Os=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},zu=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},sg=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Os(t,n);var a;switch(i){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",Os(i,n)).replace("{{time}}",zu(o,n))},lg={p:zu,P:sg},ug=["D","DD"],cg=["YY","YYYY"];function dg(e){return ug.indexOf(e)!==-1}function fg(e){return cg.indexOf(e)!==-1}function Ps(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var hg={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},mg=function(t,n,r){var i,o=hg[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function Yi(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var pg={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},gg={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wg={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},_g={date:Yi({formats:pg,defaultWidth:"full"}),time:Yi({formats:gg,defaultWidth:"full"}),dateTime:Yi({formats:wg,defaultWidth:"full"})},yg={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},vg=function(t,n,r,i){return yg[t]};function cr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):o;i=e.formattingValues[a]||e.formattingValues[o]}else{var s=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[s]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var bg={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Cg={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},xg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Sg={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Eg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},kg={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Tg=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ag={ordinalNumber:Tg,era:cr({values:bg,defaultWidth:"wide"}),quarter:cr({values:Cg,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:cr({values:xg,defaultWidth:"wide"}),day:cr({values:Sg,defaultWidth:"wide"}),dayPeriod:cr({values:Eg,defaultWidth:"wide",formattingValues:kg,defaultFormattingWidth:"wide"})};function dr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var a=o[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?Ng(s,function(c){return c.test(a)}):Mg(s,function(c){return c.test(a)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(a.length);return{value:u,rest:d}}}function Mg(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Ng(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function $g(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var a=e.valueCallback?e.valueCallback(o[0]):o[0];a=n.valueCallback?n.valueCallback(a):a;var s=t.slice(i.length);return{value:a,rest:s}}}var Dg=/^(\d+)(th|st|nd|rd)?/i,Ig=/\d+/i,Og={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Pg={any:[/^b/i,/^(a|c)/i]},Fg={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Rg={any:[/1/i,/2/i,/3/i,/4/i]},Lg={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Hg={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ug={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},jg={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Vg={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Wg={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Bg={ordinalNumber:$g({matchPattern:Dg,parsePattern:Ig,valueCallback:function(t){return parseInt(t,10)}}),era:dr({matchPatterns:Og,defaultMatchWidth:"wide",parsePatterns:Pg,defaultParseWidth:"any"}),quarter:dr({matchPatterns:Fg,defaultMatchWidth:"wide",parsePatterns:Rg,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:dr({matchPatterns:Lg,defaultMatchWidth:"wide",parsePatterns:Hg,defaultParseWidth:"any"}),day:dr({matchPatterns:Ug,defaultMatchWidth:"wide",parsePatterns:jg,defaultParseWidth:"any"}),dayPeriod:dr({matchPatterns:Vg,defaultMatchWidth:"any",parsePatterns:Wg,defaultParseWidth:"any"})},Gg={code:"en-US",formatDistance:mg,formatLong:_g,formatRelative:vg,localize:Ag,match:Bg,options:{weekStartsOn:0,firstWeekContainsDate:1}},qg=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,zg=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yg=/^'([^]*?)'?$/,Zg=/''/g,Kg=/[a-zA-Z]/;function Yu(e,t,n){var r,i,o,a,s,l,u,d,c,m,h,p,y,_;Qe(2,arguments);var E=String(t),k=Mi(),N=(r=(i=void 0)!==null&&i!==void 0?i:k.locale)!==null&&r!==void 0?r:Gg,P=Tn((o=(a=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:k.firstWeekContainsDate)!==null&&a!==void 0?a:(u=k.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(P>=1&&P<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var z=Tn((c=(m=(h=(p=void 0)!==null&&p!==void 0?p:void 0)!==null&&h!==void 0?h:k.weekStartsOn)!==null&&m!==void 0?m:(y=k.locale)===null||y===void 0||(_=y.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&c!==void 0?c:0);if(!(z>=0&&z<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!N.localize)throw new RangeError("locale must contain localize property");if(!N.formatLong)throw new RangeError("locale must contain formatLong property");var G=Ot(e);if(!Kp(G))throw new RangeError("Invalid time value");var R=Yp(G),w=Xp(G,R),g={firstWeekContainsDate:P,weekStartsOn:z,locale:N,_originalDate:G},C=E.match(zg).map(function(T){var A=T[0];if(A==="p"||A==="P"){var F=lg[A];return F(T,N.formatLong)}return T}).join("").match(qg).map(function(T){if(T==="''")return"'";var A=T[0];if(A==="'")return Xg(T);var F=ag[A];if(F)return fg(T)&&Ps(T,t,String(e)),dg(T)&&Ps(T,t,String(e)),F(w,T,N.localize,g);if(A.match(Kg))throw new RangeError("Format string contains an unescaped latin alphabet character `"+A+"`");return T}).join("");return C}function Xg(e){var t=e.match(Yg);return t?t[1].replace(Zg,"'"):e}function Jg(e){return Yu(e,"d MMM, yyyy")}function Qg(e){return Yu(e,"h:mm a")}function e1(e){let t,n,r,i,o,a,s;return f("div",x(v([["className","grid grid-cols-7"],(t=[f("div",x(v([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[f("div",x(v([["className"," flex flex-col justify-center items-start"],(r=[f("div",x(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:Jg(e.Timestamp)})],["children",S.Children.toArray(Array.from(i))])]))),f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:Qg(e.Timestamp)})],["children",S.Children.toArray(Array.from(r))])])))],["children",S.Children.toArray(Array.from(n))])]))),f("div",x(v([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[f("div",x(v([["className","justify-center items-start flex flex-col"],(a=Wt(_e(()=>{let l;return tt(ue(f("div",x(v([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[f("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",S.Children.toArray(Array.from(l))])])))),_e(()=>{const u=e.User.Email;return u==null?ue(Dt()):ue(f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",S.Children.toArray(Array.from(a))])])))],["children",S.Children.toArray(Array.from(o))])]))),f("div",x(v([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(s=[f("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",S.Children.toArray(Array.from(s))])])))],["children",S.Children.toArray(Array.from(t))])])))}function t1(e){const t=Ar(n=>f(e1,n),e.Data);return f("div",{className:"grow shrink basis-0 self-stretch flex flex-col justify-start items-stretch",children:S.Children.toArray(Array.from(t))})}function n1(e){let t,n,r,i,o;const a=e.height,s=e.width;return f("svg",x(v([["width",s],["height",a],["viewBox","0 0 "+s+" "+a],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=v([f("path",x(v([(n="M60 100C37.9441 100 20 82.0567 20 60C20 37.9433 37.9441 20 60 20C82.0559 20 100 37.9433 100 60C100 82.0567 82.0559 100 60 100Z",["d",n]),["fill","url(#paint0_linear_3770_593)"]]))),f("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),f("path",x(v([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(i=he(f("linearGradient",x(v([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=v([f("stop",{offset:0,stopColor:"#FFD84D"}),f("stop",{offset:1,stopColor:"#FF876F"})]),["children",S.Children.toArray(Array.from(o))])])))),f("defs",{children:S.Children.toArray(Array.from(i))}))]),["children",S.Children.toArray(Array.from(t))])])))}function r1(){let e;return f("div",x(v([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[f(n1,{width:120,height:120})],["children",S.Children.toArray(Array.from(e))])])))}function i1(){let e,t,n,r;return f("div",x(v([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[f(r1,null),f("div",x(v([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[f("div",x(v([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[f("div",x(v([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[f("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),f("div",{className:"self-stretch text-center text-gray-500 text-sm font-normal leading-tight",children:"Something went wrong while retrieving your activities. Please refresh the page to try again."})],["children",S.Children.toArray(Array.from(r))])])))],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))],["children",S.Children.toArray(Array.from(e))])])))}function o1(e){return{Data:fp(e.Data)}}function a1(e){let t,n;const r=e.props,i=r.tag===1?f(t1,o1(r.fields[0])):f(i1,null);return f("div",x(v([["className","relative h-full grow"],(t=[f("div",x(v([(n="absolute top-0 bottom-0 left-0 right-0 overflow-y-auto grow shrink basis-0 self-stretch flex flex-col justify-start items-stretch",["className",n]),["style",{scrollbarWidth:"none"}],["children",S.Children.toArray([i])]])))],["children",S.Children.toArray(Array.from(t))])])))}class Fs extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function s1(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return f("div",x(v([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[f("div",{className:"self-stretch h-px bg-gray-200"}),f("div",x(v([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Wt(_e(()=>{let o,a,s;return tt((o=i,o.tag===1?ue(f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(a=o.fields[0],ue((s=v([f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Nt(Cp(a))}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Nt(xp(a))}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),f("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Nt(a.TotalRecordsNumber)}),f("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),f("div",{children:S.Children.toArray(Array.from(s))}))))),_e(()=>{let l,u,d;return ue(f("div",x(v([["className","justify-start items-start gap-3 flex"],(l=[f("button",x(v([["type","button"],(u="py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",u]),["children","Previous"],["onClick",c=>{r(new Fs(0,[]))}],["disabled",!Vu(i)]]))),f("button",x(v([["type","button"],(d="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",d]),["children","Next"],["onClick",c=>{r(new Fs(1,[]))}],["disabled",!ju(i)]])))],["children",S.Children.toArray(Array.from(l))])]))))}))})),["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}class go extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function l1(e,t){e(t.tag===0?new go(2,[]):new go(1,[]))}function u1(e){let t,n;const r=e.actionHandler,i=e.props;return f("div",x(v([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[f(Gp,new op(lp(i),()=>{r(new go(0,[]))})),f(a1,{props:i}),f(s1,{pagingInfo:up(i),pageChangedHandler:o=>{l1(r,o)}})],["children",S.Children.toArray(Array.from(n))])])))}function c1(e,t){t.tag===0?e(new Gn(0,[t.fields[0]])):e(new Gn(1,[]))}function d1(e,t){switch(t.tag){case 2:{e(new Gn(4,[]));break}case 0:{e(new Gn(2,[]));break}default:e(new Gn(3,[]))}}function Rs(e){let t,n;const r=e.importHistory;let i;const o=Pp(r);i=Ti(()=>ki(()=>o,Rp,(d,c)=>{}),void 0,void 0);const a=i[0],s=i[1];let l;const u=Ep(a);return l={ActionHandler:d=>{c1(s,d)},Disabled:kp(a),Value:Vl(u)},f("div",x(v([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[f(Hp,null),f("div",x(v([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[f(jp,l),f(u1,{props:Tp(a),actionHandler:d=>{d1(s,d)}})],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}class Ls extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function f1(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return f("div",x(v([["className",It(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[f("div",{className:It(" ",["w-full h-4 relative rounded",r[1]])})],["children",S.Children.toArray(Array.from(n))])])))}function Hs(e){const t=Ar(n=>f1(e,n),v(["col-span-1","col-span-2","col-span-4"]));return f("div",{className:"grid grid-cols-7",children:S.Children.toArray(Array.from(t))})}function h1(){let e,t;return f("div",x(v([(e="self-stretch animate-pulse grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-start items-stretch",["className",e]),(t=bi(he(Hs(new Ls(0,[]))),Ar(n=>Hs(new Ls(1,[])),Wt(Du(1,1,5)))),["children",S.Children.toArray(Array.from(t))])])))}function m1(e){const t=lm(e.backendUrl);let n;const r=Ti(()=>ki(Xm,(o,a)=>Jm(()=>um(t),o),(o,a)=>{}),void 0,[])[0].View;n=r.tag===2?f(Rs,{importHistory:new b(1,[void 0])}):r.tag===1?f(Rs,{importHistory:new b(0,[np(r.fields[0])])}):f(h1,null);const i=[f("style",{children:[Bo]}),n];return f(xe,{},...i)}function p1(){No(e=>f(m1,e),"apollo-import-workspace-past-history")}class g1 extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class Zu extends ve{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}const Us=new Zu(void 0,void 0,void 0,void 0,void 0);function js(e,t){return new Zu(e.FirstName,e.LastName,e.Email,e.MobilePhone,Er(n=>n.fields[0],t))}class w1 extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class _1 extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Rn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class Rt extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class y1 extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class v1 extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FromFirstRow"]}}class b1 extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class C1 extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function x1(e,t){return new _1(er(n=>new w1(Re(t.fields[0].fields[0],n.fields[0])),e.fields[0]))}class Ku extends H{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class S1 extends ve{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class E1 extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithDraftColumnMappings","WithValidatedColumnMappings"]}}function k1(e){let t,n;const r=e.back;e.next,e.dataRows,e.headerRow;const i=e.existingMappings;return f("div",x(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12"],(t=[f("span",{className:"font-sonoma text-gray-900 font-semibold text-lg",children:"Map fields"}),f("span",{className:"text-sm font-normal pt-2",children:"Match the fields from your CSV to the corresponding destination fields."}),f("div",x(v([["className","flex flex-row justify-end gap-3 w-full"],(n=[f("button",{className:"rounded-md text-gray-700 text-sm font-medium w-[120px] border font-medium px-3 py-2",onClick:o=>{r(new E1(0,[i]))},type:"button",children:S.Children.toArray(["Back"])})],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}class Vs extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class T1 extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let Zi=class extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}};function A1(e,t,n,r){let i;return f("div",x(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12"],(i=[f("span",{className:"font-sonoma text-gray-900 font-semibold text-lg",children:"Map values - Employment basis"}),f("span",{className:"text-xs pt-2",children:"Match the values from your CSV to the corresponding destination values."})],["children",S.Children.toArray(Array.from(i))])])))}function M1(e,t,n,r,i,o){let a;return f("div",x(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12"],(a=[f("span",{className:"font-sonoma text-gray-900 font-semibold text-lg",children:"Review"}),f("span",{className:"text-xs pt-2",children:"Preview your data and confirm that everything is mapped correctly."})],["children",S.Children.toArray(Array.from(a))])])))}class Rr extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotCsv","TooLarge","ParseError"]}}class bn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var qr={exports:{}};/* @license
31
+ */var Su;function Q1(){if(Su)return fs;Su=1;var e=X1;function t(c,p){return c===p&&(c!==0||1/c===1/p)||c!==c&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,s=e.useDebugValue;function a(c,p){var f=p(),h=r({inst:{value:f,getSnapshot:p}}),g=h[0].inst,w=h[1];return i(function(){g.value=f,g.getSnapshot=p,l(g)&&w({inst:g})},[c,f,p]),o(function(){return l(g)&&w({inst:g}),c(function(){l(g)&&w({inst:g})})},[c]),s(f),f}function l(c){var p=c.getSnapshot;c=c.value;try{var f=p();return!n(c,f)}catch{return!0}}function u(c,p){return p()}var d=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return fs.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:d,fs}var Eu;function J1(){return Eu||(Eu=1,ds.exports=Q1()),ds.exports}var ew=J1();class tw{constructor(t,n,r){this.arg=n,this.dependencies=r;const o=t(),i=[];this.finalDispatch=void 0;let s;const a=z1(o)(this.arg);let l=a[0],u=a[1];s=[[l,d=>{const c=this.finalDispatch;c==null?i.push(d):c(d)},!1,i],u],this.state=s[0],this.cmd=s[1],this.subscribe=d=>{let c=!1;const p=Is(this.state[0]);return Z1(this.arg,G1((f,h)=>{const g=this.state;this.finalDispatch=h,this.state=[f,g[1],!0,i],f!==g[0]&&d()},q1((f,h)=>{const g=this.cmd;return this.cmd=J(),[this.state[0],g]},(f,h,g)=>f(h)(this.state[0]),Fs(f=>f),Fs(f=>f),Ge(f=>f),f=>[h=>f[0](h)?!0:p&&c,h=>{const g=h;Is(g)?Fe(g):f[1](h)}],o))),()=>{c=!0}}}}function ku(e,t,n){return new tw(e,t,n)}function nw(e){return e.state}function rw(e){return e.subscribe}function ow(e,t,n){return me(e.arg,t)?!me(e.dependencies,n):!0}function $o(e,t,n){const r=ae(()=>ku(e,t,n)),o=r[0];ow(o,t,n)&&r[1](ku(e,t,n));const i=ew.useSyncExternalStore(rw(o),()=>nw(o)),s=i[2],a=i[3],l=i[1];return Se(()=>{if(s&&a.length>0){let u=Le(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const d=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{Fe(u)}Tm(a)}},[s,a]),[i[0],l]}class Bs extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function iw(e){return e.tag===1?new Bs(0,[]):new Bs(1,[])}function sw(e,t,n){return e.tag===1?R0(t,n,{Compare:wt}):P0(t,n,{Compare:wt})}class Gn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Qo=class extends Te{constructor(t){super(),this.View=t}},Jo=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Qd=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function aw(){return[new Qo(new Jo(0,[])),ge(e=>{e(new Qd(new Gn(0,[void 0])))})]}function lw(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Qo(new Jo(2,[t.fields[0].fields[0].fields[0]])),J()]:[new Qo(new Jo(1,[t.fields[0].fields[0].fields[0]])),J()]:[new Qo(new Jo(0,[])),R1(r=>{L1(r)},e,void 0,r=>new Qd(new Gn(1,[r])))]}class uw extends Te{constructor(t){super(),this.UserActivities=t}}class Tu extends Te{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function cw(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Ar(yn(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function dw(e){return Fi(b(Ca(yn(t=>new Tu(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),ko(t=>new Tu(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function fw(e){return new uw(Ar(yn(dw,e),Je()))}class Au extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class hw extends Te{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class Mo extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class mw extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class pw extends Te{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Jd extends Te{constructor(t,n){super(),this.Column=t,this.Direction=n}}class gw extends z{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class wi extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class ww extends Te{constructor(t,n,r,o,i){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=o|0,this.PageSize=i|0}}function yw(e){return e.tag===1?ef(e.fields[0].Data):rf()}function vw(e){return e.tag===1?jr(e.fields[0].Data):new wi(1,[])}function bw(e){const t=ja(rf(),e);return new Mo([sf(pd(e),20),t])}function No(e){return e.fields[0][1]}function ef(e){return nf(No(e))}function _w(e){return Ba(No(e))}function jr(e){return e.fields[0][0]}function xw(e){const t=jr(e);if(t.tag===0){const n=t.fields[0],r=L0(n.FirstRowIndex,_w(e));return H0(Fw(n),r)}else return Je()}function tf(e,t){const n=ja(ef(e),t);return new Mo([Nw(jr(e),pd(Ba(n))),n])}function Cw(e){return new Mo([jr(e),kw(No(e))])}function Sw(e){return new Mo([Mw(jr(e)),No(e)])}function Ew(e){return new Mo([$w(jr(e)),No(e)])}function ja(e,t){return new mw([e,sw(e.Direction,n=>n.Timestamp,t)])}function Ba(e){return e.fields[0][1]}function nf(e){return e.fields[0][0]}function kw(e){return ja(Tw(nf(e)),Ba(e))}function rf(){return new Jd(new gw,new Bs(0,[]))}function Tw(e){return new Jd(e.Column,iw(e.Direction))}function of(e,t){return~~(e/t)+(e%t===0?0:1)}function Hi(e,t,n){if(e<=0)return new wi(1,[]);{const r=jl(n,of(e,t))|0,o=(r-1)*t|0;return new wi(0,[new ww(r,o,jl(o+t-1,e-1),e,t)])}}function sf(e,t){return Hi(e,t,1)}function Aw(e){if(e.tag===0){const t=e.fields[0];return of(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function af(e){return e.tag===0?e.fields[0].CurrentPage<Aw(e):!1}function lf(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function $w(e){const t=lf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Hi(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Mw(e){const t=af(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Hi(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Nw(e,t){return t<=0?new wi(1,[]):e.tag===0?Hi(t,20,e.fields[0].CurrentPage):sf(t,20)}function Iw(e){return e.FirstRowIndex+1}function Ow(e){return e.LastRowIndex+1}function Fw(e){return e.LastRowIndex-e.FirstRowIndex+1}let $n=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class Br extends Te{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class Va extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Dw(e){if(e.tag===1)return uf(e.fields[0])}function Pw(e){return e.tag===0}function Rw(e){return e.tag===1?new Au(1,[Ww(e.fields[0])]):new Au(0,[])}function uf(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Lw(e){return uf(e)!=null}function Hw(e,t){return new $n(1,[new Br(e.ImportHistory,new Va(1,[t]),tf(e.PaginatedList,gd(n=>cw(n.User,t),e.ImportHistory.UserActivities)))])}function jw(e){return new $n(1,[new Br(e.ImportHistory,new Va(0,[]),tf(e.PaginatedList,e.ImportHistory.UserActivities))])}function Bw(e){return new $n(1,[new Br(e.ImportHistory,e.View,Cw(e.PaginatedList))])}function Vw(e){return new $n(1,[new Br(e.ImportHistory,e.View,Sw(e.PaginatedList))])}function Uw(e){return new $n(1,[new Br(e.ImportHistory,e.View,Ew(e.PaginatedList))])}function Ww(e){return new hw(e.PaginatedList,Lw(e))}let xr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Gw(e){let t;return[e.tag===1?new $n(0,[]):(t=e.fields[0],new $n(1,[new Br(t,new Va(0,[]),bw(t.UserActivities))])),J()]}function cf(e,t){return e.tag===1?t(e.fields[0]):[new $n(0,[]),J()]}function zw(e,t){return cf(e,n=>[t(n),J()])}function qw(e,t){const n=r=>zw(t,r);switch(e.tag){case 1:return n(jw);case 2:return n(Bw);case 3:return n(Vw);case 4:return n(Uw);default:{const r=e.fields[0];return cf(t,o=>xa(r)?[t,ge(i=>{i(new xr(1,[]))})]:[Hw(o,r),J()])}}}function Yw(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([(r="M6.77835 19.8844C6.74702 19.9444 6.7414 20.0146 6.76278 20.0789C6.78416 20.1432 6.83071 20.196 6.89177 20.2254L7.82464 20.6734C7.9462 20.7317 8.09214 20.6832 8.15452 20.5636L16.5023 4.56364C16.5337 4.50358 16.5393 4.43338 16.5179 4.3691C16.4965 4.30482 16.45 4.25197 16.3889 4.22264L15.4561 3.77464C15.3345 3.71627 15.1886 3.76481 15.1262 3.88436L6.77835 19.8844Z",["d",r]),["fill","#D1D5DB"],["stroke","#D1D5DB"],["strokeWidth",.5],["strokeLinejoin","round"]])))),["children",E.Children.toArray(Array.from(n))])])))}function Zw(){let e,t,n;return m("div",x(b([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[m("div",x(b([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[m("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),m("div",x(b([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Yw(24,24)],["children",E.Children.toArray(Array.from(n))])]))),m("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",E.Children.toArray(Array.from(t))])])))],["children",E.Children.toArray(Array.from(e))])])))}function Kw(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([["clipRule","evenodd"],(r="M8 4C5.79086 4 4 5.79086 4 8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8C12 5.79086 10.2091 4 8 4ZM2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8C14 9.29583 13.5892 10.4957 12.8907 11.4765L17.7071 16.2929C18.0976 16.6834 18.0976 17.3166 17.7071 17.7071C17.3166 18.0976 16.6834 18.0976 16.2929 17.7071L11.4765 12.8907C10.4957 13.5892 9.29583 14 8 14C4.68629 14 2 11.3137 2 8Z",["d",r]),["fill","#9CA3AF"]])))),["children",E.Children.toArray(Array.from(n))])])))}function Vs(e,t){let n,r;return m("svg",x(b([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([(r="M9.70757 0.292433C9.52026 0.105188 9.26626 0 9.00142 0C8.73658 0 8.48257 0.105188 8.29527 0.292433L5.00624 3.58146L1.71721 0.292433C1.52884 0.110495 1.27654 0.00982222 1.01466 0.0120979C0.752781 0.0143736 0.502271 0.119416 0.317087 0.3046C0.131902 0.489785 0.0268602 0.740295 0.0245845 1.00218C0.0223088 1.26406 0.122982 1.51635 0.30492 1.70473L3.59395 4.99376L0.30492 8.28279C0.209525 8.37492 0.133435 8.48513 0.0810888 8.60699C0.028743 8.72885 0.00119014 8.85991 3.77112e-05 8.99253C-0.00111471 9.12515 0.0241565 9.25667 0.0743768 9.37942C0.124597 9.50216 0.19876 9.61368 0.29254 9.70746C0.386319 9.80124 0.497837 9.8754 0.620585 9.92562C0.743333 9.97584 0.874854 10.0011 1.00747 9.99996C1.14009 9.99881 1.27115 9.97126 1.39301 9.91891C1.51487 9.86657 1.62508 9.79047 1.71721 9.69508L5.00624 6.40605L8.29527 9.69508C8.48365 9.87702 8.73594 9.97769 8.99782 9.97542C9.25971 9.97314 9.51022 9.8681 9.6954 9.68291C9.88058 9.49773 9.98563 9.24722 9.9879 8.98534C9.99018 8.72346 9.88951 8.47116 9.70757 8.28279L6.41854 4.99376L9.70757 1.70473C9.89481 1.51743 10 1.26343 10 0.998581C10 0.733736 9.89481 0.479735 9.70757 0.292433Z",["d",r]),["fill","currentColor"]])))),["children",E.Children.toArray(Array.from(n))])])))}class $u extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function Xw(e){let t,n;const r=Ar(e.Value,"");return m("div",x(b([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[m("div",x(b([["className",Kt(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Ue(G(()=>{let o;return ye(j(m("div",x(b([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(o=[Kw(20,20)],["children",E.Children.toArray(Array.from(o))])])))),G(()=>{let i;return ye(j(m("input",x(b([(i="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",i]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new $u(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),G(()=>{let s;return xa(r)?j(Ke()):j(m("div",x(b([["onClick",a=>{e.ActionHandler(new $u(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Vs(10,10)],["children",E.Children.toArray(Array.from(s))])]))))}))}))})),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}function Qw(e){let t,n;const r=e.height,o=e.width;return m("svg",x(b([["fill","none"],["height",r],["width",o],["viewBox","0 0 "+o+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=ge(m("path",x(b([(n="M4.98771 6.01229C4.72252 6.01223 4.4682 5.90684 4.28071 5.71929L0.280712 1.71929C0.0985537 1.53069 -0.00224062 1.27808 3.78026e-05 1.01589C0.00231622 0.75369 0.107485 0.502878 0.292893 0.31747C0.478301 0.132062 0.729114 0.0268924 0.99131 0.0246139C1.25351 0.0223355 1.50611 0.12313 1.69471 0.305288L4.98771 3.59829L8.28071 0.305288C8.37296 0.209778 8.4833 0.133596 8.60531 0.0811869C8.72731 0.0287779 8.85853 0.00119157 8.99131 3.77571e-05C9.12409 -0.00111606 9.25577 0.0241854 9.37867 0.0744663C9.50156 0.124747 9.61321 0.199 9.70711 0.292893C9.801 0.386786 9.87525 0.498438 9.92553 0.621334C9.97581 0.744231 10.0011 0.87591 9.99996 1.00869C9.99881 1.14147 9.97122 1.27269 9.91881 1.39469C9.8664 1.5167 9.79022 1.62704 9.69471 1.71929L5.69471 5.71929C5.50722 5.90684 5.25291 6.01223 4.98771 6.01229Z",["d",n]),["fill","#111827"]])))),["children",E.Children.toArray(Array.from(t))])])))}function Jw(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return m("div",x(b([["className",Kt(" ",Ue(G(()=>ye(j("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),G(()=>r.tag===1?j("rotate-180"):j(""))))))],["onClick",o=>{n(void 0)}],(t=[m(Qw,{width:10,height:7})],["children",E.Children.toArray(Array.from(t))])])))}function ey(e){const t=e.toggleSortDirection,n=e.props;return m(Jw,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function ty(e){let t,n,r,o;const i=m(ey,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return m("div",x(b([["className","flex-none grid grid-cols-7"],(t=[m("div",x(b([["className","col-span-1 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(n=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),i],["children",E.Children.toArray(Array.from(n))])]))),m("div",x(b([["className","col-span-2 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(r=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",E.Children.toArray(Array.from(r))])]))),m("div",x(b([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(o=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(t))])])))}function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function Qn(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function ht(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function Jt(e){ht(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||yi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function ny(e,t){ht(2,arguments);var n=Jt(e).getTime(),r=Qn(t);return new Date(n+r)}var ry={};function ji(){return ry}function oy(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function iy(e){return ht(1,arguments),e instanceof Date||yi(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sy(e){if(ht(1,arguments),!iy(e)&&typeof e!="number")return!1;var t=Jt(e);return!isNaN(Number(t))}function ay(e,t){ht(2,arguments);var n=Qn(t);return ny(e,-n)}var ly=864e5;function uy(e){ht(1,arguments);var t=Jt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/ly)+1}function vi(e){ht(1,arguments);var t=1,n=Jt(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function df(e){ht(1,arguments);var t=Jt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=vi(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var s=vi(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function cy(e){ht(1,arguments);var t=df(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=vi(n);return r}var dy=6048e5;function fy(e){ht(1,arguments);var t=Jt(e),n=vi(t).getTime()-cy(t).getTime();return Math.round(n/dy)+1}function bi(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=ji(),c=Qn((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&o!==void 0?o:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=Jt(e),f=p.getUTCDay(),h=(f<c?7:0)+f-c;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function ff(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=Jt(e),c=d.getUTCFullYear(),p=ji(),f=Qn((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(c+1,0,f),h.setUTCHours(0,0,0,0);var g=bi(h,t),w=new Date(0);w.setUTCFullYear(c,0,f),w.setUTCHours(0,0,0,0);var _=bi(w,t);return d.getTime()>=g.getTime()?c+1:d.getTime()>=_.getTime()?c:c-1}function hy(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=ji(),c=Qn((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&o!==void 0?o:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=ff(e,t),f=new Date(0);f.setUTCFullYear(p,0,c),f.setUTCHours(0,0,0,0);var h=bi(f,t);return h}var my=6048e5;function py(e,t){ht(1,arguments);var n=Jt(e),r=bi(n,t).getTime()-hy(n,t).getTime();return Math.round(r/my)+1}function ke(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Cn={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return ke(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):ke(r+1,2)},d:function(t,n){return ke(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return ke(t.getUTCHours()%12||12,n.length)},H:function(t,n){return ke(t.getUTCHours(),n.length)},m:function(t,n){return ke(t.getUTCMinutes(),n.length)},s:function(t,n){return ke(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return ke(i,n.length)}},dr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},gy={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return Cn.y(t,n)},Y:function(t,n,r,o){var i=ff(t,o),s=i>0?i:1-i;if(n==="YY"){var a=s%100;return ke(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):ke(s,n.length)},R:function(t,n){var r=df(t);return ke(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return ke(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return ke(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return ke(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return Cn.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return ke(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=py(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):ke(i,n.length)},I:function(t,n,r){var o=fy(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):ke(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Cn.d(t,n)},D:function(t,n,r){var o=uy(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):ke(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return ke(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),s=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return ke(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return ke(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=dr.noon:o===0?i=dr.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=dr.evening:o>=12?i=dr.afternoon:o>=4?i=dr.morning:i=dr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return Cn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Cn.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):ke(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):ke(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Cn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Cn.s(t,n)},S:function(t,n){return Cn.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Nu(s);case"XXXX":case"XX":return Ln(s);case"XXXXX":case"XXX":default:return Ln(s,":")}},x:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return Nu(s);case"xxxx":case"xx":return Ln(s);case"xxxxx":case"xxx":default:return Ln(s,":")}},O:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Mu(s,":");case"OOOO":default:return"GMT"+Ln(s,":")}},z:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Mu(s,":");case"zzzz":default:return"GMT"+Ln(s,":")}},t:function(t,n,r,o){var i=o._originalDate||t,s=Math.floor(i.getTime()/1e3);return ke(s,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,s=i.getTime();return ke(s,n.length)}};function Mu(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var s=t;return n+String(o)+s+ke(i,2)}function Nu(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ke(Math.abs(e)/60,2)}return Ln(e,t)}function Ln(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=ke(Math.floor(o/60),2),s=ke(o%60,2);return r+i+n+s}var Iu=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},hf=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},wy=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Iu(t,n);var s;switch(o){case"P":s=n.dateTime({width:"short"});break;case"PP":s=n.dateTime({width:"medium"});break;case"PPP":s=n.dateTime({width:"long"});break;case"PPPP":default:s=n.dateTime({width:"full"});break}return s.replace("{{date}}",Iu(o,n)).replace("{{time}}",hf(i,n))},yy={p:hf,P:wy},vy=["D","DD"],by=["YY","YYYY"];function _y(e){return vy.indexOf(e)!==-1}function xy(e){return by.indexOf(e)!==-1}function Ou(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Cy={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Sy=function(t,n,r){var o,i=Cy[t];return typeof i=="string"?o=i:n===1?o=i.one:o=i.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function hs(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var Ey={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ky={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ty={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Ay={date:hs({formats:Ey,defaultWidth:"full"}),time:hs({formats:ky,defaultWidth:"full"}),dateTime:hs({formats:Ty,defaultWidth:"full"})},$y={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},My=function(t,n,r,o){return $y[t]};function Xr(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",o;if(r==="formatting"&&e.formattingValues){var i=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):i;o=e.formattingValues[s]||e.formattingValues[i]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return o[u]}}var Ny={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Iy={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Oy={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Fy={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Dy={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Py={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Ry=function(t,n){var r=Number(t),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Ly={ordinalNumber:Ry,era:Xr({values:Ny,defaultWidth:"wide"}),quarter:Xr({values:Iy,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Xr({values:Oy,defaultWidth:"wide"}),day:Xr({values:Fy,defaultWidth:"wide"}),dayPeriod:Xr({values:Dy,defaultWidth:"wide",formattingValues:Py,defaultFormattingWidth:"wide"})};function Qr(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var s=i[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?jy(a,function(c){return c.test(s)}):Hy(a,function(c){return c.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var d=t.slice(s.length);return{value:u,rest:d}}}function Hy(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function jy(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function By(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var o=r[0],i=t.match(e.parsePattern);if(!i)return null;var s=e.valueCallback?e.valueCallback(i[0]):i[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(o.length);return{value:s,rest:a}}}var Vy=/^(\d+)(th|st|nd|rd)?/i,Uy=/\d+/i,Wy={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gy={any:[/^b/i,/^(a|c)/i]},zy={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},qy={any:[/1/i,/2/i,/3/i,/4/i]},Yy={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Zy={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ky={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xy={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Qy={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Jy={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ev={ordinalNumber:By({matchPattern:Vy,parsePattern:Uy,valueCallback:function(t){return parseInt(t,10)}}),era:Qr({matchPatterns:Wy,defaultMatchWidth:"wide",parsePatterns:Gy,defaultParseWidth:"any"}),quarter:Qr({matchPatterns:zy,defaultMatchWidth:"wide",parsePatterns:qy,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Qr({matchPatterns:Yy,defaultMatchWidth:"wide",parsePatterns:Zy,defaultParseWidth:"any"}),day:Qr({matchPatterns:Ky,defaultMatchWidth:"wide",parsePatterns:Xy,defaultParseWidth:"any"}),dayPeriod:Qr({matchPatterns:Qy,defaultMatchWidth:"any",parsePatterns:Jy,defaultParseWidth:"any"})},tv={code:"en-US",formatDistance:Sy,formatLong:Ay,formatRelative:My,localize:Ly,match:ev,options:{weekStartsOn:0,firstWeekContainsDate:1}},nv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ov=/^'([^]*?)'?$/,iv=/''/g,sv=/[a-zA-Z]/;function mf(e,t,n){var r,o,i,s,a,l,u,d,c,p,f,h,g,w;ht(2,arguments);var _=String(t),C=ji(),S=(r=(o=void 0)!==null&&o!==void 0?o:C.locale)!==null&&r!==void 0?r:tv,$=Qn((i=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:C.firstWeekContainsDate)!==null&&s!==void 0?s:(u=C.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=Qn((c=(p=(f=(h=void 0)!==null&&h!==void 0?h:void 0)!==null&&f!==void 0?f:C.weekStartsOn)!==null&&p!==void 0?p:(g=C.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!S.localize)throw new RangeError("locale must contain localize property");if(!S.formatLong)throw new RangeError("locale must contain formatLong property");var P=Jt(e);if(!sy(P))throw new RangeError("Invalid time value");var F=oy(P),v=ay(P,F),y={firstWeekContainsDate:$,weekStartsOn:O,locale:S,_originalDate:P},k=_.match(rv).map(function(T){var N=T[0];if(N==="p"||N==="P"){var D=yy[N];return D(T,S.formatLong)}return T}).join("").match(nv).map(function(T){if(T==="''")return"'";var N=T[0];if(N==="'")return av(T);var D=gy[N];if(D)return xy(T)&&Ou(T,t,String(e)),_y(T)&&Ou(T,t,String(e)),D(v,T,S.localize,y);if(N.match(sv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return T}).join("");return k}function av(e){var t=e.match(ov);return t?t[1].replace(iv,"'"):e}function lv(e){return mf(e,"d MMM, yyyy")}function uv(e){return mf(e,"h:mm a")}function cv(e){let t,n,r,o,i,s,a;return m("div",x(b([["className","grid grid-cols-7"],(t=[m("div",x(b([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[m("div",x(b([["className"," flex flex-col justify-center items-start"],(r=[m("div",x(b([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:lv(e.Timestamp)})],["children",E.Children.toArray(Array.from(o))])]))),m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:uv(e.Timestamp)})],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])]))),m("div",x(b([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(i=[m("div",x(b([["className","justify-center items-start flex flex-col"],(s=Ue(G(()=>{let l;return ye(j(m("div",x(b([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",E.Children.toArray(Array.from(l))])])))),G(()=>{const u=e.User.Email;return u==null?j(Ke()):j(m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(i))])]))),m("div",x(b([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",E.Children.toArray(Array.from(a))])])))],["children",E.Children.toArray(Array.from(t))])])))}function dv(e){const t=ko(n=>m(cv,n),e.Data);return m("div",{className:"grow shrink basis-0 self-stretch flex flex-col justify-start items-stretch",children:E.Children.toArray(Array.from(t))})}function fv(e){let t,n,r,o,i;const s=e.height,a=e.width;return m("svg",x(b([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=b([m("path",x(b([(n="M60 100C37.9441 100 20 82.0567 20 60C20 37.9433 37.9441 20 60 20C82.0559 20 100 37.9433 100 60C100 82.0567 82.0559 100 60 100Z",["d",n]),["fill","url(#paint0_linear_3770_593)"]]))),m("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",x(b([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(o=ge(m("linearGradient",x(b([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(i=b([m("stop",{offset:0,stopColor:"#FFD84D"}),m("stop",{offset:1,stopColor:"#FF876F"})]),["children",E.Children.toArray(Array.from(i))])])))),m("defs",{children:E.Children.toArray(Array.from(o))}))]),["children",E.Children.toArray(Array.from(t))])])))}function hv(){let e;return m("div",x(b([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[m(fv,{width:120,height:120})],["children",E.Children.toArray(Array.from(e))])])))}function mv(){let e,t,n,r;return m("div",x(b([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[m(hv,null),m("div",x(b([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[m("div",x(b([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[m("div",x(b([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[m("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),m("div",{className:"self-stretch text-center text-gray-500 text-sm font-normal leading-tight",children:"Something went wrong while retrieving your activities. Please refresh the page to try again."})],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))],["children",E.Children.toArray(Array.from(e))])])))}function pv(e){return{Data:xw(e.Data)}}function gv(e){let t,n;const r=e.props,o=r.tag===1?m(dv,pv(r.fields[0])):m(mv,null);return m("div",x(b([["className","relative h-full grow"],(t=[m("div",x(b([(n="absolute top-0 bottom-0 left-0 right-0 overflow-y-auto grow shrink basis-0 self-stretch flex flex-col justify-start items-stretch",["className",n]),["style",{scrollbarWidth:"none"}],["children",E.Children.toArray([o])]])))],["children",E.Children.toArray(Array.from(t))])])))}class Fu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function wv(e){let t,n;const r=e.pageChangedHandler,o=e.pagingInfo;return m("div",x(b([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[m("div",{className:"self-stretch h-px bg-gray-200"}),m("div",x(b([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Ue(G(()=>{let i,s,a;return ye((i=o,i.tag===1?j(m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=i.fields[0],j((a=b([m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(Iw(s))}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(Ow(s))}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(s.TotalRecordsNumber)}),m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),m("div",{children:E.Children.toArray(Array.from(a))}))))),G(()=>{let l,u,d;return j(m("div",x(b([["className","justify-start items-start gap-3 flex"],(l=[m("button",x(b([["type","button"],(u="py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",u]),["children","Previous"],["onClick",c=>{r(new Fu(0,[]))}],["disabled",!lf(o)]]))),m("button",x(b([["type","button"],(d="ml-3 py-2 px-3 bg-white border border-gray-300 shadow-sm rounded-md text-sm font-medium text-gray-700 leading-4 disabled:cursor-not-allowed disabled:opacity-50 hover:bg-gray-50",["className",d]),["children","Next"],["onClick",c=>{r(new Fu(1,[]))}],["disabled",!af(o)]])))],["children",E.Children.toArray(Array.from(l))])]))))}))})),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class Us extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function yv(e,t){e(t.tag===0?new Us(2,[]):new Us(1,[]))}function vv(e){let t,n;const r=e.actionHandler,o=e.props;return m("div",x(b([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[m(ty,new pw(yw(o),()=>{r(new Us(0,[]))})),m(gv,{props:o}),m(wv,{pagingInfo:vw(o),pageChangedHandler:i=>{yv(r,i)}})],["children",E.Children.toArray(Array.from(n))])])))}function bv(e,t){t.tag===0?e(new xr(0,[t.fields[0]])):e(new xr(1,[]))}function _v(e,t){switch(t.tag){case 2:{e(new xr(4,[]));break}case 0:{e(new xr(2,[]));break}default:e(new xr(3,[]))}}function Du(e){let t,n;const r=e.importHistory;let o;const i=Gw(r);o=$o(()=>Ao(()=>i,qw,(d,c)=>{}),void 0,void 0);const s=o[0],a=o[1];let l;const u=Dw(s);return l={ActionHandler:d=>{bv(a,d)},Disabled:Pw(s),Value:Ps(u)},m("div",x(b([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[m(Zw,null),m("div",x(b([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[m(Xw,l),m(vv,{props:Rw(s),actionHandler:d=>{_v(a,d)}})],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class Pu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function xv(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return m("div",x(b([["className",Kt(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[m("div",{className:Kt(" ",["w-full h-4 relative rounded",r[1]])})],["children",E.Children.toArray(Array.from(n))])])))}function Ru(e){const t=ko(n=>xv(e,n),b(["col-span-1","col-span-2","col-span-4"]));return m("div",{className:"grid grid-cols-7",children:E.Children.toArray(Array.from(t))})}function Cv(){let e,t;return m("div",x(b([(e="self-stretch animate-pulse grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-start items-stretch",["className",e]),(t=Fi(ge(Ru(new Pu(0,[]))),ko(n=>Ru(new Pu(1,[])),Ue(Xd(1,1,5)))),["children",E.Children.toArray(Array.from(t))])])))}function Sv(e){const t=y1(e.backendUrl);let n;const r=$o(()=>Ao(aw,(i,s)=>lw(()=>v1(t),i),(i,s)=>{}),void 0,[])[0].View;n=r.tag===2?m(Du,{importHistory:new A(1,[void 0])}):r.tag===1?m(Du,{importHistory:new A(0,[fw(r.fields[0])])}):m(Cv,null);const o=[m("style",{children:[ba]}),n];return m(Oe,{},...o)}function Ev(){la(e=>m(Sv,e),"apollo-import-workspace-past-history")}class kv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class Tv extends Te{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}class Av extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class co extends Te{constructor(t,n,r,o,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o,this.EmploymentBasis=i}}new co(void 0,void 0,void 0,void 0,void 0);function Lu(e,t){return new co(e.FirstName,e.LastName,e.Email,e.MobilePhone,yn(n=>n.fields[0],t))}class $v extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class Mv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class fr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class nn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class Nv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class Iv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Ov extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function Fv(e,t){return new Mv(pn(n=>new $v(ze(t.fields[0].fields[0],n.fields[0])),e.fields[0]))}class pf extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class Dv extends Te{constructor(t,n,r,o){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=o|0}}class Uo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}function Pv(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM11 6C11 6.55228 10.5523 7 10 7C9.44772 7 9 6.55228 9 6C9 5.44772 9.44772 5 10 5C10.5523 5 11 5.44772 11 6ZM9 9C8.44772 9 8 9.44772 8 10C8 10.5523 8.44772 11 9 11V14C9 14.5523 9.44772 15 10 15H11C11.5523 15 12 14.5523 12 14C12 13.4477 11.5523 13 11 13V10C11 9.44772 10.5523 9 10 9H9Z",["d",r]),["fill","#60A5FA"]])))),["children",E.Children.toArray(Array.from(n))])])))}function gf(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([(r="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",r]),["fill","#F87171"]])))),["children",E.Children.toArray(Array.from(n))])])))}class ce extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function wf(e){switch(e.tag){case 1:return"Last name";case 2:return"Email";case 3:return"Mobile phone";case 4:return"Employment basis";default:return"First name"}}let Pn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class Jr extends Te{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class Rv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class sn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let mr=class extends Te{constructor(t,n,r,o,i,s,a,l,u,d){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o,this.EmploymentBasis=i,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=d}};function Lv(e,t){const n=t.tag===1?["lastname","surname","familyname"]:t.tag===2?["email"]:t.tag===3?["mobilephone","mobilephonenumber","mobilenumber","mobile","phonenumber","phone"]:t.tag===4?["employmentbasis","employmenttype"]:["firstname","givenname","christianname","forename","baptismname","baptismalname"];return yn(r=>r[0],Ta(r=>dd(Jc(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(o,i)=>o===i,GetHashCode:Dr}),e))}function Hv(e,t){return new Rv(pn(n=>{const r=n[0];return[r,n[1],dd(r,t,{Equals:me,GetHashCode:Cm})?new sn(1,[]):new sn(0,[])]},e))}function yf(e,t,n){switch(t.tag){case 1:return[e.FirstName.ColumnIndex,n,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 2:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,n,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex];case 3:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,n,e.EmploymentBasis.ColumnIndex];case 4:return[e.FirstName.ColumnIndex,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,n];default:return[n,e.LastName.ColumnIndex,e.Email.ColumnIndex,e.MobilePhone.ColumnIndex,e.EmploymentBasis.ColumnIndex]}}function pr(e,t){return on(n=>n,pn(n=>fd(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,11)))}function Ua(e,t,n,r,o,i,s){let a,l,u;const d=h=>Hv(e,h);let c;c=on(h=>h,[n,r,o,i,s]).length;const f=n!=null?r!=null?o!=null?(a=o,l=n,u=r,new Uo(1,[new Tv(l,u,a,i),yn(h=>new Av(h),s)])):new Uo(0,[new co(n,r,o,i,s)]):new Uo(0,[new co(n,r,o,i,s)]):new Uo(0,[new co(n,r,o,i,s)]);return new mr(new Jr(n,d(on(h=>h,[r,o,i,s]))),new Jr(r,d(on(h=>h,[n,o,i,s]))),new Jr(o,d(on(h=>h,[n,r,i,s]))),new Jr(i,d(on(h=>h,[n,r,o,s]))),new Jr(s,d(on(h=>h,[n,r,o,i]))),t,e.length,c,e.length-c,f)}function eo(e,t,n,r,o){let i,s,a;const l=[r,o];return a=yf(n,l[0],l[1]),Ua(e,(i=n.Preview,i!=null&&me(i[0],r)?(s=i[0],[s,pr(o,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function to(e,t,n){let r,o;const i=[n,void 0];return o=yf(t,i[0],i[1]),Ua(e,(r=t.Preview,r!=null&&me(r[0],n)?(r[0],void 0):t.Preview),o[0],o[1],o[2],o[3],o[4])}function vf(e,t){switch(t.tag){case 1:return e.LastName.ColumnIndex!=null;case 2:return e.Email.ColumnIndex!=null;case 3:return e.MobilePhone.ColumnIndex!=null;case 4:return e.EmploymentBasis.ColumnIndex!=null;default:return e.FirstName.ColumnIndex!=null}}const jv=e=>t=>vf(e,t);function Bv(e,t){const n=vf(e,t),r=e.Preview;let o;switch(n?r==null?o=2:me(r[0],t)?(o=1,r[0]):o=2:o=0,o){case 0:return!1;case 1:return!1;default:return!0}}function Vv(e,t){let n,r,o,i,s,a,l,u,d;const c=p=>Lv(e,p);return[(n=t==null?(r=c(new ce(0,[])),o=c(new ce(1,[])),i=c(new ce(2,[])),s=c(new ce(3,[])),a=c(new ce(4,[])),l=on(p=>p,[r,o,i,s,a]),u=p=>{let f,h;switch(p!=null?(f=p,l.filter(g=>me(g,f)).length>1?h=0:h=1):h=1,h){case 0:return;default:return p}},[u(r),u(o),u(i),u(s),u(a)]):(d=t,[d.FirstName,d.LastName,d.Email,d.MobilePhone,d.EmploymentBasis]),Ua(e,void 0,n[0],n[1],n[2],n[3],n[4])),J()]}function Uv(e,t,n,r){let o,i,s,a,l,u,d,c,p,f,h,g,w,_,C,S,$,O,P,F,v;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?h=6:h=15;break}case 2:{r.Email.ColumnIndex!=null?h=7:h=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?h=8:h=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?h=9:h=15;break}default:r.FirstName.ColumnIndex!=null?h=5:h=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(h=11,O=r.LastName.ColumnIndex):h=15;break}case 2:{r.Email.ColumnIndex!=null?(h=12,P=r.Email.ColumnIndex):h=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(h=13,F=r.MobilePhone.ColumnIndex):h=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(h=14,v=r.EmploymentBasis.ColumnIndex):h=15;break}default:r.FirstName.ColumnIndex!=null?(h=10,$=r.FirstName.ColumnIndex):h=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!me(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(y=>me(u,y[0])?me(y[2],new sn(0,[])):!1)?(h=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],w=n.fields[1]):h=15;break}case 2:{d=n.fields[1],!me(r.Email.ColumnIndex,d)&&r.Email.IncomingFields.fields[0].some(y=>me(d,y[0])?me(y[2],new sn(0,[])):!1)?(h=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],_=n.fields[1]):h=15;break}case 3:{c=n.fields[1],!me(r.MobilePhone.ColumnIndex,c)&&r.MobilePhone.IncomingFields.fields[0].some(y=>me(c,y[0])?me(y[2],new sn(0,[])):!1)?(h=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],C=n.fields[1]):h=15;break}case 4:{p=n.fields[1],!me(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(y=>me(p,y[0])?me(y[2],new sn(0,[])):!1)?(h=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],S=n.fields[1]):h=15;break}default:f=n.fields[1],!me(r.FirstName.ColumnIndex,f)&&r.FirstName.IncomingFields.fields[0].some(y=>me(f,y[0])?me(y[2],new sn(0,[])):!1)?(h=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],g=n.fields[1]):h=15}}switch(h){case 0:return[(o=[new ce(0,[]),g],eo(e,t,r,o[0],o[1])),J()];case 1:return[(i=[new ce(1,[]),w],eo(e,t,r,i[0],i[1])),J()];case 2:return[(s=[new ce(2,[]),_],eo(e,t,r,s[0],s[1])),J()];case 3:return[(a=[new ce(3,[]),C],eo(e,t,r,a[0],a[1])),J()];case 4:return[(l=[new ce(4,[]),S],eo(e,t,r,l[0],l[1])),J()];case 5:return[to(e,r,new ce(0,[])),J()];case 6:return[to(e,r,new ce(1,[])),J()];case 7:return[to(e,r,new ce(2,[])),J()];case 8:return[to(e,r,new ce(3,[])),J()];case 9:return[to(e,r,new ce(4,[])),J()];case 10:return[new mr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ce(0,[]),pr($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 11:return[new mr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ce(1,[]),pr(O,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 12:return[new mr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ce(2,[]),pr(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 13:return[new mr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ce(3,[]),pr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 14:return[new mr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new ce(4,[]),pr(v,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];default:return[r,J()]}}const bf=typeof document<"u"?V.useLayoutEffect:()=>{};function Wv(e){const t=K(null);return bf(()=>{t.current=e},[e]),ve((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const Io=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},zn=e=>e&&"window"in e&&e.window===e?e:Io(e).defaultView||window;function Gv(e){var t;return typeof window>"u"||window.navigator==null?!1:((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.brands.some(n=>e.test(n.brand)))||e.test(window.navigator.userAgent)}function zv(e){var t;return typeof window<"u"&&window.navigator!=null?e.test(((t=window.navigator.userAgentData)===null||t===void 0?void 0:t.platform)||window.navigator.platform):!1}function _f(e){let t=null;return()=>(t==null&&(t=e()),t)}const qv=_f(function(){return zv(/^Mac/i)}),Yv=_f(function(){return Gv(/Android/i)});function Zv(e){return e.mozInputSource===0&&e.isTrusted?!0:Yv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class Kv{isDefaultPrevented(){return this.nativeEvent.defaultPrevented}preventDefault(){this.defaultPrevented=!0,this.nativeEvent.preventDefault()}stopPropagation(){this.nativeEvent.stopPropagation(),this.isPropagationStopped=()=>!0}isPropagationStopped(){return!1}persist(){}constructor(t,n){this.nativeEvent=n,this.target=n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget,this.bubbles=n.bubbles,this.cancelable=n.cancelable,this.defaultPrevented=n.defaultPrevented,this.eventPhase=n.eventPhase,this.isTrusted=n.isTrusted,this.timeStamp=n.timeStamp,this.type=t}}function xf(e){let t=K({isFocused:!1,observer:null});bf(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Wv(r=>{e==null||e(r)});return ve(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let o=r.target,i=s=>{t.current.isFocused=!1,o.disabled&&n(new Kv("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};o.addEventListener("focusout",i,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&o.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=o===document.activeElement?null:document.activeElement;o.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(o,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function Xv(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=ve(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=xf(i),a=ve(l=>{const u=Io(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),o&&o(!0),s(l))},[o,n,s]);return{focusProps:{onFocus:!t&&(n||o||r)?a:void 0,onBlur:!t&&(r||o)?i:void 0}}}let Oo=null,Ws=new Set,fo=new Map,Jn=!1,Gs=!1;const Qv={Tab:!0,Escape:!0};function Wa(e,t){for(let n of Ws)n(e,t)}function Jv(e){return!(e.metaKey||!qv()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function _i(e){Jn=!0,Jv(e)&&(Oo="keyboard",Wa("keyboard",e))}function $t(e){Oo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Jn=!0,Wa("pointer",e))}function Cf(e){Zv(e)&&(Jn=!0,Oo="virtual")}function Sf(e){e.target===window||e.target===document||(!Jn&&!Gs&&(Oo="virtual",Wa("virtual",e)),Jn=!1,Gs=!1)}function Ef(){Jn=!1,Gs=!0}function zs(e){if(typeof window>"u"||fo.get(zn(e)))return;const t=zn(e),n=Io(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Jn=!0,r.apply(this,arguments)},n.addEventListener("keydown",_i,!0),n.addEventListener("keyup",_i,!0),n.addEventListener("click",Cf,!0),t.addEventListener("focus",Sf,!0),t.addEventListener("blur",Ef,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",$t,!0),n.addEventListener("pointermove",$t,!0),n.addEventListener("pointerup",$t,!0)):(n.addEventListener("mousedown",$t,!0),n.addEventListener("mousemove",$t,!0),n.addEventListener("mouseup",$t,!0)),t.addEventListener("beforeunload",()=>{kf(e)},{once:!0}),fo.set(t,{focus:r})}const kf=(e,t)=>{const n=zn(e),r=Io(e);t&&r.removeEventListener("DOMContentLoaded",t),fo.has(n)&&(n.HTMLElement.prototype.focus=fo.get(n).focus,r.removeEventListener("keydown",_i,!0),r.removeEventListener("keyup",_i,!0),r.removeEventListener("click",Cf,!0),n.removeEventListener("focus",Sf,!0),n.removeEventListener("blur",Ef,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",$t,!0),r.removeEventListener("pointermove",$t,!0),r.removeEventListener("pointerup",$t,!0)):(r.removeEventListener("mousedown",$t,!0),r.removeEventListener("mousemove",$t,!0),r.removeEventListener("mouseup",$t,!0)),fo.delete(n))};function eb(e){const t=Io(e);let n;return t.readyState!=="loading"?zs(e):(n=()=>{zs(e)},t.addEventListener("DOMContentLoaded",n)),()=>kf(e,n)}typeof document<"u"&&eb();function Tf(){return Oo!=="pointer"}const tb=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function nb(e,t,n){var r;const o=typeof window<"u"?zn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?zn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?zn(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?zn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!tb.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof i||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!Qv[n.key])}function rb(e,t,n){zs(),Se(()=>{let r=(o,i)=>{nb(!!(n!=null&&n.isTextInput),o,i)&&e(Tf())};return Ws.add(r),()=>{Ws.delete(r)}},t)}function ob(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=K({isFocusWithin:!1}),s=ve(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=xf(s),l=ve(u=>{!i.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),o&&o(!0),i.current.isFocusWithin=!0,a(u))},[r,o,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let xi=!1,ms=0;function qs(){xi=!0,setTimeout(()=>{xi=!1},50)}function Hu(e){e.pointerType==="touch"&&qs()}function ib(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Hu):document.addEventListener("touchend",qs),ms++,()=>{ms--,!(ms>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Hu):document.removeEventListener("touchend",qs))}}function sb(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:o}=e,[i,s]=ae(!1),a=K({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Se(ib,[]);let{hoverProps:l,triggerHoverEnd:u}=te(()=>{let d=(f,h)=>{if(a.pointerType=h,o||h==="touch"||a.isHovered||!f.currentTarget.contains(f.target))return;a.isHovered=!0;let g=f.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:h}),n&&n(!0),s(!0)},c=(f,h)=>{if(a.pointerType="",a.target=null,h==="touch"||!a.isHovered)return;a.isHovered=!1;let g=f.currentTarget;r&&r({type:"hoverend",target:g,pointerType:h}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=f=>{xi&&f.pointerType==="mouse"||d(f,f.pointerType)},p.onPointerLeave=f=>{!o&&f.currentTarget.contains(f.target)&&c(f,f.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=f=>{!a.ignoreEmulatedMouseEvents&&!xi&&d(f,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=f=>{!o&&f.currentTarget.contains(f.target)&&c(f,"mouse")}),{hoverProps:p,triggerHoverEnd:c}},[t,n,r,o,a]);return Se(()=>{o&&u({currentTarget:a.target},a.pointerType)},[o]),{hoverProps:l,isHovered:i}}function ab(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=K({isFocused:!1,isFocusVisible:t||Tf()}),[i,s]=ae(!1),[a,l]=ae(()=>o.current.isFocused&&o.current.isFocusVisible),u=ve(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=ve(f=>{o.current.isFocused=f,s(f),u()},[u]);rb(f=>{o.current.isFocusVisible=f,u()},[],{isTextInput:n});let{focusProps:c}=Xv({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=ob({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:r?p:c}}var lb=Object.defineProperty,ub=(e,t,n)=>t in e?lb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ps=(e,t,n)=>(ub(e,typeof t!="symbol"?t+"":t,n),n);let cb=class{constructor(){ps(this,"current",this.detect()),ps(this,"handoffState","pending"),ps(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Zn=new cb;function Vr(e){return Zn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Bi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function bn(){let e=[],t={addEventListener(n,r,o,i){return n.addEventListener(r,o,i),t.add(()=>n.removeEventListener(r,o,i))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Bi(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,o){let i=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:o}),this.add(()=>{Object.assign(n.style,{[r]:i})})},group(n){let r=bn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let o of e.splice(r,1))o()}},dispose(){for(let n of e.splice(0))n()}};return t}function In(){let[e]=ae(bn);return Se(()=>()=>e.dispose(),[e]),e}let Pe=(e,t)=>{Zn.isServer?Se(e,t):wn(e,t)};function On(e){let t=K(e);return Pe(()=>{t.current=e},[e]),t}let ee=function(e){let t=On(e);return V.useCallback((...n)=>t.current(...n),[t])};function db(e){let t=e.width/2,n=e.height/2;return{top:e.clientY-n,right:e.clientX+t,bottom:e.clientY+n,left:e.clientX-t}}function fb(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function hb({disabled:e=!1}={}){let t=K(null),[n,r]=ae(!1),o=In(),i=ee(()=>{t.current=null,r(!1),o.dispose()}),s=ee(a=>{if(o.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=Vr(a.currentTarget);o.addEventListener(l,"pointerup",i,!1),o.addEventListener(l,"pointermove",u=>{if(t.current){let d=db(u);r(fb(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:i,onClick:i}}}let mb=Be(void 0);function Ga(){return Ee(mb)}function Ys(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function gt(e,t,...n){if(e in t){let o=t[e];return typeof o=="function"?o(...n):o}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,gt),r}var Nr=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Nr||{}),kn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(kn||{});function et(){let e=gb();return ve(t=>pb({mergeRefs:e,...t}),[e])}function pb({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??wb;let l=Af(t,e);if(i)return Wo(l,n,r,s,a);let u=o??0;if(u&2){let{static:d=!1,...c}=l;if(d)return Wo(c,n,r,s,a)}if(u&1){let{unmount:d=!0,...c}=l;return gt(d?0:1,{0(){return null},1(){return Wo({...c,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Wo(l,n,r,s,a)}function Wo(e,t={},n,r,o){let{as:i=n,children:s,refName:a="ref",...l}=gs(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},d=typeof s=="function"?s(t):s;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let p=!1,f=[];for(let[h,g]of Object.entries(t))typeof g=="boolean"&&(p=!0),g===!0&&f.push(h.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(p){c["data-headlessui-state"]=f.join(" ");for(let h of f)c[`data-${h}`]=""}}if(i===Oe&&(Object.keys(Sn(l)).length>0||Object.keys(Sn(c)).length>0))if(!Fr(d)||Array.isArray(d)&&d.length>1){if(Object.keys(Sn(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Sn(l)).concat(Object.keys(Sn(c))).map(p=>` - ${p}`).join(`
32
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
33
+ `)].join(`
34
+ `))}else{let p=d.props,f=p==null?void 0:p.className,h=typeof f=="function"?(..._)=>Ys(f(..._),l.className):Ys(f,l.className),g=h?{className:h}:{},w=Af(d.props,Sn(gs(l,["ref"])));for(let _ in c)_ in w&&delete c[_];return ya(d,Object.assign({},w,c,u,{ref:o(yb(d),u.ref)},g))}return m(i,Object.assign({},gs(l,["ref"]),i!==Oe&&u,i!==Oe&&c),d)}function gb(){let e=K([]),t=ve(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function wb(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Af(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[o=>{var i;return(i=o==null?void 0:o.preventDefault)==null?void 0:i.call(o)}]);for(let r in n)Object.assign(t,{[r](o,...i){let s=n[r];for(let a of s){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;a(o,...i)}}});return t}function $f(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let o in r)o.startsWith("on")&&typeof r[o]=="function"?(n[o]!=null||(n[o]=[]),n[o].push(r[o])):t[o]=r[o];for(let r in n)Object.assign(t,{[r](...o){let i=n[r];for(let s of i)s==null||s(...o)}});return t}function qe(e){var t;return Object.assign(ga(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Sn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function gs(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function yb(e){return V.version.split(".")[0]>="19"?e.props.ref:e.ref}function vb(e,t,n){let[r,o]=ae(n),i=e!==void 0,s=K(i),a=K(!1),l=K(!1);return i&&!s.current&&!a.current?(a.current=!0,s.current=i,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!i&&s.current&&!l.current&&(l.current=!0,s.current=i,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[i?e:r,ee(u=>(i||o(u),t==null?void 0:t(u)))]}function bb(e){let[t]=ae(e);return t}function Mf(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))If(n,Nf(t,r),o);return n}function Nf(e,t){return e?e+"["+t+"]":t}function If(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())If(e,Nf(t,r.toString()),o);else n instanceof Date?e.push([t,n.toISOString()]):typeof n=="boolean"?e.push([t,n?"1":"0"]):typeof n=="string"?e.push([t,n]):typeof n=="number"?e.push([t,`${n}`]):n==null?e.push([t,""]):Mf(n,t,e)}function _b(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let o of r.elements)if(o!==e&&(o.tagName==="INPUT"&&o.type==="submit"||o.tagName==="BUTTON"&&o.type==="submit"||o.nodeName==="INPUT"&&o.type==="image")){o.click();return}(n=r.requestSubmit)==null||n.call(r)}}let xb="span";var Ir=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Ir||{});function Cb(e,t){var n;let{features:r=1,...o}=e,i={ref:t,"aria-hidden":(r&2)===2?!0:(n=o["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return et()({ourProps:i,theirProps:o,slot:{},defaultTag:xb,name:"Hidden"})}let wo=qe(Cb),Sb=Be(null);function Eb({children:e}){let t=Ee(Sb);if(!t)return V.createElement(V.Fragment,null,e);let{target:n}=t;return n?Mi(V.createElement(V.Fragment,null,e),n):null}function kb({data:e,form:t,disabled:n,onReset:r,overrides:o}){let[i,s]=ae(null),a=In();return Se(()=>{if(r&&i)return a.addEventListener(i,"reset",r)},[i,t,r]),V.createElement(Eb,null,V.createElement(Tb,{setForm:s,formId:t}),Mf(e).map(([l,u])=>V.createElement(wo,{features:Ir.Hidden,...Sn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...o})})))}function Tb({setForm:e,formId:t}){return Se(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:V.createElement(wo,{features:Ir.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Ab=Be(void 0);function Of(){return Ee(Ab)}function $b(e){let t=e.parentElement,n=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(n=t),t=t.parentElement;let r=(t==null?void 0:t.getAttribute("disabled"))==="";return r&&Mb(n)?!1:r}function Mb(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Ff=Symbol();function Nb(e,t=!0){return Object.assign(e,{[Ff]:t})}function it(...e){let t=K(e);Se(()=>{t.current=e},[e]);let n=ee(r=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(r):o.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Ff]))?void 0:n}let Vi=Be(null);Vi.displayName="DescriptionContext";function Df(){let e=Ee(Vi);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Df),t}return e}function Ib(){var e,t;return(t=(e=Ee(Vi))==null?void 0:e.value)!=null?t:void 0}function Ob(){let[e,t]=ae([]);return[e.length>0?e.join(" "):void 0,te(()=>function(n){let r=ee(i=>(t(s=>[...s,i]),()=>t(s=>{let a=s.slice(),l=a.indexOf(i);return l!==-1&&a.splice(l,1),a}))),o=te(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return V.createElement(Vi.Provider,{value:o},n.children)},[t])]}let Fb="p";function Db(e,t){let n=Ft(),r=Ga(),{id:o=`headlessui-description-${n}`,...i}=e,s=Df(),a=it(t);Pe(()=>s.register(o),[o,s.register]);let l=r||!1,u=te(()=>({...s.slot,disabled:l}),[s.slot,l]),d={ref:a,...s.props,id:o};return et()({ourProps:d,theirProps:i,slot:u,defaultTag:Fb,name:s.name||"Description"})}let Pb=qe(Db),Rb=Object.assign(Pb,{});var Ye=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ye||{});let Ui=Be(null);Ui.displayName="LabelContext";function Pf(){let e=Ee(Ui);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Pf),t}return e}function Rf(e){var t,n,r;let o=(n=(t=Ee(Ui))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[o,...e].filter(Boolean).join(" "):o}function Lb({inherit:e=!1}={}){let t=Rf(),[n,r]=ae([]),o=e?[t,...n].filter(Boolean):n;return[o.length>0?o.join(" "):void 0,te(()=>function(i){let s=ee(l=>(r(u=>[...u,l]),()=>r(u=>{let d=u.slice(),c=d.indexOf(l);return c!==-1&&d.splice(c,1),d}))),a=te(()=>({register:s,slot:i.slot,name:i.name,props:i.props,value:i.value}),[s,i.slot,i.name,i.props,i.value]);return V.createElement(Ui.Provider,{value:a},i.children)},[r])]}let Hb="label";function jb(e,t){var n;let r=Ft(),o=Pf(),i=Of(),s=Ga(),{id:a=`headlessui-label-${r}`,htmlFor:l=i??((n=o.props)==null?void 0:n.htmlFor),passive:u=!1,...d}=e,c=it(t);Pe(()=>o.register(a),[a,o.register]);let p=ee(w=>{let _=w.currentTarget;if(_ instanceof HTMLLabelElement&&w.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(w),_ instanceof HTMLLabelElement){let C=document.getElementById(_.htmlFor);if(C){let S=C.getAttribute("disabled");if(S==="true"||S==="")return;let $=C.getAttribute("aria-disabled");if($==="true"||$==="")return;(C instanceof HTMLInputElement&&(C.type==="radio"||C.type==="checkbox")||C.role==="radio"||C.role==="checkbox"||C.role==="switch")&&C.click(),C.focus({preventScroll:!0})}}}),f=s||!1,h=te(()=>({...o.slot,disabled:f}),[o.slot,f]),g={ref:c,...o.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in g&&(delete g.htmlFor,delete g.onClick),"onClick"in d&&delete d.onClick),et()({ourProps:g,theirProps:d,slot:h,defaultTag:l?Hb:"div",name:o.name||"Label"})}let Bb=qe(jb),Vb=Object.assign(Bb,{}),Ub=Be(()=>{});function Wb({value:e,children:t}){return V.createElement(Ub.Provider,{value:e},t)}function Gb(e,t){return e!==null&&t!==null&&typeof e=="object"&&typeof t=="object"&&"id"in e&&"id"in t?e.id===t.id:e===t}function zb(e=Gb){return ve((t,n)=>{if(typeof e=="string"){let r=e;return(t==null?void 0:t[r])===(n==null?void 0:n[r])}return e(t,n)},[e])}function qb(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Yb(e,t=!1){let[n,r]=or(()=>({}),{}),o=te(()=>qb(e),[e,n]);return Pe(()=>{if(!e)return;let i=new ResizeObserver(r);return i.observe(e),()=>{i.disconnect()}},[e]),t?{width:`${o.width}px`,height:`${o.height}px`}:o}let Zb=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function Lf(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(o){return r.add(o),()=>r.delete(o)},dispatch(o,...i){let s=t[o].call(n,...i);s&&(n=s,r.forEach(a=>a()))}}}function Hf(e){return $i(e.subscribe,e.getSnapshot,e.getSnapshot)}let Kb=new Zb(()=>Lf(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function Ur(e,t){let n=Kb.get(t),r=Ft(),o=Hf(n);if(Pe(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let i=o.indexOf(r),s=o.length;return i===-1&&(i=s,s+=1),i===s-1}let Zs=new Map,ho=new Map;function ju(e){var t;let n=(t=ho.get(e))!=null?t:0;return ho.set(e,n+1),n!==0?()=>Bu(e):(Zs.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Bu(e))}function Bu(e){var t;let n=(t=ho.get(e))!=null?t:1;if(n===1?ho.delete(e):ho.set(e,n-1),n!==1)return;let r=Zs.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Zs.delete(e))}function jf(e,{allowed:t,disallowed:n}={}){let r=Ur(e,"inert-others");Pe(()=>{var o,i;if(!r)return;let s=bn();for(let l of(o=n==null?void 0:n())!=null?o:[])l&&s.add(ju(l));let a=(i=t==null?void 0:t())!=null?i:[];for(let l of a){if(!l)continue;let u=Vr(l);if(!u)continue;let d=l.parentElement;for(;d&&d!==u.body;){for(let c of d.children)a.some(p=>c.contains(p))||s.add(ju(c));d=d.parentElement}}return s.dispose},[r,t,n])}function Bf(e,t,n){let r=On(o=>{let i=o.getBoundingClientRect();i.x===0&&i.y===0&&i.width===0&&i.height===0&&n()});Se(()=>{if(!e)return;let o=t===null?null:t instanceof HTMLElement?t:t.current;if(!o)return;let i=bn();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(o));s.observe(o),i.add(()=>s.disconnect())}return()=>i.dispose()},[t,r,e])}let Ci=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),Xb=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Vt=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Vt||{}),Ks=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Ks||{}),Qb=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Qb||{});function Vf(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ci)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function Jb(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Xb)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var za=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(za||{});function Uf(e,t=0){var n;return e===((n=Vr(e))==null?void 0:n.body)?!1:gt(t,{0(){return e.matches(Ci)},1(){let r=e;for(;r!==null;){if(r.matches(Ci))return!0;r=r.parentElement}return!1}})}var e_=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(e_||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function dn(e){e==null||e.focus({preventScroll:!0})}let t_=["textarea","input"].join(",");function n_(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,t_))!=null?n:!1}function Wf(e,t=n=>n){return e.slice().sort((n,r)=>{let o=t(n),i=t(r);if(o===null||i===null)return 0;let s=o.compareDocumentPosition(i);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function r_(e,t){return Cr(Vf(),t,{relativeTo:e})}function Cr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:o=[]}={}){let i=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?Wf(e):e:t&64?Jb(e):Vf(e);o.length>0&&s.length>1&&(s=s.filter(f=>!o.some(h=>h!=null&&"current"in h?(h==null?void 0:h.current)===f:h===f))),r=r??i.activeElement;let a=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,s.indexOf(r))-1;if(t&4)return Math.max(0,s.indexOf(r))+1;if(t&8)return s.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,c=s.length,p;do{if(d>=c||d+c<=0)return 0;let f=l+d;if(t&16)f=(f+c)%c;else{if(f<0)return 3;if(f>=c)return 1}p=s[f],p==null||p.focus(u),d+=a}while(p!==i.activeElement);return t&6&&n_(p)&&p.select(),2}function Gf(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function o_(){return/Android/gi.test(window.navigator.userAgent)}function i_(){return Gf()||o_()}function no(e,t,n,r){let o=On(n);Se(()=>{if(!e)return;function i(s){o.current(s)}return document.addEventListener(t,i,r),()=>document.removeEventListener(t,i,r)},[e,t,r])}function zf(e,t,n,r){let o=On(n);Se(()=>{if(!e)return;function i(s){o.current(s)}return window.addEventListener(t,i,r),()=>window.removeEventListener(t,i,r)},[e,t,r])}const Vu=30;function qf(e,t,n){let r=Ur(e,"outside-click"),o=On(n),i=ve(function(l,u){if(l.defaultPrevented)return;let d=u(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let c=function p(f){return typeof f=="function"?p(f()):Array.isArray(f)||f instanceof Set?f:[f]}(t);for(let p of c)if(p!==null&&(p.contains(d)||l.composed&&l.composedPath().includes(p)))return;return!Uf(d,za.Loose)&&d.tabIndex!==-1&&l.preventDefault(),o.current(l,d)},[o,t]),s=K(null);no(r,"pointerdown",l=>{var u,d;s.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),no(r,"mousedown",l=>{var u,d;s.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),no(r,"click",l=>{i_()||s.current&&(i(l,()=>s.current),s.current=null)},!0);let a=K({x:0,y:0});no(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),no(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Vu||Math.abs(u.y-a.current.y)>=Vu))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),zf(r,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Wr(...e){return te(()=>Vr(...e),[...e])}function Yf(e,t,n,r){let o=On(n);Se(()=>{e=e??window;function i(s){o.current(s)}return e.addEventListener(t,i,r),()=>e.removeEventListener(t,i,r)},[e,t,r])}function s_(e,t){return te(()=>{var n;if(e.type)return e.type;let r=(n=e.as)!=null?n:"button";if(typeof r=="string"&&r.toLowerCase()==="button"||(t==null?void 0:t.tagName)==="BUTTON"&&!t.hasAttribute("type"))return"button"},[e.type,e.as,t])}function a_(){let e;return{before({doc:t}){var n;let r=t.documentElement,o=(n=t.defaultView)!=null?n:window;e=Math.max(0,o.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,o=Math.max(0,r.clientWidth-r.offsetWidth),i=Math.max(0,e-o);n.style(r,"paddingRight",`${i}px`)}}}function l_(){return Gf()?{before({doc:e,d:t,meta:n}){function r(o){return n.containers.flatMap(i=>i()).some(i=>i.contains(o))}t.microTask(()=>{var o;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=bn();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let i=(o=window.scrollY)!=null?o:window.pageYOffset,s=null;t.addEventListener(e,"click",a=>{if(a.target instanceof HTMLElement)try{let l=a.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),d=e.querySelector(u);d&&!r(d)&&(s=d)}catch{}},!0),t.addEventListener(e,"touchstart",a=>{if(a.target instanceof HTMLElement)if(r(a.target)){let l=a.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(a.target,"touchAction","none")}),t.addEventListener(e,"touchmove",a=>{if(a.target instanceof HTMLElement){if(a.target.tagName==="INPUT")return;if(r(a.target)){let l=a.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&a.preventDefault()}else a.preventDefault()}},{passive:!1}),t.add(()=>{var a;let l=(a=window.scrollY)!=null?a:window.pageYOffset;i!==l&&window.scrollTo(0,i),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function u_(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function c_(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let qn=Lf(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:bn(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:c_(n)},o=[l_(),a_(),u_()];o.forEach(({before:i})=>i==null?void 0:i(r)),o.forEach(({after:i})=>i==null?void 0:i(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});qn.subscribe(()=>{let e=qn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",o=n.count!==0;(o&&!r||!o&&r)&&qn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&qn.dispatch("TEARDOWN",n)}});function d_(e,t,n=()=>({containers:[]})){let r=Hf(qn),o=t?r.get(t):void 0,i=o?o.count>0:!1;return Pe(()=>{if(!(!t||!e))return qn.dispatch("PUSH",t,n),()=>qn.dispatch("POP",t,n)},[e,t]),i}function Zf(e,t,n=()=>[document.body]){let r=Ur(e,"scroll-lock");d_(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function Uu(e){return[e.screenX,e.screenY]}function f_(){let e=K([-1,-1]);return{wasMoved(t){let n=Uu(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Uu(t)}}}function h_(e=0){let[t,n]=ae(e),r=ve(l=>n(l),[t]),o=ve(l=>n(u=>u|l),[t]),i=ve(l=>(t&l)===l,[t]),s=ve(l=>n(u=>u&~l),[n]),a=ve(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}var m_={},Wu,Gu;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Wu=process==null?void 0:m_)==null?void 0:Wu.NODE_ENV)==="test"&&typeof((Gu=Element==null?void 0:Element.prototype)==null?void 0:Gu.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
35
+ `)),[]});var p_=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(p_||{});function Kf(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Xf(e,t,n,r){let[o,i]=ae(n),{hasFlag:s,addFlag:a,removeFlag:l}=h_(e&&o?3:0),u=K(!1),d=K(!1),c=In();return Pe(()=>{var p;if(e){if(n&&i(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),g_(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){d.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var f;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||i(!1),(f=r==null?void 0:r.end)==null||f.call(r,n))}})}},[e,n,t,c]),e?[o,{closed:s(1),enter:s(2),leave:s(4),transition:s(2)||s(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function g_(e,{prepare:t,run:n,done:r,inFlight:o}){let i=bn();return y_(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(w_(e,r))})}),i.dispose}function w_(e,t){var n,r;let o=bn();if(!e)return o.dispose;let i=!1;o.add(()=>{i=!0});let s=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(a=>a instanceof CSSTransition))!=null?r:[];return s.length===0?(t(),o.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{i||t()}),o.dispose)}function y_(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function qa(e,t){let n=K([]),r=ee(e);Se(()=>{let o=[...n.current];for(let[i,s]of t.entries())if(n.current[i]!==s){let a=r(t,o);return n.current=t,a}},[r,...t])}function Wi(){return typeof window<"u"}function Gr(e){return Qf(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function en(e){var t;return(t=(Qf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Qf(e){return Wi()?e instanceof Node||e instanceof Et(e).Node:!1}function dt(e){return Wi()?e instanceof Element||e instanceof Et(e).Element:!1}function Qt(e){return Wi()?e instanceof HTMLElement||e instanceof Et(e).HTMLElement:!1}function zu(e){return!Wi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function Fo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Gt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function v_(e){return["table","td","th"].includes(Gr(e))}function Gi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ya(e){const t=Za(),n=dt(e)?Gt(e):e;return["transform","translate","scale","rotate","perspective"].some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function b_(e){let t=Mn(e);for(;Qt(t)&&!Or(t);){if(Ya(t))return t;if(Gi(t))return null;t=Mn(t)}return null}function Za(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Or(e){return["html","body","#document"].includes(Gr(e))}function Gt(e){return Et(e).getComputedStyle(e)}function zi(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(Gr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||zu(e)&&e.host||en(e);return zu(t)?t.host:t}function Jf(e){const t=Mn(e);return Or(t)?e.ownerDocument?e.ownerDocument.body:e.body:Qt(t)&&Fo(t)?t:Jf(t)}function yo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Jf(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Et(o);if(i){const a=Xs(s);return t.concat(s,s.visualViewport||[],Fo(o)?o:[],a&&n?yo(a):[])}return t.concat(o,yo(o,[],n))}function Xs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function __(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(t=>{let{brand:n,version:r}=t;return n+"/"+r}).join(" "):navigator.userAgent}const er=Math.min,ot=Math.max,vo=Math.round,Go=Math.floor,Yt=e=>({x:e,y:e}),x_={left:"right",right:"left",bottom:"top",top:"bottom"},C_={start:"end",end:"start"};function qu(e,t,n){return ot(e,er(t,n))}function zr(e,t){return typeof e=="function"?e(t):e}function Nn(e){return e.split("-")[0]}function Do(e){return e.split("-")[1]}function eh(e){return e==="x"?"y":"x"}function th(e){return e==="y"?"height":"width"}function tr(e){return["top","bottom"].includes(Nn(e))?"y":"x"}function nh(e){return eh(tr(e))}function S_(e,t,n){n===void 0&&(n=!1);const r=Do(e),o=nh(e),i=th(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Si(s)),[s,Si(s)]}function E_(e){const t=Si(e);return[Qs(e),t,Qs(t)]}function Qs(e){return e.replace(/start|end/g,t=>C_[t])}function k_(e,t,n){const r=["left","right"],o=["right","left"],i=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?o:r:t?r:o;case"left":case"right":return t?i:s;default:return[]}}function T_(e,t,n,r){const o=Do(e);let i=k_(Nn(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Qs)))),i}function Si(e){return e.replace(/left|right|bottom|top/g,t=>x_[t])}function A_(e){return{top:0,right:0,bottom:0,left:0,...e}}function $_(e){return typeof e!="number"?A_(e):{top:e,right:e,bottom:e,left:e}}function Ei(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Yu(e,t,n){let{reference:r,floating:o}=e;const i=tr(t),s=nh(t),a=th(s),l=Nn(t),u=i==="y",d=r.x+r.width/2-o.width/2,c=r.y+r.height/2-o.height/2,p=r[a]/2-o[a]/2;let f;switch(l){case"top":f={x:d,y:r.y-o.height};break;case"bottom":f={x:d,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:c};break;case"left":f={x:r.x-o.width,y:c};break;default:f={x:r.x,y:r.y}}switch(Do(t)){case"start":f[s]-=p*(n&&u?-1:1);break;case"end":f[s]+=p*(n&&u?-1:1);break}return f}const M_=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:c}=Yu(u,r,l),p=r,f={},h=0;for(let g=0;g<a.length;g++){const{name:w,fn:_}=a[g],{x:C,y:S,data:$,reset:O}=await _({x:d,y:c,initialPlacement:r,placement:p,strategy:o,middlewareData:f,rects:u,platform:s,elements:{reference:e,floating:t}});d=C??d,c=S??c,f={...f,[w]:{...f[w],...$}},O&&h<=50&&(h++,typeof O=="object"&&(O.placement&&(p=O.placement),O.rects&&(u=O.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):O.rects),{x:d,y:c}=Yu(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:o,middlewareData:f}};async function qi(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:c="floating",altBoundary:p=!1,padding:f=0}=zr(t,e),h=$_(f),w=a[p?c==="floating"?"reference":"floating":c],_=Ei(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:d,strategy:l})),C=c==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),$=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},O=Ei(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:S,strategy:l}):C);return{top:(_.top-O.top+h.top)/$.y,bottom:(O.bottom-_.bottom+h.bottom)/$.y,left:(_.left-O.left+h.left)/$.x,right:(O.right-_.right+h.right)/$.x}}const N_=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:d=!0,crossAxis:c=!0,fallbackPlacements:p,fallbackStrategy:f="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,...w}=zr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const _=Nn(o),C=tr(a),S=Nn(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),O=p||(S||!g?[Si(a)]:E_(a)),P=h!=="none";!p&&P&&O.push(...T_(a,g,h,$));const F=[a,...O],v=await qi(t,w),y=[];let k=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&y.push(v[_]),c){const H=S_(o,s,$);y.push(v[H[0]],v[H[1]])}if(k=[...k,{placement:o,overflows:y}],!y.every(H=>H<=0)){var T,N;const H=(((T=i.flip)==null?void 0:T.index)||0)+1,le=F[H];if(le)return{data:{index:H,overflows:k},reset:{placement:le}};let W=(N=k.filter(U=>U.overflows[0]<=0).sort((U,I)=>U.overflows[1]-I.overflows[1])[0])==null?void 0:N.placement;if(!W)switch(f){case"bestFit":{var D;const U=(D=k.filter(I=>{if(P){const B=tr(I.placement);return B===C||B==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(B=>B>0).reduce((B,L)=>B+L,0)]).sort((I,B)=>I[1]-B[1])[0])==null?void 0:D[0];U&&(W=U);break}case"initialPlacement":W=a;break}if(o!==W)return{reset:{placement:W}}}return{}}}};async function I_(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Nn(n),a=Do(n),l=tr(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,c=zr(t,e);let{mainAxis:p,crossAxis:f,alignmentAxis:h}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof h=="number"&&(f=a==="end"?h*-1:h),l?{x:f*d,y:p*u}:{x:p*u,y:f*d}}const O_=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,l=await I_(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:s}}}}},F_=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:w=>{let{x:_,y:C}=w;return{x:_,y:C}}},...l}=zr(e,t),u={x:n,y:r},d=await qi(t,l),c=tr(Nn(o)),p=eh(c);let f=u[p],h=u[c];if(i){const w=p==="y"?"top":"left",_=p==="y"?"bottom":"right",C=f+d[w],S=f-d[_];f=qu(C,f,S)}if(s){const w=c==="y"?"top":"left",_=c==="y"?"bottom":"right",C=h+d[w],S=h-d[_];h=qu(C,h,S)}const g=a.fn({...t,[p]:f,[c]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[c]:s}}}}}},D_=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=zr(e,t),d=await qi(t,u),c=Nn(o),p=Do(o),f=tr(o)==="y",{width:h,height:g}=i.floating;let w,_;c==="top"||c==="bottom"?(w=c,_=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(_=c,w=p==="end"?"top":"bottom");const C=g-d.top-d.bottom,S=h-d.left-d.right,$=er(g-d[w],C),O=er(h-d[_],S),P=!t.middlewareData.shift;let F=$,v=O;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(v=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(F=C),P&&!p){const k=ot(d.left,0),T=ot(d.right,0),N=ot(d.top,0),D=ot(d.bottom,0);f?v=h-2*(k!==0||T!==0?k+T:ot(d.left,d.right)):F=g-2*(N!==0||D!==0?N+D:ot(d.top,d.bottom))}await l({...t,availableWidth:v,availableHeight:F});const y=await s.getDimensions(a.floating);return h!==y.width||g!==y.height?{reset:{rects:!0}}:{}}}};function rh(e){const t=Gt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Qt(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=vo(n)!==i||vo(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Ka(e){return dt(e)?e:e.contextElement}function Sr(e){const t=Ka(e);if(!Qt(t))return Yt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=rh(t);let s=(i?vo(n.width):n.width)/r,a=(i?vo(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const P_=Yt(0);function oh(e){const t=Et(e);return!Za()||!t.visualViewport?P_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function R_(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Et(e)?!1:t}function nr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Ka(e);let s=Yt(1);t&&(r?dt(r)&&(s=Sr(r)):s=Sr(e));const a=R_(i,n,r)?oh(i):Yt(0);let l=(o.left+a.x)/s.x,u=(o.top+a.y)/s.y,d=o.width/s.x,c=o.height/s.y;if(i){const p=Et(i),f=r&&dt(r)?Et(r):r;let h=p,g=Xs(h);for(;g&&r&&f!==h;){const w=Sr(g),_=g.getBoundingClientRect(),C=Gt(g),S=_.left+(g.clientLeft+parseFloat(C.paddingLeft))*w.x,$=_.top+(g.clientTop+parseFloat(C.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,c*=w.y,l+=S,u+=$,h=Et(g),g=Xs(h)}}return Ei({width:d,height:c,x:l,y:u})}function Xa(e,t){const n=zi(e).scrollLeft;return t?t.left+n:nr(en(e)).left+n}function ih(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Xa(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function L_(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=en(r),a=t?Gi(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Yt(1);const d=Yt(0),c=Qt(r);if((c||!c&&!i)&&((Gr(r)!=="body"||Fo(s))&&(l=zi(r)),Qt(r))){const f=nr(r);u=Sr(r),d.x=f.x+r.clientLeft,d.y=f.y+r.clientTop}const p=s&&!c&&!i?ih(s,l,!0):Yt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function H_(e){return Array.from(e.getClientRects())}function j_(e){const t=en(e),n=zi(e),r=e.ownerDocument.body,o=ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Xa(e);const a=-n.scrollTop;return Gt(r).direction==="rtl"&&(s+=ot(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function B_(e,t){const n=Et(e),r=en(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;const u=Za();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function V_(e,t){const n=nr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Qt(e)?Sr(e):Yt(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,l=o*i.x,u=r*i.y;return{width:s,height:a,x:l,y:u}}function Zu(e,t,n){let r;if(t==="viewport")r=B_(e,n);else if(t==="document")r=j_(en(e));else if(dt(t))r=V_(t,n);else{const o=oh(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ei(r)}function sh(e,t){const n=Mn(e);return n===t||!dt(n)||Or(n)?!1:Gt(n).position==="fixed"||sh(n,t)}function U_(e,t){const n=t.get(e);if(n)return n;let r=yo(e,[],!1).filter(a=>dt(a)&&Gr(a)!=="body"),o=null;const i=Gt(e).position==="fixed";let s=i?Mn(e):e;for(;dt(s)&&!Or(s);){const a=Gt(s),l=Ya(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Fo(s)&&!l&&sh(e,s))?r=r.filter(d=>d!==s):o=a,s=Mn(s)}return t.set(e,r),r}function W_(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?Gi(t)?[]:U_(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const c=Zu(t,d,o);return u.top=ot(c.top,u.top),u.right=er(c.right,u.right),u.bottom=er(c.bottom,u.bottom),u.left=ot(c.left,u.left),u},Zu(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function G_(e){const{width:t,height:n}=rh(e);return{width:t,height:n}}function z_(e,t,n){const r=Qt(t),o=en(t),i=n==="fixed",s=nr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Yt(0);if(r||!r&&!i)if((Gr(t)!=="body"||Fo(o))&&(a=zi(t)),r){const p=nr(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&(l.x=Xa(o));const u=o&&!r&&!i?ih(o,a):Yt(0),d=s.left+a.scrollLeft-l.x-u.x,c=s.top+a.scrollTop-l.y-u.y;return{x:d,y:c,width:s.width,height:s.height}}function ws(e){return Gt(e).position==="static"}function Ku(e,t){if(!Qt(e)||Gt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return en(e)===n&&(n=n.ownerDocument.body),n}function ah(e,t){const n=Et(e);if(Gi(e))return n;if(!Qt(e)){let o=Mn(e);for(;o&&!Or(o);){if(dt(o)&&!ws(o))return o;o=Mn(o)}return n}let r=Ku(e,t);for(;r&&v_(r)&&ws(r);)r=Ku(r,t);return r&&Or(r)&&ws(r)&&!Ya(r)?n:r||b_(e)||n}const q_=async function(e){const t=this.getOffsetParent||ah,n=this.getDimensions,r=await n(e.floating);return{reference:z_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Y_(e){return Gt(e).direction==="rtl"}const Z_={convertOffsetParentRelativeRectToViewportRelativeRect:L_,getDocumentElement:en,getClippingRect:W_,getOffsetParent:ah,getElementRects:q_,getClientRects:H_,getDimensions:G_,getScale:Sr,isElement:dt,isRTL:Y_};function lh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function K_(e,t){let n=null,r;const o=en(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),i();const u=e.getBoundingClientRect(),{left:d,top:c,width:p,height:f}=u;if(a||t(),!p||!f)return;const h=Go(c),g=Go(o.clientWidth-(d+p)),w=Go(o.clientHeight-(c+f)),_=Go(d),S={rootMargin:-h+"px "+-g+"px "+-w+"px "+-_+"px",threshold:ot(0,er(1,l))||1};let $=!0;function O(P){const F=P[0].intersectionRatio;if(F!==l){if(!$)return s();F?s(!1,F):r=setTimeout(()=>{s(!1,1e-7)},1e3)}F===1&&!lh(u,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(O,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(O,S)}n.observe(e)}return s(!0),i}function X_(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=Ka(e),d=o||i?[...u?yo(u):[],...yo(t)]:[];d.forEach(_=>{o&&_.addEventListener("scroll",n,{passive:!0}),i&&_.addEventListener("resize",n)});const c=u&&a?K_(u,n):null;let p=-1,f=null;s&&(f=new ResizeObserver(_=>{let[C]=_;C&&C.target===u&&f&&(f.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=f)==null||S.observe(t)})),n()}),u&&!l&&f.observe(u),f.observe(t));let h,g=l?nr(e):null;l&&w();function w(){const _=nr(e);g&&!lh(g,_)&&n(),g=_,h=requestAnimationFrame(w)}return n(),()=>{var _;d.forEach(C=>{o&&C.removeEventListener("scroll",n),i&&C.removeEventListener("resize",n)}),c==null||c(),(_=f)==null||_.disconnect(),f=null,l&&cancelAnimationFrame(h)}}const ys=qi,Q_=O_,J_=F_,ex=N_,tx=D_,nx=(e,t,n)=>{const r=new Map,o={platform:Z_,...n},i={...o.platform,_c:r};return M_(e,t,{...o,platform:i})};var ei=typeof document<"u"?wn:Se;function ki(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!ki(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!ki(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function uh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Xu(e,t){const n=uh(e);return Math.round(t*n)/n}function vs(e){const t=K(e);return ei(()=>{t.current=e}),t}function rx(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[d,c]=ae({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,f]=ae(r);ki(p,r)||f(r);const[h,g]=ae(null),[w,_]=ae(null),C=ve(I=>{I!==P.current&&(P.current=I,g(I))},[]),S=ve(I=>{I!==F.current&&(F.current=I,_(I))},[]),$=i||h,O=s||w,P=K(null),F=K(null),v=K(d),y=l!=null,k=vs(l),T=vs(o),N=vs(u),D=ve(()=>{if(!P.current||!F.current)return;const I={placement:t,strategy:n,middleware:p};T.current&&(I.platform=T.current),nx(P.current,F.current,I).then(B=>{const L={...B,isPositioned:N.current!==!1};H.current&&!ki(v.current,L)&&(v.current=L,St(()=>{c(L)}))})},[p,t,n,T,N]);ei(()=>{u===!1&&v.current.isPositioned&&(v.current.isPositioned=!1,c(I=>({...I,isPositioned:!1})))},[u]);const H=K(!1);ei(()=>(H.current=!0,()=>{H.current=!1}),[]),ei(()=>{if($&&(P.current=$),O&&(F.current=O),$&&O){if(k.current)return k.current($,O,D);D()}},[$,O,D,k,y]);const le=te(()=>({reference:P,floating:F,setReference:C,setFloating:S}),[C,S]),W=te(()=>({reference:$,floating:O}),[$,O]),U=te(()=>{const I={position:n,left:0,top:0};if(!W.floating)return I;const B=Xu(W.floating,d.x),L=Xu(W.floating,d.y);return a?{...I,transform:"translate("+B+"px, "+L+"px)",...uh(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:B,top:L}},[n,a,W.floating,d.x,d.y]);return te(()=>({...d,update:D,refs:le,elements:W,floatingStyles:U}),[d,D,le,W,U])}const ch=(e,t)=>({...Q_(e),options:[e,t]}),ox=(e,t)=>({...J_(e),options:[e,t]}),ix=(e,t)=>({...ex(e),options:[e,t]}),sx=(e,t)=>({...tx(e),options:[e,t]}),dh={...oi},ax=dh.useInsertionEffect,lx=ax||(e=>e());function fh(e){const t=K(()=>{});return lx(()=>{t.current=e}),ve(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current==null?void 0:t.current(...r)},[])}var Js=typeof document<"u"?wn:Se;let Qu=!1,ux=0;const Ju=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+ux++;function cx(){const[e,t]=ae(()=>Qu?Ju():void 0);return Js(()=>{e==null&&t(Ju())},[]),Se(()=>{Qu=!0},[]),e}const dx=dh.useId,fx=dx||cx;function hx(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(o=>o(n))},on(t,n){e.set(t,[...e.get(t)||[],n])},off(t,n){var r;e.set(t,((r=e.get(t))==null?void 0:r.filter(o=>o!==n))||[])}}}const mx=Be(null),px=Be(null),gx=()=>{var e;return((e=Ee(mx))==null?void 0:e.id)||null},wx=()=>Ee(px),yx="data-floating-ui-focusable";function vx(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=fx(),i=K({}),[s]=ae(()=>hx()),a=gx()!=null,[l,u]=ae(r.reference),d=fh((f,h,g)=>{i.current.openEvent=f?h:void 0,s.emit("openchange",{open:f,event:h,reason:g,nested:a}),n==null||n(f,h,g)}),c=te(()=>({setPositionReference:u}),[]),p=te(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return te(()=>({dataRef:i,open:t,onOpenChange:d,elements:p,events:s,floatingId:o,refs:c}),[t,d,p,s,o,c])}function bx(e){e===void 0&&(e={});const{nodeId:t}=e,n=vx({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,o=r.elements,[i,s]=ae(null),[a,l]=ae(null),d=(o==null?void 0:o.domReference)||i,c=K(null),p=wx();Js(()=>{d&&(c.current=d)},[d]);const f=rx({...e,elements:{...o,...a&&{reference:a}}}),h=ve(S=>{const $=dt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;l($),f.refs.setReference($)},[f.refs]),g=ve(S=>{(dt(S)||S===null)&&(c.current=S,s(S)),(dt(f.refs.reference.current)||f.refs.reference.current===null||S!==null&&!dt(S))&&f.refs.setReference(S)},[f.refs]),w=te(()=>({...f.refs,setReference:g,setPositionReference:h,domReference:c}),[f.refs,g,h]),_=te(()=>({...f.elements,domReference:d}),[f.elements,d]),C=te(()=>({...f,...r,refs:w,elements:_,nodeId:t}),[f,w,_,t,r]);return Js(()=>{r.dataRef.current.floatingContext=C;const S=p==null?void 0:p.nodesRef.current.find($=>$.id===t);S&&(S.context=C)}),te(()=>({...f,context:C,refs:w,elements:_}),[f,w,_,C])}const ec="active",tc="selected";function bs(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[ec]:s,[tc]:a,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[yx]:""},...i,...t.map(s=>{const a=s?s[n]:null;return typeof a=="function"?e?a(e):null:a}).concat(e).reduce((s,a)=>(a&&Object.entries(a).forEach(l=>{let[u,d]=l;if(!(o&&[ec,tc].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof d=="function"){var c;(c=r.get(u))==null||c.push(d),s[u]=function(){for(var p,f=arguments.length,h=new Array(f),g=0;g<f;g++)h[g]=arguments[g];return(p=r.get(u))==null?void 0:p.map(w=>w(...h)).find(w=>w!==void 0)}}}else s[u]=d}),s),{})}}function _x(e){e===void 0&&(e=[]);const t=e.map(a=>a==null?void 0:a.reference),n=e.map(a=>a==null?void 0:a.floating),r=e.map(a=>a==null?void 0:a.item),o=ve(a=>bs(a,e,"reference"),t),i=ve(a=>bs(a,e,"floating"),n),s=ve(a=>bs(a,e,"item"),r);return te(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}function nc(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const xx=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:o,offset:i=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...d}=zr(e,t),{rects:c,elements:{floating:p}}=t,f=n.current[s],h=(u==null?void 0:u.current)||p,g=p.clientTop||h.clientTop,w=p.clientTop!==0,_=h.clientTop!==0,C=p===h;if(!f)return{};const S={...t,...await ch(-f.offsetTop-p.clientTop-c.reference.height/2-f.offsetHeight/2-i).fn(t)},$=await ys(nc(S,h.scrollHeight+g+p.clientTop),d),O=await ys(S,{...d,elementContext:"reference"}),P=ot(0,$.top),F=S.y+P,k=(h.scrollHeight>h.clientHeight?T=>T:vo)(ot(0,h.scrollHeight+(w&&C||_?g*2:0)-P-ot(0,$.bottom)));if(h.style.maxHeight=k+"px",h.scrollTop=P,o){const T=h.offsetHeight<f.offsetHeight*er(a,n.current.length)-1||O.top>=-l||O.bottom>=-l;St(()=>o(T))}return r&&(r.current=await ys(nc({...S,y:F},h.offsetHeight+g+p.clientTop),d)),{y:F}}});function Cx(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:s,onChange:a}=t,l=fh(a),u=K(!1),d=K(null),c=K(null);Se(()=>{if(!o)return;function f(g){if(g.ctrlKey||!h||i.current==null)return;const w=g.deltaY,_=i.current.top>=-.5,C=i.current.bottom>=-.5,S=h.scrollHeight-h.clientHeight,$=w<0?-1:1,O=w<0?"max":"min";h.scrollHeight<=h.clientHeight||(!_&&w>0||!C&&w<0?(g.preventDefault(),St(()=>{l(P=>P+Math[O](w,S*$))})):/firefox/i.test(__())&&(h.scrollTop+=w))}const h=(s==null?void 0:s.current)||r.floating;if(n&&h)return h.addEventListener("wheel",f),requestAnimationFrame(()=>{d.current=h.scrollTop,i.current!=null&&(c.current={...i.current})}),()=>{d.current=null,c.current=null,h.removeEventListener("wheel",f)}},[o,n,r.floating,i,s,l]);const p=te(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const f=(s==null?void 0:s.current)||r.floating;if(!(!i.current||!f||!u.current)){if(d.current!==null){const h=f.scrollTop-d.current;(i.current.bottom<-.5&&h<-1||i.current.top<-.5&&h>1)&&St(()=>l(g=>g+h))}requestAnimationFrame(()=>{d.current=f.scrollTop})}}}),[r.floating,l,i,s]);return te(()=>o?{floating:p}:{},[o,p])}let qr=Be({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});qr.displayName="FloatingContext";let Qa=Be(null);Qa.displayName="PlacementContext";function Sx(e){return te(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function Ex(){return Ee(qr).setReference}function kx(){return Ee(qr).getReferenceProps}function Tx(){let{getFloatingProps:e,slot:t}=Ee(qr);return ve((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function Ax(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ee(Qa),n=te(()=>e,[JSON.stringify(e,(o,i)=>{var s;return(s=i==null?void 0:i.outerHTML)!=null?s:i})]);Pe(()=>{t==null||t(n??null)},[t,n]);let r=Ee(qr);return te(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let rc=4;function $x({children:e,enabled:t=!0}){let[n,r]=ae(null),[o,i]=ae(0),s=K(null),[a,l]=ae(null);Mx(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:c=0,offset:p=0,padding:f=0,inner:h}=Nx(n,a),[g,w="center"]=d.split(" ");Pe(()=>{u&&i(0)},[u]);let{refs:_,floatingStyles:C,context:S}=bx({open:u,placement:g==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${g}`:`${g}-${w}`,strategy:"absolute",transform:!1,middleware:[ch({mainAxis:g==="selection"?0:c,crossAxis:p}),ox({padding:f}),g!=="selection"&&ix({padding:f}),g==="selection"&&h?xx({...h,padding:f,overflowRef:s,offset:o,minItemsVisible:rc,referenceOverflowThreshold:f,onFallbackChange(T){var N,D;if(!T)return;let H=S.elements.floating;if(!H)return;let le=parseFloat(getComputedStyle(H).scrollPaddingBottom)||0,W=Math.min(rc,H.childElementCount),U=0,I=0;for(let B of(D=(N=S.elements.floating)==null?void 0:N.childNodes)!=null?D:[])if(B instanceof HTMLElement){let L=B.offsetTop,re=L+B.clientHeight+le,q=H.scrollTop,M=q+H.clientHeight;if(L>=q&&re<=M)W--;else{I=Math.max(0,Math.min(re,M)-Math.max(L,q)),U=B.clientHeight;break}}W>=1&&i(B=>{let L=U*W-I+le;return B>=L?B:L})}}):null,sx({padding:f,apply({availableWidth:T,availableHeight:N,elements:D}){Object.assign(D.floating.style,{overflow:"auto",maxWidth:`${T}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:X_}),[$=g,O=w]=S.placement.split("-");g==="selection"&&($="selection");let P=te(()=>({anchor:[$,O].filter(Boolean).join(" ")}),[$,O]),F=Cx(S,{overflowRef:s,onChange:i}),{getReferenceProps:v,getFloatingProps:y}=_x([F]),k=ee(T=>{l(T),_.setFloating(T)});return m(Qa.Provider,{value:r},m(qr.Provider,{value:{setFloating:k,setReference:_.setReference,styles:C,getReferenceProps:v,getFloatingProps:y,slot:P}},e))}function Mx(e){Pe(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let o=parseInt(n);isNaN(o)||r!==o&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function Nx(e,t){var n,r,o;let i=_s((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=_s((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=_s((o=e==null?void 0:e.padding)!=null?o:"var(--anchor-padding, 0)",t);return{...e,gap:i,offset:s,padding:a}}function _s(e,t,n=void 0){let r=In(),o=ee((l,u)=>{if(l==null)return[n,null];if(typeof l=="number")return[l,null];if(typeof l=="string"){if(!u)return[n,null];let d=oc(l,u);return[d,c=>{let p=hh(l);{let f=p.map(h=>window.getComputedStyle(u).getPropertyValue(h));r.requestAnimationFrame(function h(){r.nextFrame(h);let g=!1;for(let[_,C]of p.entries()){let S=window.getComputedStyle(u).getPropertyValue(C);if(f[_]!==S){f[_]=S,g=!0;break}}if(!g)return;let w=oc(l,u);d!==w&&(c(w),d=w)})}return r.dispose}]}return[n,null]}),i=te(()=>o(e,t)[0],[e,t]),[s=i,a]=ae();return Pe(()=>{let[l,u]=o(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function hh(e){let t=/var\((.*)\)/.exec(e);if(t){let n=t[1].indexOf(",");if(n===-1)return[t[1]];let r=t[1].slice(0,n).trim(),o=t[1].slice(n+1).trim();return o?[r,...hh(o)]:[r]}return[]}function oc(e,t){let n=document.createElement("div");t.appendChild(n),n.style.setProperty("margin-top","0px","important"),n.style.setProperty("margin-top",e,"important");let r=parseFloat(window.getComputedStyle(n).marginTop)||0;return t.removeChild(n),r}function Ix(e,t){let[n,r]=ae(t);return!e&&n!==t&&r(t),e?n:t}let Yi=Be(null);Yi.displayName="OpenClosedContext";var ft=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ft||{});function Po(){return Ee(Yi)}function mh({value:e,children:t}){return V.createElement(Yi.Provider,{value:e},t)}function Ox({children:e}){return V.createElement(Yi.Provider,{value:null},e)}function Fx(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let En=[];Fx(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||En[0]===t.target)return;let n=t.target;n=n.closest(Ci),En.unshift(n??t.target),En=En.filter(r=>r!=null&&r.isConnected),En.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function Dx(e){throw new Error("Unexpected object: "+e)}var Xe=(e=>(e[e.First=0]="First",e[e.Previous=1]="Previous",e[e.Next=2]="Next",e[e.Last=3]="Last",e[e.Specific=4]="Specific",e[e.Nothing=5]="Nothing",e))(Xe||{});function xs(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),o=r??-1;switch(e.focus){case 0:{for(let i=0;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 1:{o===-1&&(o=n.length);for(let i=o-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 2:{for(let i=o+1;i<n.length;++i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 3:{for(let i=n.length-1;i>=0;--i)if(!t.resolveDisabled(n[i],i,n))return i;return r}case 4:{for(let i=0;i<n.length;++i)if(t.resolveId(n[i],i,n)===e.id)return i;return r}case 5:return null;default:Dx(e)}}function ph(e){let t=ee(e),n=K(!1);Se(()=>(n.current=!1,()=>{n.current=!0,Bi(()=>{n.current&&t()})}),[t])}function Px(){let e=typeof document>"u";return"useSyncExternalStore"in oi?(t=>t.useSyncExternalStore)(oi)(()=>()=>{},()=>!1,()=>!e):!1}function Ro(){let e=Px(),[t,n]=ae(Zn.isHandoffComplete);return t&&Zn.isHandoffComplete===!1&&n(!1),Se(()=>{t!==!0&&n(!0)},[t]),Se(()=>Zn.handoff(),[]),e?!1:t}let gh=Be(!1);function Rx(){return Ee(gh)}function ic(e){return V.createElement(gh.Provider,{value:e.force},e.children)}function Lx(e){let t=Rx(),n=Ee(yh),r=Wr(e),[o,i]=ae(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Zn.isServer)return null;let a=r==null?void 0:r.getElementById("headlessui-portal-root");if(a)return a;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return Se(()=>{o!==null&&(r!=null&&r.body.contains(o)||r==null||r.body.appendChild(o))},[o,r]),Se(()=>{t||n!==null&&i(n.current)},[n,i,t]),o}let wh=Oe,Hx=qe(function(e,t){let n=e,r=K(null),o=it(Nb(c=>{r.current=c}),t),i=Wr(r),s=Lx(r),[a]=ae(()=>{var c;return Zn.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),l=Ee(ea),u=Ro();Pe(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Pe(()=>{if(a&&l)return l.register(a)},[l,a]),ph(()=>{var c;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((c=s.parentElement)==null||c.removeChild(s)))});let d=et();return u?!s||!a?null:Mi(d({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:wh,name:"Portal"}),a):null});function jx(e,t){let n=it(t),{enabled:r=!0,...o}=e,i=et();return r?V.createElement(Hx,{...o,ref:n}):i({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:wh,name:"Portal"})}let Bx=Oe,yh=Be(null);function Vx(e,t){let{target:n,...r}=e,o={ref:it(t)},i=et();return V.createElement(yh.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:Bx,name:"Popover.Group"}))}let ea=Be(null);function Ux(){let e=Ee(ea),t=K([]),n=ee(i=>(t.current.push(i),e&&e.register(i),()=>r(i))),r=ee(i=>{let s=t.current.indexOf(i);s!==-1&&t.current.splice(s,1),e&&e.unregister(i)}),o=te(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,te(()=>function({children:i}){return V.createElement(ea.Provider,{value:o},i)},[o])]}let Wx=qe(jx),vh=qe(Vx),bh=Object.assign(Wx,{Group:vh});function Gx(e,t=typeof document<"u"?document.defaultView:null,n){let r=Ur(e,"escape");Yf(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===Ye.Escape&&n(o))})}function zx(){var e;let[t]=ae(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ae((e=t==null?void 0:t.matches)!=null?e:!1);return Pe(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function qx({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Wr(n),o=ee(()=>{var i,s;let a=[];for(let l of e)l!==null&&(l instanceof HTMLElement?a.push(l):"current"in l&&l.current instanceof HTMLElement&&a.push(l.current));if(t!=null&&t.current)for(let l of t.current)a.push(l);for(let l of(i=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?i:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((s=n==null?void 0:n.getRootNode())==null?void 0:s.host))||a.some(u=>l.contains(u))||a.push(l));return a});return{resolveContainers:o,contains:ee(i=>o().some(s=>s.contains(i)))}}let _h=Be(null);function sc({children:e,node:t}){let[n,r]=ae(null),o=xh(t??n);return V.createElement(_h.Provider,{value:o},e,o===null&&V.createElement(wo,{features:Ir.Hidden,ref:i=>{var s,a;if(i){for(let l of(a=(s=Vr(i))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(i)){r(l);break}}}}))}function xh(e=null){var t;return(t=Ee(_h))!=null?t:e}function Ja(){let e=K(!1);return Pe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var ao=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ao||{});function Yx(){let e=K(0);return zf(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Ch(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let Zx="div";var Vn=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(Vn||{});function Kx(e,t){let n=K(null),r=it(n,t),{initialFocus:o,initialFocusFallback:i,containers:s,features:a=15,...l}=e;Ro()||(a=0);let u=Wr(n);e2(a,{ownerDocument:u});let d=t2(a,{ownerDocument:u,container:n,initialFocus:o,initialFocusFallback:i});n2(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:d});let c=Yx(),p=ee(C=>{let S=n.current;S&&($=>$())(()=>{gt(c.current,{[ao.Forwards]:()=>{Cr(S,Vt.First,{skipElements:[C.relatedTarget,i]})},[ao.Backwards]:()=>{Cr(S,Vt.Last,{skipElements:[C.relatedTarget,i]})}})})}),f=Ur(!!(a&2),"focus-trap#tab-lock"),h=In(),g=K(!1),w={ref:r,onKeyDown(C){C.key=="Tab"&&(g.current=!0,h.requestAnimationFrame(()=>{g.current=!1}))},onBlur(C){if(!(a&4))return;let S=Ch(s);n.current instanceof HTMLElement&&S.add(n.current);let $=C.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(Sh(S,$)||(g.current?Cr(n.current,gt(c.current,{[ao.Forwards]:()=>Vt.Next,[ao.Backwards]:()=>Vt.Previous})|Vt.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&dn(C.target)))}},_=et();return V.createElement(V.Fragment,null,f&&V.createElement(wo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Ir.Focusable}),_({ourProps:w,theirProps:l,defaultTag:Zx,name:"FocusTrap"}),f&&V.createElement(wo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Ir.Focusable}))}let Xx=qe(Kx),Qx=Object.assign(Xx,{features:Vn});function Jx(e=!0){let t=K(En.slice());return qa(([n],[r])=>{r===!0&&n===!1&&Bi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=En.slice())},[e,En,t]),ee(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function e2(e,{ownerDocument:t}){let n=!!(e&8),r=Jx(n);qa(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&dn(r())},[n]),ph(()=>{n&&dn(r())})}function t2(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=K(null),s=Ur(!!(e&1),"focus-trap#initial-focus"),a=Ja();return qa(()=>{if(e===0)return;if(!s){o!=null&&o.current&&dn(o.current);return}let l=n.current;l&&Bi(()=>{if(!a.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){i.current=u;return}}else if(l.contains(u)){i.current=u;return}if(r!=null&&r.current)dn(r.current);else{if(e&16){if(Cr(l,Vt.First|Vt.AutoFocus)!==Ks.Error)return}else if(Cr(l,Vt.First)!==Ks.Error)return;if(o!=null&&o.current&&(dn(o.current),(t==null?void 0:t.activeElement)===o.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}i.current=t==null?void 0:t.activeElement})},[o,s,e]),i}function n2(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=Ja(),s=!!(e&4);Yf(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!i.current)return;let l=Ch(r);n.current instanceof HTMLElement&&l.add(n.current);let u=o.current;if(!u)return;let d=a.target;d&&d instanceof HTMLElement?Sh(l,d)?(o.current=d,dn(d)):(a.preventDefault(),a.stopPropagation(),dn(u)):dn(o.current)},!0)}function Sh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Eh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:Th)!==Oe||V.Children.count(e.children)===1}let Zi=Be(null);Zi.displayName="TransitionContext";var r2=(e=>(e.Visible="visible",e.Hidden="hidden",e))(r2||{});function o2(){let e=Ee(Zi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function i2(){let e=Ee(Ki);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ki=Be(null);Ki.displayName="NestingContext";function Xi(e){return"children"in e?Xi(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function kh(e,t){let n=On(e),r=K([]),o=Ja(),i=In(),s=ee((f,h=kn.Hidden)=>{let g=r.current.findIndex(({el:w})=>w===f);g!==-1&&(gt(h,{[kn.Unmount](){r.current.splice(g,1)},[kn.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var w;!Xi(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),a=ee(f=>{let h=r.current.find(({el:g})=>g===f);return h?h.state!=="visible"&&(h.state="visible"):r.current.push({el:f,state:"visible"}),()=>s(f,kn.Unmount)}),l=K([]),u=K(Promise.resolve()),d=K({enter:[],leave:[]}),c=ee((f,h,g)=>{l.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([w])=>w!==f)),t==null||t.chains.current[h].push([f,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[h].push([f,new Promise(w=>{Promise.all(d.current[h].map(([_,C])=>C)).then(()=>w())})]),h==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(h)):g(h)}),p=ee((f,h,g)=>{Promise.all(d.current[h].splice(0).map(([w,_])=>_)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>g(h))});return te(()=>({children:r,register:a,unregister:s,onStart:c,onStop:p,wait:u,chains:d}),[a,s,r,c,p,d,u])}let Th=Oe,Ah=Nr.RenderStrategy;function s2(e,t){var n,r;let{transition:o=!0,beforeEnter:i,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:d,enterTo:c,entered:p,leave:f,leaveFrom:h,leaveTo:g,...w}=e,[_,C]=ae(null),S=K(null),$=Eh(e),O=it(...$?[S,t,C]:t===null?[]:[t]),P=(n=w.unmount)==null||n?kn.Unmount:kn.Hidden,{show:F,appear:v,initial:y}=o2(),[k,T]=ae(F?"visible":"hidden"),N=i2(),{register:D,unregister:H}=N;Pe(()=>D(S),[D,S]),Pe(()=>{if(P===kn.Hidden&&S.current){if(F&&k!=="visible"){T("visible");return}return gt(k,{hidden:()=>H(S),visible:()=>D(S)})}},[k,S,D,H,F,P]);let le=Ro();Pe(()=>{if($&&le&&k==="visible"&&S.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[S,k,le,$]);let W=y&&!v,U=v&&F&&y,I=K(!1),B=kh(()=>{I.current||(T("hidden"),H(S))},N),L=ee(Ne=>{I.current=!0;let Q=Ne?"enter":"leave";B.onStart(S,Q,fe=>{fe==="enter"?i==null||i():fe==="leave"&&(a==null||a())})}),re=ee(Ne=>{let Q=Ne?"enter":"leave";I.current=!1,B.onStop(S,Q,fe=>{fe==="enter"?s==null||s():fe==="leave"&&(l==null||l())}),Q==="leave"&&!Xi(B)&&(T("hidden"),H(S))});Se(()=>{$&&o||(L(F),re(F))},[F,$,o]);let q=!(!o||!$||!le||W),[,M]=Xf(q,_,F,{start:L,end:re}),Y=Sn({ref:O,className:((r=Ys(w.className,U&&u,U&&d,M.enter&&u,M.enter&&M.closed&&d,M.enter&&!M.closed&&c,M.leave&&f,M.leave&&!M.closed&&h,M.leave&&M.closed&&g,!M.transition&&F&&p))==null?void 0:r.trim())||void 0,...Kf(M)}),oe=0;k==="visible"&&(oe|=ft.Open),k==="hidden"&&(oe|=ft.Closed),M.enter&&(oe|=ft.Opening),M.leave&&(oe|=ft.Closing);let Ae=et();return V.createElement(Ki.Provider,{value:B},V.createElement(mh,{value:oe},Ae({ourProps:Y,theirProps:w,defaultTag:Th,features:Ah,visible:k==="visible",name:"Transition.Child"})))}function a2(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=K(null),a=Eh(e),l=it(...a?[s,t]:t===null?[]:[t]);Ro();let u=Po();if(n===void 0&&u!==null&&(n=(u&ft.Open)===ft.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,c]=ae(n?"visible":"hidden"),p=kh(()=>{n||c("hidden")}),[f,h]=ae(!0),g=K([n]);Pe(()=>{f!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),h(!1))},[g,n]);let w=te(()=>({show:n,appear:r,initial:f}),[n,r,f]);Pe(()=>{n?c("visible"):!Xi(p)&&s.current!==null&&c("hidden")},[n,p]);let _={unmount:o},C=ee(()=>{var O;f&&h(!1),(O=e.beforeEnter)==null||O.call(e)}),S=ee(()=>{var O;f&&h(!1),(O=e.beforeLeave)==null||O.call(e)}),$=et();return V.createElement(Ki.Provider,{value:p},V.createElement(Zi.Provider,{value:w},$({ourProps:{..._,as:Oe,children:V.createElement($h,{ref:l,..._,...i,beforeEnter:C,beforeLeave:S})},theirProps:{},defaultTag:Oe,features:Ah,visible:d==="visible",name:"Transition"})))}function l2(e,t){let n=Ee(Zi)!==null,r=Po()!==null;return V.createElement(V.Fragment,null,!n&&r?V.createElement(ta,{ref:t,...e}):V.createElement($h,{ref:t,...e}))}let ta=qe(a2),$h=qe(s2),el=qe(l2),u2=Object.assign(ta,{Child:el,Root:ta});var c2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(c2||{}),d2=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(d2||{});let f2={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},tl=Be(null);tl.displayName="DialogContext";function Qi(e){let t=Ee(tl);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Qi),n}return t}function h2(e,t){return gt(t.type,f2,e,t)}let ac=qe(function(e,t){let n=Ft(),{id:r=`headlessui-dialog-${n}`,open:o,onClose:i,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:d=!1,...c}=e,p=K(!1);a=function(){return a==="dialog"||a==="alertdialog"?a:(p.current||(p.current=!0,console.warn(`Invalid role [${a}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let f=Po();o===void 0&&f!==null&&(o=(f&ft.Open)===ft.Open);let h=K(null),g=it(h,t),w=Wr(h),_=o?0:1,[C,S]=or(h2,{titleId:null,descriptionId:null,panelRef:Ai()}),$=ee(()=>i(!1)),O=ee(re=>S({type:0,id:re})),P=Ro()?_===0:!1,[F,v]=Ux(),y={get current(){var re;return(re=C.panelRef.current)!=null?re:h.current}},k=xh(),{resolveContainers:T}=qx({mainTreeNode:k,portals:F,defaultContainers:[y]}),N=f!==null?(f&ft.Closing)===ft.Closing:!1;jf(u||N?!1:P,{allowed:ee(()=>{var re,q;return[(q=(re=h.current)==null?void 0:re.closest("[data-headlessui-portal]"))!=null?q:null]}),disallowed:ee(()=>{var re;return[(re=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?re:null]})}),qf(P,T,re=>{re.preventDefault(),$()}),Gx(P,w==null?void 0:w.defaultView,re=>{re.preventDefault(),re.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),Zf(u||N?!1:P,w,T),Bf(P,h,$);let[D,H]=Ob(),le=te(()=>[{dialogState:_,close:$,setTitleId:O,unmount:d},C],[_,C,$,O,d]),W=te(()=>({open:_===0}),[_]),U={ref:g,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:_===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":D,unmount:d},I=!zx(),B=Vn.None;P&&!u&&(B|=Vn.RestoreFocus,B|=Vn.TabLock,l&&(B|=Vn.AutoFocus),I&&(B|=Vn.InitialFocus));let L=et();return V.createElement(Ox,null,V.createElement(ic,{force:!0},V.createElement(bh,null,V.createElement(tl.Provider,{value:le},V.createElement(vh,{target:h},V.createElement(ic,{force:!1},V.createElement(H,{slot:W},V.createElement(v,null,V.createElement(Qx,{initialFocus:s,initialFocusFallback:h,containers:T,features:B},V.createElement(Wb,{value:$},L({ourProps:U,theirProps:c,slot:W,defaultTag:m2,features:p2,visible:_===0,name:"Dialog"})))))))))))}),m2="div",p2=Nr.RenderStrategy|Nr.Static;function g2(e,t){let{transition:n=!1,open:r,...o}=e,i=Po(),s=e.hasOwnProperty("open")||i!==null,a=e.hasOwnProperty("onClose");if(!s&&!a)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!s)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!a)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!i&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!o.static?V.createElement(sc,null,V.createElement(u2,{show:r,transition:n,unmount:o.unmount},V.createElement(ac,{ref:t,...o}))):V.createElement(sc,null,V.createElement(ac,{ref:t,open:r,...o}))}let w2="div";function y2(e,t){let n=Ft(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:s,unmount:a},l]=Qi("Dialog.Panel"),u=it(t,l.panelRef),d=te(()=>({open:s===0}),[s]),c=ee(w=>{w.stopPropagation()}),p={ref:u,id:r,onClick:c},f=o?el:Oe,h=o?{unmount:a}:{},g=et();return V.createElement(f,{...h},g({ourProps:p,theirProps:i,slot:d,defaultTag:w2,name:"Dialog.Panel"}))}let v2="div";function b2(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=Qi("Dialog.Backdrop"),s=te(()=>({open:o===0}),[o]),a={ref:t,"aria-hidden":!0},l=n?el:Oe,u=n?{unmount:i}:{},d=et();return V.createElement(l,{...u},d({ourProps:a,theirProps:r,slot:s,defaultTag:v2,name:"Dialog.Backdrop"}))}let _2="h2";function x2(e,t){let n=Ft(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Qi("Dialog.Title"),a=it(t);Se(()=>(s(r),()=>s(null)),[r,s]);let l=te(()=>({open:i===0}),[i]),u={ref:a,id:r};return et()({ourProps:u,theirProps:o,slot:l,defaultTag:_2,name:"Dialog.Title"})}let C2=qe(g2),S2=qe(y2),E2=qe(b2),k2=qe(x2),Mh=Object.assign(C2,{Panel:S2,Title:k2,Description:Rb});function T2(e,t){let n=K({left:0,top:0});if(Pe(()=>{if(!t)return;let o=t.getBoundingClientRect();o&&(n.current=o)},[e,t]),t==null||!e||t===document.activeElement)return!1;let r=t.getBoundingClientRect();return r.top!==n.current.top||r.left!==n.current.left}let lc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function uc(e){var t,n;let r=(t=e.innerText)!=null?t:"",o=e.cloneNode(!0);if(!(o instanceof HTMLElement))return r;let i=!1;for(let a of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),i=!0;let s=i?(n=o.innerText)!=null?n:"":r;return lc.test(s)&&(s=s.replace(lc,"")),s}function A2(e){let t=e.getAttribute("aria-label");if(typeof t=="string")return t.trim();let n=e.getAttribute("aria-labelledby");if(n){let r=n.split(" ").map(o=>{let i=document.getElementById(o);if(i){let s=i.getAttribute("aria-label");return typeof s=="string"?s.trim():uc(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return uc(e).trim()}function $2(e){let t=K(""),n=K("");return ee(()=>{let r=e.current;if(!r)return"";let o=r.innerText;if(t.current===o)return n.current;let i=A2(r).trim().toLowerCase();return t.current=o,n.current=i,i})}var M2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(M2||{}),N2=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(N2||{}),I2=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(I2||{}),O2=(e=>(e[e.OpenListbox=0]="OpenListbox",e[e.CloseListbox=1]="CloseListbox",e[e.GoToOption=2]="GoToOption",e[e.Search=3]="Search",e[e.ClearSearch=4]="ClearSearch",e[e.RegisterOption=5]="RegisterOption",e[e.UnregisterOption=6]="UnregisterOption",e[e.SetButtonElement=7]="SetButtonElement",e[e.SetOptionsElement=8]="SetOptionsElement",e))(O2||{});function Cs(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Wf(t(e.options.slice()),i=>i.dataRef.current.domRef.current),o=n?r.indexOf(n):null;return o===-1&&(o=null),{options:r,activeOptionIndex:o}}let F2={1(e){return e.dataRef.current.disabled||e.listboxState===1?e:{...e,activeOptionIndex:null,listboxState:1,__demoMode:!1}},0(e){if(e.dataRef.current.disabled||e.listboxState===0)return e;let t=e.activeOptionIndex,{isSelected:n}=e.dataRef.current,r=e.options.findIndex(o=>n(o.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,o,i,s;if(e.dataRef.current.disabled||e.listboxState===1)return e;let a={...e,searchQuery:"",activationTrigger:(n=t.trigger)!=null?n:1,__demoMode:!1};if(t.focus===Xe.Nothing)return{...a,activeOptionIndex:null};if(t.focus===Xe.Specific)return{...a,activeOptionIndex:e.options.findIndex(d=>d.id===t.id)};if(t.focus===Xe.Previous){let d=e.activeOptionIndex;if(d!==null){let c=e.options[d].dataRef.current.domRef,p=xs(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled});if(p!==null){let f=e.options[p].dataRef.current.domRef;if(((r=c.current)==null?void 0:r.previousElementSibling)===f.current||((o=f.current)==null?void 0:o.previousElementSibling)===null)return{...a,activeOptionIndex:p}}}}else if(t.focus===Xe.Next){let d=e.activeOptionIndex;if(d!==null){let c=e.options[d].dataRef.current.domRef,p=xs(t,{resolveItems:()=>e.options,resolveActiveIndex:()=>e.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.dataRef.current.disabled});if(p!==null){let f=e.options[p].dataRef.current.domRef;if(((i=c.current)==null?void 0:i.nextElementSibling)===f.current||((s=f.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Cs(e),u=xs(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:d=>d.id,resolveDisabled:d=>d.dataRef.current.disabled});return{...a,...l,activeOptionIndex:u}},3:(e,t)=>{if(e.dataRef.current.disabled||e.listboxState===1)return e;let n=e.searchQuery!==""?0:1,r=e.searchQuery+t.value.toLowerCase(),o=(e.activeOptionIndex!==null?e.options.slice(e.activeOptionIndex+n).concat(e.options.slice(0,e.activeOptionIndex+n)):e.options).find(s=>{var a;return!s.dataRef.current.disabled&&((a=s.dataRef.current.textValue)==null?void 0:a.startsWith(r))}),i=o?e.options.indexOf(o):-1;return i===-1||i===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:i,activationTrigger:1}},4(e){return e.dataRef.current.disabled||e.listboxState===1||e.searchQuery===""?e:{...e,searchQuery:""}},5:(e,t)=>{let n={id:t.id,dataRef:t.dataRef},r=Cs(e,o=>[...o,n]);return e.activeOptionIndex===null&&e.dataRef.current.isSelected(t.dataRef.current.value)&&(r.activeOptionIndex=r.options.indexOf(n)),{...e,...r}},6:(e,t)=>{let n=Cs(e,r=>{let o=r.findIndex(i=>i.id===t.id);return o!==-1&&r.splice(o,1),r});return{...e,...n,activationTrigger:1}},7:(e,t)=>e.buttonElement===t.element?e:{...e,buttonElement:t.element},8:(e,t)=>e.optionsElement===t.element?e:{...e,optionsElement:t.element}},nl=Be(null);nl.displayName="ListboxActionsContext";function Ji(e){let t=Ee(nl);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ji),n}return t}let es=Be(null);es.displayName="ListboxDataContext";function Lo(e){let t=Ee(es);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Lo),n}return t}function D2(e,t){return gt(t.type,F2,e,t)}let P2=Oe;function R2(e,t){var n;let r=Ga(),{value:o,defaultValue:i,form:s,name:a,onChange:l,by:u,invalid:d=!1,disabled:c=r||!1,horizontal:p=!1,multiple:f=!1,__demoMode:h=!1,...g}=e;const w=p?"horizontal":"vertical";let _=it(t),C=bb(i),[S=f?[]:void 0,$]=vb(o,l,C),[O,P]=or(D2,{dataRef:Ai(),listboxState:h?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:h}),F=K({static:!1,hold:!1}),v=K(new Map),y=zb(u),k=ve(X=>gt(T.mode,{1:()=>S.some(he=>y(he,X)),0:()=>y(S,X)}),[S]),T=te(()=>({...O,value:S,disabled:c,invalid:d,mode:f?1:0,orientation:w,compare:y,isSelected:k,optionsPropsRef:F,listRef:v}),[S,c,d,f,O,v]);Pe(()=>{O.dataRef.current=T},[T]);let N=T.listboxState===0;qf(N,[T.buttonElement,T.optionsElement],(X,he)=>{var ie;P({type:1}),Uf(he,za.Loose)||(X.preventDefault(),(ie=T.buttonElement)==null||ie.focus())});let D=te(()=>({open:T.listboxState===0,disabled:c,invalid:d,value:S}),[T,c,S,d]),H=ee(X=>{let he=T.options.find(ie=>ie.id===X);he&&re(he.dataRef.current.value)}),le=ee(()=>{if(T.activeOptionIndex!==null){let{dataRef:X,id:he}=T.options[T.activeOptionIndex];re(X.current.value),P({type:2,focus:Xe.Specific,id:he})}}),W=ee(()=>P({type:0})),U=ee(()=>P({type:1})),I=In(),B=ee((X,he,ie)=>{I.dispose(),I.microTask(()=>X===Xe.Specific?P({type:2,focus:Xe.Specific,id:he,trigger:ie}):P({type:2,focus:X,trigger:ie}))}),L=ee((X,he)=>(P({type:5,id:X,dataRef:he}),()=>P({type:6,id:X}))),re=ee(X=>gt(T.mode,{0(){return $==null?void 0:$(X)},1(){let he=T.value.slice(),ie=he.findIndex(we=>y(we,X));return ie===-1?he.push(X):he.splice(ie,1),$==null?void 0:$(he)}})),q=ee(X=>P({type:3,value:X})),M=ee(()=>P({type:4})),Y=ee(X=>{P({type:7,element:X})}),oe=ee(X=>{P({type:8,element:X})}),Ae=te(()=>({onChange:re,registerOption:L,goToOption:B,closeListbox:U,openListbox:W,selectActiveOption:le,selectOption:H,search:q,clearSearch:M,setButtonElement:Y,setOptionsElement:oe}),[]),[Ne,Q]=Lb({inherit:!0}),fe={ref:_},ue=ve(()=>{if(C!==void 0)return $==null?void 0:$(C)},[$,C]),_e=et();return V.createElement(Q,{value:Ne,props:{htmlFor:(n=T.buttonElement)==null?void 0:n.id},slot:{open:T.listboxState===0,disabled:c}},V.createElement($x,null,V.createElement(nl.Provider,{value:Ae},V.createElement(es.Provider,{value:T},V.createElement(mh,{value:gt(T.listboxState,{0:ft.Open,1:ft.Closed})},a!=null&&S!=null&&V.createElement(kb,{disabled:c,data:{[a]:S},form:s,onReset:ue}),_e({ourProps:fe,theirProps:g,slot:D,defaultTag:P2,name:"Listbox"}))))))}let L2="button";function H2(e,t){var n;let r=Lo("Listbox.Button"),o=Ji("Listbox.Button"),i=Ft(),s=Of(),{id:a=s||`headlessui-listbox-button-${i}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...d}=e,c=it(t,Ex(),o.setButtonElement),p=kx(),f=ee(T=>{switch(T.key){case Ye.Enter:_b(T.currentTarget);break;case Ye.Space:case Ye.ArrowDown:T.preventDefault(),St(()=>o.openListbox()),r.value||o.goToOption(Xe.First);break;case Ye.ArrowUp:T.preventDefault(),St(()=>o.openListbox()),r.value||o.goToOption(Xe.Last);break}}),h=ee(T=>{switch(T.key){case Ye.Space:T.preventDefault();break}}),g=ee(T=>{var N;if($b(T.currentTarget))return T.preventDefault();r.listboxState===0?(St(()=>o.closeListbox()),(N=r.buttonElement)==null||N.focus({preventScroll:!0})):(T.preventDefault(),o.openListbox())}),w=ee(T=>T.preventDefault()),_=Rf([a]),C=Ib(),{isFocusVisible:S,focusProps:$}=ab({autoFocus:u}),{isHovered:O,hoverProps:P}=sb({isDisabled:l}),{pressed:F,pressProps:v}=hb({disabled:l}),y=te(()=>({open:r.listboxState===0,active:F||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:O,focus:S,autofocus:u}),[r.listboxState,r.value,l,O,S,F,r.invalid,u]),k=$f(p(),{ref:c,id:a,type:s_(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":_,"aria-describedby":C,disabled:l||void 0,autoFocus:u,onKeyDown:f,onKeyUp:h,onKeyPress:w,onClick:g},$,P,v);return et()({ourProps:k,theirProps:d,slot:y,defaultTag:L2,name:"Listbox.Button"})}let Nh=Be(!1),j2="div",B2=Nr.RenderStrategy|Nr.Static;function V2(e,t){var n,r;let o=Ft(),{id:i=`headlessui-listbox-options-${o}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...d}=e,c=Sx(s),[p,f]=ae(null);c&&(a=!0);let h=Lo("Listbox.Options"),g=Ji("Listbox.Options"),w=Wr(h.optionsElement),_=Po(),[C,S]=Xf(u,p,_!==null?(_&ft.Open)===ft.Open:h.listboxState===0);Bf(C,h.buttonElement,g.closeListbox);let $=h.__demoMode?!1:l&&h.listboxState===0;Zf($,w);let O=h.__demoMode?!1:l&&h.listboxState===0;jf(O,{allowed:ve(()=>[h.buttonElement,h.optionsElement],[h.buttonElement,h.optionsElement])});let P=h.listboxState!==0,F=T2(P,h.buttonElement)?!1:C,v=C&&h.listboxState===1,y=Ix(v,h.value),k=ee(M=>h.compare(y,M)),T=te(()=>{var M;if(c==null||!((M=c==null?void 0:c.to)!=null&&M.includes("selection")))return null;let Y=h.options.findIndex(oe=>k(oe.dataRef.current.value));return Y===-1&&(Y=0),Y},[c,h.options]),N=(()=>{if(c==null)return;if(T===null)return{...c,inner:void 0};let M=Array.from(h.listRef.current.values());return{...c,inner:{listRef:{current:M},index:T}}})(),[D,H]=Ax(N),le=Tx(),W=it(t,c?D:null,g.setOptionsElement,f),U=In();Se(()=>{var M;let Y=h.optionsElement;Y&&h.listboxState===0&&Y!==((M=Vr(Y))==null?void 0:M.activeElement)&&(Y==null||Y.focus({preventScroll:!0}))},[h.listboxState,h.optionsElement]);let I=ee(M=>{var Y,oe;switch(U.dispose(),M.key){case Ye.Space:if(h.searchQuery!=="")return M.preventDefault(),M.stopPropagation(),g.search(M.key);case Ye.Enter:if(M.preventDefault(),M.stopPropagation(),h.activeOptionIndex!==null){let{dataRef:Ae}=h.options[h.activeOptionIndex];g.onChange(Ae.current.value)}h.mode===0&&(St(()=>g.closeListbox()),(Y=h.buttonElement)==null||Y.focus({preventScroll:!0}));break;case gt(h.orientation,{vertical:Ye.ArrowDown,horizontal:Ye.ArrowRight}):return M.preventDefault(),M.stopPropagation(),g.goToOption(Xe.Next);case gt(h.orientation,{vertical:Ye.ArrowUp,horizontal:Ye.ArrowLeft}):return M.preventDefault(),M.stopPropagation(),g.goToOption(Xe.Previous);case Ye.Home:case Ye.PageUp:return M.preventDefault(),M.stopPropagation(),g.goToOption(Xe.First);case Ye.End:case Ye.PageDown:return M.preventDefault(),M.stopPropagation(),g.goToOption(Xe.Last);case Ye.Escape:M.preventDefault(),M.stopPropagation(),St(()=>g.closeListbox()),(oe=h.buttonElement)==null||oe.focus({preventScroll:!0});return;case Ye.Tab:M.preventDefault(),M.stopPropagation(),St(()=>g.closeListbox()),r_(h.buttonElement,M.shiftKey?Vt.Previous:Vt.Next);break;default:M.key.length===1&&(g.search(M.key),U.setTimeout(()=>g.clearSearch(),350));break}}),B=(n=h.buttonElement)==null?void 0:n.id,L=te(()=>({open:h.listboxState===0}),[h.listboxState]),re=$f(c?le():{},{id:i,ref:W,"aria-activedescendant":h.activeOptionIndex===null||(r=h.options[h.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":h.mode===1?!0:void 0,"aria-labelledby":B,"aria-orientation":h.orientation,onKeyDown:I,role:"listbox",tabIndex:h.listboxState===0?0:void 0,style:{...d.style,...H,"--button-width":Yb(h.buttonElement,!0).width},...Kf(S)}),q=et();return V.createElement(bh,{enabled:a?e.static||C:!1},V.createElement(es.Provider,{value:h.mode===1?h:{...h,isSelected:k}},q({ourProps:re,theirProps:d,slot:L,defaultTag:j2,features:B2,visible:F,name:"Listbox.Options"})))}let U2="div";function W2(e,t){let n=Ft(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...s}=e,a=Ee(Nh)===!0,l=Lo("Listbox.Option"),u=Ji("Listbox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,c=l.isSelected(i),p=K(null),f=$2(p),h=On({disabled:o,value:i,domRef:p,get textValue(){return f()}}),g=it(t,p,y=>{y?l.listRef.current.set(r,y):l.listRef.current.delete(r)});Pe(()=>{if(!l.__demoMode&&l.listboxState===0&&d&&l.activationTrigger!==0)return bn().requestAnimationFrame(()=>{var y,k;(k=(y=p.current)==null?void 0:y.scrollIntoView)==null||k.call(y,{block:"nearest"})})},[p,d,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Pe(()=>{if(!a)return u.registerOption(r,h)},[h,r,a]);let w=ee(y=>{var k;if(o)return y.preventDefault();u.onChange(i),l.mode===0&&(St(()=>u.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),_=ee(()=>{if(o)return u.goToOption(Xe.Nothing);u.goToOption(Xe.Specific,r)}),C=f_(),S=ee(y=>{C.update(y),!o&&(d||u.goToOption(Xe.Specific,r,0))}),$=ee(y=>{C.wasMoved(y)&&(o||d||u.goToOption(Xe.Specific,r,0))}),O=ee(y=>{C.wasMoved(y)&&(o||d&&u.goToOption(Xe.Nothing))}),P=te(()=>({active:d,focus:d,selected:c,disabled:o,selectedOption:c&&a}),[d,c,o,a]),F=a?{}:{id:r,ref:g,role:"option",tabIndex:o===!0?void 0:-1,"aria-disabled":o===!0?!0:void 0,"aria-selected":c,disabled:void 0,onClick:w,onFocus:_,onPointerEnter:S,onMouseEnter:S,onPointerMove:$,onMouseMove:$,onPointerLeave:O,onMouseLeave:O},v=et();return!c&&a?null:v({ourProps:F,theirProps:s,slot:P,defaultTag:U2,name:"Listbox.Option"})}let G2=Oe;function z2(e,t){let{options:n,placeholder:r,...o}=e,i={ref:it(t)},s=Lo("ListboxSelectedOption"),a=te(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=et();return V.createElement(Nh.Provider,{value:!0},u({ourProps:i,theirProps:{...o,children:V.createElement(V.Fragment,null,r&&l?r:n)},slot:a,defaultTag:G2,name:"ListboxSelectedOption"}))}let q2=qe(R2),Ih=qe(H2),Y2=Vb,Oh=qe(V2),Fh=qe(W2),Z2=qe(z2),K2=Object.assign(q2,{Button:Ih,Label:Y2,Options:Oh,Option:Fh,SelectedOption:Z2}),fn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function rl(e){return m(Mh,sr(e,1))}class ol extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function il(e){return m(Mh.Panel,sr(e,1))}class sl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function al(e){return m(E2,sr(e,1))}function ll(e,t){let n;return m("svg",x(b([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",E.Children.toArray(Array.from(n))])])))}function X2(e,t){let n,r,o,i,s;return rl(b([new fn(3,[e]),new fn(4,[t]),new fn(5,[[al(ge(new sl(2,["fixed inset-0 bg-gray-500/50"]))),m("div",x(b([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[il(ge(new ol(2,[[m("div",x(b([["className","flex flex-col mt-6 mb-6 px-6"],(r=[m("div",x(b([["className","flex flex-row justify-between"],(o=[m("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),m("button",x(b([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(i=[ll(24,24)],["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(o))])]))),m("div",x(b([["className","text-sm text-gray-600 pt-6"],(s="Mapping involves pairing each incoming CSV field with its correct destination field. This step is important because it makes sure that your data is organised correctly, minimising the risk of errors and ensuring a smooth import process.",["children",s])])))],["children",E.Children.toArray(Array.from(r))])])))]])))],["children",E.Children.toArray(Array.from(n))])])))]])]))}function Dh(e,t){let n;return m("svg",x(b([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=b([m("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",E.Children.toArray(Array.from(n))])])))}class Ss extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function Q2(e){return m(K2,sr(e,1))}class cc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function J2(e){return m(Ih,sr(e,1))}class eC extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function tC(e,t){return m(Oh,sr(e,1),...t)}class ro extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function nC(e){return m(Fh,sr(e,1))}function rC(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M5.29289 7.29289C5.68342 6.90237 6.31658 6.90237 6.7071 7.29289L9.99999 10.5858L13.2929 7.29289C13.6834 6.90237 14.3166 6.90237 14.7071 7.29289C15.0976 7.68342 15.0976 8.31658 14.7071 8.70711L10.7071 12.7071C10.3166 13.0976 9.68341 13.0976 9.29289 12.7071L5.29289 8.70711C4.90237 8.31658 4.90237 7.68342 5.29289 7.29289Z",["d",r]),["fill","#6B7280"]])))),["children",E.Children.toArray(Array.from(n))])])))}class oo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function io(e,t,n,r,o,i,s,a,l){let u,d,c,p,f,h,g;const w=o.fields[0],_=a0(yn(C=>C[1].fields[0],l0(C=>fd(C.fields[0],w),r)));return m("div",x(b([["key",It(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[m("div",x(b([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(d=[m("div",x(Ue(G(()=>ye(j(["className",`${r==null?"bg-gray-50 border-gray-200 text-gray-500":"bg-emerald-50 border-emerald-200 text-emerald-700"} px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden`]),G(()=>{let C;return j((C=Ue(G(()=>ye(j(m("div",{className:"text-sm font-medium leading-tight",children:wf(e)})),G(()=>j(t?m("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ke()))))),["children",E.Children.toArray(Array.from(C))]))}))))))],["children",E.Children.toArray(Array.from(d))])]))),m("div",x(b([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(c=[Dh(16,12)],["children",E.Children.toArray(Array.from(c))])]))),m("div",x(b([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[Q2(b([new Ss(0,[_]),new Ss(1,[C=>{To(S=>{s(S[0])},Ca(Ta(S=>S[1].fields[0]===C?me(S[2],new sn(0,[])):!1,w)))}]),new Ss(2,[[m("div",x(b([["className","relative w-full"],(f=[J2(Ue(G(()=>ye(j(new cc(0,[`${t&&n&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white py-1.5 pl-3 pr-2 text-left text-gray-900 text-sm outline outline-1 -outline-offset-1 focus:outline focus:outline-2 focus:outline-blue-600 focus:-outline-offset-2`])),G(()=>{let C;return j(new cc(1,[[m("span",x(Ue(G(()=>{const S=r!=null?[_,""]:n?["Select a field","text-red-900"]:["Select a field","text-gray-500"];return ye(j(["className",`${S[1]} col-start-1 row-start-1 truncate pr-6`]),G(()=>j(["children",S[0]])))})))),m("span",x(b([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(C=[rC(20,20)],["children",E.Children.toArray(Array.from(C))])])))]]))}))))),tC(Ue(G(()=>j(new eC(`z-10 ${i.tag===1?"relative -mt-[226px]":"absolute mt-0.5"} max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm`)))),Ue(G(()=>kd(C=>{const S=C[2],$=C[1].fields[0];return j(nC(b([new ro(0,[Wt(C[0].fields[0])]),new ro(1,[$]),new ro(2,[me(S,new sn(1,[]))]),new ro(3,["relative select-none"]),new ro(4,[O=>[m("span",{className:"px-4 py-2 block truncate "+(S.tag===1?"text-gray-700 opacity-50 cursor-not-allowed":O.active?"bg-primary-600 text-white":(O.selected,"text-gray-700")),children:$})]])])))},w))))],["children",E.Children.toArray(Array.from(f))])])))]])]))],["children",E.Children.toArray(Array.from(p))])]))),m("div",x(b([(h="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",h]),(g=[m("button",x(Ue(G(()=>ye(j(["children","Clear"]),G(()=>ye(a==null?j(["className","opacity-50 cursor-not-allowed"]):j(["className","cursor-pointer"]),G(()=>{const C=a;if(C==null)return Bl();{const S=C;return j(["onClick",$=>{S()}])}})))))))),m("button",x(Ue(G(()=>ye(j(["children","Preview"]),G(()=>ye(l==null?j(["className","opacity-50 cursor-not-allowed"]):j(["className","cursor-pointer"]),G(()=>{const C=l;if(C==null)return Bl();{const S=C;return j(["onClick",$=>{S()}])}}))))))))],["children",E.Children.toArray(Array.from(g))])])))],["children",E.Children.toArray(Array.from(u))])])))}function oC(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.3001 1.40002C6.03495 1.40002 5.79257 1.54983 5.674 1.78697L5.16747 2.80002H2.8001C2.4135 2.80002 2.1001 3.11342 2.1001 3.50002C2.1001 3.88662 2.4135 4.20002 2.8001 4.20002L2.8001 11.2C2.8001 11.9732 3.4269 12.6 4.2001 12.6H9.80009C10.5733 12.6 11.2001 11.9732 11.2001 11.2V4.20002C11.5867 4.20002 11.9001 3.88662 11.9001 3.50002C11.9001 3.11342 11.5867 2.80002 11.2001 2.80002H8.83272L8.32619 1.78697C8.20762 1.54983 7.96523 1.40002 7.70009 1.40002H6.3001ZM4.9001 5.60002C4.9001 5.21342 5.2135 4.90002 5.60009 4.90002C5.98669 4.90002 6.30009 5.21342 6.30009 5.60002V9.80002C6.30009 10.1866 5.98669 10.5 5.60009 10.5C5.2135 10.5 4.9001 10.1866 4.9001 9.80002V5.60002ZM8.40009 4.90002C8.01349 4.90002 7.70009 5.21342 7.70009 5.60002V9.80002C7.70009 10.1866 8.01349 10.5 8.40009 10.5C8.78669 10.5 9.10009 10.1866 9.10009 9.80002V5.60002C9.10009 5.21342 8.78669 4.90002 8.40009 4.90002Z",["d",r]),["fill","#9CA3AF"]])))),["children",E.Children.toArray(Array.from(n))])])))}function Ph(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([(r="M8.83429 0.234315C9.14671 -0.0781049 9.65324 -0.0781049 9.96566 0.234315L13.1657 3.43431C13.4781 3.74673 13.4781 4.25327 13.1657 4.56569L9.96566 7.76569C9.65324 8.0781 9.14671 8.0781 8.83429 7.76569C8.52187 7.45327 8.52187 6.94673 8.83429 6.63432L10.6686 4.8H1.39998C0.958148 4.8 0.599976 4.44183 0.599976 4C0.599976 3.55817 0.958148 3.2 1.39998 3.2H10.6686L8.83429 1.36569C8.52187 1.05327 8.52187 0.546734 8.83429 0.234315Z",["d",r]),["fill","white"]])))),["children",E.Children.toArray(Array.from(n))])])))}function iC(e,t){let n,r,o,i,s,a,l;return m("div",x(b([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[m("div",x(b([(r="grow shrink basis-0 p-4 bg-white rounded-lg shadow-lg border border-gray-100 flex-col justify-start items-start gap-3 inline-flex overflow-hidden",["className",r]),(o=[m("div",x(b([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[m("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${wf(e)}”`})],["children",E.Children.toArray(Array.from(i))])]))),m("div",x(b([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[m("div",x(b([["className","self-stretch flex-col justify-center items-start flex"],(a=cd((u,d)=>m("div",x(Ue(G(()=>ye(j(["className",`${u%2===0?"bg-white":"bg-gray-50"} self-stretch h-10 px-3 py-3.5 border-b border-gray-200 justify-start items-center gap-1 inline-flex overflow-hidden`]),G(()=>{let c;return j((c=[m("div",{className:"grow shrink basis-0 text-gray-600 text-sm font-normal leading-tight",children:d})],["children",E.Children.toArray(Array.from(c))]))})))))),t),["children",E.Children.toArray(Array.from(a))])])))],["children",E.Children.toArray(Array.from(s))])]))),m("div",x(b([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[m("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",E.Children.toArray(Array.from(l))])])))],["children",E.Children.toArray(Array.from(o))])])))],["children",E.Children.toArray(Array.from(n))])])))}function sC(){let e,t,n;return m("div",x(b([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[Pv(20,20),m("div",x(b([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[m("div",x(b([["className","grow shrink basis-0 text-blue-800 text-sm font-medium leading-tight"],(n="We’ve automatically pre-filled some options based on the matches found in your CSV. Please double-check to make sure they are correct and fill in any missing fields before continuing.",["children",n])])))],["children",E.Children.toArray(Array.from(t))])])))],["children",E.Children.toArray(Array.from(e))])])))}function aC(){let e,t;return m("div",x(b([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[gf(16,15),m("div",x(b([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(t=[m("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:"Some required fields are incomplete. Fill in all required fields to proceed"})],["children",E.Children.toArray(Array.from(t))])])))],["children",E.Children.toArray(Array.from(e))])])))}function lC(e){let t,n,r;const o=e.back,i=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let u;const d=Vv(a,l);u=$o(()=>Ao(()=>d,(S,$)=>Uv(a,s,S,$),(S,$)=>{}),void 0,[]);const c=u[0],p=u[1],f=E.useState(!1),h=f[1],g=E.useState(!1),w=g[0],_=S=>{if(jv(c)(S))return()=>{p(new Pn(1,[S]))}},C=S=>{if(Bv(c,S))return()=>{p(new Pn(2,[S]))}};return m("div",x(b([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[X2(f[0],()=>{h(!1)}),m("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Map fields"}),m("span",{className:"text-sm font-normal pt-2",children:"Match the fields from your CSV to the corresponding destination fields."}),m("div",x(b([["className","flex flex-row pt-3 gap-2"],(n=[m("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:S=>{h(!0)},type:"button",children:E.Children.toArray(["What is mapping and why is it important?"])})],["children",E.Children.toArray(Array.from(n))])]))),m("div",x(b([["className","justify-start items-start gap-12 inline-flex"],(r=Ue(G(()=>{let S;return ye(j(m("div",x(b([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(S=Ue(G(()=>ye(w||l!=null?j(Ke()):j(sC()),G(()=>ye(w&&c.Status.tag===0?j(aC()):j(Ke()),G(()=>{let $,O,P,F,v,y,k,T,N;return j(m("div",x(b([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[m("div",x(b([(O="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",O]),(P=[m("div",x(b([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(F=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),m("div",x(b([["className","px-2.5 py-0.5 bg-blue-100 rounded-[10px] justify-center items-center flex"],(v=[m("div",{className:"text-center text-blue-800 text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",E.Children.toArray(Array.from(v))])])))],["children",E.Children.toArray(Array.from(F))])]))),m("div",{className:"w-5 h-5 px-3 py-3.5"}),m("div",x(b([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(y=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),m("div",x(b([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(k=[m("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of ${c.NumberOfIncomingFields} used`})],["children",E.Children.toArray(Array.from(k))])])))],["children",E.Children.toArray(Array.from(y))])])))],["children",E.Children.toArray(Array.from(P))])]))),m("div",x(b([["className","w-[640px] py-2 flex-col justify-start items-start gap-2 flex overflow-hidden"],(T=[m("div",x(ge((N=Ue(G(()=>ye(j(io(new ce(0,[]),!0,w,c.FirstName.ColumnIndex,c.FirstName.IncomingFields,new oo(0,[]),D=>{let H;p((H=[new ce(0,[]),D],new Pn(0,[H[0],H[1]])))},_(new ce(0,[])),C(new ce(0,[])))),G(()=>ye(j(io(new ce(1,[]),!0,w,c.LastName.ColumnIndex,c.LastName.IncomingFields,new oo(0,[]),D=>{let H;p((H=[new ce(1,[]),D],new Pn(0,[H[0],H[1]])))},_(new ce(1,[])),C(new ce(1,[])))),G(()=>ye(j(io(new ce(2,[]),!0,w,c.Email.ColumnIndex,c.Email.IncomingFields,new oo(0,[]),D=>{let H;p((H=[new ce(2,[]),D],new Pn(0,[H[0],H[1]])))},_(new ce(2,[])),C(new ce(2,[])))),G(()=>ye(j(io(new ce(3,[]),!1,w,c.MobilePhone.ColumnIndex,c.MobilePhone.IncomingFields,new oo(1,[]),D=>{let H;p((H=[new ce(3,[]),D],new Pn(0,[H[0],H[1]])))},_(new ce(3,[])),C(new ce(3,[])))),G(()=>ye(j(io(new ce(4,[]),!1,w,c.EmploymentBasis.ColumnIndex,c.EmploymentBasis.IncomingFields,new oo(1,[]),D=>{let H;p((H=[new ce(4,[]),D],new Pn(0,[H[0],H[1]])))},_(new ce(4,[])),C(new ce(4,[])))),G(()=>{let D,H,le,W,U,I;return ye(c.NumberOfIncomingFieldsDiscarded===0?j(Ke()):j(m("div",x(b([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(D=[m("div",x(b([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(H=[m("div",x(b([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(le=[oC(14,14),m("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",E.Children.toArray(Array.from(le))])]))),m("div",x(b([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(W=[Dh(16,12)],["children",E.Children.toArray(Array.from(W))])]))),m("div",x(b([["className","flex-col justify-start items-start gap-2 inline-flex"],(U=[m("div",x(b([["className","w-[218px] pl-3 items-center inline-flex"],(I=[m("div",x(Ue(G(()=>ye(j(["className","text-gray-500 text-sm font-medium"]),G(()=>{const B=c.NumberOfIncomingFieldsDiscarded|0;return j(B===1?["children","Remaining 1 unused field"]:["children",`Remaining ${B} unused fields`])}))))))],["children",E.Children.toArray(Array.from(I))])])))],["children",E.Children.toArray(Array.from(U))])])))],["children",E.Children.toArray(Array.from(H))])])))],["children",E.Children.toArray(Array.from(D))])])))),G(()=>{let B,L,re,q,M,Y,oe,Ae,Ne;return j(m("div",x(b([["className","h-[58px] pt-6 border-t border-gray-200 justify-start items-end gap-2 inline-flex w-full"],(B=[m("div",x(b([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(L=[m("div",x(b([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(re=[m("div",x(b([["className","grow shrink basis-0 text-right"],(q=[m("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),m("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),m("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",E.Children.toArray(Array.from(q))])])))],["children",E.Children.toArray(Array.from(re))])]))),m("div",x(b([["className","justify-start items-center gap-2 flex"],(M=[m("button",x(b([(Y="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",Y]),["onClick",Q=>{o(c.Status)}],(oe=[m("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",E.Children.toArray(Array.from(oe))])]))),m("button",x(b([(Ae="pl-[13px] pr-[11px] py-[9px] bg-primary-600 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Ae]),["disabled",w&&c.Status.tag===0],["onClick",Q=>{const fe=c.Status;fe.tag===0?g[1](!0):i([fe.fields[0],fe.fields[1]])}],(Ne=[m("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Ph(13,8)],["children",E.Children.toArray(Array.from(Ne))])])))],["children",E.Children.toArray(Array.from(M))])])))],["children",E.Children.toArray(Array.from(L))])])))],["children",E.Children.toArray(Array.from(B))])]))))}))})))))))))))),["children",E.Children.toArray(Array.from(N))]))))],["children",E.Children.toArray(Array.from(T))])])))],["children",E.Children.toArray(Array.from($))])]))))})))))),["children",E.Children.toArray(Array.from(S))])])))),G(()=>{const $=c.Preview;return $==null?j(Ke()):j(iC($[0],$[1]))}))})),["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(t))])])))}class zo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Es extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let Rn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}};function uC(e,t,n,r){let o,i,s,a,l,u;return m("div",x(b([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(o=[m("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Map values - Employment basis"}),m("span",{className:"text-sm font-normal pt-2",children:"Match the values from your CSV to the corresponding destination values."}),m("div",x(b([["className","justify-start items-start gap-12 inline-flex"],(i=[m("div",x(b([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(s=[m("div",x(b([["className","justify-start items-center gap-2 flex"],(a=[m("button",x(b([(l="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",l]),["onClick",d=>{r(e)}],(u=[m("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",E.Children.toArray(Array.from(u))])])))],["children",E.Children.toArray(Array.from(a))])])))],["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(o))])])))}function cC(e,t,n,r,o,i){let s,a,l,u,d,c;return m("div",x(b([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(s=[m("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Review"}),m("span",{className:"text-sm font-normal pt-2",children:"Preview your data and confirm that everything is mapped correctly."}),m("div",x(b([["className","justify-start items-start gap-12 inline-flex"],(a=[m("div",x(b([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(l=[m("div",x(b([["className","justify-start items-center gap-2 flex"],(u=[m("button",x(b([(d="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",d]),["onClick",p=>{i()}],(c=[m("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",E.Children.toArray(Array.from(c))])])))],["children",E.Children.toArray(Array.from(u))])])))],["children",E.Children.toArray(Array.from(l))])])))],["children",E.Children.toArray(Array.from(a))])])))],["children",E.Children.toArray(Array.from(s))])])))}function dC(e,t){return G(()=>{const n=new pg([],t);return yp(r=>Xp(r,n),e)})}function fC(e,t){return Sd(dC(e,t))}class so extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NotCsv","TooLarge","ParseError"]}}class Yn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var ti={exports:{}};/* @license
32
36
  Papa Parse
33
37
  v5.5.1
34
38
  https://github.com/mholt/PapaParse
35
39
  License: MIT
36
- */var N1=qr.exports,Ws;function $1(){return Ws||(Ws=1,function(e,t){((n,r)=>{e.exports=r()})(N1,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,o=!r.document&&!!r.postMessage,a=r.IS_PAPA_WORKER||!1,s={},l=0,u={};function d(w){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(g){var C=z(g);C.chunkSize=parseInt(C.chunkSize),g.step||g.chunk||(C.chunkSize=null),this._handle=new y(C),(this._handle.streamer=this)._config=C}).call(this,w),this.parseChunk=function(g,C){var T=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<T){let F=this._config.newline;F||(A=this._config.quoteChar||'"',F=this._handle.guessLineEndings(g,A)),g=[...g.split(F).slice(T)].join(F)}this.isFirstChunk&&R(this._config.beforeFirstChunk)&&(A=this._config.beforeFirstChunk(g))!==void 0&&(g=A),this.isFirstChunk=!1,this._halted=!1;var T=this._partialLine+g,A=(this._partialLine="",this._handle.parse(T,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(g=A.meta.cursor,T=(this._finished||(this._partialLine=T.substring(g-this._baseIndex),this._baseIndex=g),A&&A.data&&(this._rowCount+=A.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),a)r.postMessage({results:A,workerId:u.WORKER_ID,finished:T});else if(R(this._config.chunk)&&!C){if(this._config.chunk(A,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=A=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(A.data),this._completeResults.errors=this._completeResults.errors.concat(A.errors),this._completeResults.meta=A.meta),this._completed||!T||!R(this._config.complete)||A&&A.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),T||A&&A.meta.paused||this._nextChunk(),A}this._halted=!0},this._sendError=function(g){R(this._config.error)?this._config.error(g):a&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:g,finished:!1})}}function c(w){var g;(w=w||{}).chunkSize||(w.chunkSize=u.RemoteChunkSize),d.call(this,w),this._nextChunk=o?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(C){this._input=C,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(g=new XMLHttpRequest,this._config.withCredentials&&(g.withCredentials=this._config.withCredentials),o||(g.onload=G(this._chunkLoaded,this),g.onerror=G(this._chunkError,this)),g.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var C,T=this._config.downloadRequestHeaders;for(C in T)g.setRequestHeader(C,T[C])}var A;this._config.chunkSize&&(A=this._start+this._config.chunkSize-1,g.setRequestHeader("Range","bytes="+this._start+"-"+A));try{g.send(this._config.downloadRequestBody)}catch(F){this._chunkError(F.message)}o&&g.status===0&&this._chunkError()}},this._chunkLoaded=function(){g.readyState===4&&(g.status<200||400<=g.status?this._chunkError():(this._start+=this._config.chunkSize||g.responseText.length,this._finished=!this._config.chunkSize||this._start>=(C=>(C=C.getResponseHeader("Content-Range"))!==null?parseInt(C.substring(C.lastIndexOf("/")+1)):-1)(g),this.parseChunk(g.responseText)))},this._chunkError=function(C){C=g.statusText||C,this._sendError(new Error(C))}}function m(w){(w=w||{}).chunkSize||(w.chunkSize=u.LocalChunkSize),d.call(this,w);var g,C,T=typeof FileReader<"u";this.stream=function(A){this._input=A,C=A.slice||A.webkitSlice||A.mozSlice,T?((g=new FileReader).onload=G(this._chunkLoaded,this),g.onerror=G(this._chunkError,this)):g=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var A=this._input,F=(this._config.chunkSize&&(F=Math.min(this._start+this._config.chunkSize,this._input.size),A=C.call(A,this._start,F)),g.readAsText(A,this._config.encoding));T||this._chunkLoaded({target:{result:F}})},this._chunkLoaded=function(A){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(A.target.result)},this._chunkError=function(){this._sendError(g.error)}}function h(w){var g;d.call(this,w=w||{}),this.stream=function(C){return g=C,this._nextChunk()},this._nextChunk=function(){var C,T;if(!this._finished)return C=this._config.chunkSize,g=C?(T=g.substring(0,C),g.substring(C)):(T=g,""),this._finished=!g,this.parseChunk(T)}}function p(w){d.call(this,w=w||{});var g=[],C=!0,T=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(A){this._input=A,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){T&&g.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),g.length?this.parseChunk(g.shift()):C=!0},this._streamData=G(function(A){try{g.push(typeof A=="string"?A:A.toString(this._config.encoding)),C&&(C=!1,this._checkIsFinished(),this.parseChunk(g.shift()))}catch(F){this._streamError(F)}},this),this._streamError=G(function(A){this._streamCleanUp(),this._sendError(A)},this),this._streamEnd=G(function(){this._streamCleanUp(),T=!0,this._streamData("")},this),this._streamCleanUp=G(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function y(w){var g,C,T,A,F=Math.pow(2,53),ne=-F,be=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,J=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,B=this,D=0,ee=0,I=!1,te=!1,j=[],$={data:[],errors:[],meta:{}};function q(L){return w.skipEmptyLines==="greedy"?L.join("").trim()==="":L.length===1&&L[0].length===0}function Q(){if($&&T&&(Me("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),T=!1),w.skipEmptyLines&&($.data=$.data.filter(function(oe){return!q(oe)})),De()){let oe=function(Ie,ie){R(w.transformHeader)&&(Ie=w.transformHeader(Ie,ie)),j.push(Ie)};var me=oe;if($)if(Array.isArray($.data[0])){for(var L=0;De()&&L<$.data.length;L++)$.data[L].forEach(oe);$.data.splice(0,1)}else $.data.forEach(oe)}function re(oe,Ie){for(var ie=w.header?{}:[],ae=0;ae<oe.length;ae++){var Ce=ae,K=oe[ae],K=((dt,Ae)=>(Ve=>(w.dynamicTypingFunction&&w.dynamicTyping[Ve]===void 0&&(w.dynamicTyping[Ve]=w.dynamicTypingFunction(Ve)),(w.dynamicTyping[Ve]||w.dynamicTyping)===!0))(dt)?Ae==="true"||Ae==="TRUE"||Ae!=="false"&&Ae!=="FALSE"&&((Ve=>{if(be.test(Ve)&&(Ve=parseFloat(Ve),ne<Ve&&Ve<F))return 1})(Ae)?parseFloat(Ae):J.test(Ae)?new Date(Ae):Ae===""?null:Ae):Ae)(Ce=w.header?ae>=j.length?"__parsed_extra":j[ae]:Ce,K=w.transform?w.transform(K,Ce):K);Ce==="__parsed_extra"?(ie[Ce]=ie[Ce]||[],ie[Ce].push(K)):ie[Ce]=K}return w.header&&(ae>j.length?Me("FieldMismatch","TooManyFields","Too many fields: expected "+j.length+" fields but parsed "+ae,ee+Ie):ae<j.length&&Me("FieldMismatch","TooFewFields","Too few fields: expected "+j.length+" fields but parsed "+ae,ee+Ie)),ie}var Z;$&&(w.header||w.dynamicTyping||w.transform)&&(Z=1,!$.data.length||Array.isArray($.data[0])?($.data=$.data.map(re),Z=$.data.length):$.data=re($.data,0),w.header&&$.meta&&($.meta.fields=j),ee+=Z)}function De(){return w.header&&j.length===0}function Me(L,re,Z,me){L={type:L,code:re,message:Z},me!==void 0&&(L.row=me),$.errors.push(L)}R(w.step)&&(A=w.step,w.step=function(L){$=L,De()?Q():(Q(),$.data.length!==0&&(D+=L.data.length,w.preview&&D>w.preview?C.abort():($.data=$.data[0],A($,B))))}),this.parse=function(L,re,Z){var me=w.quoteChar||'"',me=(w.newline||(w.newline=this.guessLineEndings(L,me)),T=!1,w.delimiter?R(w.delimiter)&&(w.delimiter=w.delimiter(L),$.meta.delimiter=w.delimiter):((me=((oe,Ie,ie,ae,Ce)=>{var K,dt,Ae,Ve;Ce=Ce||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var cn=0;cn<Ce.length;cn++){for(var Ft,qe=Ce[cn],Jt=0,Ne=0,_t=0,At=(Ae=void 0,new E({comments:ae,delimiter:qe,newline:Ie,preview:10}).parse(oe)),Qt=0;Qt<At.data.length;Qt++)ie&&q(At.data[Qt])?_t++:(Ft=At.data[Qt].length,Ne+=Ft,Ae===void 0?Ae=Ft:0<Ft&&(Jt+=Math.abs(Ft-Ae),Ae=Ft));0<At.data.length&&(Ne/=At.data.length-_t),(dt===void 0||Jt<=dt)&&(Ve===void 0||Ve<Ne)&&1.99<Ne&&(dt=Jt,K=qe,Ve=Ne)}return{successful:!!(w.delimiter=K),bestDelimiter:K}})(L,w.newline,w.skipEmptyLines,w.comments,w.delimitersToGuess)).successful?w.delimiter=me.bestDelimiter:(T=!0,w.delimiter=u.DefaultDelimiter),$.meta.delimiter=w.delimiter),z(w));return w.preview&&w.header&&me.preview++,g=L,C=new E(me),$=C.parse(g,re,Z),Q(),I?{meta:{paused:!0}}:$||{meta:{paused:!1}}},this.paused=function(){return I},this.pause=function(){I=!0,C.abort(),g=R(w.chunk)?"":g.substring(C.getCharIndex())},this.resume=function(){B.streamer._halted?(I=!1,B.streamer.parseChunk(g,!0)):setTimeout(B.resume,3)},this.aborted=function(){return te},this.abort=function(){te=!0,C.abort(),$.meta.aborted=!0,R(w.complete)&&w.complete($),g=""},this.guessLineEndings=function(oe,me){oe=oe.substring(0,1048576);var me=new RegExp(_(me)+"([^]*?)"+_(me),"gm"),Z=(oe=oe.replace(me,"")).split("\r"),me=oe.split(`
37
- `),oe=1<me.length&&me[0].length<Z[0].length;if(Z.length===1||oe)return`
38
- `;for(var Ie=0,ie=0;ie<Z.length;ie++)Z[ie][0]===`
39
- `&&Ie++;return Ie>=Z.length/2?`\r
40
- `:"\r"}}function _(w){return w.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function E(w){var g=(w=w||{}).delimiter,C=w.newline,T=w.comments,A=w.step,F=w.preview,ne=w.fastMode,be=null,J=w.quoteChar==null?'"':w.quoteChar,B=J;if(w.escapeChar!==void 0&&(B=w.escapeChar),(typeof g!="string"||-1<u.BAD_DELIMITERS.indexOf(g))&&(g=","),T===g)throw new Error("Comment character same as delimiter");T===!0?T="#":(typeof T!="string"||-1<u.BAD_DELIMITERS.indexOf(T))&&(T=!1),C!==`
41
- `&&C!=="\r"&&C!==`\r
42
- `&&(C=`
43
- `);var D=0,ee=!1;this.parse=function(I,te,j){if(typeof I!="string")throw new Error("Input must be a string");var $=I.length,q=g.length,Q=C.length,De=T.length,Me=R(A),L=[],re=[],Z=[],me=D=0;if(!I)return qe();if(ne||ne!==!1&&I.indexOf(J)===-1){for(var oe=I.split(C),Ie=0;Ie<oe.length;Ie++){if(Z=oe[Ie],D+=Z.length,Ie!==oe.length-1)D+=C.length;else if(j)return qe();if(!T||Z.substring(0,De)!==T){if(Me){if(L=[],Ae(Z.split(g)),Jt(),ee)return qe()}else Ae(Z.split(g));if(F&&F<=Ie)return L=L.slice(0,F),qe(!0)}}return qe()}for(var ie=I.indexOf(g,D),ae=I.indexOf(C,D),Ce=new RegExp(_(B)+_(J),"g"),K=I.indexOf(J,D);;)if(I[D]===J)for(K=D,D++;;){if((K=I.indexOf(J,K+1))===-1)return j||re.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:L.length,index:D}),cn();if(K===$-1)return cn(I.substring(D,K).replace(Ce,J));if(J===B&&I[K+1]===B)K++;else if(J===B||K===0||I[K-1]!==B){ie!==-1&&ie<K+1&&(ie=I.indexOf(g,K+1));var dt=Ve((ae=ae!==-1&&ae<K+1?I.indexOf(C,K+1):ae)===-1?ie:Math.min(ie,ae));if(I.substr(K+1+dt,q)===g){Z.push(I.substring(D,K).replace(Ce,J)),I[D=K+1+dt+q]!==J&&(K=I.indexOf(J,D)),ie=I.indexOf(g,D),ae=I.indexOf(C,D);break}if(dt=Ve(ae),I.substring(K+1+dt,K+1+dt+Q)===C){if(Z.push(I.substring(D,K).replace(Ce,J)),Ft(K+1+dt+Q),ie=I.indexOf(g,D),K=I.indexOf(J,D),Me&&(Jt(),ee))return qe();if(F&&L.length>=F)return qe(!0);break}re.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:L.length,index:D}),K++}}else if(T&&Z.length===0&&I.substring(D,D+De)===T){if(ae===-1)return qe();D=ae+Q,ae=I.indexOf(C,D),ie=I.indexOf(g,D)}else if(ie!==-1&&(ie<ae||ae===-1))Z.push(I.substring(D,ie)),D=ie+q,ie=I.indexOf(g,D);else{if(ae===-1)break;if(Z.push(I.substring(D,ae)),Ft(ae+Q),Me&&(Jt(),ee))return qe();if(F&&L.length>=F)return qe(!0)}return cn();function Ae(Ne){L.push(Ne),me=D}function Ve(Ne){var _t=0;return _t=Ne!==-1&&(Ne=I.substring(K+1,Ne))&&Ne.trim()===""?Ne.length:_t}function cn(Ne){return j||(Ne===void 0&&(Ne=I.substring(D)),Z.push(Ne),D=$,Ae(Z),Me&&Jt()),qe()}function Ft(Ne){D=Ne,Ae(Z),Z=[],ae=I.indexOf(C,D)}function qe(Ne){if(w.header&&!te&&L.length){var _t=L[0],At={},Qt=new Set(_t);let ga=!1;for(let Dn=0;Dn<_t.length;Dn++){let Mt=_t[Dn];if(At[Mt=R(w.transformHeader)?w.transformHeader(Mt,Dn):Mt]){let sr,wa=At[Mt];for(;sr=Mt+"_"+wa,wa++,Qt.has(sr););Qt.add(sr),_t[Dn]=sr,At[Mt]++,ga=!0,(be=be===null?{}:be)[sr]=Mt}else At[Mt]=1,_t[Dn]=Mt;Qt.add(Mt)}ga&&console.warn("Duplicate headers found and renamed.")}return{data:L,errors:re,meta:{delimiter:g,linebreak:C,aborted:ee,truncated:!!Ne,cursor:me+(te||0),renamedHeaders:be}}}function Jt(){A(qe()),L=[],re=[]}},this.abort=function(){ee=!0},this.getCharIndex=function(){return D}}function k(w){var g=w.data,C=s[g.workerId],T=!1;if(g.error)C.userError(g.error,g.file);else if(g.results&&g.results.data){var A={abort:function(){T=!0,N(g.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:P,resume:P};if(R(C.userStep)){for(var F=0;F<g.results.data.length&&(C.userStep({data:g.results.data[F],errors:g.results.errors,meta:g.results.meta},A),!T);F++);delete g.results}else R(C.userChunk)&&(C.userChunk(g.results,A,g.file),delete g.results)}g.finished&&!T&&N(g.workerId,g.results)}function N(w,g){var C=s[w];R(C.userComplete)&&C.userComplete(g),C.terminate(),delete s[w]}function P(){throw new Error("Not implemented.")}function z(w){if(typeof w!="object"||w===null)return w;var g,C=Array.isArray(w)?[]:{};for(g in w)C[g]=z(w[g]);return C}function G(w,g){return function(){w.apply(g,arguments)}}function R(w){return typeof w=="function"}return u.parse=function(w,g){var C=(g=g||{}).dynamicTyping||!1;if(R(C)&&(g.dynamicTypingFunction=C,C={}),g.dynamicTyping=C,g.transform=!!R(g.transform)&&g.transform,!g.worker||!u.WORKERS_SUPPORTED)return C=null,u.NODE_STREAM_INPUT,typeof w=="string"?(w=(T=>T.charCodeAt(0)!==65279?T:T.slice(1))(w),C=new(g.download?c:h)(g)):w.readable===!0&&R(w.read)&&R(w.on)?C=new p(g):(r.File&&w instanceof File||w instanceof Object)&&(C=new m(g)),C.stream(w);(C=(()=>{var T;return!!u.WORKERS_SUPPORTED&&(T=(()=>{var A=r.URL||r.webkitURL||null,F=n.toString();return u.BLOB_URL||(u.BLOB_URL=A.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",F,")();"],{type:"text/javascript"})))})(),(T=new r.Worker(T)).onmessage=k,T.id=l++,s[T.id]=T)})()).userStep=g.step,C.userChunk=g.chunk,C.userComplete=g.complete,C.userError=g.error,g.step=R(g.step),g.chunk=R(g.chunk),g.complete=R(g.complete),g.error=R(g.error),delete g.worker,C.postMessage({input:w,config:g,workerId:C.id})},u.unparse=function(w,g){var C=!1,T=!0,A=",",F=`\r
44
- `,ne='"',be=ne+ne,J=!1,B=null,D=!1,ee=((()=>{if(typeof g=="object"){if(typeof g.delimiter!="string"||u.BAD_DELIMITERS.filter(function(j){return g.delimiter.indexOf(j)!==-1}).length||(A=g.delimiter),typeof g.quotes!="boolean"&&typeof g.quotes!="function"&&!Array.isArray(g.quotes)||(C=g.quotes),typeof g.skipEmptyLines!="boolean"&&typeof g.skipEmptyLines!="string"||(J=g.skipEmptyLines),typeof g.newline=="string"&&(F=g.newline),typeof g.quoteChar=="string"&&(ne=g.quoteChar),typeof g.header=="boolean"&&(T=g.header),Array.isArray(g.columns)){if(g.columns.length===0)throw new Error("Option columns is empty");B=g.columns}g.escapeChar!==void 0&&(be=g.escapeChar+ne),g.escapeFormulae instanceof RegExp?D=g.escapeFormulae:typeof g.escapeFormulae=="boolean"&&g.escapeFormulae&&(D=/^[=+\-@\t\r].*$/)}})(),new RegExp(_(ne),"g"));if(typeof w=="string"&&(w=JSON.parse(w)),Array.isArray(w)){if(!w.length||Array.isArray(w[0]))return I(null,w,J);if(typeof w[0]=="object")return I(B||Object.keys(w[0]),w,J)}else if(typeof w=="object")return typeof w.data=="string"&&(w.data=JSON.parse(w.data)),Array.isArray(w.data)&&(w.fields||(w.fields=w.meta&&w.meta.fields||B),w.fields||(w.fields=Array.isArray(w.data[0])?w.fields:typeof w.data[0]=="object"?Object.keys(w.data[0]):[]),Array.isArray(w.data[0])||typeof w.data[0]=="object"||(w.data=[w.data])),I(w.fields||[],w.data||[],J);throw new Error("Unable to serialize unrecognized input");function I(j,$,q){var Q="",De=(typeof j=="string"&&(j=JSON.parse(j)),typeof $=="string"&&($=JSON.parse($)),Array.isArray(j)&&0<j.length),Me=!Array.isArray($[0]);if(De&&T){for(var L=0;L<j.length;L++)0<L&&(Q+=A),Q+=te(j[L],L);0<$.length&&(Q+=F)}for(var re=0;re<$.length;re++){var Z=(De?j:$[re]).length,me=!1,oe=De?Object.keys($[re]).length===0:$[re].length===0;if(q&&!De&&(me=q==="greedy"?$[re].join("").trim()==="":$[re].length===1&&$[re][0].length===0),q==="greedy"&&De){for(var Ie=[],ie=0;ie<Z;ie++){var ae=Me?j[ie]:ie;Ie.push($[re][ae])}me=Ie.join("").trim()===""}if(!me){for(var Ce=0;Ce<Z;Ce++){0<Ce&&!oe&&(Q+=A);var K=De&&Me?j[Ce]:Ce;Q+=te($[re][K],Ce)}re<$.length-1&&(!q||0<Z&&!oe)&&(Q+=F)}}return Q}function te(j,$){var q,Q;return j==null?"":j.constructor===Date?JSON.stringify(j).slice(1,25):(Q=!1,D&&typeof j=="string"&&D.test(j)&&(j="'"+j,Q=!0),q=j.toString().replace(ee,be),(Q=Q||C===!0||typeof C=="function"&&C(j,$)||Array.isArray(C)&&C[$]||((De,Me)=>{for(var L=0;L<Me.length;L++)if(-1<De.indexOf(Me[L]))return!0;return!1})(q,u.BAD_DELIMITERS)||-1<q.indexOf(A)||q.charAt(0)===" "||q.charAt(q.length-1)===" ")?ne+q+ne:q)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
45
- `,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!o&&!!r.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=E,u.ParserHandle=y,u.NetworkStreamer=c,u.FileStreamer=m,u.StringStreamer=h,u.ReadableStreamStreamer=p,r.jQuery&&((i=r.jQuery).fn.parse=function(w){var g=w.config||{},C=[];return this.each(function(F){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var ne=0;ne<this.files.length;ne++)C.push({file:this.files[ne],inputElem:this,instanceConfig:i.extend({},g)})}),T(),this;function T(){if(C.length===0)R(w.complete)&&w.complete();else{var F,ne,be,J,B=C[0];if(R(w.before)){var D=w.before(B.file,B.inputElem);if(typeof D=="object"){if(D.action==="abort")return F="AbortError",ne=B.file,be=B.inputElem,J=D.reason,void(R(w.error)&&w.error({name:F},ne,be,J));if(D.action==="skip")return void A();typeof D.config=="object"&&(B.instanceConfig=i.extend(B.instanceConfig,D.config))}else if(D==="skip")return void A()}var ee=B.instanceConfig.complete;B.instanceConfig.complete=function(I){R(ee)&&ee(I,B.file,B.inputElem),A()},u.parse(B.file,B.instanceConfig)}}function A(){C.splice(0,1),T()}}),a&&(r.onmessage=function(w){w=w.data,u.WORKER_ID===void 0&&w&&(u.WORKER_ID=w.workerId),typeof w.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(w.input,w.config),finished:!0}):(r.File&&w.input instanceof File||w.input instanceof Object)&&(w=u.parse(w.input,w.config))&&r.postMessage({workerId:u.WORKER_ID,results:w,finished:!0})}),(c.prototype=Object.create(d.prototype)).constructor=c,(m.prototype=Object.create(d.prototype)).constructor=m,(h.prototype=Object.create(h.prototype)).constructor=h,(p.prototype=Object.create(d.prototype)).constructor=p,u})}(qr)),qr.exports}var D1=$1();let wn=class extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function I1(e){return e==null?[new wn(0,[void 0]),X()]:[new wn(2,[e]),X()]}function O1(e,t){let n,r,i,o,a;switch(e.tag){case 1:{t.tag===1?n=4:n=5;break}case 2:{t.tag===2?n=6:n=7;break}default:if(e.fields[0].tag===1)e.fields[0].fields[0].tag===1?t.tag===1?(n=2,a=e.fields[0].fields[0].fields[0]):n=3:t.tag===1?(n=1,o=e.fields[0].fields[0].fields[0]):n=3;else switch(t.tag){case 0:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}case 2:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}default:n=3}}switch(n){case 0:return[new wn(1,[r]),km(i)];case 1:return[new wn(2,[o]),X()];case 2:return[new wn(0,[a]),X()];case 3:return[t,X()];case 4:return[new wn(0,[void 0]),X()];case 5:return[t,X()];case 6:return[new wn(0,[void 0]),X()];default:return[t,X()]}}var P1=Object.defineProperty,F1=(e,t,n)=>t in e?P1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ki=(e,t,n)=>(F1(e,typeof t!="symbol"?t+"":t,n),n);let R1=class{constructor(){Ki(this,"current",this.detect()),Ki(this,"handoffState","pending"),Ki(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},xn=new R1;function Ni(e){return xn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function $i(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function un(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return $i(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=un();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function ca(){let[e]=Oe(un);return Pe(()=>()=>e.dispose(),[e]),e}let Xe=(e,t)=>{xn.isServer?Pe(e,t):Mn(e,t)};function $n(e){let t=de(e);return Xe(()=>{t.current=e},[e]),t}let ke=function(e){let t=$n(e);return V.useCallback((...n)=>t.current(...n),[t])},L1=ct(void 0);function H1(){return Je(L1)}function wo(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function sn(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,sn),r}var di=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(di||{}),rn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(rn||{});function wt(){let e=j1();return xt(t=>U1({mergeRefs:e,...t}),[e])}function U1({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:a,mergeRefs:s}){s=s??V1;let l=Xu(t,e);if(o)return Lr(l,n,r,a,s);let u=i??0;if(u&2){let{static:d=!1,...c}=l;if(d)return Lr(c,n,r,a,s)}if(u&1){let{unmount:d=!0,...c}=l;return sn(d?0:1,{0(){return null},1(){return Lr({...c,hidden:!0,style:{display:"none"}},n,r,a,s)}})}return Lr(l,n,r,a,s)}function Lr(e,t={},n,r,i){let{as:o=n,children:a,refName:s="ref",...l}=Xi(e,["unmount","static"]),u=e.ref!==void 0?{[s]:e.ref}:{},d=typeof a=="function"?a(t):a;"className"in l&&l.className&&typeof l.className=="function"&&(l.className=l.className(t)),l["aria-labelledby"]&&l["aria-labelledby"]===l.id&&(l["aria-labelledby"]=void 0);let c={};if(t){let m=!1,h=[];for(let[p,y]of Object.entries(t))typeof y=="boolean"&&(m=!0),y===!0&&h.push(p.replace(/([A-Z])/g,_=>`-${_.toLowerCase()}`));if(m){c["data-headlessui-state"]=h.join(" ");for(let p of h)c[`data-${p}`]=""}}if(o===xe&&(Object.keys(hn(l)).length>0||Object.keys(hn(c)).length>0))if(!Jn(d)||Array.isArray(d)&&d.length>1){if(Object.keys(hn(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(hn(l)).concat(Object.keys(hn(c))).map(m=>` - ${m}`).join(`
46
- `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(m=>` - ${m}`).join(`
47
- `)].join(`
48
- `))}else{let m=d.props,h=m==null?void 0:m.className,p=typeof h=="function"?(...E)=>wo(h(...E),l.className):wo(h,l.className),y=p?{className:p}:{},_=Xu(d.props,hn(Xi(l,["ref"])));for(let E in c)E in _&&delete c[E];return jo(d,Object.assign({},_,c,u,{ref:i(W1(d),u.ref)},y))}return f(o,Object.assign({},Xi(l,["ref"]),o!==xe&&u,o!==xe&&c),d)}function j1(){let e=de([]),t=xt(n=>{for(let r of e.current)r!=null&&(typeof r=="function"?r(n):r.current=n)},[]);return(...n)=>{if(!n.every(r=>r==null))return e.current=n,t}}function V1(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function Xu(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let a=n[r];for(let s of a){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;s(i,...o)}}});return t}function it(e){var t;return Object.assign(Lo(e),{displayName:(t=e.displayName)!=null?t:e.name})}function hn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Xi(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function W1(e){return V.version.split(".")[0]>="19"?e.props.ref:e.ref}let B1="span";var fi=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(fi||{});function G1(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return wt()({ourProps:o,theirProps:i,slot:{},defaultTag:B1,name:"Hidden"})}let _o=it(G1),Ju=Symbol();function q1(e,t=!0){return Object.assign(e,{[Ju]:t})}function Pt(...e){let t=de(e);Pe(()=>{t.current=e},[e]);let n=ke(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Ju]))?void 0:n}let da=ct(null);da.displayName="DescriptionContext";function Qu(){let e=Je(da);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Qu),t}return e}function z1(){let[e,t]=Oe([]);return[e.length>0?e.join(" "):void 0,Ue(()=>function(n){let r=ke(o=>(t(a=>[...a,o]),()=>t(a=>{let s=a.slice(),l=s.indexOf(o);return l!==-1&&s.splice(l,1),s}))),i=Ue(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return V.createElement(da.Provider,{value:i},n.children)},[t])]}let Y1="p";function Z1(e,t){let n=ln(),r=H1(),{id:i=`headlessui-description-${n}`,...o}=e,a=Qu(),s=Pt(t);Xe(()=>a.register(i),[i,a.register]);let l=r||!1,u=Ue(()=>({...a.slot,disabled:l}),[a.slot,l]),d={ref:s,...a.props,id:i};return wt()({ourProps:d,theirProps:o,slot:u,defaultTag:Y1,name:a.name||"Description"})}let K1=it(Z1),X1=Object.assign(K1,{});var ec=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(ec||{});let J1=ct(()=>{});function Q1({value:e,children:t}){return V.createElement(J1.Provider,{value:e},t)}let ew=class extends Map{constructor(t){super(),this.factory=t}get(t){let n=super.get(t);return n===void 0&&(n=this.factory(t),this.set(t,n)),n}};function tc(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let a=t[i].call(n,...o);a&&(n=a,r.forEach(s=>s()))}}}function nc(e){return pi(e.subscribe,e.getSnapshot,e.getSnapshot)}let tw=new ew(()=>tc(()=>[],{ADD(e){return this.includes(e)?this:[...this,e]},REMOVE(e){let t=this.indexOf(e);if(t===-1)return this;let n=this.slice();return n.splice(t,1),n}}));function ar(e,t){let n=tw.get(t),r=ln(),i=nc(n);if(Xe(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),a=i.length;return o===-1&&(o=a,a+=1),o===a-1}let yo=new Map,gr=new Map;function Bs(e){var t;let n=(t=gr.get(e))!=null?t:0;return gr.set(e,n+1),n!==0?()=>Gs(e):(yo.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Gs(e))}function Gs(e){var t;let n=(t=gr.get(e))!=null?t:1;if(n===1?gr.delete(e):gr.set(e,n-1),n!==1)return;let r=yo.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,yo.delete(e))}function nw(e,{allowed:t,disallowed:n}={}){let r=ar(e,"inert-others");Xe(()=>{var i,o;if(!r)return;let a=un();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&a.add(Bs(l));let s=(o=t==null?void 0:t())!=null?o:[];for(let l of s){if(!l)continue;let u=Ni(l);if(!u)continue;let d=l.parentElement;for(;d&&d!==u.body;){for(let c of d.children)s.some(m=>c.contains(m))||a.add(Bs(c));d=d.parentElement}}return a.dispose},[r,t,n])}function rw(e,t,n){let r=$n(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});Pe(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=un();if(typeof ResizeObserver<"u"){let a=new ResizeObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}if(typeof IntersectionObserver<"u"){let a=new IntersectionObserver(()=>r.current(i));a.observe(i),o.add(()=>a.disconnect())}return()=>o.dispose()},[t,r,e])}let hi=["[contentEditable=true]","[tabindex]","a[href]","area[href]","button:not([disabled])","iframe","input:not([disabled])","select:not([disabled])","textarea:not([disabled])"].map(e=>`${e}:not([tabindex='-1'])`).join(","),iw=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var Ut=(e=>(e[e.First=1]="First",e[e.Previous=2]="Previous",e[e.Next=4]="Next",e[e.Last=8]="Last",e[e.WrapAround=16]="WrapAround",e[e.NoScroll=32]="NoScroll",e[e.AutoFocus=64]="AutoFocus",e))(Ut||{}),vo=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(vo||{}),ow=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ow||{});function aw(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(hi)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function sw(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(iw)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var rc=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(rc||{});function lw(e,t=0){var n;return e===((n=Ni(e))==null?void 0:n.body)?!1:sn(t,{0(){return e.matches(hi)},1(){let r=e;for(;r!==null;){if(r.matches(hi))return!0;r=r.parentElement}return!1}})}var uw=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(uw||{});typeof window<"u"&&typeof document<"u"&&(document.addEventListener("keydown",e=>{e.metaKey||e.altKey||e.ctrlKey||(document.documentElement.dataset.headlessuiFocusVisible="")},!0),document.addEventListener("click",e=>{e.detail===1?delete document.documentElement.dataset.headlessuiFocusVisible:e.detail===0&&(document.documentElement.dataset.headlessuiFocusVisible="")},!0));function qt(e){e==null||e.focus({preventScroll:!0})}let cw=["textarea","input"].join(",");function dw(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,cw))!=null?n:!1}function fw(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let a=i.compareDocumentPosition(o);return a&Node.DOCUMENT_POSITION_FOLLOWING?-1:a&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function wr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,a=Array.isArray(e)?n?fw(e):e:t&64?sw(e):aw(e);i.length>0&&a.length>1&&(a=a.filter(h=>!i.some(p=>p!=null&&"current"in p?(p==null?void 0:p.current)===h:p===h))),r=r??o.activeElement;let s=(()=>{if(t&5)return 1;if(t&10)return-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),l=(()=>{if(t&1)return 0;if(t&2)return Math.max(0,a.indexOf(r))-1;if(t&4)return Math.max(0,a.indexOf(r))+1;if(t&8)return a.length-1;throw new Error("Missing Focus.First, Focus.Previous, Focus.Next or Focus.Last")})(),u=t&32?{preventScroll:!0}:{},d=0,c=a.length,m;do{if(d>=c||d+c<=0)return 0;let h=l+d;if(t&16)h=(h+c)%c;else{if(h<0)return 3;if(h>=c)return 1}m=a[h],m==null||m.focus(u),d+=s}while(m!==o.activeElement);return t&6&&dw(m)&&m.select(),2}function ic(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function hw(){return/Android/gi.test(window.navigator.userAgent)}function mw(){return ic()||hw()}function fr(e,t,n,r){let i=$n(n);Pe(()=>{if(!e)return;function o(a){i.current(a)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function oc(e,t,n,r){let i=$n(n);Pe(()=>{if(!e)return;function o(a){i.current(a)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const qs=30;function pw(e,t,n){let r=ar(e,"outside-click"),i=$n(n),o=xt(function(l,u){if(l.defaultPrevented)return;let d=u(l);if(d===null||!d.getRootNode().contains(d)||!d.isConnected)return;let c=function m(h){return typeof h=="function"?m(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let m of c)if(m!==null&&(m.contains(d)||l.composed&&l.composedPath().includes(m)))return;return!lw(d,rc.Loose)&&d.tabIndex!==-1&&l.preventDefault(),i.current(l,d)},[i,t]),a=de(null);fr(r,"pointerdown",l=>{var u,d;a.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),fr(r,"mousedown",l=>{var u,d;a.current=((d=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:d[0])||l.target},!0),fr(r,"click",l=>{mw()||a.current&&(o(l,()=>a.current),a.current=null)},!0);let s=de({x:0,y:0});fr(r,"touchstart",l=>{s.current.x=l.touches[0].clientX,s.current.y=l.touches[0].clientY},!0),fr(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-s.current.x)>=qs||Math.abs(u.y-s.current.y)>=qs))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),oc(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function $r(...e){return Ue(()=>Ni(...e),[...e])}function ac(e,t,n,r){let i=$n(n);Pe(()=>{e=e??window;function o(a){i.current(a)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function gw(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function ww(){return ic()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let s=un();s.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>s.dispose()))}let o=(i=window.scrollY)!=null?i:window.pageYOffset,a=null;t.addEventListener(e,"click",s=>{if(s.target instanceof HTMLElement)try{let l=s.target.closest("a");if(!l)return;let{hash:u}=new URL(l.href),d=e.querySelector(u);d&&!r(d)&&(a=d)}catch{}},!0),t.addEventListener(e,"touchstart",s=>{if(s.target instanceof HTMLElement)if(r(s.target)){let l=s.target;for(;l.parentElement&&r(l.parentElement);)l=l.parentElement;t.style(l,"overscrollBehavior","contain")}else t.style(s.target,"touchAction","none")}),t.addEventListener(e,"touchmove",s=>{if(s.target instanceof HTMLElement){if(s.target.tagName==="INPUT")return;if(r(s.target)){let l=s.target;for(;l.parentElement&&l.dataset.headlessuiPortal!==""&&!(l.scrollHeight>l.clientHeight||l.scrollWidth>l.clientWidth);)l=l.parentElement;l.dataset.headlessuiPortal===""&&s.preventDefault()}else s.preventDefault()}},{passive:!1}),t.add(()=>{var s;let l=(s=window.scrollY)!=null?s:window.pageYOffset;o!==l&&window.scrollTo(0,o),a&&a.isConnected&&(a.scrollIntoView({block:"nearest"}),a=null)})})}}:{}}function _w(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function yw(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Cn=tc(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:un(),meta:new Set};return r.count++,r.meta.add(t),this.set(e,r),this},POP(e,t){let n=this.get(e);return n&&(n.count--,n.meta.delete(t)),this},SCROLL_PREVENT({doc:e,d:t,meta:n}){let r={doc:e,d:t,meta:yw(n)},i=[ww(),gw(),_w()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});Cn.subscribe(()=>{let e=Cn.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&Cn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Cn.dispatch("TEARDOWN",n)}});function vw(e,t,n=()=>({containers:[]})){let r=nc(Cn),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Xe(()=>{if(!(!t||!e))return Cn.dispatch("PUSH",t,n),()=>Cn.dispatch("POP",t,n)},[e,t]),o}function bw(e,t,n=()=>[document.body]){let r=ar(e,"scroll-lock");vw(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Cw(e=0){let[t,n]=Oe(e),r=xt(l=>n(l),[t]),i=xt(l=>n(u=>u|l),[t]),o=xt(l=>(t&l)===l,[t]),a=xt(l=>n(u=>u&~l),[n]),s=xt(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:a,toggleFlag:s}}var xw={},zs,Ys;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((zs=process==null?void 0:xw)==null?void 0:zs.NODE_ENV)==="test"&&typeof((Ys=Element==null?void 0:Element.prototype)==null?void 0:Ys.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
49
- `)),[]});var Sw=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(Sw||{});function Ew(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function kw(e,t,n,r){let[i,o]=Oe(n),{hasFlag:a,addFlag:s,removeFlag:l}=Cw(e&&i?3:0),u=de(!1),d=de(!1),c=ca();return Xe(()=>{var m;if(e){if(n&&o(!0),!t){n&&s(3);return}return(m=r==null?void 0:r.start)==null||m.call(r,n),Tw(t,{inFlight:u,prepare(){d.current?d.current=!1:d.current=u.current,u.current=!0,!d.current&&(n?(s(3),l(4)):(s(4),l(2)))},run(){d.current?n?(l(3),s(4)):(l(4),s(3)):n?l(1):s(1)},done(){var h;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||o(!1),(h=r==null?void 0:r.end)==null||h.call(r,n))}})}},[e,n,t,c]),e?[i,{closed:a(1),enter:a(2),leave:a(4),transition:a(2)||a(4)}]:[n,{closed:void 0,enter:void 0,leave:void 0,transition:void 0}]}function Tw(e,{prepare:t,run:n,done:r,inFlight:i}){let o=un();return Mw(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(Aw(e,r))})}),o.dispose}function Aw(e,t){var n,r;let i=un();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!0});let a=(r=(n=e.getAnimations)==null?void 0:n.call(e).filter(s=>s instanceof CSSTransition))!=null?r:[];return a.length===0?(t(),i.dispose):(Promise.allSettled(a.map(s=>s.finished)).then(()=>{o||t()}),i.dispose)}function Mw(e,{inFlight:t,prepare:n}){if(t!=null&&t.current){n();return}let r=e.style.transition;e.style.transition="none",n(),e.offsetHeight,e.style.transition=r}function fa(e,t){let n=de([]),r=ke(e);Pe(()=>{let i=[...n.current];for(let[o,a]of t.entries())if(n.current[o]!==a){let s=r(t,i);return n.current=t,s}},[r,...t])}let Di=ct(null);Di.displayName="OpenClosedContext";var St=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(St||{});function Ii(){return Je(Di)}function Nw({value:e,children:t}){return V.createElement(Di.Provider,{value:e},t)}function $w({children:e}){return V.createElement(Di.Provider,{value:null},e)}function Dw(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let tn=[];Dw(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||tn[0]===t.target)return;let n=t.target;n=n.closest(hi),tn.unshift(n??t.target),tn=tn.filter(r=>r!=null&&r.isConnected),tn.splice(10)}window.addEventListener("click",e,{capture:!0}),window.addEventListener("mousedown",e,{capture:!0}),window.addEventListener("focus",e,{capture:!0}),document.body.addEventListener("click",e,{capture:!0}),document.body.addEventListener("mousedown",e,{capture:!0}),document.body.addEventListener("focus",e,{capture:!0})});function sc(e){let t=ke(e),n=de(!1);Pe(()=>(n.current=!1,()=>{n.current=!0,$i(()=>{n.current&&t()})}),[t])}function Iw(){let e=typeof document>"u";return"useSyncExternalStore"in io?(t=>t.useSyncExternalStore)(io)(()=>()=>{},()=>!1,()=>!e):!1}function Dr(){let e=Iw(),[t,n]=Oe(xn.isHandoffComplete);return t&&xn.isHandoffComplete===!1&&n(!1),Pe(()=>{t!==!0&&n(!0)},[t]),Pe(()=>xn.handoff(),[]),e?!1:t}let lc=ct(!1);function Ow(){return Je(lc)}function Zs(e){return V.createElement(lc.Provider,{value:e.force},e.children)}function Pw(e){let t=Ow(),n=Je(cc),r=$r(e),[i,o]=Oe(()=>{var a;if(!t&&n!==null)return(a=n.current)!=null?a:null;if(xn.isServer)return null;let s=r==null?void 0:r.getElementById("headlessui-portal-root");if(s)return s;if(r===null)return null;let l=r.createElement("div");return l.setAttribute("id","headlessui-portal-root"),r.body.appendChild(l)});return Pe(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),Pe(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let uc=xe,Fw=it(function(e,t){let n=e,r=de(null),i=Pt(q1(c=>{r.current=c}),t),o=$r(r),a=Pw(r),[s]=Oe(()=>{var c;return xn.isServer?null:(c=o==null?void 0:o.createElement("div"))!=null?c:null}),l=Je(bo),u=Dr();Xe(()=>{!a||!s||a.contains(s)||(s.setAttribute("data-headlessui-portal",""),a.appendChild(s))},[a,s]),Xe(()=>{if(s&&l)return l.register(s)},[l,s]),sc(()=>{var c;!a||!s||(s instanceof Node&&a.contains(s)&&a.removeChild(s),a.childNodes.length<=0&&((c=a.parentElement)==null||c.removeChild(a)))});let d=wt();return u?!a||!s?null:Ho(d({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:uc,name:"Portal"}),s):null});function Rw(e,t){let n=Pt(t),{enabled:r=!0,...i}=e,o=wt();return r?V.createElement(Fw,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:uc,name:"Portal"})}let Lw=xe,cc=ct(null);function Hw(e,t){let{target:n,...r}=e,i={ref:Pt(t)},o=wt();return V.createElement(cc.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:Lw,name:"Popover.Group"}))}let bo=ct(null);function Uw(){let e=Je(bo),t=de([]),n=ke(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ke(o=>{let a=t.current.indexOf(o);a!==-1&&t.current.splice(a,1),e&&e.unregister(o)}),i=Ue(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,Ue(()=>function({children:o}){return V.createElement(bo.Provider,{value:i},o)},[i])]}let jw=it(Rw),dc=it(Hw),Vw=Object.assign(jw,{Group:dc});function Ww(e,t=typeof document<"u"?document.defaultView:null,n){let r=ar(e,"escape");ac(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===ec.Escape&&n(i))})}function Bw(){var e;let[t]=Oe(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=Oe((e=t==null?void 0:t.matches)!=null?e:!1);return Xe(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function Gw({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=$r(n),i=ke(()=>{var o,a;let s=[];for(let l of e)l!==null&&(l instanceof HTMLElement?s.push(l):"current"in l&&l.current instanceof HTMLElement&&s.push(l.current));if(t!=null&&t.current)for(let l of t.current)s.push(l);for(let l of(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((a=n==null?void 0:n.getRootNode())==null?void 0:a.host))||s.some(u=>l.contains(u))||s.push(l));return s});return{resolveContainers:i,contains:ke(o=>i().some(a=>a.contains(o)))}}let fc=ct(null);function Ks({children:e,node:t}){let[n,r]=Oe(null),i=hc(t??n);return V.createElement(fc.Provider,{value:i},e,i===null&&V.createElement(_o,{features:fi.Hidden,ref:o=>{var a,s;if(o){for(let l of(s=(a=Ni(o))==null?void 0:a.querySelectorAll("html > *, body > *"))!=null?s:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function hc(e=null){var t;return(t=Je(fc))!=null?t:e}function ha(){let e=de(!1);return Xe(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var hr=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(hr||{});function qw(){let e=de(0);return oc(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function mc(e){if(!e)return new Set;if(typeof e=="function")return new Set(e());let t=new Set;for(let n of e.current)n.current instanceof HTMLElement&&t.add(n.current);return t}let zw="div";var _n=(e=>(e[e.None=0]="None",e[e.InitialFocus=1]="InitialFocus",e[e.TabLock=2]="TabLock",e[e.FocusLock=4]="FocusLock",e[e.RestoreFocus=8]="RestoreFocus",e[e.AutoFocus=16]="AutoFocus",e))(_n||{});function Yw(e,t){let n=de(null),r=Pt(n,t),{initialFocus:i,initialFocusFallback:o,containers:a,features:s=15,...l}=e;Dr()||(s=0);let u=$r(n);Jw(s,{ownerDocument:u});let d=Qw(s,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});e_(s,{ownerDocument:u,container:n,containers:a,previousActiveElement:d});let c=qw(),m=ke(k=>{let N=n.current;N&&(P=>P())(()=>{sn(c.current,{[hr.Forwards]:()=>{wr(N,Ut.First,{skipElements:[k.relatedTarget,o]})},[hr.Backwards]:()=>{wr(N,Ut.Last,{skipElements:[k.relatedTarget,o]})}})})}),h=ar(!!(s&2),"focus-trap#tab-lock"),p=ca(),y=de(!1),_={ref:r,onKeyDown(k){k.key=="Tab"&&(y.current=!0,p.requestAnimationFrame(()=>{y.current=!1}))},onBlur(k){if(!(s&4))return;let N=mc(a);n.current instanceof HTMLElement&&N.add(n.current);let P=k.relatedTarget;P instanceof HTMLElement&&P.dataset.headlessuiFocusGuard!=="true"&&(pc(N,P)||(y.current?wr(n.current,sn(c.current,{[hr.Forwards]:()=>Ut.Next,[hr.Backwards]:()=>Ut.Previous})|Ut.WrapAround,{relativeTo:k.target}):k.target instanceof HTMLElement&&qt(k.target)))}},E=wt();return V.createElement(V.Fragment,null,h&&V.createElement(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:fi.Focusable}),E({ourProps:_,theirProps:l,defaultTag:zw,name:"FocusTrap"}),h&&V.createElement(_o,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:m,features:fi.Focusable}))}let Zw=it(Yw),Kw=Object.assign(Zw,{features:_n});function Xw(e=!0){let t=de(tn.slice());return fa(([n],[r])=>{r===!0&&n===!1&&$i(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=tn.slice())},[e,tn,t]),ke(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function Jw(e,{ownerDocument:t}){let n=!!(e&8),r=Xw(n);fa(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&qt(r())},[n]),sc(()=>{n&&qt(r())})}function Qw(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=de(null),a=ar(!!(e&1),"focus-trap#initial-focus"),s=ha();return fa(()=>{if(e===0)return;if(!a){i!=null&&i.current&&qt(i.current);return}let l=n.current;l&&$i(()=>{if(!s.current)return;let u=t==null?void 0:t.activeElement;if(r!=null&&r.current){if((r==null?void 0:r.current)===u){o.current=u;return}}else if(l.contains(u)){o.current=u;return}if(r!=null&&r.current)qt(r.current);else{if(e&16){if(wr(l,Ut.First|Ut.AutoFocus)!==vo.Error)return}else if(wr(l,Ut.First)!==vo.Error)return;if(i!=null&&i.current&&(qt(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,a,e]),o}function e_(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=ha(),a=!!(e&4);ac(t==null?void 0:t.defaultView,"focus",s=>{if(!a||!o.current)return;let l=mc(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let d=s.target;d&&d instanceof HTMLElement?pc(l,d)?(i.current=d,qt(d)):(s.preventDefault(),s.stopPropagation(),qt(u)):qt(i.current)},!0)}function pc(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function gc(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:_c)!==xe||V.Children.count(e.children)===1}let Oi=ct(null);Oi.displayName="TransitionContext";var t_=(e=>(e.Visible="visible",e.Hidden="hidden",e))(t_||{});function n_(){let e=Je(Oi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function r_(){let e=Je(Pi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Pi=ct(null);Pi.displayName="NestingContext";function Fi(e){return"children"in e?Fi(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function wc(e,t){let n=$n(e),r=de([]),i=ha(),o=ca(),a=ke((h,p=rn.Hidden)=>{let y=r.current.findIndex(({el:_})=>_===h);y!==-1&&(sn(p,{[rn.Unmount](){r.current.splice(y,1)},[rn.Hidden](){r.current[y].state="hidden"}}),o.microTask(()=>{var _;!Fi(r)&&i.current&&((_=n.current)==null||_.call(n))}))}),s=ke(h=>{let p=r.current.find(({el:y})=>y===h);return p?p.state!=="visible"&&(p.state="visible"):r.current.push({el:h,state:"visible"}),()=>a(h,rn.Unmount)}),l=de([]),u=de(Promise.resolve()),d=de({enter:[],leave:[]}),c=ke((h,p,y)=>{l.current.splice(0),t&&(t.chains.current[p]=t.chains.current[p].filter(([_])=>_!==h)),t==null||t.chains.current[p].push([h,new Promise(_=>{l.current.push(_)})]),t==null||t.chains.current[p].push([h,new Promise(_=>{Promise.all(d.current[p].map(([E,k])=>k)).then(()=>_())})]),p==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>y(p)):y(p)}),m=ke((h,p,y)=>{Promise.all(d.current[p].splice(0).map(([_,E])=>E)).then(()=>{var _;(_=l.current.shift())==null||_()}).then(()=>y(p))});return Ue(()=>({children:r,register:s,unregister:a,onStart:c,onStop:m,wait:u,chains:d}),[s,a,r,c,m,d,u])}let _c=xe,yc=di.RenderStrategy;function i_(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:a,beforeLeave:s,afterLeave:l,enter:u,enterFrom:d,enterTo:c,entered:m,leave:h,leaveFrom:p,leaveTo:y,..._}=e,[E,k]=Oe(null),N=de(null),P=gc(e),z=Pt(...P?[N,t,k]:t===null?[]:[t]),G=(n=_.unmount)==null||n?rn.Unmount:rn.Hidden,{show:R,appear:w,initial:g}=n_(),[C,T]=Oe(R?"visible":"hidden"),A=r_(),{register:F,unregister:ne}=A;Xe(()=>F(N),[F,N]),Xe(()=>{if(G===rn.Hidden&&N.current){if(R&&C!=="visible"){T("visible");return}return sn(C,{hidden:()=>ne(N),visible:()=>F(N)})}},[C,N,F,ne,R,G]);let be=Dr();Xe(()=>{if(P&&be&&C==="visible"&&N.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[N,C,be,P]);let J=g&&!w,B=w&&R&&g,D=de(!1),ee=wc(()=>{D.current||(T("hidden"),ne(N))},A),I=ke(Me=>{D.current=!0;let L=Me?"enter":"leave";ee.onStart(N,L,re=>{re==="enter"?o==null||o():re==="leave"&&(s==null||s())})}),te=ke(Me=>{let L=Me?"enter":"leave";D.current=!1,ee.onStop(N,L,re=>{re==="enter"?a==null||a():re==="leave"&&(l==null||l())}),L==="leave"&&!Fi(ee)&&(T("hidden"),ne(N))});Pe(()=>{P&&i||(I(R),te(R))},[R,P,i]);let j=!(!i||!P||!be||J),[,$]=kw(j,E,R,{start:I,end:te}),q=hn({ref:z,className:((r=wo(_.className,B&&u,B&&d,$.enter&&u,$.enter&&$.closed&&d,$.enter&&!$.closed&&c,$.leave&&h,$.leave&&!$.closed&&p,$.leave&&$.closed&&y,!$.transition&&R&&m))==null?void 0:r.trim())||void 0,...Ew($)}),Q=0;C==="visible"&&(Q|=St.Open),C==="hidden"&&(Q|=St.Closed),$.enter&&(Q|=St.Opening),$.leave&&(Q|=St.Closing);let De=wt();return V.createElement(Pi.Provider,{value:ee},V.createElement(Nw,{value:Q},De({ourProps:q,theirProps:_,defaultTag:_c,features:yc,visible:C==="visible",name:"Transition.Child"})))}function o_(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,a=de(null),s=gc(e),l=Pt(...s?[a,t]:t===null?[]:[t]);Dr();let u=Ii();if(n===void 0&&u!==null&&(n=(u&St.Open)===St.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,c]=Oe(n?"visible":"hidden"),m=wc(()=>{n||c("hidden")}),[h,p]=Oe(!0),y=de([n]);Xe(()=>{h!==!1&&y.current[y.current.length-1]!==n&&(y.current.push(n),p(!1))},[y,n]);let _=Ue(()=>({show:n,appear:r,initial:h}),[n,r,h]);Xe(()=>{n?c("visible"):!Fi(m)&&a.current!==null&&c("hidden")},[n,m]);let E={unmount:i},k=ke(()=>{var z;h&&p(!1),(z=e.beforeEnter)==null||z.call(e)}),N=ke(()=>{var z;h&&p(!1),(z=e.beforeLeave)==null||z.call(e)}),P=wt();return V.createElement(Pi.Provider,{value:m},V.createElement(Oi.Provider,{value:_},P({ourProps:{...E,as:xe,children:V.createElement(vc,{ref:l,...E,...o,beforeEnter:k,beforeLeave:N})},theirProps:{},defaultTag:xe,features:yc,visible:d==="visible",name:"Transition"})))}function a_(e,t){let n=Je(Oi)!==null,r=Ii()!==null;return V.createElement(V.Fragment,null,!n&&r?V.createElement(Co,{ref:t,...e}):V.createElement(vc,{ref:t,...e}))}let Co=it(o_),vc=it(i_),ma=it(a_),s_=Object.assign(Co,{Child:ma,Root:Co});var l_=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(l_||{}),u_=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(u_||{});let c_={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},pa=ct(null);pa.displayName="DialogContext";function Ri(e){let t=Je(pa);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ri),n}return t}function d_(e,t){return sn(t.type,c_,e,t)}let Xs=it(function(e,t){let n=ln(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:a,role:s="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:d=!1,...c}=e,m=de(!1);s=function(){return s==="dialog"||s==="alertdialog"?s:(m.current||(m.current=!0,console.warn(`Invalid role [${s}] passed to <Dialog />. Only \`dialog\` and and \`alertdialog\` are supported. Using \`dialog\` instead.`)),"dialog")}();let h=Ii();i===void 0&&h!==null&&(i=(h&St.Open)===St.Open);let p=de(null),y=Pt(p,t),_=$r(p),E=i?0:1,[k,N]=Cr(d_,{titleId:null,descriptionId:null,panelRef:So()}),P=ke(()=>o(!1)),z=ke(te=>N({type:0,id:te})),G=Dr()?E===0:!1,[R,w]=Uw(),g={get current(){var te;return(te=k.panelRef.current)!=null?te:p.current}},C=hc(),{resolveContainers:T}=Gw({mainTreeNode:C,portals:R,defaultContainers:[g]}),A=h!==null?(h&St.Closing)===St.Closing:!1;nw(u||A?!1:G,{allowed:ke(()=>{var te,j;return[(j=(te=p.current)==null?void 0:te.closest("[data-headlessui-portal]"))!=null?j:null]}),disallowed:ke(()=>{var te;return[(te=C==null?void 0:C.closest("body > *:not(#headlessui-portal-root)"))!=null?te:null]})}),pw(G,T,te=>{te.preventDefault(),P()}),Ww(G,_==null?void 0:_.defaultView,te=>{te.preventDefault(),te.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),P()}),bw(u||A?!1:G,_,T),rw(G,p,P);let[F,ne]=z1(),be=Ue(()=>[{dialogState:E,close:P,setTitleId:z,unmount:d},k],[E,k,P,z,d]),J=Ue(()=>({open:E===0}),[E]),B={ref:y,id:r,role:s,tabIndex:-1,"aria-modal":u?void 0:E===0?!0:void 0,"aria-labelledby":k.titleId,"aria-describedby":F,unmount:d},D=!Bw(),ee=_n.None;G&&!u&&(ee|=_n.RestoreFocus,ee|=_n.TabLock,l&&(ee|=_n.AutoFocus),D&&(ee|=_n.InitialFocus));let I=wt();return V.createElement($w,null,V.createElement(Zs,{force:!0},V.createElement(Vw,null,V.createElement(pa.Provider,{value:be},V.createElement(dc,{target:p},V.createElement(Zs,{force:!1},V.createElement(ne,{slot:J},V.createElement(w,null,V.createElement(Kw,{initialFocus:a,initialFocusFallback:p,containers:T,features:ee},V.createElement(Q1,{value:P},I({ourProps:B,theirProps:c,slot:J,defaultTag:f_,features:h_,visible:E===0,name:"Dialog"})))))))))))}),f_="div",h_=di.RenderStrategy|di.Static;function m_(e,t){let{transition:n=!1,open:r,...i}=e,o=Ii(),a=e.hasOwnProperty("open")||o!==null,s=e.hasOwnProperty("onClose");if(!a&&!s)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!a)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!s)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?V.createElement(Ks,null,V.createElement(s_,{show:r,transition:n,unmount:i.unmount},V.createElement(Xs,{ref:t,...i}))):V.createElement(Ks,null,V.createElement(Xs,{ref:t,open:r,...i}))}let p_="div";function g_(e,t){let n=ln(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:a,unmount:s},l]=Ri("Dialog.Panel"),u=Pt(t,l.panelRef),d=Ue(()=>({open:a===0}),[a]),c=ke(_=>{_.stopPropagation()}),m={ref:u,id:r,onClick:c},h=i?ma:xe,p=i?{unmount:s}:{},y=wt();return V.createElement(h,{...p},y({ourProps:m,theirProps:o,slot:d,defaultTag:p_,name:"Dialog.Panel"}))}let w_="div";function __(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=Ri("Dialog.Backdrop"),a=Ue(()=>({open:i===0}),[i]),s={ref:t,"aria-hidden":!0},l=n?ma:xe,u=n?{unmount:o}:{},d=wt();return V.createElement(l,{...u},d({ourProps:s,theirProps:r,slot:a,defaultTag:w_,name:"Dialog.Backdrop"}))}let y_="h2";function v_(e,t){let n=ln(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:a}]=Ri("Dialog.Title"),s=Pt(t);Pe(()=>(a(r),()=>a(null)),[r,a]);let l=Ue(()=>({open:o===0}),[o]),u={ref:s,id:r};return wt()({ourProps:u,theirProps:i,slot:l,defaultTag:y_,name:"Dialog.Title"})}let b_=it(m_),C_=it(g_),x_=it(__),S_=it(v_),bc=Object.assign(b_,{Panel:C_,Title:S_,Description:X1});class qn extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}}function Cc(e){return f(bc,na(e,1))}class xc extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Sc(e){return f(bc.Panel,na(e,1))}class Ec extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function kc(e){return f(x_,na(e,1))}function Tc(e,t){let n;return f("svg",x(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=he(f("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",S.Children.toArray(Array.from(n))])])))}function Ac(e,t){let n,r,i;return f("svg",x(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",x(v([(r="M11.6666 13.6667H2.33328C1.23062 13.6667 0.333282 12.7693 0.333282 11.6667V9H1.66662V11.6667C1.66662 12.034 1.96595 12.3333 2.33328 12.3333H11.6666C12.0339 12.3333 12.3333 12.034 12.3333 11.6667V9H13.6666V11.6667C13.6666 12.7693 12.7693 13.6667 11.6666 13.6667Z",["d",r]),["fill","#2E66F7"]]))),f("path",x(v([(i="M10.3333 4.72395L7.66667 7.39062V0.333282H6.33333V7.39062L3.66667 4.72395L2.724 5.66662L7 9.94262L11.276 5.66662L10.3333 4.72395Z",["d",i]),["fill","#2E66F7"]])))]),["children",S.Children.toArray(Array.from(n))])])))}function E_(e,t){let n,r,i,o,a,s,l,u,d,c,m,h,p,y,_,E,k,N,P,z,G,R;return Cc(v([new qn(3,[e]),new qn(4,[t]),new qn(5,[[kc(he(new Ec(2,["fixed inset-0 bg-gray-500/50"]))),f("div",x(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Sc(he(new xc(2,[[f("div",x(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[f("div",x(v([["className","flex flex-row justify-between"],(i=[f("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),f("button",x(v([["onClick",w=>{t()}],["type","button"],["className","text-gray-600"],(o=[Tc(24,24)],["children",S.Children.toArray(Array.from(o))])])))],["children",S.Children.toArray(Array.from(i))])]))),f("div",x(v([["className","text-gray-600 text-sm pt-6"],(a=[f("span",{children:"Fields marked with "}),f("span",{className:"text-red-600",children:"*"}),f("span",x(he((s=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",s]))))],["children",S.Children.toArray(Array.from(a))])]))),f("div",x(v([["className","grid grid-cols-2 mt-3"],(l=[f("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),f("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),f("div",x(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(u=[f("span",{children:"First name "}),f("span",{className:"text-red-600",children:"*"})],["children",S.Children.toArray(Array.from(u))])]))),f("div",x(he((d=[f("div",x(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(c=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",S.Children.toArray(Array.from(c))])])))],["children",S.Children.toArray(Array.from(d))])))),f("div",x(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(m=[f("span",{children:"Last name "}),f("span",{className:"text-red-600",children:"*"})],["children",S.Children.toArray(Array.from(m))])]))),f("div",x(he((h=[f("div",x(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",S.Children.toArray(Array.from(p))])])))],["children",S.Children.toArray(Array.from(h))])))),f("div",x(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(y=[f("span",{children:"Email "}),f("span",{className:"text-red-600",children:"*"})],["children",S.Children.toArray(Array.from(y))])]))),f("div",x(he((_=[f("div",x(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(E=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",S.Children.toArray(Array.from(E))])])))],["children",S.Children.toArray(Array.from(_))])))),f("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),f("div",x(he((k=[f("div",x(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(N=[f("span",{children:"For example:"}),f("br",{}),f("span",{className:"italic",children:"+61432368712"})],["children",S.Children.toArray(Array.from(N))])])))],["children",S.Children.toArray(Array.from(k))])))),f("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),f("div",x(he((P=[f("div",x(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(z=[f("span",{children:"One of the following options:"}),f("br",{}),f("ul",x(v([["className","italic list-disc px-3"],(G=[f("li",{children:"Full-time"}),f("li",{children:"Part-time"}),f("li",{children:"Labour hire"}),f("li",{children:"Casual"})],["children",S.Children.toArray(Array.from(G))])])))],["children",S.Children.toArray(Array.from(z))])])))],["children",S.Children.toArray(Array.from(P))])))),f("div",x(v([["className","flex flex-row items-end gap-1 pt-3"],(R=[f("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),Ac(13,13)],["children",S.Children.toArray(Array.from(R))])])))],["children",S.Children.toArray(Array.from(l))])])))],["children",S.Children.toArray(Array.from(r))])])))]])))],["children",S.Children.toArray(Array.from(n))])])))]])]))}function k_(e,t){let n,r,i,o,a,s,l;return Cc(v([new qn(3,[e]),new qn(4,[t]),new qn(5,[[kc(he(new Ec(2,["fixed inset-0 bg-gray-500/50"]))),f("div",x(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Sc(he(new xc(2,[[f("div",x(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[f("div",x(v([["className","flex flex-row justify-between"],(i=[f("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),f("button",x(v([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[Tc(24,24)],["children",S.Children.toArray(Array.from(o))])])))],["children",S.Children.toArray(Array.from(i))])]))),f("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),f("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),f("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),f("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),f("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),f("div",x(v([["className","text-sm text-gray-500 pt-2"],(a="You must include the required fields: “First name,” “Last name,” and “Email” to create a profile. “Mobile number” and “Employment basis” are optional but recommended, as they can help with searching and filtering.",["children",a])]))),f("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),f("div",x(v([["className","text-sm text-gray-500 pt-2"],(s=`We recommend downloading and editing our sample CSV template, which includes all the necessary column headers and example values.
50
- If you’re using your own CSV, ensure that your data is organised correctly and that there are no extra spaces or special characters.`,["children",s])]))),f("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),f("div",x(v([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
51
- If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",S.Children.toArray(Array.from(r))])])))]])))],["children",S.Children.toArray(Array.from(n))])])))]])]))}function Mc(e,t){let n,r;return f("svg",x(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=he(f("path",x(v([(r="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",r]),["fill","#10B981"]])))),["children",S.Children.toArray(Array.from(n))])])))}function T_(e,t){let n,r,i;return f("svg",x(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",x(v([(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM3.99743 10C3.99743 13.3151 6.68487 16.0026 10 16.0026C13.3151 16.0026 16.0026 13.3151 16.0026 10C16.0026 6.68487 13.3151 3.99743 10 3.99743C6.68487 3.99743 3.99743 6.68487 3.99743 10Z",["d",r]),["fill","#D6E2FC"]]))),f("path",x(v([(i="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",i]),["fill","#2E66F7"]])))]),["children",S.Children.toArray(Array.from(n))])])))}function A_(e,t){let n,r;return f("svg",x(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=he(f("path",x(v([(r="M15.8008 12.5263L9.48383 0.880306C9.32803 0.591371 9.09045 0.354828 8.80083 0.200306C8.40735 -0.0102628 7.94665 -0.0569536 7.51893 0.0703896C7.0912 0.197733 6.73106 0.488809 6.51683 0.880306L0.20083 12.5263C0.0627228 12.7826 -0.00633038 13.0704 0.00045607 13.3614C0.00724252 13.6525 0.0896351 13.9368 0.239538 14.1863C0.38944 14.4359 0.601694 14.6422 0.855444 14.7849C1.10919 14.9276 1.39571 15.0018 1.68683 15.0003H14.3148C14.5939 15.0003 14.8686 14.9316 15.1148 14.8003C15.3099 14.6968 15.4825 14.5556 15.6228 14.3851C15.763 14.2145 15.8681 14.0178 15.932 13.8064C15.9958 13.595 16.0172 13.373 15.9949 13.1533C15.9726 12.9336 15.9069 12.7205 15.8018 12.5263H15.8008ZM8.00083 13.0003C7.80305 13.0003 7.60971 12.9417 7.44526 12.8318C7.28081 12.7219 7.15264 12.5657 7.07695 12.383C7.00126 12.2003 6.98146 11.9992 7.02004 11.8052C7.05863 11.6112 7.15387 11.4331 7.29372 11.2932C7.43358 11.1533 7.61176 11.0581 7.80574 11.0195C7.99972 10.9809 8.20079 11.0007 8.38351 11.0764C8.56624 11.1521 8.72242 11.2803 8.8323 11.4447C8.94218 11.6092 9.00083 11.8025 9.00083 12.0003C9.00083 12.2655 8.89547 12.5199 8.70794 12.7074C8.5204 12.8949 8.26605 13.0003 8.00083 13.0003ZM9.00083 9.50031C9.00083 9.63291 8.94815 9.76009 8.85438 9.85386C8.76062 9.94763 8.63344 10.0003 8.50083 10.0003H7.50083C7.36822 10.0003 7.24104 9.94763 7.14728 9.85386C7.05351 9.76009 7.00083 9.63291 7.00083 9.50031V5.50031C7.00083 5.3677 7.05351 5.24052 7.14728 5.14675C7.24104 5.05298 7.36822 5.00031 7.50083 5.00031H8.50083C8.63344 5.00031 8.76062 5.05298 8.85438 5.14675C8.94815 5.24052 9.00083 5.3677 9.00083 5.50031V9.50031Z",["d",r]),["fill","#F87171"]])))),["children",S.Children.toArray(Array.from(n))])])))}function M_(e,t){let n,r;return f("svg",x(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([f("path",x(v([(r="M17 21H3C1.346 21 0 19.654 0 18V14H2V18C2 18.551 2.448 19 3 19H17C17.552 19 18 18.551 18 18V14H20V18C20 19.654 18.654 21 17 21Z",["d",r]),["fill","#9CA3AF"]]))),f("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",S.Children.toArray(Array.from(n))])])))}function N_(e,t){let n,r;return f("svg",x(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=he(f("path",x(v([(r="M8.83429 0.234315C9.14671 -0.0781049 9.65324 -0.0781049 9.96566 0.234315L13.1657 3.43431C13.4781 3.74673 13.4781 4.25327 13.1657 4.56569L9.96566 7.76569C9.65324 8.0781 9.14671 8.0781 8.83429 7.76569C8.52187 7.45327 8.52187 6.94673 8.83429 6.63432L10.6686 4.8H1.39998C0.958148 4.8 0.599976 4.44183 0.599976 4C0.599976 3.55817 0.958148 3.2 1.39998 3.2H10.6686L8.83429 1.36569C8.52187 1.05327 8.52187 0.546734 8.83429 0.234315Z",["d",r]),["fill","white"]])))),["children",S.Children.toArray(Array.from(n))])])))}function $_(e,t){const n=e.type==="text/csv",r=e.size<=10485760;if(n)if(r){const i={};i.complete=(o,a)=>{let s;t(new bn(0,[new vn(1,[(s=o.errors,!vf(Ge,s)&&s.length===0?new b(0,[new S1(new Ku(e.name),new v1(pf((l,u)=>[new g1(l),new y1(u)],bf(o.data))),new C1(er(l=>new b1(l),Cf(o.data))),e.size)]):new b(1,[new Rr(2,[Re(0,o.errors).message])]))])]))},i.error=(o,a)=>{t(new bn(0,[new vn(1,[new b(1,[new Rr(2,[o])])])]))},i.worker=!0,D1.parse(e,i)}else t(new bn(0,[new vn(1,[new b(1,[new Rr(1,[])])])]));else t(new bn(0,[new vn(1,[new b(1,[new Rr(0,[])])])]))}function D_(e,t){nu(ze.Delay(()=>ze.Bind(Gf(1e3),()=>($_(e,t),ze.Zero()))))}const Js=(()=>{const e=new Blob(["first_name, last_name, email, mobile_phone, employment_basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function I_(e){let t,n,r,i,o,a,s,l;const u=e.cancel,d=e.next,c=e.existingCsvFile;let m;const h=I1(c);m=Ti(()=>ki(()=>h,O1,(g,C)=>{}),void 0,[]);const p=m[0],y=m[1],_=g=>{y(new bn(0,[new vn(0,[[new Ku(g.name),C=>{D_(g,C)}]])]))},E=S.useState(!1),k=E[1],N=S.useState(!1),P=N[1],z=S.useState(!1),G=z[1],R=S.useRef(void 0),w=p.tag===2;return f("div",x(v([["className","bg-gray-50"],(t=[f("div",x(v([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[E_(E[0],()=>{k(!1)}),k_(z[0],()=>{G(!1)}),f("span",{className:"font-sonoma text-gray-900 font-semibold text-lg",children:"Upload CSV"}),f("span",{className:"text-sm font-normal pt-2",children:"Download and use our template, or upload your own CSV to get started."}),f("a",x(v([["className","flex flex-row items-end gap-1"],["href",Js],["download","import_users"],(r=[f("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),Ac(13,13)],["children",S.Children.toArray(Array.from(r))])]))),f("div",x(v([["className","flex flex-row pt-3 gap-2"],(i=[f("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:g=>{k(!0)},type:"button",children:S.Children.toArray(["What kind of data do I need?"])}),f("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:g=>{G(!0)},type:"button",children:S.Children.toArray(["Frequently asked questions"])})],["children",S.Children.toArray(Array.from(i))])]))),f("div",x(Wt(_e(()=>tt(N[0]?ue(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):ue(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),_e(()=>{let g;return ue((g=Wt(_e(()=>{let C,T,A,F,ne,be,J,B,D,ee,I,te,j;switch(p.tag){case 2:{let $;const q=p.fields[0].SizeInBytes/1024/1024;return $=jl("{0:F2}",q),ue(f("div",x(v([["className","p-6 justify-between items-center inline-flex w-full"],(C=[f("div",x(v([["className","justify-start items-start gap-2 flex"],(T=[f("div",{className:"text-center text-gray-600 text-sm font-medium",children:p.fields[0].Name.fields[0]}),f("span",x(v([["className","text-emerald-700"],(A=[Mc(20,20)],["children",S.Children.toArray(Array.from(A))])])))],["children",S.Children.toArray(Array.from(T))])]))),f("div",x(v([["className","justify-start items-start gap-2 flex"],(F=[f("div",{className:"text-center text-gray-500 text-sm font-medium",children:`${$}MB`}),f("button",x(v([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",Q=>{y(new bn(2,[]))}],(ne=[f("div",{className:"text-center text-sm font-medium",children:"Remove"}),f("div",x(v([["className","w-4 h-4 justify-center items-center flex"],(be=[po(10,10)],["children",S.Children.toArray(Array.from(be))])])))],["children",S.Children.toArray(Array.from(ne))])])))],["children",S.Children.toArray(Array.from(F))])])))],["children",S.Children.toArray(Array.from(C))])]))))}case 1:return ue(f("div",x(v([["className","p-6 justify-between items-center inline-flex w-full"],(J=[f("div",x(v([["className","justify-start items-start gap-2 flex"],(B=[f("div",{className:"text-center text-gray-600 text-sm font-medium",children:p.fields[0].fields[0]}),f("span",x(v([["className","animate-spin"],(D=[T_(20,20)],["children",S.Children.toArray(Array.from(D))])])))],["children",S.Children.toArray(Array.from(B))])]))),f("div",x(v([["className","justify-start items-start gap-2 flex"],(ee=[f("button",x(v([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",$=>{y(new bn(1,[]))}],(I=[f("div",{className:"text-center text-sm font-medium",children:"Cancel"}),f("div",x(v([["className","w-4 h-4 justify-center items-center flex"],(te=[po(10,10)],["children",S.Children.toArray(Array.from(te))])])))],["children",S.Children.toArray(Array.from(I))])])))],["children",S.Children.toArray(Array.from(ee))])])))],["children",S.Children.toArray(Array.from(J))])]))));default:{const $=q=>{q.preventDefault(),q.stopPropagation()};return ue(f("div",x(v([["className","flex flex-col items-center p-4"],["onDragEnter",q=>{$(q),P(!0)}],["onDragLeave",q=>{$(q),P(!1)}],["onDragOver",q=>{$(q),P(!0)}],["onDrop",q=>{let Q;$(q),P(!1),_((Q=q,Q.dataTransfer).files.item(0))}],(j=Wt(_e(()=>{let q,Q,De,Me,L,re;return tt((q=p.fields[0],q==null?ue(Dt()):(Q=q,ue(f("div",x(v([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(De=[f("div",x(v([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(Me=[A_(16,15)],["children",S.Children.toArray(Array.from(Me))])]))),f("div",x(v([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(L=[f("div",x(v([["className","self-stretch text-red-800 text-sm font-medium"],(re=Wt(_e(()=>{let Z;return Q.tag===0?ue(f("span",{children:["File type must be .csv"]})):Q.tag===2?ue((Z=v([f("span",{children:["Invalid CSV. Try using our "]}),f("a",{className:"underline",children:"sample CSV",href:Js,download:"import_users"}),f("span",{children:[" instead."]})]),f("p",{children:S.Children.toArray(Array.from(Z))}))):ue(f("span",{children:["File size is too large"]}))})),["children",S.Children.toArray(Array.from(re))])])))],["children",S.Children.toArray(Array.from(L))])])))],["children",S.Children.toArray(Array.from(De))])])))))),_e(()=>{let Z;return tt(ue(f("div",x(v([["className","pt-2"],(Z=[M_(20,21)],["children",S.Children.toArray(Array.from(Z))])])))),_e(()=>tt(ue(f("input",{type:"file",onChange:me=>{const oe=me.target.files;oe!=null&&oe.length>0&&_(oe.item(0))},className:"hidden",ref:R})),_e(()=>tt(ue(f("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),_e(()=>tt(ue(f("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white",onClick:me=>{ta(oe=>{oe.click()},Wl(R.current))},type:"button",children:S.Children.toArray(["Choose file"])})),_e(()=>ue(f("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",S.Children.toArray(Array.from(j))])]))))}}})),["children",S.Children.toArray(Array.from(g))]))})))))),f("div",x(v([["className","flex flex-row justify-end gap-3"],(o=[f("button",x(v([(a="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",a]),["onClick",g=>{u()}],["type","button"],["children",S.Children.toArray(["Cancel import"])]]))),f("button",x(v([(s="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",s]),["onClick",g=>{p.tag===2&&d(p.fields[0])}],["type","button"],["disabled",!w],(l=["Map fields",N_(13,8)],["children",S.Children.toArray(Array.from(l))])])))],["children",S.Children.toArray(Array.from(o))])])))],["children",S.Children.toArray(Array.from(n))])])))],["children",S.Children.toArray(Array.from(t))])])))}class at extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class et extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function O_(){return[new et(0,[new at(0,[void 0])]),X()]}function P_(e,t){let n,r,i,o,a,s,l,u,d,c,m,h,p,y,_,E,k,N,P,z,G,R,w,g,C,T,A,F,ne,be,J,B,D,ee,I,te,j;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,T=t.fields[0].fields[0][1],A=t.fields[0].fields[0][0],F=t.fields[0].fields[0][2],ne=e.fields[0].fields[0]):n=14;break}case 2:{e.fields[0].fields[0].tag===0?t.tag===0&&t.fields[0].tag===1?(n=17,te=t.fields[0].fields[0][0],j=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,B=e.fields[0].fields[0].fields[0],D=t.fields[0].fields[0][0],ee=e.fields[0].fields[0].fields[1],I=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,be=e.fields[0].fields[0].fields[0],J=t.fields[0].fields[0][0]):n=18;break}default:t.tag===0&&t.fields[0].tag===3?t.fields[0].fields[0][2]!=null?(n=11,R=t.fields[0].fields[0][1],w=t.fields[0].fields[0][0],g=t.fields[0].fields[0][2][0],C=t.fields[0].fields[0][2][1]):(n=10,z=t.fields[0].fields[0][1],G=t.fields[0].fields[0][0]):n=12}else switch(e.fields[0].tag){case 1:{e.fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=4,u=e.fields[0].fields[0],d=t.fields[0].fields[0][0],c=e.fields[0].fields[1],m=t.fields[0].fields[0][1]):n=5:t.tag===0&&t.fields[0].tag===1?(n=3,s=e.fields[0].fields[0],l=t.fields[0].fields[0][0]):n=5;break}case 2:{t.tag===0&&t.fields[0].tag===2?(n=6,h=t.fields[0].fields[0][1],p=t.fields[0].fields[0][0],y=t.fields[0].fields[0][2],_=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,E=t.fields[0].fields[0][1],k=t.fields[0].fields[0][0],N=t.fields[0].fields[0][2],P=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,i=e.fields[0].fields[0],o=t.fields[0].fields[0][0],a=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new et(0,[new at(1,[[r,new Rt(0,[Us])]])]),X()];case 1:return Ge(i,o)?[new et(0,[new at(1,[[o,a]])]),X()]:[new et(0,[new at(1,[[i,new Rt(0,[Us])]])]),X()];case 2:return[t,X()];case 3:return[new et(0,[new at(3,[[l,s,void 0]])]),X()];case 4:return[new et(0,[new at(2,[[d,u,c,m.tag===1&&m.fields[0].tag===1&&Ge(c,m.fields[0].fields[1])?m.fields[0].fields[2]:void 0]])]),X()];case 5:return[t,X()];case 6:return[new et(0,[new at(3,[[p,h,[y,_]]])]),X()];case 7:return[t,X()];case 8:return[new et(1,[[k,E,N,P]]),X()];case 9:return[t,X()];case 10:return[new et(0,[new at(1,[[G,new Rt(1,[new Rn(0,[z])])]])]),X()];case 11:return[new et(0,[new at(2,[[w,R,g,C]])]),X()];case 12:return[t,X()];case 13:return[new et(0,[new at(1,[[A,new Rt(1,[new Rn(1,[T,F,ne])])]])]),X()];case 14:return[t,X()];case 15:return[new et(0,[new at(0,[[J,new Rt(1,[new Rn(0,[be])])]])]),X()];case 16:return[new et(0,[new at(0,[[D,I.tag===1?I.fields[0].tag===1?Ge(B,I.fields[0].fields[0])&&Ge(ee,I.fields[0].fields[1])?I:new Rt(1,[new Rn(1,[B,ee,void 0])]):new Rt(1,[new Rn(1,[B,ee,void 0])]):new Rt(1,[new Rn(1,[B,ee,void 0])])]])]),X()];case 17:return[new et(0,[new at(0,[[te,new Rt(0,[j])]])]),X()];default:return[t,X()]}}function F_(e,t,n,r,i,o,a){return f("div",{})}class Be extends H{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Hr extends ve{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function R_(e){switch(e.tag){case 1:return new Hr(new Be(0,[]),new Be(1,[]),new Be(2,[]),new Be(2,[]));case 2:return new Hr(new Be(0,[]),new Be(0,[]),new Be(1,[]),new Be(2,[]));case 3:return new Hr(new Be(0,[]),new Be(0,[]),new Be(0,[]),new Be(1,[]));default:return new Hr(new Be(1,[]),new Be(2,[]),new Be(2,[]),new Be(2,[]))}}function L_(e,t,n){switch(n.tag){case 1:{const r=n.fields[0],i=r[1].tag===1?r[1].fields[0].tag===1?[js(r[1].fields[0].fields[0],r[1].fields[0].fields[1]),r[0].HeaderRow,r[0].DataRows]:[js(r[1].fields[0].fields[0],void 0),r[0].HeaderRow,r[0].DataRows]:[r[1].fields[0],r[0].HeaderRow,r[0].DataRows];return f(k1,{existingMappings:i[0],headerRow:i[1],dataRows:i[2],next:o=>{let a;t(new Zi(0,[(a=o,new Vs(1,[a[0],a[1]]))]))},back:o=>{t(new Zi(1,[new T1(2,[o])]))}})}case 2:return A1(n.fields[0][3],x1(n.fields[0][0].DataRows,n.fields[0][2]));case 3:return M1(n.fields[0][0].HeaderRow,n.fields[0][0].DataRows,n.fields[0][1],n.fields[0][2]);default:{const r=Er(i=>i[0],n.fields[0]);return f(I_,{existingCsvFile:Vl(r),next:i=>{t(new Zi(0,[new Vs(0,[i])]))},cancel:e})}}}function Ur(e,t){let n,r,i;switch(t.tag){case 1:return f("div",x(v([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[f("span",{children:e})],["children",S.Children.toArray(Array.from(n))])])));case 2:return f("div",x(v([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[f("span",{children:e})],["children",S.Children.toArray(Array.from(r))])])));default:return f("div",x(v([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[Mc(20,20),f("span",{children:e})],["children",S.Children.toArray(Array.from(i))])])))}}function H_(e){let t,n,r,i,o;const a=O_();o=Ti(()=>ki(()=>a,P_,(c,m)=>{}),void 0,[]);const s=o[0],l=S.useState(!1);let u;if(s.tag===0){const c=s.fields[0],m=()=>{l[0]||l[1](!0)},h=R_(c),p=L_(m,o[1],c);u=f("div",x(v([["className","flex flex-col"],(t=[f("div",x(v([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[f("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),f("button",x(v([(r="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",y=>{m()}],["type","button"],["children",S.Children.toArray(["Cancel import"])]])))],["children",S.Children.toArray(Array.from(n))])]))),f("div",x(v([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[Ur("1. Upload CSV",h.UploadingCsv),f("hr",{className:"w-16 pt-1.5"}),Ur("2. Map fields",h.MappingColumns),f("hr",{className:"w-16 pt-1.5"}),Ur("3. Map values",h.MappingEmploymentBasis),f("hr",{className:"w-16 pt-1.5"}),Ur("4. Review",h.Reviewing)],["children",S.Children.toArray(Array.from(i))])]))),p],["children",S.Children.toArray(Array.from(t))])])))}else{const c=s.fields[0][0].DataRows;u=F_(s.fields[0][0].Name,s.fields[0][0].HeaderRow,c,s.fields[0][1],s.fields[0][2],s.fields[0][3])}const d=[f("style",{children:[Bo]}),u];return f(xe,{},...d)}function U_(){No(e=>f(H_,e),"apollo-import-workspace-wizard")}No(e=>f(If,e),"apollo-import-workspace-app");p1();U_();
40
+ */var hC=ti.exports,dc;function mC(){return dc||(dc=1,function(e,t){((n,r)=>{e.exports=r()})(hC,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},o,i=!r.document&&!!r.postMessage,s=r.IS_PAPA_WORKER||!1,a={},l=0,u={};function d(v){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(y){var k=O(y);k.chunkSize=parseInt(k.chunkSize),y.step||y.chunk||(k.chunkSize=null),this._handle=new g(k),(this._handle.streamer=this)._config=k}).call(this,v),this.parseChunk=function(y,k){var T=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<T){let D=this._config.newline;D||(N=this._config.quoteChar||'"',D=this._handle.guessLineEndings(y,N)),y=[...y.split(D).slice(T)].join(D)}this.isFirstChunk&&F(this._config.beforeFirstChunk)&&(N=this._config.beforeFirstChunk(y))!==void 0&&(y=N),this.isFirstChunk=!1,this._halted=!1;var T=this._partialLine+y,N=(this._partialLine="",this._handle.parse(T,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(y=N.meta.cursor,T=(this._finished||(this._partialLine=T.substring(y-this._baseIndex),this._baseIndex=y),N&&N.data&&(this._rowCount+=N.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:N,workerId:u.WORKER_ID,finished:T});else if(F(this._config.chunk)&&!k){if(this._config.chunk(N,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=N=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(N.data),this._completeResults.errors=this._completeResults.errors.concat(N.errors),this._completeResults.meta=N.meta),this._completed||!T||!F(this._config.complete)||N&&N.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),T||N&&N.meta.paused||this._nextChunk(),N}this._halted=!0},this._sendError=function(y){F(this._config.error)?this._config.error(y):s&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:y,finished:!1})}}function c(v){var y;(v=v||{}).chunkSize||(v.chunkSize=u.RemoteChunkSize),d.call(this,v),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(k){this._input=k,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(y=new XMLHttpRequest,this._config.withCredentials&&(y.withCredentials=this._config.withCredentials),i||(y.onload=P(this._chunkLoaded,this),y.onerror=P(this._chunkError,this)),y.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadRequestHeaders){var k,T=this._config.downloadRequestHeaders;for(k in T)y.setRequestHeader(k,T[k])}var N;this._config.chunkSize&&(N=this._start+this._config.chunkSize-1,y.setRequestHeader("Range","bytes="+this._start+"-"+N));try{y.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}i&&y.status===0&&this._chunkError()}},this._chunkLoaded=function(){y.readyState===4&&(y.status<200||400<=y.status?this._chunkError():(this._start+=this._config.chunkSize||y.responseText.length,this._finished=!this._config.chunkSize||this._start>=(k=>(k=k.getResponseHeader("Content-Range"))!==null?parseInt(k.substring(k.lastIndexOf("/")+1)):-1)(y),this.parseChunk(y.responseText)))},this._chunkError=function(k){k=y.statusText||k,this._sendError(new Error(k))}}function p(v){(v=v||{}).chunkSize||(v.chunkSize=u.LocalChunkSize),d.call(this,v);var y,k,T=typeof FileReader<"u";this.stream=function(N){this._input=N,k=N.slice||N.webkitSlice||N.mozSlice,T?((y=new FileReader).onload=P(this._chunkLoaded,this),y.onerror=P(this._chunkError,this)):y=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var N=this._input,D=(this._config.chunkSize&&(D=Math.min(this._start+this._config.chunkSize,this._input.size),N=k.call(N,this._start,D)),y.readAsText(N,this._config.encoding));T||this._chunkLoaded({target:{result:D}})},this._chunkLoaded=function(N){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(N.target.result)},this._chunkError=function(){this._sendError(y.error)}}function f(v){var y;d.call(this,v=v||{}),this.stream=function(k){return y=k,this._nextChunk()},this._nextChunk=function(){var k,T;if(!this._finished)return k=this._config.chunkSize,y=k?(T=y.substring(0,k),y.substring(k)):(T=y,""),this._finished=!y,this.parseChunk(T)}}function h(v){d.call(this,v=v||{});var y=[],k=!0,T=!1;this.pause=function(){d.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){d.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(N){this._input=N,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){T&&y.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),y.length?this.parseChunk(y.shift()):k=!0},this._streamData=P(function(N){try{y.push(typeof N=="string"?N:N.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk(y.shift()))}catch(D){this._streamError(D)}},this),this._streamError=P(function(N){this._streamCleanUp(),this._sendError(N)},this),this._streamEnd=P(function(){this._streamCleanUp(),T=!0,this._streamData("")},this),this._streamCleanUp=P(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function g(v){var y,k,T,N,D=Math.pow(2,53),H=-D,le=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,W=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,U=this,I=0,B=0,L=!1,re=!1,q=[],M={data:[],errors:[],meta:{}};function Y(Q){return v.skipEmptyLines==="greedy"?Q.join("").trim()==="":Q.length===1&&Q[0].length===0}function oe(){if(M&&T&&(Ne("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),T=!1),v.skipEmptyLines&&(M.data=M.data.filter(function(X){return!Y(X)})),Ae()){let X=function(he,ie){F(v.transformHeader)&&(he=v.transformHeader(he,ie)),q.push(he)};var _e=X;if(M)if(Array.isArray(M.data[0])){for(var Q=0;Ae()&&Q<M.data.length;Q++)M.data[Q].forEach(X);M.data.splice(0,1)}else M.data.forEach(X)}function fe(X,he){for(var ie=v.header?{}:[],we=0;we<X.length;we++){var Re=we,pe=X[we],pe=((Tt,Ve)=>(tt=>(v.dynamicTypingFunction&&v.dynamicTyping[tt]===void 0&&(v.dynamicTyping[tt]=v.dynamicTypingFunction(tt)),(v.dynamicTyping[tt]||v.dynamicTyping)===!0))(Tt)?Ve==="true"||Ve==="TRUE"||Ve!=="false"&&Ve!=="FALSE"&&((tt=>{if(le.test(tt)&&(tt=parseFloat(tt),H<tt&&tt<D))return 1})(Ve)?parseFloat(Ve):W.test(Ve)?new Date(Ve):Ve===""?null:Ve):Ve)(Re=v.header?we>=q.length?"__parsed_extra":q[we]:Re,pe=v.transform?v.transform(pe,Re):pe);Re==="__parsed_extra"?(ie[Re]=ie[Re]||[],ie[Re].push(pe)):ie[Re]=pe}return v.header&&(we>q.length?Ne("FieldMismatch","TooManyFields","Too many fields: expected "+q.length+" fields but parsed "+we,B+he):we<q.length&&Ne("FieldMismatch","TooFewFields","Too few fields: expected "+q.length+" fields but parsed "+we,B+he)),ie}var ue;M&&(v.header||v.dynamicTyping||v.transform)&&(ue=1,!M.data.length||Array.isArray(M.data[0])?(M.data=M.data.map(fe),ue=M.data.length):M.data=fe(M.data,0),v.header&&M.meta&&(M.meta.fields=q),B+=ue)}function Ae(){return v.header&&q.length===0}function Ne(Q,fe,ue,_e){Q={type:Q,code:fe,message:ue},_e!==void 0&&(Q.row=_e),M.errors.push(Q)}F(v.step)&&(N=v.step,v.step=function(Q){M=Q,Ae()?oe():(oe(),M.data.length!==0&&(I+=Q.data.length,v.preview&&I>v.preview?k.abort():(M.data=M.data[0],N(M,U))))}),this.parse=function(Q,fe,ue){var _e=v.quoteChar||'"',_e=(v.newline||(v.newline=this.guessLineEndings(Q,_e)),T=!1,v.delimiter?F(v.delimiter)&&(v.delimiter=v.delimiter(Q),M.meta.delimiter=v.delimiter):((_e=((X,he,ie,we,Re)=>{var pe,Tt,Ve,tt;Re=Re||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var Fn=0;Fn<Re.length;Fn++){for(var tn,st=Re[Fn],_n=0,We=0,Pt=0,zt=(Ve=void 0,new _({comments:we,delimiter:st,newline:he,preview:10}).parse(X)),xn=0;xn<zt.data.length;xn++)ie&&Y(zt.data[xn])?Pt++:(tn=zt.data[xn].length,We+=tn,Ve===void 0?Ve=tn:0<tn&&(_n+=Math.abs(tn-Ve),Ve=tn));0<zt.data.length&&(We/=zt.data.length-Pt),(Tt===void 0||_n<=Tt)&&(tt===void 0||tt<We)&&1.99<We&&(Tt=_n,pe=st,tt=We)}return{successful:!!(v.delimiter=pe),bestDelimiter:pe}})(Q,v.newline,v.skipEmptyLines,v.comments,v.delimitersToGuess)).successful?v.delimiter=_e.bestDelimiter:(T=!0,v.delimiter=u.DefaultDelimiter),M.meta.delimiter=v.delimiter),O(v));return v.preview&&v.header&&_e.preview++,y=Q,k=new _(_e),M=k.parse(y,fe,ue),oe(),L?{meta:{paused:!0}}:M||{meta:{paused:!1}}},this.paused=function(){return L},this.pause=function(){L=!0,k.abort(),y=F(v.chunk)?"":y.substring(k.getCharIndex())},this.resume=function(){U.streamer._halted?(L=!1,U.streamer.parseChunk(y,!0)):setTimeout(U.resume,3)},this.aborted=function(){return re},this.abort=function(){re=!0,k.abort(),M.meta.aborted=!0,F(v.complete)&&v.complete(M),y=""},this.guessLineEndings=function(X,_e){X=X.substring(0,1048576);var _e=new RegExp(w(_e)+"([^]*?)"+w(_e),"gm"),ue=(X=X.replace(_e,"")).split("\r"),_e=X.split(`
41
+ `),X=1<_e.length&&_e[0].length<ue[0].length;if(ue.length===1||X)return`
42
+ `;for(var he=0,ie=0;ie<ue.length;ie++)ue[ie][0]===`
43
+ `&&he++;return he>=ue.length/2?`\r
44
+ `:"\r"}}function w(v){return v.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function _(v){var y=(v=v||{}).delimiter,k=v.newline,T=v.comments,N=v.step,D=v.preview,H=v.fastMode,le=null,W=v.quoteChar==null?'"':v.quoteChar,U=W;if(v.escapeChar!==void 0&&(U=v.escapeChar),(typeof y!="string"||-1<u.BAD_DELIMITERS.indexOf(y))&&(y=","),T===y)throw new Error("Comment character same as delimiter");T===!0?T="#":(typeof T!="string"||-1<u.BAD_DELIMITERS.indexOf(T))&&(T=!1),k!==`
45
+ `&&k!=="\r"&&k!==`\r
46
+ `&&(k=`
47
+ `);var I=0,B=!1;this.parse=function(L,re,q){if(typeof L!="string")throw new Error("Input must be a string");var M=L.length,Y=y.length,oe=k.length,Ae=T.length,Ne=F(N),Q=[],fe=[],ue=[],_e=I=0;if(!L)return st();if(H||H!==!1&&L.indexOf(W)===-1){for(var X=L.split(k),he=0;he<X.length;he++){if(ue=X[he],I+=ue.length,he!==X.length-1)I+=k.length;else if(q)return st();if(!T||ue.substring(0,Ae)!==T){if(Ne){if(Q=[],Ve(ue.split(y)),_n(),B)return st()}else Ve(ue.split(y));if(D&&D<=he)return Q=Q.slice(0,D),st(!0)}}return st()}for(var ie=L.indexOf(y,I),we=L.indexOf(k,I),Re=new RegExp(w(U)+w(W),"g"),pe=L.indexOf(W,I);;)if(L[I]===W)for(pe=I,I++;;){if((pe=L.indexOf(W,pe+1))===-1)return q||fe.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Q.length,index:I}),Fn();if(pe===M-1)return Fn(L.substring(I,pe).replace(Re,W));if(W===U&&L[pe+1]===U)pe++;else if(W===U||pe===0||L[pe-1]!==U){ie!==-1&&ie<pe+1&&(ie=L.indexOf(y,pe+1));var Tt=tt((we=we!==-1&&we<pe+1?L.indexOf(k,pe+1):we)===-1?ie:Math.min(ie,we));if(L.substr(pe+1+Tt,Y)===y){ue.push(L.substring(I,pe).replace(Re,W)),L[I=pe+1+Tt+Y]!==W&&(pe=L.indexOf(W,I)),ie=L.indexOf(y,I),we=L.indexOf(k,I);break}if(Tt=tt(we),L.substring(pe+1+Tt,pe+1+Tt+oe)===k){if(ue.push(L.substring(I,pe).replace(Re,W)),tn(pe+1+Tt+oe),ie=L.indexOf(y,I),pe=L.indexOf(W,I),Ne&&(_n(),B))return st();if(D&&Q.length>=D)return st(!0);break}fe.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Q.length,index:I}),pe++}}else if(T&&ue.length===0&&L.substring(I,I+Ae)===T){if(we===-1)return st();I=we+oe,we=L.indexOf(k,I),ie=L.indexOf(y,I)}else if(ie!==-1&&(ie<we||we===-1))ue.push(L.substring(I,ie)),I=ie+Y,ie=L.indexOf(y,I);else{if(we===-1)break;if(ue.push(L.substring(I,we)),tn(we+oe),Ne&&(_n(),B))return st();if(D&&Q.length>=D)return st(!0)}return Fn();function Ve(We){Q.push(We),_e=I}function tt(We){var Pt=0;return Pt=We!==-1&&(We=L.substring(pe+1,We))&&We.trim()===""?We.length:Pt}function Fn(We){return q||(We===void 0&&(We=L.substring(I)),ue.push(We),I=M,Ve(ue),Ne&&_n()),st()}function tn(We){I=We,Ve(ue),ue=[],we=L.indexOf(k,I)}function st(We){if(v.header&&!re&&Q.length){var Pt=Q[0],zt={},xn=new Set(Pt);let ul=!1;for(let ar=0;ar<Pt.length;ar++){let qt=Pt[ar];if(zt[qt=F(v.transformHeader)?v.transformHeader(qt,ar):qt]){let Yr,cl=zt[qt];for(;Yr=qt+"_"+cl,cl++,xn.has(Yr););xn.add(Yr),Pt[ar]=Yr,zt[qt]++,ul=!0,(le=le===null?{}:le)[Yr]=qt}else zt[qt]=1,Pt[ar]=qt;xn.add(qt)}ul&&console.warn("Duplicate headers found and renamed.")}return{data:Q,errors:fe,meta:{delimiter:y,linebreak:k,aborted:B,truncated:!!We,cursor:_e+(re||0),renamedHeaders:le}}}function _n(){N(st()),Q=[],fe=[]}},this.abort=function(){B=!0},this.getCharIndex=function(){return I}}function C(v){var y=v.data,k=a[y.workerId],T=!1;if(y.error)k.userError(y.error,y.file);else if(y.results&&y.results.data){var N={abort:function(){T=!0,S(y.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:$,resume:$};if(F(k.userStep)){for(var D=0;D<y.results.data.length&&(k.userStep({data:y.results.data[D],errors:y.results.errors,meta:y.results.meta},N),!T);D++);delete y.results}else F(k.userChunk)&&(k.userChunk(y.results,N,y.file),delete y.results)}y.finished&&!T&&S(y.workerId,y.results)}function S(v,y){var k=a[v];F(k.userComplete)&&k.userComplete(y),k.terminate(),delete a[v]}function $(){throw new Error("Not implemented.")}function O(v){if(typeof v!="object"||v===null)return v;var y,k=Array.isArray(v)?[]:{};for(y in v)k[y]=O(v[y]);return k}function P(v,y){return function(){v.apply(y,arguments)}}function F(v){return typeof v=="function"}return u.parse=function(v,y){var k=(y=y||{}).dynamicTyping||!1;if(F(k)&&(y.dynamicTypingFunction=k,k={}),y.dynamicTyping=k,y.transform=!!F(y.transform)&&y.transform,!y.worker||!u.WORKERS_SUPPORTED)return k=null,u.NODE_STREAM_INPUT,typeof v=="string"?(v=(T=>T.charCodeAt(0)!==65279?T:T.slice(1))(v),k=new(y.download?c:f)(y)):v.readable===!0&&F(v.read)&&F(v.on)?k=new h(y):(r.File&&v instanceof File||v instanceof Object)&&(k=new p(y)),k.stream(v);(k=(()=>{var T;return!!u.WORKERS_SUPPORTED&&(T=(()=>{var N=r.URL||r.webkitURL||null,D=n.toString();return u.BLOB_URL||(u.BLOB_URL=N.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",D,")();"],{type:"text/javascript"})))})(),(T=new r.Worker(T)).onmessage=C,T.id=l++,a[T.id]=T)})()).userStep=y.step,k.userChunk=y.chunk,k.userComplete=y.complete,k.userError=y.error,y.step=F(y.step),y.chunk=F(y.chunk),y.complete=F(y.complete),y.error=F(y.error),delete y.worker,k.postMessage({input:v,config:y,workerId:k.id})},u.unparse=function(v,y){var k=!1,T=!0,N=",",D=`\r
48
+ `,H='"',le=H+H,W=!1,U=null,I=!1,B=((()=>{if(typeof y=="object"){if(typeof y.delimiter!="string"||u.BAD_DELIMITERS.filter(function(q){return y.delimiter.indexOf(q)!==-1}).length||(N=y.delimiter),typeof y.quotes!="boolean"&&typeof y.quotes!="function"&&!Array.isArray(y.quotes)||(k=y.quotes),typeof y.skipEmptyLines!="boolean"&&typeof y.skipEmptyLines!="string"||(W=y.skipEmptyLines),typeof y.newline=="string"&&(D=y.newline),typeof y.quoteChar=="string"&&(H=y.quoteChar),typeof y.header=="boolean"&&(T=y.header),Array.isArray(y.columns)){if(y.columns.length===0)throw new Error("Option columns is empty");U=y.columns}y.escapeChar!==void 0&&(le=y.escapeChar+H),y.escapeFormulae instanceof RegExp?I=y.escapeFormulae:typeof y.escapeFormulae=="boolean"&&y.escapeFormulae&&(I=/^[=+\-@\t\r].*$/)}})(),new RegExp(w(H),"g"));if(typeof v=="string"&&(v=JSON.parse(v)),Array.isArray(v)){if(!v.length||Array.isArray(v[0]))return L(null,v,W);if(typeof v[0]=="object")return L(U||Object.keys(v[0]),v,W)}else if(typeof v=="object")return typeof v.data=="string"&&(v.data=JSON.parse(v.data)),Array.isArray(v.data)&&(v.fields||(v.fields=v.meta&&v.meta.fields||U),v.fields||(v.fields=Array.isArray(v.data[0])?v.fields:typeof v.data[0]=="object"?Object.keys(v.data[0]):[]),Array.isArray(v.data[0])||typeof v.data[0]=="object"||(v.data=[v.data])),L(v.fields||[],v.data||[],W);throw new Error("Unable to serialize unrecognized input");function L(q,M,Y){var oe="",Ae=(typeof q=="string"&&(q=JSON.parse(q)),typeof M=="string"&&(M=JSON.parse(M)),Array.isArray(q)&&0<q.length),Ne=!Array.isArray(M[0]);if(Ae&&T){for(var Q=0;Q<q.length;Q++)0<Q&&(oe+=N),oe+=re(q[Q],Q);0<M.length&&(oe+=D)}for(var fe=0;fe<M.length;fe++){var ue=(Ae?q:M[fe]).length,_e=!1,X=Ae?Object.keys(M[fe]).length===0:M[fe].length===0;if(Y&&!Ae&&(_e=Y==="greedy"?M[fe].join("").trim()==="":M[fe].length===1&&M[fe][0].length===0),Y==="greedy"&&Ae){for(var he=[],ie=0;ie<ue;ie++){var we=Ne?q[ie]:ie;he.push(M[fe][we])}_e=he.join("").trim()===""}if(!_e){for(var Re=0;Re<ue;Re++){0<Re&&!X&&(oe+=N);var pe=Ae&&Ne?q[Re]:Re;oe+=re(M[fe][pe],Re)}fe<M.length-1&&(!Y||0<ue&&!X)&&(oe+=D)}}return oe}function re(q,M){var Y,oe;return q==null?"":q.constructor===Date?JSON.stringify(q).slice(1,25):(oe=!1,I&&typeof q=="string"&&I.test(q)&&(q="'"+q,oe=!0),Y=q.toString().replace(B,le),(oe=oe||k===!0||typeof k=="function"&&k(q,M)||Array.isArray(k)&&k[M]||((Ae,Ne)=>{for(var Q=0;Q<Ne.length;Q++)if(-1<Ae.indexOf(Ne[Q]))return!0;return!1})(Y,u.BAD_DELIMITERS)||-1<Y.indexOf(N)||Y.charAt(0)===" "||Y.charAt(Y.length-1)===" ")?H+Y+H:Y)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
49
+ `,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!i&&!!r.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=_,u.ParserHandle=g,u.NetworkStreamer=c,u.FileStreamer=p,u.StringStreamer=f,u.ReadableStreamStreamer=h,r.jQuery&&((o=r.jQuery).fn.parse=function(v){var y=v.config||{},k=[];return this.each(function(D){if(!(o(this).prop("tagName").toUpperCase()==="INPUT"&&o(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var H=0;H<this.files.length;H++)k.push({file:this.files[H],inputElem:this,instanceConfig:o.extend({},y)})}),T(),this;function T(){if(k.length===0)F(v.complete)&&v.complete();else{var D,H,le,W,U=k[0];if(F(v.before)){var I=v.before(U.file,U.inputElem);if(typeof I=="object"){if(I.action==="abort")return D="AbortError",H=U.file,le=U.inputElem,W=I.reason,void(F(v.error)&&v.error({name:D},H,le,W));if(I.action==="skip")return void N();typeof I.config=="object"&&(U.instanceConfig=o.extend(U.instanceConfig,I.config))}else if(I==="skip")return void N()}var B=U.instanceConfig.complete;U.instanceConfig.complete=function(L){F(B)&&B(L,U.file,U.inputElem),N()},u.parse(U.file,U.instanceConfig)}}function N(){k.splice(0,1),T()}}),s&&(r.onmessage=function(v){v=v.data,u.WORKER_ID===void 0&&v&&(u.WORKER_ID=v.workerId),typeof v.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(v.input,v.config),finished:!0}):(r.File&&v.input instanceof File||v.input instanceof Object)&&(v=u.parse(v.input,v.config))&&r.postMessage({workerId:u.WORKER_ID,results:v,finished:!0})}),(c.prototype=Object.create(d.prototype)).constructor=c,(p.prototype=Object.create(d.prototype)).constructor=p,(f.prototype=Object.create(f.prototype)).constructor=f,(h.prototype=Object.create(d.prototype)).constructor=h,u})}(ti)),ti.exports}var pC=mC();let Un=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function gC(e){return e==null?[new Un(0,[void 0]),J()]:[new Un(2,[e]),J()]}function wC(e,t){let n,r,o,i,s;switch(e.tag){case 1:{t.tag===1?n=4:n=5;break}case 2:{t.tag===2?n=6:n=7;break}default:if(e.fields[0].tag===1)e.fields[0].fields[0].tag===1?t.tag===1?(n=2,s=e.fields[0].fields[0].fields[0]):n=3:t.tag===1?(n=1,i=e.fields[0].fields[0].fields[0]):n=3;else switch(t.tag){case 0:{n=0,r=e.fields[0].fields[0][0],o=e.fields[0].fields[0][1];break}case 2:{n=0,r=e.fields[0].fields[0][0],o=e.fields[0].fields[0][1];break}default:n=3}}switch(n){case 0:return[new Un(1,[r]),P1(o)];case 1:return[new Un(2,[i]),J()];case 2:return[new Un(0,[s]),J()];case 3:return[t,J()];case 4:return[new Un(0,[void 0]),J()];case 5:return[t,J()];case 6:return[new Un(0,[void 0]),J()];default:return[t,J()]}}function Rh(e,t){let n,r,o;return m("svg",x(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=b([m("path",x(b([(r="M11.6666 13.6667H2.33328C1.23062 13.6667 0.333282 12.7693 0.333282 11.6667V9H1.66662V11.6667C1.66662 12.034 1.96595 12.3333 2.33328 12.3333H11.6666C12.0339 12.3333 12.3333 12.034 12.3333 11.6667V9H13.6666V11.6667C13.6666 12.7693 12.7693 13.6667 11.6666 13.6667Z",["d",r]),["fill","#2E66F7"]]))),m("path",x(b([(o="M10.3333 4.72395L7.66667 7.39062V0.333282H6.33333V7.39062L3.66667 4.72395L2.724 5.66662L7 9.94262L11.276 5.66662L10.3333 4.72395Z",["d",o]),["fill","#2E66F7"]])))]),["children",E.Children.toArray(Array.from(n))])])))}function yC(e,t){let n,r,o,i,s,a,l,u,d,c,p,f,h,g,w,_,C,S,$,O,P,F;return rl(b([new fn(3,[e]),new fn(4,[t]),new fn(5,[[al(ge(new sl(2,["fixed inset-0 bg-gray-500/50"]))),m("div",x(b([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[il(ge(new ol(2,[[m("div",x(b([["className","flex flex-col mt-6 mb-6 px-6"],(r=[m("div",x(b([["className","flex flex-row justify-between"],(o=[m("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),m("button",x(b([["onClick",v=>{t()}],["type","button"],["className","text-gray-600"],(i=[ll(24,24)],["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(o))])]))),m("div",x(b([["className","text-gray-600 text-sm pt-6"],(s=[m("span",{children:"Fields marked with "}),m("span",{className:"text-red-600",children:"*"}),m("span",x(ge((a=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",a]))))],["children",E.Children.toArray(Array.from(s))])]))),m("div",x(b([["className","grid grid-cols-2 mt-3"],(l=[m("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),m("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),m("div",x(b([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(u=[m("span",{children:"First name "}),m("span",{className:"text-red-600",children:"*"})],["children",E.Children.toArray(Array.from(u))])]))),m("div",x(ge((d=[m("div",x(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(c=[m("span",{children:"For example:"}),m("br",{}),m("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",E.Children.toArray(Array.from(c))])])))],["children",E.Children.toArray(Array.from(d))])))),m("div",x(b([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(p=[m("span",{children:"Last name "}),m("span",{className:"text-red-600",children:"*"})],["children",E.Children.toArray(Array.from(p))])]))),m("div",x(ge((f=[m("div",x(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(h=[m("span",{children:"For example:"}),m("br",{}),m("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",E.Children.toArray(Array.from(h))])])))],["children",E.Children.toArray(Array.from(f))])))),m("div",x(b([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(g=[m("span",{children:"Email "}),m("span",{className:"text-red-600",children:"*"})],["children",E.Children.toArray(Array.from(g))])]))),m("div",x(ge((w=[m("div",x(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(_=[m("span",{children:"For example:"}),m("br",{}),m("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",E.Children.toArray(Array.from(_))])])))],["children",E.Children.toArray(Array.from(w))])))),m("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),m("div",x(ge((C=[m("div",x(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(S=[m("span",{children:"For example:"}),m("br",{}),m("span",{className:"italic",children:"+61432368712"})],["children",E.Children.toArray(Array.from(S))])])))],["children",E.Children.toArray(Array.from(C))])))),m("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),m("div",x(ge(($=[m("div",x(b([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(O=[m("span",{children:"One of the following options:"}),m("br",{}),m("ul",x(b([["className","italic list-disc px-3"],(P=[m("li",{children:"Full-time"}),m("li",{children:"Part-time"}),m("li",{children:"Labour hire"}),m("li",{children:"Casual"})],["children",E.Children.toArray(Array.from(P))])])))],["children",E.Children.toArray(Array.from(O))])])))],["children",E.Children.toArray(Array.from($))])))),m("div",x(b([["className","flex flex-row items-end gap-1 pt-3"],(F=[m("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),Rh(13,13)],["children",E.Children.toArray(Array.from(F))])])))],["children",E.Children.toArray(Array.from(l))])])))],["children",E.Children.toArray(Array.from(r))])])))]])))],["children",E.Children.toArray(Array.from(n))])])))]])]))}function vC(e,t){let n,r,o,i,s,a,l;return rl(b([new fn(3,[e]),new fn(4,[t]),new fn(5,[[al(ge(new sl(2,["fixed inset-0 bg-gray-500/50"]))),m("div",x(b([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[il(ge(new ol(2,[[m("div",x(b([["className","flex flex-col mt-6 mb-6 px-6"],(r=[m("div",x(b([["className","flex flex-row justify-between"],(o=[m("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),m("button",x(b([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(i=[ll(24,24)],["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(o))])]))),m("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),m("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),m("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),m("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),m("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),m("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),m("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),m("div",x(b([["className","text-sm text-gray-500 pt-2"],(s="You must include the required fields: “First name,” “Last name,” and “Email” to create a profile. “Mobile number” and “Employment basis” are optional but recommended, as they can help with searching and filtering.",["children",s])]))),m("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),m("div",x(b([["className","text-sm text-gray-500 pt-2"],(a=`We recommend downloading and editing our sample CSV template, which includes all the necessary column headers and example values.
50
+ If you’re using your own CSV, ensure that your data is organised correctly and that there are no extra spaces or special characters.`,["children",a])]))),m("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),m("div",x(b([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
51
+ If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",E.Children.toArray(Array.from(r))])])))]])))],["children",E.Children.toArray(Array.from(n))])])))]])]))}function Lh(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ge(m("path",x(b([(r="M9.99992 0.833328C4.94575 0.833328 0.833252 4.94583 0.833252 10C0.833252 15.0542 4.94575 19.1667 9.99992 19.1667C15.0541 19.1667 19.1666 15.0542 19.1666 10C19.1666 4.94583 15.0541 0.833328 9.99992 0.833328ZM8.37409 14.5525L4.65492 10.8333L5.83325 9.655L8.29242 12.1142L14.0883 5.49083L15.3424 6.58833L8.37409 14.5525Z",["d",r]),["fill","#10B981"]])))),["children",E.Children.toArray(Array.from(n))])])))}function bC(e,t){let n,r,o;return m("svg",x(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=b([m("path",x(b([(r="M18 10C18 14.4183 14.4183 18 10 18C5.58172 18 2 14.4183 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10ZM3.99743 10C3.99743 13.3151 6.68487 16.0026 10 16.0026C13.3151 16.0026 16.0026 13.3151 16.0026 10C16.0026 6.68487 13.3151 3.99743 10 3.99743C6.68487 3.99743 3.99743 6.68487 3.99743 10Z",["d",r]),["fill","#D6E2FC"]]))),m("path",x(b([(o="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",o]),["fill","#2E66F7"]])))]),["children",E.Children.toArray(Array.from(n))])])))}function _C(e,t){let n,r;return m("svg",x(b([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=b([m("path",x(b([(r="M17 21H3C1.346 21 0 19.654 0 18V14H2V18C2 18.551 2.448 19 3 19H17C17.552 19 18 18.551 18 18V14H20V18C20 19.654 18.654 21 17 21Z",["d",r]),["fill","#9CA3AF"]]))),m("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",E.Children.toArray(Array.from(n))])])))}function xC(e,t){const n=e.type==="text/csv",r=e.size<=10485760;if(n)if(r){const o={};o.complete=(i,s)=>{let a,l,u,d,c,p;t(new Yn(0,[new Gn(1,[(a=i.errors,!A0(me,a)&&a.length===0?(l=(u=is(i.data),u.length|0),l>=3&&(d=fC(pn(f=>f.trim().toLocaleLowerCase(),is(i.data)),{Equals:(f,h)=>f===h,GetHashCode:Dr}),d.length===l)&&i.data.length>1&&(c=(p=i.data,p.filter(f=>f.length!==l)),c.length===0)?new A(0,[new Dv(new pf(e.name),cd((f,h)=>[new kv(f),new Nv(h.trim())],is(i.data)),new Ov(pn(f=>new Iv(f),$0(i.data))),e.size)]):new A(1,[new so(2,["Invalid format."])])):new A(1,[new so(2,[ze(0,i.errors).message])]))])]))},o.error=(i,s)=>{t(new Yn(0,[new Gn(1,[new A(1,[new so(2,[i])])])]))},o.worker=!0,pC.parse(e,o)}else t(new Yn(0,[new Gn(1,[new A(1,[new so(1,[])])])]));else t(new Yn(0,[new Gn(1,[new A(1,[new so(0,[])])])]))}function CC(e,t){vd(at.Delay(()=>at.Bind(Q0(1e3),()=>(xC(e,t),at.Zero()))))}const fc=(()=>{const e=new Blob(["first_name, last_name, email, mobile_phone, employment_basis"],{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(e)})();function SC(e){let t,n,r,o,i,s,a,l;const u=e.cancel,d=e.next,c=e.existingCsvFile;let p;const f=gC(c);p=$o(()=>Ao(()=>f,wC,(y,k)=>{}),void 0,[]);const h=p[0],g=p[1],w=y=>{g(new Yn(0,[new Gn(0,[[new pf(y.name),k=>{CC(y,k)}]])]))},_=E.useState(!1),C=_[1],S=E.useState(!1),$=S[1],O=E.useState(!1),P=O[1],F=E.useRef(void 0),v=h.tag===2;return m("div",x(b([["className","bg-gray-50 h-full"],(t=[m("div",x(b([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[yC(_[0],()=>{C(!1)}),vC(O[0],()=>{P(!1)}),m("span",{className:"font-sonoma text-black font-semibold text-lg",children:"Upload CSV"}),m("span",{className:"text-sm font-normal pt-2",children:"Download and use our template, or upload your own CSV to get started."}),m("a",x(b([["className","flex flex-row items-end gap-1"],["href",fc],["download","import_users"],(r=[m("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),Rh(13,13)],["children",E.Children.toArray(Array.from(r))])]))),m("div",x(b([["className","flex flex-row pt-3 gap-2"],(o=[m("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:y=>{C(!0)},type:"button",children:E.Children.toArray(["What kind of data do I need?"])}),m("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:y=>{P(!0)},type:"button",children:E.Children.toArray(["Frequently asked questions"])})],["children",E.Children.toArray(Array.from(o))])]))),m("div",x(Ue(G(()=>ye(S[0]?j(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):j(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),G(()=>{let y;return j((y=Ue(G(()=>{let k,T,N,D,H,le,W,U,I,B,L,re,q;switch(h.tag){case 2:{let M;const Y=h.fields[0].SizeInBytes/1024/1024;return M=rd("{0:F2}",Y),j(m("div",x(b([["className","p-6 justify-between items-center inline-flex w-full"],(k=[m("div",x(b([["className","justify-start items-start gap-2 flex"],(T=[m("div",{className:"text-center text-gray-600 text-sm font-medium",children:h.fields[0].Name.fields[0]}),m("span",x(b([["className","text-emerald-700"],(N=[Lh(20,20)],["children",E.Children.toArray(Array.from(N))])])))],["children",E.Children.toArray(Array.from(T))])]))),m("div",x(b([["className","justify-start items-start gap-2 flex"],(D=[m("div",{className:"text-center text-gray-500 text-sm font-medium",children:`${M}MB`}),m("button",x(b([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",oe=>{g(new Yn(2,[]))}],(H=[m("div",{className:"text-center text-sm font-medium",children:"Remove"}),m("div",x(b([["className","w-4 h-4 justify-center items-center flex"],(le=[Vs(10,10)],["children",E.Children.toArray(Array.from(le))])])))],["children",E.Children.toArray(Array.from(H))])])))],["children",E.Children.toArray(Array.from(D))])])))],["children",E.Children.toArray(Array.from(k))])]))))}case 1:return j(m("div",x(b([["className","p-6 justify-between items-center inline-flex w-full"],(W=[m("div",x(b([["className","justify-start items-start gap-2 flex"],(U=[m("div",{className:"text-center text-gray-600 text-sm font-medium",children:h.fields[0].fields[0]}),m("span",x(b([["className","animate-spin"],(I=[bC(20,20)],["children",E.Children.toArray(Array.from(I))])])))],["children",E.Children.toArray(Array.from(U))])]))),m("div",x(b([["className","justify-start items-start gap-2 flex"],(B=[m("button",x(b([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",M=>{g(new Yn(1,[]))}],(L=[m("div",{className:"text-center text-sm font-medium",children:"Cancel"}),m("div",x(b([["className","w-4 h-4 justify-center items-center flex"],(re=[Vs(10,10)],["children",E.Children.toArray(Array.from(re))])])))],["children",E.Children.toArray(Array.from(L))])])))],["children",E.Children.toArray(Array.from(B))])])))],["children",E.Children.toArray(Array.from(W))])]))));default:{const M=Y=>{Y.preventDefault(),Y.stopPropagation()};return j(m("div",x(b([["className","flex flex-col items-center p-4"],["onDragEnter",Y=>{M(Y),$(!0)}],["onDragLeave",Y=>{M(Y),$(!1)}],["onDragOver",Y=>{M(Y),$(!0)}],["onDrop",Y=>{let oe;M(Y),$(!1),w((oe=Y,oe.dataTransfer).files.item(0))}],(q=Ue(G(()=>{let Y,oe,Ae,Ne,Q,fe;return ye((Y=h.fields[0],Y==null?j(Ke()):(oe=Y,j(m("div",x(b([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(Ae=[m("div",x(b([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(Ne=[gf(16,15)],["children",E.Children.toArray(Array.from(Ne))])]))),m("div",x(b([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(Q=[m("div",x(b([["className","self-stretch text-red-800 text-sm font-medium"],(fe=Ue(G(()=>{let ue;return oe.tag===0?j(m("span",{children:["File type must be .csv"]})):oe.tag===2?j((ue=b([m("span",{children:["Invalid CSV. Try using our "]}),m("a",{className:"underline",children:"sample CSV",href:fc,download:"import_users"}),m("span",{children:[" instead."]})]),m("p",{children:E.Children.toArray(Array.from(ue))}))):j(m("span",{children:["File size is too large"]}))})),["children",E.Children.toArray(Array.from(fe))])])))],["children",E.Children.toArray(Array.from(Q))])])))],["children",E.Children.toArray(Array.from(Ae))])])))))),G(()=>{let ue;return ye(j(m("div",x(b([["className","pt-2"],(ue=[_C(20,21)],["children",E.Children.toArray(Array.from(ue))])])))),G(()=>ye(j(m("input",{type:"file",onChange:_e=>{const X=_e.target.files;X!=null&&X.length>0&&w(X.item(0))},className:"hidden",ref:F})),G(()=>ye(j(m("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),G(()=>ye(j(m("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white",onClick:_e=>{To(X=>{X.click()},Ca(F.current))},type:"button",children:E.Children.toArray(["Choose file"])})),G(()=>j(m("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",E.Children.toArray(Array.from(q))])]))))}}})),["children",E.Children.toArray(Array.from(y))]))})))))),m("div",x(b([["className","flex flex-row justify-end gap-3"],(i=[m("button",x(b([(s="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",y=>{u()}],["type","button"],["children",E.Children.toArray(["Cancel import"])]]))),m("button",x(b([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",y=>{h.tag===2&&d(h.fields[0])}],["type","button"],["disabled",!v],(l=["Map fields",Ph(13,8)],["children",E.Children.toArray(Array.from(l))])])))],["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class bt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class mt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function EC(){return[new mt(0,[new bt(0,[void 0])]),J()]}function kC(e,t){let n,r,o,i,s,a,l,u,d,c,p,f,h,g,w,_,C,S,$,O,P,F,v,y,k,T,N,D,H,le,W,U,I,B,L,re,q;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,T=t.fields[0].fields[0][1],N=t.fields[0].fields[0][0],D=t.fields[0].fields[0][2],H=e.fields[0].fields[0]):n=14;break}case 2:{e.fields[0].fields[0].tag===0?t.tag===0&&t.fields[0].tag===1?(n=17,re=t.fields[0].fields[0][0],q=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,U=e.fields[0].fields[0].fields[0],I=t.fields[0].fields[0][0],B=e.fields[0].fields[0].fields[1],L=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,le=e.fields[0].fields[0].fields[0],W=t.fields[0].fields[0][0]):n=18;break}default:t.tag===0&&t.fields[0].tag===3?t.fields[0].fields[0][2]!=null?(n=11,F=t.fields[0].fields[0][1],v=t.fields[0].fields[0][0],y=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,O=t.fields[0].fields[0][1],P=t.fields[0].fields[0][0]):n=12}else switch(e.fields[0].tag){case 1:{e.fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=4,u=e.fields[0].fields[0],d=t.fields[0].fields[0][0],c=e.fields[0].fields[1],p=t.fields[0].fields[0][1]):n=5:t.tag===0&&t.fields[0].tag===1?(n=3,a=e.fields[0].fields[0],l=t.fields[0].fields[0][0]):n=5;break}case 2:{t.tag===0&&t.fields[0].tag===2?(n=6,f=t.fields[0].fields[0][1],h=t.fields[0].fields[0][0],g=t.fields[0].fields[0][2],w=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,_=t.fields[0].fields[0][1],C=t.fields[0].fields[0][0],S=t.fields[0].fields[0][2],$=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,o=e.fields[0].fields[0],i=t.fields[0].fields[0][0],s=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new mt(0,[new bt(1,[[r,new nn(0,[void 0])]])]),J()];case 1:return me(o,i)?[new mt(0,[new bt(1,[[i,s]])]),J()]:[new mt(0,[new bt(1,[[o,new nn(0,[void 0])]])]),J()];case 2:return[t,J()];case 3:return[new mt(0,[new bt(3,[[l,a,void 0]])]),J()];case 4:return[new mt(0,[new bt(2,[[d,u,c,p.tag===1&&p.fields[0].tag===1&&me(c,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),J()];case 5:return[t,J()];case 6:return[new mt(0,[new bt(3,[[h,f,[g,w]]])]),J()];case 7:return[t,J()];case 8:return[new mt(1,[[C,_,S,$]]),J()];case 9:return[t,J()];case 10:return[new mt(0,[new bt(1,[[P,new nn(1,[new fr(0,[O])])]])]),J()];case 11:return[new mt(0,[new bt(2,[[v,F,y,k]])]),J()];case 12:return[t,J()];case 13:return[new mt(0,[new bt(1,[[N,new nn(1,[new fr(1,[T,D,H])])]])]),J()];case 14:return[t,J()];case 15:return[new mt(0,[new bt(0,[[W,new nn(1,[new fr(0,[le])])]])]),J()];case 16:return[new mt(0,[new bt(0,[[I,L.tag===1?L.fields[0].tag===1?me(U,L.fields[0].fields[0])&&me(B,L.fields[0].fields[1])?L:new nn(1,[new fr(1,[U,B,void 0])]):new nn(1,[new fr(1,[U,B,void 0])]):new nn(1,[new fr(1,[U,B,void 0])])]])]),J()];case 17:return[new mt(0,[new bt(0,[[re,new nn(0,[q])]])]),J()];default:return[t,J()]}}function TC(e,t,n,r,o,i,s){return m("div",{})}class rt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class qo extends Te{constructor(t,n,r,o){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=o}}function AC(e){switch(e.tag){case 1:return new qo(new rt(0,[]),new rt(1,[]),new rt(2,[]),new rt(2,[]));case 2:return new qo(new rt(0,[]),new rt(0,[]),new rt(1,[]),new rt(2,[]));case 3:return new qo(new rt(0,[]),new rt(0,[]),new rt(0,[]),new rt(1,[]));default:return new qo(new rt(1,[]),new rt(2,[]),new rt(2,[]),new rt(2,[]))}}function $C(e,t,n){switch(n.tag){case 1:{const r=n.fields[0],o=r[1].tag===1?r[1].fields[0].tag===1?[Lu(r[1].fields[0].fields[0],r[1].fields[0].fields[1]),r[0].HeaderRow,r[0].DataRows]:[Lu(r[1].fields[0].fields[0],void 0),r[0].HeaderRow,r[0].DataRows]:[r[1].fields[0],r[0].HeaderRow,r[0].DataRows];return m(lC,{existingMappings:Ps(o[0]),headerRow:o[1],dataRows:o[2],next:i=>{let s;t(new Rn(0,[(s=i,new zo(1,[s[0],s[1]]))]))},back:i=>{t(new Rn(1,[new Es(2,[i])]))}})}case 2:return uC(n.fields[0][3],Fv(n.fields[0][0].DataRows,n.fields[0][2]),r=>{t(new Rn(0,[new zo(2,[r])]))},r=>{t(new Rn(1,[new Es(1,[r])]))});case 3:return cC(n.fields[0][0].HeaderRow,n.fields[0][0].DataRows,n.fields[0][1],n.fields[0][2],r=>{t(new Rn(0,[new zo(3,[r])]))},()=>{t(new Rn(1,[new Es(0,[])]))});default:{const r=yn(o=>o[0],n.fields[0]);return m(SC,{existingCsvFile:Ps(r),next:o=>{t(new Rn(0,[new zo(0,[o])]))},cancel:e})}}}function Yo(e,t){let n,r,o;switch(t.tag){case 1:return m("div",x(b([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[m("span",{children:e})],["children",E.Children.toArray(Array.from(n))])])));case 2:return m("div",x(b([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[m("span",{children:e})],["children",E.Children.toArray(Array.from(r))])])));default:return m("div",x(b([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(o=[Lh(20,20),m("span",{children:e})],["children",E.Children.toArray(Array.from(o))])])))}}function MC(e){let t,n,r,o,i;const s=EC();i=$o(()=>Ao(()=>s,kC,(c,p)=>{}),void 0,[]);const a=i[0],l=E.useState(!1);let u;if(a.tag===0){const c=a.fields[0],p=()=>{l[0]||l[1](!0)},f=AC(c),h=$C(p,i[1],c);u=m("div",x(b([["className","flex flex-col h-full"],(t=[m("div",x(b([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[m("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),m("button",x(b([(r="bg-white rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",g=>{p()}],["type","button"],["children",E.Children.toArray(["Cancel import"])]])))],["children",E.Children.toArray(Array.from(n))])]))),m("div",x(b([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(o=[Yo("1. Upload CSV",f.UploadingCsv),m("hr",{className:"w-16 pt-1.5"}),Yo("2. Map fields",f.MappingColumns),m("hr",{className:"w-16 pt-1.5"}),Yo("3. Map values",f.MappingEmploymentBasis),m("hr",{className:"w-16 pt-1.5"}),Yo("4. Review",f.Reviewing)],["children",E.Children.toArray(Array.from(o))])]))),h],["children",E.Children.toArray(Array.from(t))])])))}else{const c=a.fields[0][0].DataRows;u=TC(a.fields[0][0].Name,a.fields[0][0].HeaderRow,c,a.fields[0][1],a.fields[0][2],a.fields[0][3])}const d=[m("style",{children:[ba]}),u];return m(Oe,{},...d)}function NC(){la(e=>m(MC,e),"apollo-import-workspace-wizard")}la(e=>m(j0,e),"apollo-import-workspace-app");Ev();NC();