@flarehr/apollo-import-workspace-app 0.21.0 → 0.23.0

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,3 +1,51 @@
1
- var V,p,Qe,P,je,et,ce,ve,_e,fe,tt,R={},rt=[],zt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,oe=Array.isArray;function S(e,t){for(var r in t)e[r]=t[r];return e}function nt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function g(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?V.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return I(e,a,n,o,null)}function I(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++Qe,__i:-1,__u:0};return o==null&&p.vnode!=null&&p.vnode(i),i}function Pt(){return{current:null}}function E(e){return e.children}function C(e,t){this.props=e,this.context=t}function T(e,t){if(t==null)return e.__?T(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?T(e):null}function ot(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return ot(e)}}function pe(e){(!e.__d&&(e.__d=!0)&&P.push(e)&&!te.__r++||je!==p.debounceRendering)&&((je=p.debounceRendering)||et)(te)}function te(){var e,t,r,n,o,i,a,s;for(P.sort(ce);e=P.shift();)e.__d&&(t=P.length,n=void 0,i=(o=(r=e).__v).__e,a=[],s=[],r.__P&&((n=S({},o)).__v=o.__v+1,p.vnode&&p.vnode(n),me(r.__P,n,o,r.__n,r.__P.namespaceURI,32&o.__u?[i]:null,a,i??T(o),!!(32&o.__u),s),n.__v=o.__v,n.__.__k[n.__i]=n,lt(a,n,s),n.__e!=i&&ot(n)),P.length>t&&P.sort(ce));te.__r=0}function it(e,t,r,n,o,i,a,s,c,u,f){var l,d,_,b,k,y=n&&n.__k||rt,h=t.length;for(r.__d=c,Ht(r,t,y),c=r.__d,l=0;l<h;l++)(_=r.__k[l])!=null&&(d=_.__i===-1?R:y[_.__i]||R,_.__i=l,me(e,_,d,o,i,a,s,c,u,f),b=_.__e,_.ref&&d.ref!=_.ref&&(d.ref&&be(d.ref,null,_),f.push(_.ref,_.__c||b,_)),k==null&&b!=null&&(k=b),65536&_.__u||d.__k===_.__k?c=at(_,c,e):typeof _.type=="function"&&_.__d!==void 0?c=_.__d:b&&(c=b.nextSibling),_.__d=void 0,_.__u&=-196609);r.__d=c,r.__e=k}function Ht(e,t,r){var n,o,i,a,s,c=t.length,u=r.length,f=u,l=0;for(e.__k=[],n=0;n<c;n++)(o=t[n])!=null&&typeof o!="boolean"&&typeof o!="function"?(a=n+l,(o=e.__k[n]=typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?I(null,o,null,null,null):oe(o)?I(E,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?I(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,i=null,(s=o.__i=Tt(o,r,a,f))!==-1&&(f--,(i=r[s])&&(i.__u|=131072)),i==null||i.__v===null?(s==-1&&l--,typeof o.type!="function"&&(o.__u|=65536)):s!==a&&(s==a-1?l--:s==a+1?l++:(s>a?l--:l++,o.__u|=65536))):o=e.__k[n]=null;if(f)for(n=0;n<u;n++)(i=r[n])!=null&&!(131072&i.__u)&&(i.__e==e.__d&&(e.__d=T(i)),st(i,i))}function at(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=at(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=T(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function $(e,t){return t=t||[],e==null||typeof e=="boolean"||(oe(e)?e.some(function(r){$(r,t)}):t.push(e)),t}function Tt(e,t,r,n){var o=e.key,i=e.type,a=r-1,s=r+1,c=t[r];if(c===null||c&&o==c.key&&i===c.type&&!(131072&c.__u))return r;if((typeof i!="function"||i===E||o)&&n>(c!=null&&!(131072&c.__u)?1:0))for(;a>=0||s<t.length;){if(a>=0){if((c=t[a])&&!(131072&c.__u)&&o==c.key&&i===c.type)return a;a--}if(s<t.length){if((c=t[s])&&!(131072&c.__u)&&o==c.key&&i===c.type)return s;s++}}return-1}function ze(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||zt.test(t)?r:r+"px"}function X(e,t,r,n,o){var i;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||ze(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||ze(e.style,t,r[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]=r,r?n?r.u=n.u:(r.u=ve,e.addEventListener(t,i?fe:_e,i)):e.removeEventListener(t,i?fe:_e,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]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Pe(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.t==null)t.t=ve++;else if(t.t<r.u)return;return p.event&&(t=p.event(t)),"handleEvent"in r?r.handleEvent(t):r(t)}}}function me(e,t,r,n,o,i,a,s,c,u){var f,l,d,_,b,k,y,h,v,U,O,K,D,Ne,Y,le,x=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(c=!!(32&r.__u),i=[s=t.__e=r.__e]),(f=p.__b)&&f(t);e:if(typeof x=="function")try{if(h=t.props,v="prototype"in x&&x.prototype.render,U=(f=x.contextType)&&n[f.__c],O=f?U?U.props.value:f.__:n,r.__c?y=(l=t.__c=r.__c).__=l.__E:(v?t.__c=l=new x(h,O):(t.__c=l=new C(h,O),l.constructor=x,l.render=Mt),U&&U.sub(l),l.props=h,l.state||(l.state={}),l.context=O,l.__n=n,d=l.__d=!0,l.__h=[],l._sb=[]),v&&l.__s==null&&(l.__s=l.state),v&&x.getDerivedStateFromProps!=null&&(l.__s==l.state&&(l.__s=S({},l.__s)),S(l.__s,x.getDerivedStateFromProps(h,l.__s))),_=l.props,b=l.state,l.__v=t,d)v&&x.getDerivedStateFromProps==null&&l.componentWillMount!=null&&l.componentWillMount(),v&&l.componentDidMount!=null&&l.__h.push(l.componentDidMount);else{if(v&&x.getDerivedStateFromProps==null&&h!==_&&l.componentWillReceiveProps!=null&&l.componentWillReceiveProps(h,O),!l.__e&&(l.shouldComponentUpdate!=null&&l.shouldComponentUpdate(h,l.__s,O)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(l.props=h,l.state=l.__s,l.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Z){Z&&(Z.__=t)}),K=0;K<l._sb.length;K++)l.__h.push(l._sb[K]);l._sb=[],l.__h.length&&a.push(l);break e}l.componentWillUpdate!=null&&l.componentWillUpdate(h,l.__s,O),v&&l.componentDidUpdate!=null&&l.__h.push(function(){l.componentDidUpdate(_,b,k)})}if(l.context=O,l.props=h,l.__P=e,l.__e=!1,D=p.__r,Ne=0,v){for(l.state=l.__s,l.__d=!1,D&&D(t),f=l.render(l.props,l.state,l.context),Y=0;Y<l._sb.length;Y++)l.__h.push(l._sb[Y]);l._sb=[]}else do l.__d=!1,D&&D(t),f=l.render(l.props,l.state,l.context),l.state=l.__s;while(l.__d&&++Ne<25);l.state=l.__s,l.getChildContext!=null&&(n=S(S({},n),l.getChildContext())),v&&!d&&l.getSnapshotBeforeUpdate!=null&&(k=l.getSnapshotBeforeUpdate(_,b)),it(e,oe(le=f!=null&&f.type===E&&f.key==null?f.props.children:f)?le:[le],t,r,n,o,i,a,s,c,u),l.base=t.__e,t.__u&=-161,l.__h.length&&a.push(l),y&&(l.__E=l.__=null)}catch(Z){if(t.__v=null,c||i!=null){for(t.__u|=c?160:128;s&&s.nodeType===8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else t.__e=r.__e,t.__k=r.__k;p.__e(Z,t,r)}else i==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=At(r.__e,t,r,n,o,i,a,c,u);(f=p.diffed)&&f(t)}function lt(e,t,r){t.__d=void 0;for(var n=0;n<r.length;n++)be(r[n],r[++n],r[++n]);p.__c&&p.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){p.__e(i,o.__v)}})}function At(e,t,r,n,o,i,a,s,c){var u,f,l,d,_,b,k,y=r.props,h=t.props,v=t.type;if(v==="svg"?o="http://www.w3.org/2000/svg":v==="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((_=i[u])&&"setAttribute"in _==!!v&&(v?_.localName===v:_.nodeType===3)){e=_,i[u]=null;break}}if(e==null){if(v===null)return document.createTextNode(h);e=document.createElementNS(o,v,h.is&&h),s&&(p.__m&&p.__m(t,i),s=!1),i=null}if(v===null)y===h||s&&e.data===h||(e.data=h);else{if(i=i&&V.call(e.childNodes),y=r.props||R,!s&&i!=null)for(y={},u=0;u<e.attributes.length;u++)y[(_=e.attributes[u]).name]=_.value;for(u in y)if(_=y[u],u!="children"){if(u=="dangerouslySetInnerHTML")l=_;else if(!(u in h)){if(u=="value"&&"defaultValue"in h||u=="checked"&&"defaultChecked"in h)continue;X(e,u,null,_,o)}}for(u in h)_=h[u],u=="children"?d=_:u=="dangerouslySetInnerHTML"?f=_:u=="value"?b=_:u=="checked"?k=_:s&&typeof _!="function"||y[u]===_||X(e,u,_,y[u],o);if(f)s||l&&(f.__html===l.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(l&&(e.innerHTML=""),it(e,oe(d)?d:[d],t,r,n,v==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&T(r,0),s,c),i!=null)for(u=i.length;u--;)nt(i[u]);s||(u="value",v==="progress"&&b==null?e.removeAttribute("value"):b!==void 0&&(b!==e[u]||v==="progress"&&!b||v==="option"&&b!==y[u])&&X(e,u,b,y[u],o),u="checked",k!==void 0&&k!==e[u]&&X(e,u,k,y[u],o))}return e}function be(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(o){p.__e(o,r)}}function st(e,t,r){var n,o;if(p.unmount&&p.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||be(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){p.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&st(n[o],t,r||typeof e.type!="function");r||nt(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Mt(e,t,r){return this.constructor(e,r)}function j(e,t,r){var n,o,i,a;p.__&&p.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],me(t,e=(!n&&r||t).__k=g(E,null,[e]),o||R,R,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?V.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),lt(i,e,a)}function ge(e,t){j(e,t,ge)}function ye(e,t,r){var n,o,i,a,s=S({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)i=="key"?n=t[i]:i=="ref"?o=t[i]:s[i]=t[i]===void 0&&a!==void 0?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?V.call(arguments,2):r),I(e.type,s,n||e.key,o||e.ref,null)}function Ut(e,t){var r={__c:t="__cC"+tt++,__:e,Consumer:function(n,o){return n.children(o)},Provider:function(n){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(a){this.props.value!==a.value&&o.forEach(function(s){s.__e=!0,pe(s)})},this.sub=function(a){o.add(a);var s=a.componentWillUnmount;a.componentWillUnmount=function(){o&&o.delete(a),s&&s.call(a)}}),n.children}};return r.Provider.__=r.Consumer.contextType=r}V=rt.slice,p={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},Qe=0,C.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=S({},this.state),typeof e=="function"&&(e=e(S({},r),this.props)),e&&S(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),pe(this))},C.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),pe(this))},C.prototype.render=E,P=[],et=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,ce=function(e,t){return e.__v.__b-t.__v.__b},te.__r=0,ve=0,_e=Pe(!1),fe=Pe(!0),tt=0;function ke(){return(ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var Dt=["context","children"];function Lt(e){this.getChildContext=function(){return e.context};var t=e.children,r=function(n,o){if(n==null)return{};var i,a,s={},c=Object.keys(n);for(a=0;a<c.length;a++)o.indexOf(i=c[a])>=0||(s[i]=n[i]);return s}(e,Dt);return ye(t,r)}function It(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=g(Lt,ke({},this._props,{context:e.detail.context}),function t(r,n){if(r.nodeType===3)return r.data;if(r.nodeType!==1)return null;var o=[],i={},a=0,s=r.attributes,c=r.childNodes;for(a=s.length;a--;)s[a].name!=="slot"&&(i[s[a].name]=s[a].value,i[ut(s[a].name)]=s[a].value);for(a=c.length;a--;){var u=t(c[a],null),f=c[a].slot;f?i[f]=g(He,{name:f},u):o[a]=u}var l=n?g(He,null,o):o;return g(n||r.nodeName.toLowerCase(),i,l)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?ge:j)(this._vdom,this._root)}function ut(e){return e.replace(/-(\w)/g,function(t,r){return r?r.toUpperCase():""})}function Rt(e,t,r){if(this._vdom){var n={};n[e]=r=r??void 0,n[ut(e)]=r,this._vdom=ye(this._vdom,n),j(this._vdom,this._root)}}function Wt(){j(this._vdom=null,this._root)}function He(e,t){var r=this;return g("slot",ke({},e,{ref:function(n){n?(r.ref=n,r._listener||(r._listener=function(o){o.stopPropagation(),o.detail.context=t},n.addEventListener("_preact",r._listener))):r.ref.removeEventListener("_preact",r._listener)}}))}function Ft(e,t,r,n){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=It,o.prototype.attributeChangedCallback=Rt,o.prototype.disconnectedCallback=Wt,r=r||e.observedAttributes||Object.keys(e.propTypes||{}),o.observedAttributes=r,r.forEach(function(i){Object.defineProperty(o.prototype,i,{get:function(){return this._vdom.props[i]},set:function(a){this._vdom?this.attributeChangedCallback(i,null,a):(this._props||(this._props={}),this._props[i]=a,this.connectedCallback());var s=typeof a;a!=null&&s!=="string"&&s!=="boolean"&&s!=="number"||this.setAttribute(i,a)}})}),customElements.define(t,o)}function Vt(e,t){Ft(e,t)}var z,w,se,Te,A=0,ct=[],m=p,Ae=m.__b,Me=m.__r,Ue=m.diffed,De=m.__c,Le=m.unmount,Ie=m.__;function M(e,t){m.__h&&m.__h(w,e,A||t),A=0;var r=w.__H||(w.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function xe(e){return A=1,Ce(vt,e)}function Ce(e,t,r){var n=M(z++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):vt(void 0,t),function(s){var c=n.__N?n.__N[0]:n.__[0],u=n.t(c,s);c!==u&&(n.__N=[u,n.__[1]],n.__c.setState({}))}],n.__c=w,!w.u)){var o=function(s,c,u){if(!n.__c.__H)return!0;var f=n.__c.__H.__.filter(function(d){return!!d.__c});if(f.every(function(d){return!d.__N}))return!i||i.call(this,s,c,u);var l=n.__c.props!==s;return f.forEach(function(d){if(d.__N){var _=d.__[0];d.__=d.__N,d.__N=void 0,_!==d.__[0]&&(l=!0)}}),i&&i.call(this,s,c,u)||l};w.u=!0;var i=w.shouldComponentUpdate,a=w.componentWillUpdate;w.componentWillUpdate=function(s,c,u){if(this.__e){var f=i;i=void 0,o(s,c,u),i=f}a&&a.call(this,s,c,u)},w.shouldComponentUpdate=o}return n.__N||n.__}function Ee(e,t){var r=M(z++,3);!m.__s&&Se(r.__H,t)&&(r.__=e,r.i=t,w.__H.__h.push(r))}function q(e,t){var r=M(z++,4);!m.__s&&Se(r.__H,t)&&(r.__=e,r.i=t,w.__h.push(r))}function _t(e){return A=5,ie(function(){return{current:e}},[])}function ft(e,t,r){A=6,q(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function ie(e,t){var r=M(z++,7);return Se(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function pt(e,t){return A=8,ie(function(){return e},t)}function dt(e){var t=w.context[e.__c],r=M(z++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(w)),t.props.value):e.__}function ht(e,t){m.useDebugValue&&m.useDebugValue(t?t(e):e)}function wt(){var e=M(z++,11);if(!e.__){for(var t=w.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function qt(){for(var e;e=ct.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Q),e.__H.__h.forEach(de),e.__H.__h=[]}catch(t){e.__H.__h=[],m.__e(t,e.__v)}}m.__b=function(e){w=null,Ae&&Ae(e)},m.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ie&&Ie(e,t)},m.__r=function(e){Me&&Me(e),z=0;var t=(w=e.__c).__H;t&&(se===w?(t.__h=[],w.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.i=r.__N=void 0})):(t.__h.forEach(Q),t.__h.forEach(de),t.__h=[],z=0)),se=w},m.diffed=function(e){Ue&&Ue(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ct.push(t)!==1&&Te===m.requestAnimationFrame||((Te=m.requestAnimationFrame)||Bt)(qt)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.i=void 0})),se=w=null},m.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Q),r.__h=r.__h.filter(function(n){return!n.__||de(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],m.__e(n,r.__v)}}),De&&De(e,t)},m.unmount=function(e){Le&&Le(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Q(n)}catch(o){t=o}}),r.__H=void 0,t&&m.__e(t,r.__v))};var Re=typeof requestAnimationFrame=="function";function Bt(e){var t,r=function(){clearTimeout(n),Re&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Re&&(t=requestAnimationFrame(r))}function Q(e){var t=w,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),w=t}function de(e){var t=w;e.__c=e.__(),w=t}function Se(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function vt(e,t){return typeof t=="function"?t(e):t}function he(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function mt(e,t){var r=t(),n=xe({t:{__:r,u:t}}),o=n[0].t,i=n[1];return q(function(){o.__=r,o.u=t,ue(o)&&i({t:o})},[e,r,t]),Ee(function(){return ue(o)&&i({t:o}),e(function(){ue(o)&&i({t:o})})},[e]),r}function ue(e){var t,r,n=e.u,o=e.__;try{var i=n();return!((t=o)===(r=i)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}function bt(e){e()}function gt(e){return e}function yt(){return[!1,bt]}var kt=q;function we(e,t){this.props=e,this.context=t}function Gt(e,t){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:he(this.props,o)}function n(o){return this.shouldComponentUpdate=r,g(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}(we.prototype=new C).isPureReactComponent=!0,we.prototype.shouldComponentUpdate=function(e,t){return he(this.props,e)||he(this.state,t)};var We=p.__b;p.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),We&&We(e)};var Jt=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Kt(e){function t(r){if(!("ref"in r))return e(r,null);var n=r.ref;delete r.ref;var o=e(r,n);return r.ref=n,o}return t.$$typeof=Jt,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Fe=function(e,t){return e==null?null:$($(e).map(t))},Yt={map:Fe,forEach:Fe,count:function(e){return e?$(e).length:0},only:function(e){var t=$(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:$},Zt=p.__e;p.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}Zt(e,t,r,n)};var Ve=p.unmount;function xt(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=function(n,o){for(var i in o)n[i]=o[i];return n}({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return xt(n,t,r)})),e}function Ct(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Ct(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function ee(){this.__u=0,this.o=null,this.__b=null}function Et(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Xt(e){var t,r,n;function o(i){if(t||(t=e()).then(function(a){r=a.default||a},function(a){n=a}),n)throw n;if(!r)throw t;return g(r,i)}return o.displayName="Lazy",o.__f=!0,o}function L(){this.i=null,this.l=null}p.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ve&&Ve(e)},(ee.prototype=new C).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Et(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var c=n.state.__a;n.__v.__k[0]=Ct(c,c.__c.__P,c.__c.__O)}var u;for(n.setState({__a:n.__b=null});u=n.o.pop();)u.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},ee.prototype.componentWillUnmount=function(){this.o=[]},ee.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=xt(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&g(E,null,e.fallback);return o&&(o.__u&=-33),[g(E,null,t.__a?null:e.children),o]};var qe=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Qt(e){return this.getChildContext=function(){return e.context},e.children}function er(e){var t=this,r=e.h;t.componentWillUnmount=function(){j(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),t.v||(t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],contains:function(){return!0},appendChild:function(n){this.childNodes.push(n),t.h.appendChild(n)},insertBefore:function(n,o){this.childNodes.push(n),t.h.appendChild(n)},removeChild:function(n){this.childNodes.splice(this.childNodes.indexOf(n)>>>1,1),t.h.removeChild(n)}}),j(g(Qt,{context:t.context},e.__v),t.v)}function tr(e,t){var r=g(er,{__v:e,h:t});return r.containerInfo=t,r}(L.prototype=new C).__a=function(e){var t=this,r=Et(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),qe(t,e,n)):o()};r?r(i):i()}},L.prototype.render=function(e){this.i=null,this.l=new Map;var t=$(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},L.prototype.componentDidUpdate=L.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){qe(e,r,t)})};var St=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,rr=/^(?: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]/,nr=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,or=/[A-Z0-9]/g,ir=typeof document<"u",ar=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function lr(e,t,r){return t.__k==null&&(t.textContent=""),j(e,t),typeof r=="function"&&r(),e?e.__c:null}function sr(e,t,r){return ge(e,t),typeof r=="function"&&r(),e?e.__c:null}C.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(C.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Be=p.event;function ur(){}function cr(){return this.cancelBubble}function _r(){return this.defaultPrevented}p.event=function(e){return Be&&(e=Be(e)),e.persist=ur,e.isPropagationStopped=cr,e.isDefaultPrevented=_r,e.nativeEvent=e};var $e,fr={enumerable:!1,configurable:!0,get:function(){return this.class}},Ge=p.vnode;p.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||ir&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var c=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":c==="translate"&&s==="no"?s=!1:c[0]==="o"&&c[1]==="n"?c==="ondoubleclick"?a="ondblclick":c!=="onchange"||n!=="input"&&n!=="textarea"||ar(r.type)?c==="onfocus"?a="onfocusin":c==="onblur"?a="onfocusout":nr.test(a)&&(a=c):c=a="oninput":i&&rr.test(a)?a=a.replace(or,"-$&").toLowerCase():s===null&&(s=void 0),c==="oninput"&&o[a=c]&&(a="oninputCapture"),o[a]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=$(r.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=$(r.children).forEach(function(u){u.props.selected=o.multiple?o.defaultValue.indexOf(u.props.value)!=-1:o.defaultValue==u.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",fr)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=St,Ge&&Ge(e)};var Je=p.__r;p.__r=function(e){Je&&Je(e),$e=e.__c};var Ke=p.diffed;p.diffed=function(e){Ke&&Ke(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),$e=null};var pr={ReactCurrentDispatcher:{current:{readContext:function(e){return $e.__n[e.__c].props.value},useCallback:pt,useContext:dt,useDebugValue:ht,useDeferredValue:gt,useEffect:Ee,useId:wt,useImperativeHandle:ft,useInsertionEffect:kt,useLayoutEffect:q,useMemo:ie,useReducer:Ce,useRef:_t,useState:xe,useSyncExternalStore:mt,useTransition:yt}}};function dr(e){return g.bind(null,e)}function ae(e){return!!e&&e.$$typeof===St}function hr(e){return ae(e)&&e.type===E}function wr(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function vr(e){return ae(e)?ye.apply(null,arguments):e}function mr(e){return!!e.__k&&(j(null,e),!0)}function br(e){return e&&(e.base||e.nodeType===1&&e)||null}var gr=function(e,t){return e(t)},yr=function(e,t){return e(t)},kr=E,xr=ae,Cr={useState:xe,useId:wt,useReducer:Ce,useEffect:Ee,useLayoutEffect:q,useInsertionEffect:kt,useTransition:yt,useDeferredValue:gt,useSyncExternalStore:mt,startTransition:bt,useRef:_t,useImperativeHandle:ft,useMemo:ie,useCallback:pt,useContext:dt,useDebugValue:ht,version:"18.3.1",Children:Yt,render:lr,hydrate:sr,unmountComponentAtNode:mr,createPortal:tr,createElement:g,createContext:Ut,createFactory:dr,cloneElement:vr,createRef:Pt,Fragment:E,isValidElement:ae,isElement:xr,isFragment:hr,isMemo:wr,findDOMNode:br,Component:C,PureComponent:we,memo:Gt,forwardRef:Kt,flushSync:yr,unstable_batchedUpdates:gr,StrictMode:kr,Suspense:ee,SuspenseList:L,lazy:Xt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:pr};const Er=`*,: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: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}.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}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.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}.flex-shrink,.shrink{flex-shrink:1}.flex-grow,.grow{flex-grow:1}.border-collapse{border-collapse:collapse}.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))}.resize{resize:both}.flex-wrap{flex-wrap:wrap}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.border{border-width:1px}.text-justify{text-align:justify}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / 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)}.outline{outline-style:solid}.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)}`;function W(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function Sr(e){return e!=null&&typeof e.GetEnumerator=="function"}function $r(e){return e!=null&&typeof e.CompareTo=="function"}function Or(e){return e!=null&&typeof e.Equals=="function"}function Nr(e){return e!=null&&typeof e.GetHashCode=="function"}function re(){return null}function $t(e,t){var r,n;return((r=Object.getPrototypeOf(e))==null?void 0:r.constructor)===((n=Object.getPrototypeOf(t))==null?void 0:n.constructor)}class jr{constructor(t){this.iter=t,this.current=re()}"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 Ye(e){return Sr(e)?e.GetEnumerator():new jr(e[Symbol.iterator]())}function zr(e){return{next(){const t=e["System.Collections.IEnumerator.MoveNext"](),r=t?e["System.Collections.Generic.IEnumerator`1.get_Current"]():void 0;return{done:!t,value:r}}}}function Ze(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}class N{static id(t){return N.idMap.has(t)||N.idMap.set(t,++N.count),N.idMap.get(t)}}N.idMap=new WeakMap;N.count=0;function Ot(e){let t=0,r=5381;const n=e.length;for(;t<n;)r=r*33^e.charCodeAt(t++);return r}function Xe(e){return e*2654435761|0}function Pr(e){return Ot(e.toString(32))}function Oe(e){let t=0;const r=e.length;for(let n=0;n<r;n++){const o=e[n];t=(t<<5)+t^o}return t}function Hr(e){return e.getTime()}function Tr(e){const t=e.length,r=new Array(t);for(let n=0;n<t;n++)r[n]=B(e[n]);return Oe(r)}function B(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Xe(e);case"bigint":return Pr(e);case"string":return Ot(e);default:{if(Nr(e))return e.GetHashCode();if(W(e))return Tr(e);if(e instanceof Date)return Hr(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const r=Object.values(e).map(n=>B(n));return Oe(r)}else return Xe(N.id(e))}}}function Ar(e,t,r){if(e==null)return t==null;if(t==null||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1;return!0}function Mr(e,t){return Ar(e,t,G)}function Ur(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;r.sort(),n.sort();for(let o=0;o<r.length;o++)if(r[o]!==n[o]||!G(e[r[o]],t[n[o]]))return!1;return!0}function G(e,t){var r;return e===t?!0:e==null?t==null:t==null?!1:Or(e)?e.Equals(t):W(e)?W(t)&&Mr(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Nt(e,t)===0:((r=Object.getPrototypeOf(e))==null?void 0:r.constructor)===Object&&Ur(e,t)}function Nt(e,t){let r,n;return"offset"in e&&"offset"in t?(r=e.getTime(),n=t.getTime()):(r=e.getTime()+Ze(e),n=t.getTime()+Ze(t)),r===n?0:r<n?-1:1}function Dr(e,t,r){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 n=0,o=0;n<e.length;n++)if(o=r(e[n],t[n]),o!==0)return o;return 0}function Lr(e,t){return Dr(e,t,J)}function Ir(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return r.length<n.length?-1:1;r.sort(),n.sort();for(let o=0,i=0;o<r.length;o++){const a=r[o];if(a!==n[o])return a<n[o]?-1:1;if(i=J(e[a],t[a]),i!==0)return i}return 0}function J(e,t){var r;return e===t?0:e==null?t==null?0:-1:t==null?1:$r(e)?e.CompareTo(t):W(e)?W(t)?Lr(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Nt(e,t):-1:((r=Object.getPrototypeOf(e))==null?void 0:r.constructor)===Object?Ir(e,t):-1}function Rr(e){let t=0,r="[";for(const n of e){if(t===0)r+=F(n);else if(t===100){r+="; ...";break}else r+="; "+F(n);t++}return r+"]"}function F(e,t=0){var r;if(e!=null&&typeof e=="object"){if(typeof e.toString=="function")return e.toString();if(Symbol.iterator in e)return Rr(e);{const n=(r=Object.getPrototypeOf(e))==null?void 0:r.constructor;return n===Object&&t<10?"{ "+Object.entries(e).map(([o,i])=>o+" = "+F(i,t+1)).join(`
2
- `)+" }":(n==null?void 0:n.name)??""}}return String(e)}function Wr(e){const t={},r=Object.keys(e);for(let n=0;n<r.length;n++)t[r[n]]=e[r[n]];return t}function Fr(e){return"{ "+Object.entries(e).map(([t,r])=>t+" = "+F(r)).join(`
3
- `)+" }"}function Vr(e){const t=Object.values(e).map(r=>B(r));return Oe(t)}function qr(e,t){if(e===t)return!0;if($t(e,t)){const r=Object.keys(e);for(let n=0;n<r.length;n++)if(!G(e[r[n]],t[r[n]]))return!1;return!0}else return!1}function Br(e,t){if(e===t)return 0;if($t(e,t)){const r=Object.keys(e);for(let n=0;n<r.length;n++){const o=J(e[r[n]],t[r[n]]);if(o!==0)return o}return 0}else return-1}class Gr{toJSON(){return Wr(this)}toString(){return Fr(this)}GetHashCode(){return Vr(this)}Equals(t){return qr(this,t)}CompareTo(t){return Br(this,t)}}const Jr=F(Er);function Kr(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}class ne{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return B(this.value)}Equals(t){return t==null?!1:G(this.value,t instanceof ne?t.value:t)}CompareTo(t){return t==null?1:J(this.value,t instanceof ne?t.value:t)}}function H(e){if(e==null)throw new Error("Option has no value");return e instanceof ne?e.value:e}function Yr(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]}class jt extends Gr{constructor(t,r){super(),this.head=t,this.tail=r}toString(){return"["+Kr("; ",this)+"]"}Equals(t){const r=this;return r===t?!0:((o,i)=>{e:for(;;){const a=o,s=i,c=a.tail,u=s.tail;if(c!=null)if(u!=null){const f=H(c),l=H(u);if(G(a.head,s.head)){o=f,i=l;continue e}else return!1}else return!1;else return u==null}})(r,t)}GetHashCode(){return((n,o,i)=>{e:for(;;){const a=n,s=o,c=i,u=c.tail;if(u!=null){const f=H(u);if(a>18)return s|0;n=a+1,o=(s<<1)+B(c.head)+631*a,i=f;continue e}else return s|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((o,i)=>{e:for(;;){const a=o,s=i,c=a.tail,u=s.tail;if(c!=null)if(u!=null){const f=H(c),l=H(u),d=J(a.head,s.head)|0;if(d===0){o=f,i=l;continue e}else return d|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return Xr(this)}[Symbol.iterator](){return zr(Ye(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ye(this)}}class Zr{constructor(t){this.xs=t,this.it=this.xs,this.current=re()}"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,r=t.it.tail;if(r!=null){const n=H(r);return t.current=t.it.head,t.it=n,!0}else return!1}"System.Collections.IEnumerator.Reset"(){const t=this;t.it=t.xs,t.current=re()}Dispose(){}}function Xr(e){return new Zr(e)}function Qr(){return new jt(re(),void 0)}function en(e,t){return new jt(e,t)}function tn(e,t){let r=t;for(let n=e.length-1;n>=0;n--)r=en(Yr(n,e),r);return r}function rn(e){return tn(e,Qr())}const nn=Cr;function on(e){const t=rn([g("style",{children:[Jr]}),g("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return g("div",{children:nn.Children.toArray(Array.from(t))})}Vt(e=>g(on,e),"apollo-import-workspace-app");
1
+ var bo,he,pc,jn,hl,gc,Ts,ra,As,$s,wc,mo={},yc=[],jh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ti=Array.isArray;function un(e,t){for(var n in t)e[n]=t[n];return e}function vc(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??++pc,__i:-1,__u:0};return o==null&&he.vnode!=null&&he.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 Tr(e,t){if(t==null)return e.__?Tr(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"?Tr(e):null}function bc(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 bc(e)}}function Ns(e){(!e.__d&&(e.__d=!0)&&jn.push(e)&&!ni.__r++||hl!==he.debounceRendering)&&((hl=he.debounceRendering)||gc)(ni)}function ni(){var e,t,n,r,o,i,s,a;for(jn.sort(Ts);e=jn.shift();)e.__d&&(t=jn.length,r=void 0,i=(o=(n=e).__v).__e,s=[],a=[],n.__P&&((r=un({},o)).__v=o.__v+1,he.vnode&&he.vnode(r),oa(n.__P,r,o,n.__n,n.__P.namespaceURI,32&o.__u?[i]:null,s,i??Tr(o),!!(32&o.__u),a),r.__v=o.__v,r.__.__k[r.__i]=r,Cc(s,r,a),r.__e!=i&&bc(r)),jn.length>t&&jn.sort(Ts));ni.__r=0}function _c(e,t,n,r,o,i,s,a,l,u,d){var c,p,h,f,g,w=r&&r.__k||yc,x=t.length;for(n.__d=l,Bh(n,t,w),l=n.__d,c=0;c<x;c++)(h=n.__k[c])!=null&&(p=h.__i===-1?mo:w[h.__i]||mo,h.__i=c,oa(e,h,p,o,i,s,a,l,u,d),f=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&ia(p.ref,null,h),d.push(h.ref,h.__c||f,h)),g==null&&f!=null&&(g=f),65536&h.__u||p.__k===h.__k?l=xc(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:f&&(l=f.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=g}function Bh(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=Vh(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=Tr(i)),Sc(i,i))}function xc(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=xc(r[o],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=Tr(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function fn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ti(e)?e.some(function(n){fn(n,t)}):t.push(e)),t}function Vh(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 ml(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||jh.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||ml(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ml(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=ra,e.addEventListener(t,i?$s:As,i)):e.removeEventListener(t,i?$s:As,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 pl(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ra++;else if(t.t<n.u)return;return he.event&&(t=he.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function oa(e,t,n,r,o,i,s,a,l,u){var d,c,p,h,f,g,w,x,_,S,$,F,P,D,b,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=he.__b)&&d(t);e:if(typeof k=="function")try{if(x=t.props,_="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:(_?t.__c=c=new k(x,$):(t.__c=c=new Ut(x,$),c.constructor=k,c.render=Wh),S&&S.sub(c),c.props=x,c.state||(c.state={}),c.context=$,c.__n=r,p=c.__d=!0,c.__h=[],c._sb=[]),_&&c.__s==null&&(c.__s=c.state),_&&k.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=un({},c.__s)),un(c.__s,k.getDerivedStateFromProps(x,c.__s))),h=c.props,f=c.state,c.__v=t,p)_&&k.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),_&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(_&&k.getDerivedStateFromProps==null&&x!==h&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(x,$),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(x,c.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(c.props=x,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),F=0;F<c._sb.length;F++)c.__h.push(c._sb[F]);c._sb=[],c.__h.length&&s.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(x,c.__s,$),_&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(h,f,g)})}if(c.context=$,c.props=x,c.__P=e,c.__e=!1,P=he.__r,D=0,_){for(c.state=c.__s,c.__d=!1,P&&P(t),d=c.render(c.props,c.state,c.context),b=0;b<c._sb.length;b++)c.__h.push(c._sb[b]);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&&++D<25);c.state=c.__s,c.getChildContext!=null&&(r=un(un({},r),c.getChildContext())),_&&!p&&c.getSnapshotBeforeUpdate!=null&&(g=c.getSnapshotBeforeUpdate(h,f)),_c(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;he.__e(T,t,n)}else i==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=Uh(n.__e,t,n,r,o,i,s,l,u);(d=he.diffed)&&d(t)}function Cc(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)ia(n[r],n[++r],n[++r]);he.__c&&he.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){he.__e(i,o.__v)}})}function Uh(e,t,n,r,o,i,s,a,l){var u,d,c,p,h,f,g,w=n.props,x=t.props,_=t.type;if(_==="svg"?o="http://www.w3.org/2000/svg":_==="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((h=i[u])&&"setAttribute"in h==!!_&&(_?h.localName===_:h.nodeType===3)){e=h,i[u]=null;break}}if(e==null){if(_===null)return document.createTextNode(x);e=document.createElementNS(o,_,x.is&&x),a&&(he.__m&&he.__m(t,i),a=!1),i=null}if(_===null)w===x||a&&e.data===x||(e.data=x);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[(h=e.attributes[u]).name]=h.value;for(u in w)if(h=w[u],u!="children"){if(u=="dangerouslySetInnerHTML")c=h;else if(!(u in x)){if(u=="value"&&"defaultValue"in x||u=="checked"&&"defaultChecked"in x)continue;Ho(e,u,null,h,o)}}for(u in x)h=x[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?d=h:u=="value"?f=h:u=="checked"?g=h:a&&typeof h!="function"||w[u]===h||Ho(e,u,h,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=""),_c(e,Ti(p)?p:[p],t,n,r,_==="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,s,i?i[0]:n.__k&&Tr(n,0),a,l),i!=null)for(u=i.length;u--;)vc(i[u]);a||(u="value",_==="progress"&&f==null?e.removeAttribute("value"):f!==void 0&&(f!==e[u]||_==="progress"&&!f||_==="option"&&f!==w[u])&&Ho(e,u,f,w[u],o),u="checked",g!==void 0&&g!==e[u]&&Ho(e,u,g,w[u],o))}return e}function ia(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){he.__e(o,n)}}function Sc(e,t,n){var r,o;if(he.unmount&&he.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ia(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(i){he.__e(i,t)}r.base=r.__P=null}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&Sc(r[o],t,n||typeof e.type!="function");n||vc(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function Wh(e,t,n){return this.constructor(e,n)}function An(e,t,n){var r,o,i,s;he.__&&he.__(e,t),o=(r=typeof n=="function")?null:n&&n.__k||t.__k,i=[],s=[],oa(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),Cc(i,e,s)}function sa(e,t){An(e,t,sa)}function aa(e,t,n){var r,o,i,s,a=un({},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 Ve(e,t){var n={__c:t="__cC"+wc++,__: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,Ns(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=yc.slice,he={__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}},pc=0,Ut.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=un({},this.state),typeof e=="function"&&(e=e(un({},n),this.props)),e&&un(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ns(this))},Ut.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ns(this))},Ut.prototype.render=Oe,jn=[],gc=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ts=function(e,t){return e.__v.__b-t.__v.__b},ni.__r=0,ra=0,As=pl(!1),$s=pl(!0),wc=0;function la(){return(la=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 Gh=["context","children"];function zh(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,Gh);return aa(t,n)}function qh(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=m(zh,la({},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[Ec(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(gl,{name:d},u):o[s]=u}var c=r?m(gl,null,o):o;return m(r||n.nodeName.toLowerCase(),i,c)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?sa:An)(this._vdom,this._root)}function Ec(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function Yh(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Ec(e)]=n,this._vdom=aa(this._vdom,r),An(this._vdom,this._root)}}function Zh(){An(this._vdom=null,this._root)}function gl(e,t){var n=this;return m("slot",la({},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 Kh(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=qh,o.prototype.attributeChangedCallback=Yh,o.prototype.disconnectedCallback=Zh,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 ua(e,t){Kh(e,t)}var pn,Ne,ns,wl,Ar=0,kc=[],Be=he,yl=Be.__b,vl=Be.__r,bl=Be.diffed,_l=Be.__c,xl=Be.unmount,Cl=Be.__;function or(e,t){Be.__h&&Be.__h(Ne,e,Ar||t),Ar=0;var n=Ne.__H||(Ne.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ae(e){return Ar=1,ir(Tc,e)}function ir(e,t,n){var r=or(pn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Tc(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=Ne,!Ne.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 h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(c=!0)}}),i&&i.call(this,a,l,u)||c};Ne.u=!0;var i=Ne.shouldComponentUpdate,s=Ne.componentWillUpdate;Ne.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)},Ne.shouldComponentUpdate=o}return r.__N||r.__}function Se(e,t){var n=or(pn++,3);!Be.__s&&fa(n.__H,t)&&(n.__=e,n.i=t,Ne.__H.__h.push(n))}function yn(e,t){var n=or(pn++,4);!Be.__s&&fa(n.__H,t)&&(n.__=e,n.i=t,Ne.__h.push(n))}function K(e){return Ar=5,te(function(){return{current:e}},[])}function ca(e,t,n){Ar=6,yn(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=or(pn++,7);return fa(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function be(e,t){return Ar=8,te(function(){return e},t)}function Ee(e){var t=Ne.context[e.__c],n=or(pn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ne)),t.props.value):e.__}function da(e,t){Be.useDebugValue&&Be.useDebugValue(t?t(e):e)}function Xh(e){var t=or(pn++,10),n=ae();return t.__=e,Ne.componentDidCatch||(Ne.componentDidCatch=function(r,o){t.__&&t.__(r,o),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Ft(){var e=or(pn++,11);if(!e.__){for(var t=Ne.__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 Qh(){for(var e;e=kc.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=[],Be.__e(t,e.__v)}}Be.__b=function(e){Ne=null,yl&&yl(e)},Be.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cl&&Cl(e,t)},Be.__r=function(e){vl&&vl(e),pn=0;var t=(Ne=e.__c).__H;t&&(ns===Ne?(t.__h=[],Ne.__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=[],pn=0)),ns=Ne},Be.diffed=function(e){bl&&bl(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(kc.push(t)!==1&&wl===Be.requestAnimationFrame||((wl=Be.requestAnimationFrame)||Jh)(Qh)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),ns=Ne=null},Be.__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=[],Be.__e(r,n.__v)}}),_l&&_l(e,t)},Be.unmount=function(e){xl&&xl(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&&Be.__e(t,n.__v))};var Sl=typeof requestAnimationFrame=="function";function Jh(e){var t,n=function(){clearTimeout(r),Sl&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Sl&&(t=requestAnimationFrame(n))}function Zo(e){var t=Ne,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ne=t}function Ms(e){var t=Ne;e.__c=e.__(),Ne=t}function fa(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Tc(e,t){return typeof t=="function"?t(e):t}function Is(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 yn(function(){o.__=n,o.u=t,rs(o)&&i({t:o})},[e,n,t]),Se(function(){return rs(o)&&i({t:o}),e(function(){rs(o)&&i({t:o})})},[e]),n}function rs(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 ha(e){e()}function ma(e){return e}function pa(){return[!1,ha]}var ga=yn;function ri(e,t){this.props=e,this.context=t}function Ac(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:Is(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 Is(this.props,e)||Is(this.state,t)};var El=he.__b;he.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),El&&El(e)};var em=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function wa(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=em,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var kl=function(e,t){return e==null?null:fn(fn(e).map(t))},$c={map:kl,forEach:kl,count:function(e){return e?fn(e).length:0},only:function(e){var t=fn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:fn},tm=he.__e;he.__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)}tm(e,t,n,r)};var Tl=he.unmount;function Nc(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 Nc(r,t,n)})),e}function Mc(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Mc(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 Ic(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Oc(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 yr(){this.i=null,this.l=null}he.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Tl&&Tl(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=Ic(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]=Mc(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]=Nc(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 Al=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 nm(e){return this.getChildContext=function(){return e.context},e.children}function rm(e){var t=this,n=e.h;t.componentWillUnmount=function(){An(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)}}),An(m(nm,{context:t.context},e.__v),t.v)}function Ni(e,t){var n=m(rm,{__v:e,h:t});return n.containerInfo=t,n}(yr.prototype=new Ut).__a=function(e){var t=this,n=Ic(t.__v),r=t.l.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Al(t,e,r)):o()};n?n(i):i()}},yr.prototype.render=function(e){this.i=null,this.l=new Map;var t=fn(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},yr.prototype.componentDidUpdate=yr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Al(e,n,t)})};var Fc=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,om=/^(?: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]/,im=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,sm=/[A-Z0-9]/g,am=typeof document<"u",lm=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Dc(e,t,n){return t.__k==null&&(t.textContent=""),An(e,t),typeof n=="function"&&n(),e?e.__c:null}function Pc(e,t,n){return sa(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 $l=he.event;function um(){}function cm(){return this.cancelBubble}function dm(){return this.defaultPrevented}he.event=function(e){return $l&&(e=$l(e)),e.persist=um,e.isPropagationStopped=cm,e.isDefaultPrevented=dm,e.nativeEvent=e};var ya,fm={enumerable:!1,configurable:!0,get:function(){return this.class}},Nl=he.vnode;he.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||am&&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"||lm(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":im.test(s)&&(s=l):l=s="oninput":i&&om.test(s)?s=s.replace(sm,"-$&").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=fn(n.children).forEach(function(u){u.props.selected=o.value.indexOf(u.props.value)!=-1})),r=="select"&&o.defaultValue!=null&&(o.value=fn(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",fm)):(n.className&&!n.class||n.class&&n.className)&&(o.class=o.className=n.className),t.props=o}(e),e.$$typeof=Fc,Nl&&Nl(e)};var Ml=he.__r;he.__r=function(e){Ml&&Ml(e),ya=e.__c};var Il=he.diffed;he.diffed=function(e){Il&&Il(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),ya=null};var Rc={ReactCurrentDispatcher:{current:{readContext:function(e){return ya.__n[e.__c].props.value},useCallback:be,useContext:Ee,useDebugValue:da,useDeferredValue:ma,useEffect:Se,useId:Ft,useImperativeHandle:ca,useInsertionEffect:ga,useLayoutEffect:yn,useMemo:te,useReducer:ir,useRef:K,useState:ae,useSyncExternalStore:$i,useTransition:pa}}},hm="18.3.1";function Lc(e){return m.bind(null,e)}function Pr(e){return!!e&&e.$$typeof===Fc}function Hc(e){return Pr(e)&&e.type===Oe}function jc(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function va(e){return Pr(e)?aa.apply(null,arguments):e}function Bc(e){return!!e.__k&&(An(null,e),!0)}function Vc(e){return e&&(e.base||e.nodeType===1&&e)||null}var Uc=function(e,t){return e(t)},St=function(e,t){return e(t)},Wc=Oe,Gc=Pr,B={useState:ae,useId:Ft,useReducer:ir,useEffect:Se,useLayoutEffect:yn,useInsertionEffect:ga,useTransition:pa,useDeferredValue:ma,useSyncExternalStore:$i,startTransition:ha,useRef:K,useImperativeHandle:ca,useMemo:te,useCallback:be,useContext:Ee,useDebugValue:da,version:"18.3.1",Children:$c,render:Dc,hydrate:Pc,unmountComponentAtNode:Bc,createPortal:Ni,createElement:m,createContext:Ve,createFactory:Lc,cloneElement:va,createRef:Ai,Fragment:Oe,isValidElement:Pr,isElement:Gc,isFragment:Hc,isMemo:jc,findDOMNode:Vc,Component:Ut,PureComponent:ri,memo:Ac,forwardRef:wa,flushSync:St,unstable_batchedUpdates:Uc,StrictMode:Wc,Suspense:uo,SuspenseList:yr,lazy:Oc,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Rc};const oi=Object.freeze(Object.defineProperty({__proto__:null,Children:$c,Component:Ut,Fragment:Oe,PureComponent:ri,StrictMode:Wc,Suspense:uo,SuspenseList:yr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Rc,cloneElement:va,createContext:Ve,createElement:m,createFactory:Lc,createPortal:Ni,createRef:Ai,default:B,findDOMNode:Vc,flushSync:St,forwardRef:wa,hydrate:Pc,isElement:Gc,isFragment:Hc,isMemo:jc,isValidElement:Pr,lazy:Oc,memo:Ac,render:Dc,startTransition:ha,unmountComponentAtNode:Bc,unstable_batchedUpdates:Uc,useCallback:be,useContext:Ee,useDebugValue:da,useDeferredValue:ma,useEffect:Se,useErrorBoundary:Xh,useId:Ft,useImperativeHandle:ca,useInsertionEffect:ga,useLayoutEffect:yn,useMemo:te,useReducer:ir,useRef:K,useState:ae,useSyncExternalStore:$i,useTransition:pa,version:hm},Symbol.toStringTag,{value:"Module"})),mm=`*,: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-100{--tw-bg-opacity: 1;background-color:rgb(209 250 229 / 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-24{padding-bottom:6rem}.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-4{padding-top:1rem}.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-emerald-800{--tw-text-opacity: 1;color:rgb(6 95 70 / 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 Kt(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function pm(e){return e!=null&&typeof e.GetEnumerator=="function"}function gm(e){return e!=null&&typeof e.CompareTo=="function"}function wm(e){return e!=null&&typeof e.Equals=="function"}function zc(e){return e!=null&&typeof e.GetHashCode=="function"}function Os(e){return e!=null&&typeof e.Dispose=="function"}function Fe(e){Os(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 ym{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 He(e){return pm(e)?e.GetEnumerator():new ym(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 Ol(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function vm(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 cn{static id(t){return cn.idMap.has(t)||cn.idMap.set(t,++cn.count),cn.idMap.get(t)}}cn.idMap=new WeakMap;cn.count=0;function sr(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 qc(e){return sr(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 bm(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return Bt(e);case"bigint":return qc(e);case"string":return sr(e);default:return Bt(cn.id(e))}}function _m(e){return zc(e)?e.GetHashCode():bm(e)}function xm(e){return e.getTime()}function Cm(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=gn(e[r]);return xo(n)}function gn(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 qc(e);case"string":return sr(e);default:{if(zc(e))return e.GetHashCode();if(Kt(e))return Cm(e);if(e instanceof Date)return xm(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>gn(r));return xo(n)}else return Bt(cn.id(e))}}}function Sm(e){return _m(e)}function Fs(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 Yc(e,t){return Fs(e,t,pe)}function Em(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]||!pe(e[n[o]],t[r[o]]))return!1;return!0}function pe(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:wm(e)?e.Equals(t):Kt(e)?Kt(t)&&Yc(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Zc(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Em(e,t)}function Zc(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Ol(e),r=t.getTime()+Ol(t)),n===r?0:n<r?-1:1}function Mi(e,t){return e===t?0:e<t?-1:1}function km(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 Kc(e,t){return km(e,t,wt)}function Tm(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:gm(e)?e.CompareTo(t):Kt(e)?Kt(t)?Kc(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Zc(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Tm(e,t):-1}function C(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function Am(e){Kt(e)?e.splice(0):e.clear()}const Ii=new WeakMap;function Ge(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Ii.set(t,e),t}function Bn(e){return Ii.get(e)??(t=>n=>e(t,n))}function Ds(e){if(e==null)return null;const t=(n,r,o)=>e(n)(r)(o);return Ii.set(t,e),t}function os(e){return Ii.get(e)??(t=>n=>r=>e(t,n,r))}function $m(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 $m(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 Nm(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 Nm(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>gn(n));return t.splice(0,0,Bt(this.tag)),xo(t)}Equals(t){return this===t?!0:ii(this,t)&&this.tag===t.tag?Yc(this.fields,t.fields):!1}CompareTo(t){return this===t?0:ii(this,t)?this.tag===t.tag?Kc(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 Im(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+It(n)).join(`
3
+ `)+" }"}function Om(e){const t=Object.values(e).map(n=>gn(n));return xo(t)}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++)if(!pe(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Dm(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 Im(this)}GetHashCode(){return Om(this)}Equals(t){return Fm(this,t)}CompareTo(t){return Dm(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 Pm{constructor(t){this.message=t}}function Rm(e){return e instanceof Pm||e instanceof Error}function Lm(e){return e instanceof Promise}function si(e){return Rm(e)||Lm(e)?e:new Error(String(e))}const ba=It(mm),Rr=Symbol("numeric");function Xc(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[Rr])}function Hm(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ps(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[Rr]().multiply(t)}function Ko(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[Rr]().toFixed(t)}function ai(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[Rr]().toPrecision(t)}function li(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[Rr]().toExponential(t)}function ui(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[Rr]().toHex()}const jm=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Bm=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Vm=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Um=["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 Fl(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Wm(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+=Pl(s);break;case 2:i+=De(Pl(s),2);break;case 3:i+=jm[Hl(s)];break;case 4:i+=Bm[Hl(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),x=Math.floor(Bo(s)/w);x!=0&&(i+=De(x,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(Dl(s)){case 1:i+="Z";break;case 2:i+=br(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(o=vt(t,r,"m"),r+=o,o){case 1:i+=Rl(s);break;case 2:i+=De(Rl(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+=Vm[Vo(s)-1];break;case 4:i+=Um[Vo(s)-1];break}break;case"s":switch(o=vt(t,r,"s"),r+=o,o){case 1:i+=Ll(s);break;case 2:i+=De(Ll(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(Dl(s)){case 1:l="+00:00";break;case 2:l=br(s.getTimezoneOffset()*-6e4);break;case 0:l=br(Jm(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,h]=Wm(t,r);i+=p,r+=h;break;case"%":const f=Fl(t,r);if(f>=0&&f!==37)r+=2,i+=_a(s,String.fromCharCode(f),n);else throw new Error("Invalid format string");break;case"\\":const g=Fl(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 Dl(e){return e.kind||0}function br(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 Gm(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?br(e.getTimezoneOffset()*-6e4):"")}}function zm(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+br(t)}function qm(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," ")+br(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 zm(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return _a(n,t,!0)}function Ym(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 Gm(e,n);default:throw new Error("Unrecognized Date print format")}else return _a(e,t,n)}function Qc(e,t,n){return e.offset!=null?qm(e,t):Ym(e,t)}function Co(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Zm(){return Co(-621355968e5,1)}function Jc(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 Km(e,t=!1){const[n,r]=Jc(e),o=r!=null?t&&r==="Z"?1:2:0;return Co(n.getTime(),o)}function Xm(e,t){try{return t.contents=Km(e),!0}catch{return!1}}function Qm(e){return e.kind===1?e:Co(e.getTime(),1)}function Jm(e){return e.kind===2?e:Co(e.getTime(),2)}function Pl(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 Rl(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Vo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Ll(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Hl(e){return e.kind===1?e.getUTCDay():e.getDay()}function e0(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 ed(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function jl(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 td(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=e0(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=jl(e,a),u=jl.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 Kr=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,t0=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function nd(e,t){return Hm(e,t)<0}function $r(e){return{input:e,cont:o0(e)}}function rd(e,t){return typeof t=="string"?e(t):t.cont(e)}function po(e){return rd(t=>t,e)}function n0(e){return rd(t=>{throw new Error(t)},e)}function r0(e,t,n,r,o){let i="";if(t=t||"",o=o||"",Xc(e))switch(o.toLowerCase()!=="x"&&(nd(e,0)?(e=Ps(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=Qc(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 od(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,h]=l[0];let f=c;if(o>=0)f=o,o=-1;else if(f==="*"){if(u<0)throw new Error("Non-negative number required");o=u;continue}s+=a[0],s+=r0(u,d,f,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):od(e,a,l,s,o)}}function o0(e){return t=>{Kr.lastIndex=0;const n=[],r=[];let o=0,i=Kr.exec(e);for(;i;){const s=i.index+(i[1]||"").length;n.push(e.substring(o,s).replace(/%%/g,"%")),r.push(i),o=Kr.lastIndex,Kr.lastIndex-=1,i=Kr.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(o).replace(/%%/g,"%")),od(t,n,r))}}function i0(e,...t){let n;return n=e,n.replace(t0,(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(Xc(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(Ps(u,100),a)+" %";break;case"d":case"D":u=a!=null?is(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?is(ui(u),a,"0"):ui(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let d="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(c,p,h)=>{nd(u,0)&&(u=Ps(u,-1),d="-"),h=h==null?"":h.substring(1),u=Ko(u,Math.max(h.length,0));let[f,g]=u.split(".");g||(g="");const w=p.replace(/,/g,"").replace(/^#+/,"").length;f=is(f,w,"0");const x=h.replace(/#+$/,"").length;if(x>g.length?g=s0(g,x,"0"):x<g.length&&(g=g.substring(0,x)+g.substring(x).replace(/0+$/,"")),p.indexOf(",")>0){const _=f.length%3,S=Math.floor(f.length/3);let $=_>0?f.substr(0,_)+(S>0?",":""):"";for(let F=0;F<S;F++)$+=f.substr(_+F*3,3)+(F<S-1?",":"");f=$}return g.length>0?f+"."+g:f}),u=d+u}}else u instanceof Date?u=Qc(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 Ca(e){return typeof e!="string"||/^\s*$/.test(e)}function Xt(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 is(e,t,n){return go(e,t,n)}function s0(e,t,n){return go(e,t,n,!0)}function a0(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(ed),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 l0(e,...t){if(t.length===0)return e.trim();const n="["+ed(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class Xn{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return gn(this.value)}Equals(t){return t==null?!1:pe(this.value,t instanceof Xn?t.value:t)}CompareTo(t){return t==null?1:wt(this.value,t instanceof Xn?t.value:t)}}function R(e){if(e==null)throw new Error("Option has no value");return e instanceof Xn?e.value:e}function Rs(e){return e instanceof Xn?e.value:e}function pt(e){return e==null||e instanceof Xn?new Xn(e):e}function u0(e){return e==null?null:R(e)}function Sa(e){return e==null?[]:[R(e)]}function Nr(e,t){return e!=null?R(e):t}function vn(e,t){return t!=null?pt(e(R(t))):void 0}function c0(e,t){return t!=null?e(R(t)):void 0}class d0{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 id(this)}Equals(t){return Ls(this,t)}}function sn(e){return e.generics!=null?e.generics:[]}function id(e){const t=sr(e.fullname),n=sn(e).map(id);return xo([t,...n])}function Ls(e,t){return e.fullname===""?t.fullname===""&&Fs(hi(e),hi(t),([n,r],[o,i])=>n===o&&Ls(r,i)):e.fullname===t.fullname&&Fs(sn(e),sn(t),Ls)}function Qn(e,t,n,r){return new Dt(e,t,n,r)}function ar(e,t,n,r){return new Dt(e,t,n,void 0,r)}function sd(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 d0(o,a,i[a],s))});return o}function _r(e){return new Dt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function di(e){return new Dt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const f0=new Dt("System.Object"),fi=new Dt("System.String"),Nt=new Dt("System.Int32");function Ea(e){if(Array.isArray(e))return e[0];if(e instanceof Dt){const t=Oi(e);if(t!=null)return Ea(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=Oi(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 h0(e){return Oi(e)!=null}function Oi(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function m0(e){return e.generics!=null&&e.generics.length>0}function ad(e){return e.enumCases!=null&&e.enumCases.length>0}function p0(e){return e.generics==null?e:new Dt(e.fullname,e.generics.map(()=>f0))}function g0(e){var t;return(t=e.generics)==null?void 0:t[0]}function cr(e){if(ad(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function w0(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 dr(e,t){const n=parseInt(t,10);return w0(e,isNaN(n)?t:n)[1]}function y0(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 v0(e){if(ld(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function b0(e){return e instanceof Dt?e.cases!=null:e instanceof z}function _0(e){return e instanceof Dt?e.fields!=null:e instanceof Te}function ld(e){return e.fullname.startsWith("System.Tuple")}function x0(e){return e.fields==null?[]:e.fields}function C0(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 S0(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 E0(e,t){return e}const ud="Collection was empty.",k0="The input must be non-negative.",cd="The input sequence has an insufficient number of elements.";function ka(e,t){return new Array(t)}function Bl(e,t){return e>t?e:t}function Vl(e,t){return e<t?e:t}function Ta(e,t,n,r){const o=t|0;return e.fill(r,o,o+n)}function dd(e,t,n){const r=t.length|0,o=ka(n,r);for(let i=0;i<=r-1;i++)Qt(o,i,e(i,ze(i,t)));return o}function Gt(e,t,n){const r=t.length|0,o=ka(n,r);for(let i=0;i<=r-1;i++)Qt(o,i,e(ze(i,t)));return o}function T0(e,t,n,r,o){const i=Nr(n,0)|0,s=Nr(vn(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 fd(e,t,n){return T0(t,e,void 0,void 0,n)>=0}function A0(e,t){const n=ka(t,1);return Qt(n,0,e),n}function $0(e){return e.slice().reverse()}function Aa(e,t){return t.find(e)}function an(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 pe(n,Ke())?r:Gt(o=>o,r,n)}function Fi(e,t,n){const r=e;return n.reduce(r,t)}function N0(e,t,n){const r=t.slice();return r.sort((o,i)=>n.Compare(e(o),e(i))),r}function M0(e,t,n){return t==null}function Ul(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return ze(0,e)}function I0(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 Qt(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 hd(e,t){if(!(e<0||e>=t.length))return pt(t[e])}function md(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"["+Xt("; ",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(pe(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)+gn(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 F0(this)}[Symbol.iterator](){return _o(He(this))}"System.Collections.IEnumerable.GetEnumerator"(){return He(this)}}class O0{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 F0(e){return new O0(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 pd(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 $a(e){if(e.tail!=null)return e.head;throw new Error(ud+"\\nParameter name: list")}function Ot(e){const t=e.tail;if(t!=null)return R(t);throw new Error(ud+"\\nParameter name: list")}function Je(){return Qe()}function At(e,t){return So(e,t)}function ye(e){return So(e,Qe())}function xe(e){return Eo(e)}function gd(e){return pd(e)}function re(e){return $a(e)}function _e(e){return Ot(e)}function Lr(e){const t=pd(e)|0,n=Ta(new Array(t),0,t,null);return((o,i)=>{e:for(;;){const s=o,a=i;if(!Eo(a)){Qt(n,s,$a(a)),o=s+1,i=Ot(a);continue e}break}})(0,e),n}function bn(e,t,n){let r=t,o=n;for(;!Eo(o);)r=e(r,re(o)),o=Ot(o);return r}function Na(e){return bn((t,n)=>So(n,t),Qe(),e)}function D0(e,t,n){return md(e,Lr(t),n)}function mi(e,t){bn((n,r)=>{e(r)},void 0,t)}function je(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=So(ze(r,e),n);return n}function v(e){return je(e,Qe())}function P0(e){let t,n;if(Kt(e))return v(e);if(e instanceof yt)return e;{const r=Qe();let o=r;const i=He(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 Di(e,t){return bn((n,r)=>So(r,n),t,Na(e))}function ko(e,t){const n=Qe(),r=bn((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 wd(e,t){const n=Qe(),r=bn((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 R0(e,t){const n=Qe(),r=Qe(),o=n,i=bn((l,u)=>{let d,c;const p=l[0],h=l[1];return e(u)?[(d=new yt(u,void 0),p.tail=d,d),h]:[p,(c=new yt(u,void 0),h.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 L0(e,t){const n=Qe(),r=bn((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 yd(e,t){const n=Lr(t);return n.sort(e),v(n)}function H0(e,t,n){return yd((r,o)=>n.Compare(e(r),e(o)),t)}function j0(e,t,n){return yd((r,o)=>n.Compare(e(r),e(o))*-1,t)}function B0(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(Eo(r))throw new Error(cd+"\\nParameter name: list");e=n-1,t=Ot(r);continue e}}function V0(e,t){if(e<0)throw new Error(k0+"\\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(cd+"\\nParameter name: list");s=d-1,a=(u=new yt($a(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=B;function U0(e){const t=v([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 W0{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 Pi extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Pi.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 dn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Pi);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 G0(e,t){return dn(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 z0(e){return dn(t=>t.onSuccess(e))}class q0{Bind(t,n){return G0(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return dn(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 z0(t)}ReturnFrom(t){return t}TryFinally(t,n){return dn(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 dn(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 dn(t=>t.onSuccess(void 0))}}const at=new q0;function Y0(e){return new vd(0,[e])}function Z0(e){return new vd(1,[e])}class vd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function K0(e){return Y0(e)}function X0(e){return Z0(e)}function ss(e){}const Q0=new W0;function J0(e){return dn(t=>{e({onSuccess:n=>t.onSuccess(K0(n)),onError:n=>t.onSuccess(X0(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function ep(e){return dn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function tp(e){return dn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Pi)})})}function np(e,t){return rp(e,t)}function bd(e,t){return np(e,t)}function rp(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||Q0,trampoline:i})}class _d extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class op extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Ia 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 pr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class xd 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 ip(e){throw new Error(e)}const sp="Enumeration already finished.",ap="Enumeration has not started. Call MoveNext.",Cd="The input sequence has an insufficient number of elements.",lp="Reset is not supported on this enumerator.";function up(){throw new Error(lp)}function Oa(){throw new Error(ap)}function Hs(){throw new Error(sp)}class cp{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const o=He(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(He(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function dp(e){return new cp(e)}class fp{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"(){up()}Dispose(){this.dispose()}}function Ri(e,t,n){return new fp(e,t,n)}function hp(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 Ri(()=>(r?o&&Hs():Oa(),i!=null?R(i):Hs()),()=>{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"](),He(a)):(s(),l=!1)}else t=He(e)}return R(l)}},()=>{o||s()})}function mp(e,t){return Ri(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{Fe(t)}finally{}})}function Sd(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 Ri(()=>(r||Oa(),o!=null?R(o):Hs()),()=>{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 pp(e,t){let n,r=t;return Ri(()=>{if(n!=null){const o=R(n)[0];return R(n)[1],o}else return Oa()},()=>(n=e(r),n!=null?(R(n)[0],r=R(n)[1],!0):!1),()=>{})}function gp(e,t){t==null&&ip(e)}function Hr(e){return dp(e)}function $n(e){return gp("source",e),He(e)}function V(e){return Hr(()=>He(e()))}function Fa(e){return Hr(()=>hp(e))}function wp(e,t){return Hr(()=>pp(e,t))}function Wl(){return V(()=>new Array(0))}function H(e){return V(()=>A0(e))}function Ed(e){return e instanceof yt?Lr(e):Array.from(e)}function Pe(e){return Kt(e)?v(e):e instanceof yt?e:P0(e)}function kd(e,t,n){return Hr(()=>Sd(e,t,n))}function yp(e,t,n){return Hr(()=>{let r=-1;return Sd(e,o=>(r=r+1|0,t(r,o)),n)})}function we(e,t){return Fa([e,t])}function vp(e,t){return kd(()=>$n(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 bp(e,t,n){const r=$n(t);try{const o=$n(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 fr(e,t,n){const r=$n(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 _p(e,t){return vp(n=>{if(e(n))return pt(n)},t)}function Da(e,t,n){const r=$n(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){Da((n,r)=>{e(r)},void 0,t)}function xp(e,t){Da((n,r)=>(e(n,r),n+1|0),0,t)}function Mt(e,t){return kd(()=>$n(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?pt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{Fe(n)})}function Cp(e){return V(()=>$0(Ed(e)))}function Sp(e,t){return Hr(()=>{const n=$n(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Cd+"\\nParameter name: source");return mp(()=>{},n)}catch(r){throw Fe(n),r}})}function Ep(e,t){return yp(()=>$n(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(Cd+"\\nParameter name: source")}else return},n=>{Fe(n)})}function Td(e,t){return V(()=>Fa(Mt(e,t)))}class Ad{constructor(t,n){this.k=t,this.v=n}}function pi(e,t){return new Ad(e,t)}function ct(e){return e.k}function Ct(e){return e.v}class Ze extends Ad{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 Gn(e){return e.h}function $d(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=R(r);if(o instanceof Ze){const i=o;e=$d(n+1,lt(i)),t=ut(i);continue e}else return n+1|0}else return n|0}}function kp(e){return $d(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,Gn(o)):1}else s=0;let l;const u=r;if(u!=null){const c=R(u);l=c instanceof Ze?(i=c,Gn(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 Gl(e,t,n,r){let o,i,s,a,l,u,d,c,p;const h=e;if(h!=null){const w=R(h);p=w instanceof Ze?(o=w,Gn(o)):1}else p=0;let f;const g=r;if(g!=null){const w=R(g);f=w instanceof Ze?(i=w,Gn(i)):1}else f=0;if(f>p+2){const w=R(r);if(w instanceof Ze){const x=w;if(s=lt(x),(s!=null?(a=R(s),a instanceof Ze?(l=a,Gn(l)):1):0)>p+1){const _=R(lt(x));if(_ instanceof Ze){const S=_;return Rt(Rt(e,t,n,lt(S)),ct(S),Ct(S),Rt(ut(S),ct(x),Ct(x),ut(x)))}else throw new Error("internal error: Map.rebalance")}else return Rt(Rt(e,t,n,lt(x)),ct(x),Ct(x),ut(x))}else throw new Error("internal error: Map.rebalance")}else if(p>f+2){const w=R(e);if(w instanceof Ze){const x=w;if(u=ut(x),(u!=null?(d=R(u),d instanceof Ze?(c=d,Gn(c)):1):0)>f+1){const _=R(ut(x));if(_ instanceof Ze){const S=_;return Rt(Rt(lt(x),ct(x),Ct(x),lt(S)),ct(S),Ct(S),Rt(ut(S),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Rt(lt(x),ct(x),Ct(x),Rt(ut(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Rt(e,t,n,r)}function Mr(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?Gl(Mr(e,t,n,lt(s)),ct(s),Ct(s),ut(s)):i===0?Xo(t,n,lt(s),ut(s),Gn(s)):Gl(lt(s),ct(s),Ct(s),Mr(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 Nd(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 Tp(e,t,n){const r=Nd(e,t,n);if(r==null)throw new Error;return R(r)}function Ap(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 $p(e,t){Md(e,t)}function Np(e,t,n){let r=n;$p((o,i)=>{Qt(t,r,[o,i]),r=r+1|0},e)}function Mp(e,t){return bn((n,r)=>Mr(e,r[0],r[1],n),void 0,t)}function Ip(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=Mr(r,s[0],s[1],o),n=i;continue e}else return o}}function Op(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const o=ze(r,t);n=Mr(e,o[0],o[1],n)}return n}function Id(e,t){if(Kt(t))return Op(e,t);if(t instanceof yt)return Mp(e,t);{const n=He(t);try{return Ip(e,void 0,n)}finally{Fe(n)}}}class Fp extends Te{constructor(t,n){super(),this.stack=t,this.started=n}}function Od(e){e:for(;;){const t=e;if(xe(t))return Je();{const n=_e(t),r=re(t);if(r!=null){const o=R(r);if(o instanceof Ze){const i=o;e=je([lt(i),pi(ct(i),Ct(i)),ut(i)],n);continue e}else return t}else{e=n;continue e}}}}function zl(e){return new Fp(Od(ye(e)),!1)}function Dp(){throw new Error("enumeration not started")}function Pp(){throw new Error("enumeration already finished")}function ql(e){if(e.started){const t=e.stack;if(xe(t))return Pp();if(re(t)!=null){const n=R(re(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 Dp()}function Rp(e){if(e.started){const t=e.stack;if(xe(t))return!1;if(re(t)!=null){if(R(re(t))instanceof Ze)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=Od(_e(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 Yl(e){let t=zl(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ql(t)},"System.Collections.IEnumerator.get_Current"(){return ql(t)},"System.Collections.IEnumerator.MoveNext"(){return Rp(t)},"System.Collections.IEnumerator.Reset"(){t=zl(e)},Dispose(){}}}class gi{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Bp(this)|0}Equals(t){const n=this;if(t instanceof gi){const r=t,o=He(n);try{const i=He(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 pe(l[0],u[0])&&pe(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 ["+Xt("; ",Mt(n=>i0("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Yl(this.tree)}[Symbol.iterator](){return _o(He(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Yl(this.tree)}CompareTo(t){const n=this;if(t instanceof gi)return bp((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 Kl(n,t[0])&&pe(Zl(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Np(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 Mt(n=>[n[0],n[1]],this)}get(t){return Zl(this,t)}has(t){return Kl(this,t)}keys(){return Mt(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return Mt(n=>n[1],this)}forEach(t,n){const r=this;To(o=>{t(o[1],o[0],r)},r)}}function Li(e,t){return new gi(e,t)}function Lp(e){return Li(e,void 0)}function Hp(e,t,n){return Li(e.comparer,Mr(e.comparer,t,n,e.tree))}function Zl(e,t){return Tp(e.comparer,t,e.tree)}function as(e){return kp(e.tree)}function Kl(e,t){return Ap(e.comparer,t,e.tree)}function jp(e,t){return Nd(e.comparer,t,e.tree)}function Bp(e){const t=(o,i)=>(o<<1)+i+631;let n=0;const r=He(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const o=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,gn(o[0]))|0,n=t(n,gn(o[1]))|0}}finally{Fe(r)}return n|0}function Vp(e,t,n){return Hp(n,e,t)}function Up(e,t){return jp(t,e)}function Wp(e,t){return Li(t,Id(t,e))}function Gp(e,t){return Li(t,Id(t,e))}function Fd(e){return Lp(e)}const Pn=new Ia("",new _d(0,[]),Je(),!1,void 0,void 0,void 0,new op(0,[]));new xd(0,"","","",Fd({Compare:Mi}),new pr(0,[""]));function Xl(e,t){return xa(t)?new Array(0):a0(t,[e],void 0,0)}function zp(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 qp(e){return new Ia(e,Pn.method,Pn.headers,Pn.withCredentials,Pn.overridenMimeType,Pn.overridenResponseType,Pn.timeout,Pn.content)}function Yp(e,t){return new Ia(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Zp(e){return ep(t=>{const n=new XMLHttpRequest;n.open(zp(e.method),e.url),n.onreadystatechange=()=>{let l,u,d,c,p,h,f;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),d=n.status|0,c=n.responseType,p=(h=n.responseType,h===""?new pr(0,[n.responseText]):h==="text"?new pr(0,[n.responseText]):h==="arraybuffer"?new pr(2,[n.response]):h==="blob"?new pr(1,[n.response]):new pr(3,[n.response])),f=Gp(an(g=>{const w=v(Xl(":",g));if(!xe(w))return[re(w).toLocaleLowerCase(),Xt(":",_e(w)).trim()]},Xl(`\r
4
+ `,n.getAllResponseHeaders())),{Compare:Mi}),new xd(d,l,c,n.responseURL,f,p)))};const r=He(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 Kp(e){return new A(0,[e])}function Dd(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 wn(e,t){return t.tag===0?Kp(e(t.fields[0])):Dd(t.fields[0])}function Xp(e,t){return t.tag===0?e(t.fields[0]):Dd(t.fields[0])}const Vn={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 Qp(e,t){switch(t){case Vn.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case Vn.SnakeCase:return ls(e,"_");case Vn.SnakeCaseAllCaps:return ls(e,"_").toUpperCase();case Vn.KebabCase:return ls(e,"-");case Vn.None:default:return e}}function lr(e,t=Vn.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=Qp(s,a),n[s]=l}for(let s of e){let a=Vn.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 Jp(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function eg(e,t){return t.has(e)?!1:(t.add(e),!0)}function Pd(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 Rd extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Ql(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function tg(e,t){switch(e.tag){case 2:return td(Ql(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Ql(t)}}const ng=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Jl=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,rg=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function og(e){function t(r){return r.replace(Jl,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(ng.test(n))return l0(n,"{","}","(",")");if(Jl.test(n))return t(n);if(rg.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 ig(e,t){try{return t.contents=og(e),!0}catch{return!1}}var js;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(js||(js={}));function sg(e,t){const[,n,r,o]=e;return{sign:n||"",prefix:r||"",digits:o,radix:t}}function eu(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 ag(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 lg(e,t){if(t&js.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 ug(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||lg(i,t),!ag(n).test(s))return sg(o,n)}return null}function cg(e,t,n,r,o){const i=ug(e,t,o);if(i!=null){let s=Number.parseInt(i.sign+i.digits,i.radix);if(!Number.isNaN(s)){const[a,l]=eu(!0,r);!n&&i.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,d]=eu(n,r);if(s>=u&&s<=d)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function jr(e,t,n,r,o){try{return o.contents=cg(e,t,n,r),!0}catch{return!1}}function Ld(e,t){dg(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function dg(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 fg(){return Ld(-621355968e5,0)}function hg(e){const[t,n]=Jc(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return Ld(t.getTime(),r)}function mg(e,t){try{return t.contents=hg(e),!0}catch{return!1}}function tu(e=0,t=0,n=0,r=0,o=0){switch(arguments.length){case 1:return pg(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 pg(e){return Number(BigInt(e)/10000n)}function gg(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 tu(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*tu(o,l,u,s,i)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function wg(e,t){try{return t.contents=gg(e),!0}catch{return!1}}class yg{constructor(t,n){const r=new kt(Ke());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const o=He(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 He(this)}GetEnumerator(){return He(Fa(this.hashMap.values()))}[Symbol.iterator](){return _o(He(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){us(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){nu(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return ou(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){xp((o,i)=>{Qt(t,n+o,i)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return ru(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return iu(this,t)}get size(){return ru(this)|0}add(t){const n=this;return us(n,t),n}clear(){nu(this)}delete(t){return iu(this,t)}has(t){return ou(this,t)}keys(){return Mt(n=>n,this)}values(){return Mt(n=>n,this)}entries(){return Mt(n=>[n,n],this)}forEach(t,n){const r=this;To(o=>{t(o,o,r)},r)}}function Pa(e,t){const n=e.comparer.GetHashCode(t)|0;let r,o=Ke();return r=[Jp(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 nu(e){e.hashMap.clear()}function ru(e){let t=0,n=He(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=Pa(e,t);return n[0]?n[2]>-1?!1:(Pd(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function ou(e,t){const n=Pa(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function iu(e,t){const n=Pa(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Pd(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class Hd{constructor(t){this.k=t}}function _t(e){return new Hd(e)}function se(e){return e.k}class Ce extends Hd{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 vr(e){return e.h}function jd(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=jd($e(i),r+1);continue e}else return r+1|0}else return r|0}}function vg(e){return jd(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,vr(r)):1}else i=0;let a;const l=n;if(l!=null){const d=R(l);a=d instanceof Ce?(o=d,vr(o)):1}else a=0;const u=(i<a?a:i)|0;return u===0?_t(t):xt(t,e,n,u+1)}function su(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,vr(r)):1}else c=0;let h;const f=n;if(f!=null){const g=R(f);h=g instanceof Ce?(o=g,vr(o)):1}else h=0;if(h>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,vr(a)):1):0)>c+1){const x=R(Ie(w));if(x instanceof Ce){const _=x;return Lt(Lt(e,t,Ie(_)),se(_),Lt($e(_),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>h+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,vr(d)):1):0)>h+1){const x=R($e(w));if(x instanceof Ce){const _=x;return Lt(Lt(Ie(w),se(w),Ie(_)),se(_),Lt($e(_),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 Ir(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?su(Ir(e,t,Ie(i)),se(i),$e(i)):o===0?n:su(Ie(i),se(i),Ir(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 Bd(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 Vd(e,t){e:for(;;){const n=e,r=t;if(r!=null){const o=R(r);if(o instanceof Ce){const i=o;Vd(n,Ie(i)),n(se(i)),e=n,t=$e(i);continue e}else n(se(o))}break}}class bg extends Te{constructor(t,n){super(),this.stack=t,this.started=n}}function Ud(e){e:for(;;){const t=e;if(xe(t))return Je();{const n=re(t),r=_e(t);if(n!=null){const o=R(n);if(o instanceof Ce){const i=o;e=je([Ie(i),_t(se(i)),$e(i)],r);continue e}else return t}else{e=r;continue e}}}}function au(e){return new bg(Ud(ye(e)),!1)}function _g(){throw new Error("Enumeration not started")}function xg(){throw new Error("Enumeration already started")}function lu(e){if(e.started){const t=e.stack;if(xe(t))return xg();if(re(t)!=null){const n=R(re(t));return se(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return _g()}function Cg(e){if(e.started){const t=e.stack;if(xe(t))return!1;if(re(t)!=null){if(R(re(t))instanceof Ce)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=Ud(_e(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 uu(e){let t=au(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return lu(t)},"System.Collections.IEnumerator.get_Current"(){return lu(t)},"System.Collections.IEnumerator.MoveNext"(){return Cg(t)},"System.Collections.IEnumerator.Reset"(){t=au(e)},Dispose(){}}}function Sg(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(re(i)!=null)if(re(o)!=null){const s=R(re(o)),a=R(re(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),_e(o)),n=At($e(u),_e(i));continue e}else{let d,c,p,h,f;switch(xe(o)?xe(i)?d=2:re(i)!=null?(d=1,h=_e(i),f=R(re(i))):d=2:re(o)!=null?(d=0,c=_e(o),p=R(re(o))):xe(i)?d=2:re(i)!=null?(d=1,h=_e(i),f=R(re(i))):d=2,d){case 0:if(p instanceof Ce){const g=p;e=r,t=je([Ie(g),xt(se(g),void 0,$e(g),0)],c),n=i;continue e}else{e=r,t=je([void 0,_t(se(p))],c),n=i;continue e}case 1:if(f instanceof Ce){const g=f;e=r,t=o,n=je([Ie(g),xt(se(g),void 0,$e(g),0)],h);continue e}else{e=r,t=o,n=je([void 0,_t(se(f))],h);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),_e(o)),n=At(void 0,_e(i));continue e}else{let u,d,c,p,h;switch(xe(o)?xe(i)?u=2:re(i)!=null?(u=1,p=_e(i),h=R(re(i))):u=2:re(o)!=null?(u=0,d=_e(o),c=R(re(o))):xe(i)?u=2:re(i)!=null?(u=1,p=_e(i),h=R(re(i))):u=2,u){case 0:if(c instanceof Ce){const f=c;e=r,t=je([Ie(f),xt(se(f),void 0,$e(f),0)],d),n=i;continue e}else{e=r,t=je([void 0,_t(se(c))],d),n=i;continue e}case 1:if(h instanceof Ce){const f=h;e=r,t=o,n=je([Ie(f),xt(se(f),void 0,$e(f),0)],p);continue e}else{e=r,t=o,n=je([void 0,_t(se(h))],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,_e(o)),n=At($e(l),_e(i));continue e}else{let u,d,c,p,h;switch(xe(o)?xe(i)?u=2:re(i)!=null?(u=1,p=_e(i),h=R(re(i))):u=2:re(o)!=null?(u=0,d=_e(o),c=R(re(o))):xe(i)?u=2:re(i)!=null?(u=1,p=_e(i),h=R(re(i))):u=2,u){case 0:if(c instanceof Ce){const f=c;e=r,t=je([Ie(f),xt(se(f),void 0,$e(f),0)],d),n=i;continue e}else{e=r,t=je([void 0,_t(se(c))],d),n=i;continue e}case 1:if(h instanceof Ce){const f=h;e=r,t=o,n=je([Ie(f),xt(se(f),void 0,$e(f),0)],p);continue e}else{e=r,t=o,n=je([void 0,_t(se(h))],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=_e(o),n=_e(i);continue e}}else{R(re(i));let s,a,l,u,d;switch(xe(o)?xe(i)?s=2:re(i)!=null?(s=1,u=_e(i),d=R(re(i))):s=2:re(o)!=null?(s=0,a=_e(o),l=R(re(o))):xe(i)?s=2:re(i)!=null?(s=1,u=_e(i),d=R(re(i))):s=2,s){case 0:if(l instanceof Ce){const c=l;e=r,t=je([Ie(c),xt(se(c),void 0,$e(c),0)],a),n=i;continue e}else{e=r,t=je([void 0,_t(se(l))],a),n=i;continue e}case 1:if(d instanceof Ce){const c=d;e=r,t=o,n=je([Ie(c),xt(se(c),void 0,$e(c),0)],u);continue e}else{e=r,t=o,n=je([void 0,_t(se(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(re(o)!=null){R(re(o));let s,a,l,u,d;switch(xe(o)?xe(i)?s=2:re(i)!=null?(s=1,u=_e(i),d=R(re(i))):s=2:re(o)!=null?(s=0,a=_e(o),l=R(re(o))):xe(i)?s=2:re(i)!=null?(s=1,u=_e(i),d=R(re(i))):s=2,s){case 0:if(l instanceof Ce){const c=l;e=r,t=je([Ie(c),xt(se(c),void 0,$e(c),0)],a),n=i;continue e}else{e=r,t=je([void 0,_t(se(l))],a),n=i;continue e}case 1:if(d instanceof Ce){const c=d;e=r,t=o,n=je([Ie(c),xt(se(c),void 0,$e(c),0)],u);continue e}else{e=r,t=o,n=je([void 0,_t(se(d))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=_e(o),n=_e(i);continue e}}}function cu(e,t,n){return t==null?n==null?0:-1:n==null?1:Sg(e,ye(t),ye(n))|0}function Eg(e,t,n){let r=n;Vd(o=>{Qt(t,r,o),r=r+1|0},e)}function kg(e,t,n){e:for(;;){const r=e,o=t,i=n;if(i["System.Collections.IEnumerator.MoveNext"]()){e=r,t=Ir(r,i["System.Collections.Generic.IEnumerator`1.get_Current"](),o),n=i;continue e}else return o}}function Tg(e,t){return Fi((n,r)=>Ir(e,r,n),void 0,t)}function Ag(e,t){return bn((n,r)=>Ir(e,r,n),void 0,t)}function Wd(e,t){if(Kt(t))return Tg(e,t);if(t instanceof yt)return Ag(e,t);{const n=He(t);try{return kg(e,void 0,n)}finally{Fe(n)}}}class Ra{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Mg(this)|0}Equals(t){let n;const r=this;return t instanceof Ra&&(n=t,cu(xr(r),Ht(r),Ht(n))===0)}toString(){return"set ["+Xt("; ",Mt(n=>It(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return cu(xr(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 Bd(xr(n),t,Ht(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Eg(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 uu(Ht(this))}[Symbol.iterator](){return _o(He(this))}"System.Collections.IEnumerable.GetEnumerator"(){return uu(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 Gd(this,t)}keys(){return Mt(n=>n,this)}values(){return Mt(n=>n,this)}entries(){return Mt(n=>[n,n],this)}forEach(t,n){const r=this;To(o=>{t(o,o,r)},r)}}function Hi(e,t){return new Ra(e,t)}function xr(e){return e.comparer}function Ht(e){return e.tree}function $g(e){return Hi(e,void 0)}function Ng(e,t){return Hi(xr(e),Ir(xr(e),t,Ht(e)))}function cs(e){return vg(Ht(e))}function Gd(e,t){return Bd(xr(e),t,Ht(e))}function Mg(e){let t=0;const n=He(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+gn(r)+631|0}}finally{Fe(n)}return Math.abs(t)|0}function Bs(e,t){return Gd(t,e)}function Ig(e,t){return Ng(t,e)}function Og(e){return $g(e)}function Fg(e,t){return Hi(t,Wd(t,e))}function Dg(e,t){return Hi(t,Wd(t,e))}function Xr(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
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 Pg(e,t){const n=t.tag===2?Xr(t.fields[0],t.fields[1],!0):t.tag===1?Xr(t.fields[0],t.fields[1],!1)+`
7
+ Reason: `+t.fields[2]:t.tag===3?Xr(t.fields[0],t.fields[1],!0):t.tag===4?Xr(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
8
+ `+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
9
+
10
+ `+Xt(`
11
+
12
+ `,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Xr(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function zd(e,t,n){const r=t(e,n);if(r.tag===1){const o=r.fields[0];return new A(1,[Pg(o[0],o[1])])}else return new A(0,[r.fields[0]])}function Rg(e,t){try{return zd("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new A(1,["Given an invalid JSON: "+n.message]);throw n}}function qd(e,t){return typeof t=="string"?new A(0,[t]):new A(1,[[e,new Z(0,["a string",t])]])}function Lg(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 Hg(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[ig(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 jg(e,t){return t==null?new A(0,[void 0]):new A(1,[[e,new Z(0,["null",t])]])}const du=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=[jr(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])]])},fu=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=[jr(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])]])},hu=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=[jr(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])]])},mu=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=[jr(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])]])},pu=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=[jr(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])]])},gu=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=[jr(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 Bg(e,t){return typeof t=="boolean"?new A(0,[t]):new A(1,[[e,new Z(0,["a boolean",t])]])}function Vg(e,t){return typeof t=="number"?new A(0,[t]):new A(1,[[e,new Z(0,["a float",t])]])}function Ug(e,t){return typeof t=="number"?new A(0,[t]):new A(1,[[e,new Z(0,["a float32",t])]])}function Wg(e,t){if(typeof t=="string"){let n,r=Zm();return n=[Xm(t,new kt(()=>r,o=>{r=o})),r],n[0]?new A(0,[Qm(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 Gg(e,t){if(typeof t=="string"){let n,r=fg();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 datetimeoffset",t])]])}else return new A(1,[[e,new Z(0,["a datetime",t])]])}function zg(e,t){if(typeof t=="string"){let n,r=0;return n=[wg(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 wu(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 qg(e,t,n){return n==null?new A(0,[void 0]):wn(pt,e(t,n))}function yu(e,t,n){if(Array.isArray(n)){let r=-1;return wn(Na,Fi((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 Yg(e,t,n){if(Array.isArray(n)){let r=-1;return wn(Cp,Fi((o,i)=>{if(r=r+1|0,o.tag===0){const s=e(t+".["+Wt(r)+"]",i);return s.tag===0?new A(0,[we([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 vu(e,t,n){if(Array.isArray(n)){let r=-1;const o=n;return Fi((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?(Qt(a,r,l.fields[0]),new A(0,[a])):new A(1,[l.fields[0]])}else return i},new A(0,[Ta(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=zd(t,Ge(re(s)),n);if(l.tag===1){o=_e(s),i=Di(a,ye(l.fields[0]));continue e}else return new A(0,[l.fields[0]])}}})(e,Je())}function Kg(e,t,n){return new A(0,[e])}function bu(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 Xg(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 Qg(e,t){let n;const r=e;return n=o=>i=>wu(0,r,o,i),o=>i=>bu(Ds(s=>{let a;const l=t;return a=u=>d=>wu(1,l,u,d),u=>d=>bu((c,p,h)=>Kg([s,c]),Ge(a),u,d)}),Ge(n),o,i)}function Jg(e){return Wp(e,{Compare:wt})}function e1(e){return Dg(e,{Compare:wt})}function t1(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?md((r,o)=>{const i=r[0];return o.tag===0?wn(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 n1(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?Da((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 Yd(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($r("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($r("%s[%i]"))(n)(a),d=ze(a-e,t),c=ze(a,r);s=wn(p=>At(p,l),d(u)(c))}return wn(Na,s)}}function _u(e,t,n,r,o,i){const s=Aa(a=>Ea(a)===r,y0(n));if(s!=null){const a=s,l=Gt(u=>jt(e,t,!1,u[1]),x0(a));return wn(u=>C0(a,Lr(u)),l.length===0&&i.length<=1?new A(0,[Je()]):Yd(1,l,o,i))}else return new A(1,[[o,new Z(6,["Cannot find case "+r+" in "+nt(n)])]])}function xu(e,t,n,r){let o;const i=new kt(Ke());let s;const a=nt(r);s=a===""?e:Vp(a,i,e);let l;if(_0(r)){const u=Gt(d=>[tg(t,Ea(d)),jt(s,t,!1,d[1])],hi(r));l=d=>c=>wn(p=>S0(r,Lr(p)),t1(u,d,c))}else if(b0(r))l=u=>d=>{if(typeof d=="string")return _u(s,t,r,d,u,[]);if(Array.isArray(d)){const c=d;return Xp(p=>_u(s,t,r,p,u,c),qd(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($r(`Cannot generate auto decoder for %s. Please pass an extra decoder.
13
+
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=Up(l,e);if(u==null)if(h0(r)){const d=jt(e,t,!1,Oi(r));return c=>p=>vu(Ge(d),c,p)}else if(ad(r))switch(nt(g0(r))){case"System.SByte":return c=>p=>{const h=r,f=c,g=p,w=du(f)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const x=w.fields[0]|0;return fr(x,cr(h),{Equals:(_,S)=>_===S,GetHashCode:Bt})?new A(0,[dr(h,x.toString())]):new A(1,[[f,new Z(1,[nt(h),g,"Unkown value provided for the enum"])]])}};case"System.Byte":return c=>p=>{const h=r,f=c,g=p,w=fu(f)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const x=w.fields[0];return fr(x,cr(h),{Equals:(_,S)=>_===S,GetHashCode:Bt})?new A(0,[dr(h,x.toString())]):new A(1,[[f,new Z(1,[nt(h),g,"Unkown value provided for the enum"])]])}};case"System.Int16":return c=>p=>{const h=r,f=c,g=p,w=hu(f)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const x=w.fields[0]|0;return fr(x,cr(h),{Equals:(_,S)=>_===S,GetHashCode:Bt})?new A(0,[dr(h,vm(x))]):new A(1,[[f,new Z(1,[nt(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt16":return c=>p=>{const h=r,f=c,g=p,w=mu(f)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const x=w.fields[0];return fr(x,cr(h),{Equals:(_,S)=>_===S,GetHashCode:Bt})?new A(0,[dr(h,x.toString())]):new A(1,[[f,new Z(1,[nt(h),g,"Unkown value provided for the enum"])]])}};case"System.Int32":return c=>p=>{const h=r,f=c,g=p,w=pu(f)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const x=w.fields[0]|0;return fr(x,cr(h),{Equals:(_,S)=>_===S,GetHashCode:Bt})?new A(0,[dr(h,Wt(x))]):new A(1,[[f,new Z(1,[nt(h),g,"Unkown value provided for the enum"])]])}};case"System.UInt32":return c=>p=>{const h=r,f=c,g=p,w=gu(f)(g);if(w.tag===1)return new A(1,[w.fields[0]]);{const x=w.fields[0];return fr(x,cr(h),{Equals:(_,S)=>_===S,GetHashCode:Bt})?new A(0,[dr(h,x.toString())]):new A(1,[[f,new Z(1,[nt(h),g,"Unkown value provided for the enum"])]])}};default:{const c=nt(r),p=n0($r(`Cannot generate auto decoder for %s.
15
+ Thoth.Json.Net only support the following enum types:
16
+ - sbyte
17
+ - byte
18
+ - int16
19
+ - uint16
20
+ - int
21
+ - uint32
22
+ If you can't use one of these types, please pass an extra decoder.
23
+ `))(c);return h=>p(h)}}else if(m0(r))if(ld(r)){const d=Gt(c=>jt(e,t,!1,c),v0(r));return c=>p=>Array.isArray(p)?wn(h=>E0(Lr(h)),Yd(0,d,c,p)):new A(1,[[c,new Z(0,["an array",p])]])}else switch(nt(p0(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return o=jt(e,t,!0,ze(0,sn(r))),c=>p=>qg(Ge(o),c,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return i=jt(e,t,!1,ze(0,sn(r))),c=>p=>yu(Ge(i),c,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=jt(e,t,!1,ze(0,sn(r))),c=>p=>Yg(Ge(s),c,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const c=jt(e,t,!1,ze(0,sn(r))),p=jt(e,t,!1,ze(1,sn(r)));let h;const f=v([g=>w=>n1(Ge(c),Ge(p),g,w),(a=Qg(Ge(c),Ge(p)),g=>w=>yu(Ge(a),g,w))]);return h=g=>w=>Zg(f,g,w),g=>w=>Xg(Jg,Ge(h),g,w)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const c=jt(e,t,!1,ze(0,sn(r)));return p=>h=>{const f=vu(Ge(c),p,h);return f.tag===0?new A(0,[e1(f.fields[0])]):new A(1,[f.fields[0]])}}default:return xu(e,t,n,r)}else switch(l){case"System.Boolean":return d=>c=>Bg(d,c);case"Microsoft.FSharp.Core.Unit":return d=>c=>jg(d,c);case"System.String":return d=>c=>qd(d,c);case"System.Char":return d=>c=>Lg(d,c);case"System.SByte":return du;case"System.Byte":return fu;case"System.Int16":return hu;case"System.UInt16":return mu;case"System.Int32":return pu;case"System.UInt32":return gu;case"System.Double":return d=>c=>Vg(d,c);case"System.Single":return d=>c=>Ug(d,c);case"System.DateTime":return d=>c=>Wg(d,c);case"System.DateTimeOffset":return d=>c=>Gg(d,c);case"System.TimeSpan":return d=>c=>zg(d,c);case"System.Guid":return d=>c=>Hg(d,c);case"System.Object":return d=>c=>new A(0,[c]);default:return xu(e,t,n,r)}else{const d=u;return c=>p=>d.contents(c)(p)}}function r1(e){return Fd({Compare:Mi})}function o1(e,t,n){const r=Nr(t,new Rd(0,[]));return jt(r1(),r,!1,e)}class i1 extends Te{constructor(t,n){super(),this.Name=t,this.Email=n}}function La(){return ar("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],i1,()=>[["Name",fi],["Email",_r(fi)]])}class s1 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function Zd(){return sd("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],s1,()=>[[],[]])}class a1 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function l1(){return sd("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],a1,()=>[[],[]])}class u1 extends Te{constructor(t,n,r,o){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=o}}function c1(){return ar("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],u1,()=>[["User",La()],["ProfileCount",Nt],["RequestType",l1()],["RequestedAt",Qn("System.DateTime")]])}class d1 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 f1(){return ar("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],d1,()=>[["Stage",Zd()],["InputRowCount",Nt],["StartTime",Qn("System.DateTime")],["SucceededRowCount",_r(Nt)],["FailedRowCount",_r(Nt)],["RemainingRowCount",_r(Nt)]])}class h1 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 Kd(){return ar("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],h1,()=>[["Stage",Zd()],["InputRowCount",Nt],["SucceededRowCount",Nt],["FailedRowCount",Nt],["StartTime",Qn("System.DateTime")],["StopTime",Qn("System.DateTime")]])}class m1 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 p1(){return ar("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],m1,()=>[["ImportId",Nt],["User",La()],["Filename",fi],["NumberOfRecords",Nt],["CurrentStage",_r(f1())],["CompletedStages",di(Kd())],["StartTime",Qn("System.DateTime")]])}class g1 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 w1(){return ar("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],g1,()=>[["ImportId",Nt],["User",La()],["Filename",fi],["NumberOfRecords",Nt],["CompletedStages",di(Kd())],["BenefitsRequests",di(c1())],["StartTime",Qn("System.DateTime")],["StopTime",Qn("System.DateTime")]])}class y1 extends Te{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function v1(){return ar("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],y1,()=>[["ActiveImport",_r(p1())],["ImportHistory",di(w1())]])}class b1{constructor(t){this.baseUrl=`${t}/import/workspace/v1.0/accounts/current/imports`}}function _1(e){return new b1(e)}function x1(e){return at.Delay(()=>{let t;const n=Zp(Yp(new _d(0,[]),qp(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=Rg(Ge(o1(v1(),new Rd(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 C1(){return Je()}function Ha(e){return Xt("/",e)}function S1(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Ha(t),n])}function Xd(e,t,n){try{Fe(n)}catch(r){e(["Error stopping subscription: "+Ha(t),r])}}function E1(e,t,n,r){try{return[n,r(t)]}catch(o){e(["Error starting subscription: "+Ha(n),o]);return}}function k1(e,t){mi(n=>{Xd(e,n[0],n[1])},t)}function Cu(e,t,n,r,o,i){return mi(s=>{S1(e,s)},n),mi(s=>{Xd(e,s[0],s[1])},r),Di(o,L0(s=>E1(e,t,s[0],s[1]),i))}function T1(){return[Je(),Og({Compare:wt}),Je()]}function A1(e,t,n,r,o){return Bs(e,r)?[At(e,n),r,o]:[n,Ig(e,r),At([e,t],o)]}function $1(e){return D0((t,n)=>A1(t[0],t[1],n[0],n[1],n[2]),e,T1())}const N1=Je();function Su(e,t){const n=Fg(ko(s=>s[0],e),{Compare:wt}),r=$1(t),o=r[1],i=r[0];if(n.Equals(o))return[i,Je(),e,Je()];{const s=R0(a=>Bs(a[0],o),e);return[i,s[1],s[0],wd(a=>!Bs(a[0],n),r[2])]}}class M1{constructor(t,n,r){this.OnNext=t,this.OnError=n||(o=>{}),this.OnCompleted=r||(()=>{})}}function I1(e,t){t.Subscribe(new M1(e))}class O1{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 D1(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 F1=class extends O1{};function D1(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 P1{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 F1}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 R1(e,t){console.error(pt(e),t)}function L1(e,t){let n,r=new P1(e);r.AutoReset=!1,n=r,I1(t,n.Elapsed()),n.Enabled=!0,n.Start()}function Eu(e,t,n){mi(r=>{try{r(t)}catch(o){e(o)}},n)}function J(){return Je()}function H1(e){return ye(e)}function j1(e,t,n,r){return ye(o=>{e(at.Delay(()=>at.Bind(J0(t(n)),i=>{const s=i;return s.tag===0&&o(r(s.fields[0])),at.Zero()})))})}function B1(e){L1(1,t=>{bd(e)})}function V1(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 U1(e,t,n,r,o){const i=V1(t,n,r,o);return V(()=>wp(i,e))}function Qd(e,t,n){return U1(e,t,n,0,(r,o)=>r+o)}class Cr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class W1{constructor(t){this.state=new Cr(0,[Ta(new Array(Bl(t,10)),0,Bl(t,10),null),0])}}function G1(e){return new W1(e)}function ku(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 Cr(0,[o,n]):e.state=new Cr(1,[o,n,i]),pt(ze(r,o))}else return}function z1(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];Qt(i,r,t);const s=(r+1)%i.length|0;s===o?e.state=new Cr(1,[q1(e,o,i),i.length,0]):e.state=new Cr(1,[i,s,o])}else{const r=n.fields[1]|0,o=n.fields[0];Qt(o,r,t);const i=(r+1)%o.length|0;e.state=new Cr(1,[o,i,r])}}function q1(e,t,n){return Array.from(V(()=>we(Sp(t,n),V(()=>we(Ep(t,n),V(()=>Td(r=>H(Ke()),Qd(0,1,n.length))))))))}class ja 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 ja(e,t,r=>C1(),n,Ge(r=>{const o=Bn(n)(r);return i=>{o(i)}}),r=>{R1(r[0],r[1])},[r=>!1,r=>{}])}function Y1(e,t){return new ja(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function Z1(e){return e.init}function K1(e,t,n,r,o,i,s){const a=Bn(e)(s.init),l=os(t)(Bn(s.update)),u=os(n)(Bn(s.view)),d=os(r)(Bn(s.setState));return new ja(a,Ge(l),Bn(o)(s.subscribe),Ge(u),Ge(d),s.onError,i(s.termination))}function X1(e,t,n){let r;const o=n.init(t),i=o[0],s=n.subscribe(i),a=n.termination,l=G1(10);let u=!1,d=i,c=N1,p=!1;const h=w=>{p||(z1(l,w),u||(u=!0,g(),u=!1))},f=Bn(e)(h),g=()=>{let w,x=ku(l);for(;!p&&x!=null;){const _=R(x);if(a[0](_))k1(n.onError,c),a[1](d),p=!0;else{const S=n.update(_,d),$=S[0],F=n.subscribe($);n.setState($,f),Eu(P=>{n.onError([po($r("Error handling the message: %A"))(_),P])},f,S[1]),d=$,c=(w=Su(c,F),Cu(n.onError,f,w[0],w[1],w[2],w[3])),x=ku(l)}}};u=!0,n.setState(i,f),Eu(w=>{n.onError([po($r("Error intitializing:")),w])},f,o[1]),c=(r=Su(c,s),Cu(n.onError,f,r[0],r[1],r[2],r[3])),g(),u=!1}function Q1(e,t){X1(Ge(n=>n),e,t)}function J1(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 ew=J1(oi);/**
24
+ * @license React
25
+ * use-sync-external-store-shim.production.min.js
26
+ *
27
+ * Copyright (c) Facebook, Inc. and its affiliates.
28
+ *
29
+ * This source code is licensed under the MIT license found in the
30
+ * LICENSE file in the root directory of this source tree.
31
+ */var Tu;function tw(){if(Tu)return fs;Tu=1;var e=ew;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 h=p(),f=r({inst:{value:h,getSnapshot:p}}),g=f[0].inst,w=f[1];return i(function(){g.value=h,g.getSnapshot=p,l(g)&&w({inst:g})},[c,h,p]),o(function(){return l(g)&&w({inst:g}),c(function(){l(g)&&w({inst:g})})},[c]),s(h),h}function l(c){var p=c.getSnapshot;c=c.value;try{var h=p();return!n(c,h)}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 Au;function nw(){return Au||(Au=1,ds.exports=tw()),ds.exports}var rw=nw();class ow{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=Os(this.state[0]);return Q1(this.arg,Y1((h,f)=>{const g=this.state;this.finalDispatch=f,this.state=[h,g[1],!0,i],h!==g[0]&&d()},K1((h,f)=>{const g=this.cmd;return this.cmd=J(),[this.state[0],g]},(h,f,g)=>h(f)(this.state[0]),Ds(h=>h),Ds(h=>h),Ge(h=>h),h=>[f=>h[0](f)?!0:p&&c,f=>{const g=f;Os(g)?Fe(g):h[1](f)}],o))),()=>{c=!0}}}}function $u(e,t,n){return new ow(e,t,n)}function iw(e){return e.state}function sw(e){return e.subscribe}function aw(e,t,n){return pe(e.arg,t)?!pe(e.dependencies,n):!0}function $o(e,t,n){const r=ae(()=>$u(e,t,n)),o=r[0];aw(o,t,n)&&r[1]($u(e,t,n));const i=rw.useSyncExternalStore(sw(o),()=>iw(o)),s=i[2],a=i[3],l=i[1];return Se(()=>{if(s&&a.length>0){let u=He(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const d=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(d)})}}finally{Fe(u)}Am(a)}},[s,a]),[i[0],l]}class Vs extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function lw(e){return e.tag===1?new Vs(0,[]):new Vs(1,[])}function uw(e,t,n){return e.tag===1?j0(t,n,{Compare:wt}):H0(t,n,{Compare:wt})}class zn 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"]}},Jd=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function cw(){return[new Qo(new Jo(0,[])),ye(e=>{e(new Jd(new zn(0,[void 0])))})]}function dw(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,[])),j1(r=>{B1(r)},e,void 0,r=>new Jd(new zn(1,[r])))]}class fw extends Te{constructor(t){super(),this.UserActivities=t}}class Nu extends Te{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function hw(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:Nr(vn(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function mw(e){return Di(v(Sa(vn(t=>new Nu(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),ko(t=>new Nu(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function pw(e){return new fw(Nr(vn(mw,e),Je()))}class Mu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class gw extends Te{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class No extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class ww extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class yw extends Te{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class ef extends Te{constructor(t,n){super(),this.Column=t,this.Direction=n}}class vw 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 bw 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 _w(e){return e.tag===1?tf(e.fields[0].Data):of()}function xw(e){return e.tag===1?Br(e.fields[0].Data):new wi(1,[])}function Cw(e){const t=Ba(of(),e);return new No([af(gd(e),20),t])}function Mo(e){return e.fields[0][1]}function tf(e){return rf(Mo(e))}function Sw(e){return Va(Mo(e))}function Br(e){return e.fields[0][0]}function Ew(e){const t=Br(e);if(t.tag===0){const n=t.fields[0],r=B0(n.FirstRowIndex,Sw(e));return V0(Rw(n),r)}else return Je()}function nf(e,t){const n=Ba(tf(e),t);return new No([Fw(Br(e),gd(Va(n))),n])}function kw(e){return new No([Br(e),$w(Mo(e))])}function Tw(e){return new No([Ow(Br(e)),Mo(e)])}function Aw(e){return new No([Iw(Br(e)),Mo(e)])}function Ba(e,t){return new ww([e,uw(e.Direction,n=>n.Timestamp,t)])}function Va(e){return e.fields[0][1]}function rf(e){return e.fields[0][0]}function $w(e){return Ba(Nw(rf(e)),Va(e))}function of(){return new ef(new vw,new Vs(0,[]))}function Nw(e){return new ef(e.Column,lw(e.Direction))}function sf(e,t){return~~(e/t)+(e%t===0?0:1)}function ji(e,t,n){if(e<=0)return new wi(1,[]);{const r=Vl(n,sf(e,t))|0,o=(r-1)*t|0;return new wi(0,[new bw(r,o,Vl(o+t-1,e-1),e,t)])}}function af(e,t){return ji(e,t,1)}function Mw(e){if(e.tag===0){const t=e.fields[0];return sf(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function lf(e){return e.tag===0?e.fields[0].CurrentPage<Mw(e):!1}function uf(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Iw(e){const t=uf(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return ji(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Ow(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 ji(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function Fw(e,t){return t<=0?new wi(1,[]):e.tag===0?ji(t,20,e.fields[0].CurrentPage):af(t,20)}function Dw(e){return e.FirstRowIndex+1}function Pw(e){return e.LastRowIndex+1}function Rw(e){return e.LastRowIndex-e.FirstRowIndex+1}let Nn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class Vr extends Te{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class Ua extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Lw(e){if(e.tag===1)return cf(e.fields[0])}function Hw(e){return e.tag===0}function jw(e){return e.tag===1?new Mu(1,[qw(e.fields[0])]):new Mu(0,[])}function cf(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Bw(e){return cf(e)!=null}function Vw(e,t){return new Nn(1,[new Vr(e.ImportHistory,new Ua(1,[t]),nf(e.PaginatedList,wd(n=>hw(n.User,t),e.ImportHistory.UserActivities)))])}function Uw(e){return new Nn(1,[new Vr(e.ImportHistory,new Ua(0,[]),nf(e.PaginatedList,e.ImportHistory.UserActivities))])}function Ww(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,kw(e.PaginatedList))])}function Gw(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,Tw(e.PaginatedList))])}function zw(e){return new Nn(1,[new Vr(e.ImportHistory,e.View,Aw(e.PaginatedList))])}function qw(e){return new gw(e.PaginatedList,Bw(e))}let Sr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Yw(e){let t;return[e.tag===1?new Nn(0,[]):(t=e.fields[0],new Nn(1,[new Vr(t,new Ua(0,[]),Cw(t.UserActivities))])),J()]}function df(e,t){return e.tag===1?t(e.fields[0]):[new Nn(0,[]),J()]}function Zw(e,t){return df(e,n=>[t(n),J()])}function Kw(e,t){const n=r=>Zw(t,r);switch(e.tag){case 1:return n(Uw);case 2:return n(Ww);case 3:return n(Gw);case 4:return n(zw);default:{const r=e.fields[0];return df(t,o=>xa(r)?[t,ye(i=>{i(new Sr(1,[]))})]:[Vw(o,r),J()])}}}function Xw(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(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",E.Children.toArray(Array.from(n))])])))}function Qw(){let e,t,n;return m("div",C(v([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[m("div",C(v([["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",C(v([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[Xw(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 Jw(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(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",E.Children.toArray(Array.from(n))])])))}function Us(e,t){let n,r;return m("svg",C(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(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",E.Children.toArray(Array.from(n))])])))}class Iu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function ey(e){let t,n;const r=Nr(e.Value,"");return m("div",C(v([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[m("div",C(v([["className",Xt(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=Pe(V(()=>{let o;return we(H(m("div",C(v([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(o=[Jw(20,20)],["children",E.Children.toArray(Array.from(o))])])))),V(()=>{let i;return we(H(m("input",C(v([(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 Iu(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),V(()=>{let s;return xa(r)?H(Ke()):H(m("div",C(v([["onClick",a=>{e.ActionHandler(new Iu(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Us(10,10)],["children",E.Children.toArray(Array.from(s))])]))))}))}))})),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}function ty(e){let t,n;const r=e.height,o=e.width;return m("svg",C(v([["fill","none"],["height",r],["width",o],["viewBox","0 0 "+o+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=ye(m("path",C(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",E.Children.toArray(Array.from(t))])])))}function ny(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return m("div",C(v([["className",Xt(" ",Pe(V(()=>we(H("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),V(()=>r.tag===1?H("rotate-180"):H(""))))))],["onClick",o=>{n(void 0)}],(t=[m(ty,{width:10,height:7})],["children",E.Children.toArray(Array.from(t))])])))}function ry(e){const t=e.toggleSortDirection,n=e.props;return m(ny,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function oy(e){let t,n,r,o;const i=m(ry,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return m("div",C(v([["className","flex-none grid grid-cols-7"],(t=[m("div",C(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=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),i],["children",E.Children.toArray(Array.from(n))])]))),m("div",C(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=[m("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",E.Children.toArray(Array.from(r))])]))),m("div",C(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"],(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 Jn(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 en(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 iy(e,t){ht(2,arguments);var n=en(e).getTime(),r=Jn(t);return new Date(n+r)}var sy={};function Bi(){return sy}function ay(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 ly(e){return ht(1,arguments),e instanceof Date||yi(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function uy(e){if(ht(1,arguments),!ly(e)&&typeof e!="number")return!1;var t=en(e);return!isNaN(Number(t))}function cy(e,t){ht(2,arguments);var n=Jn(t);return iy(e,-n)}var dy=864e5;function fy(e){ht(1,arguments);var t=en(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/dy)+1}function vi(e){ht(1,arguments);var t=1,n=en(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 ff(e){ht(1,arguments);var t=en(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 hy(e){ht(1,arguments);var t=ff(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=vi(n);return r}var my=6048e5;function py(e){ht(1,arguments);var t=en(e),n=vi(t).getTime()-hy(t).getTime();return Math.round(n/my)+1}function bi(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=Bi(),c=Jn((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=en(e),h=p.getUTCDay(),f=(h<c?7:0)+h-c;return p.setUTCDate(p.getUTCDate()-f),p.setUTCHours(0,0,0,0),p}function hf(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=en(e),c=d.getUTCFullYear(),p=Bi(),h=Jn((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(!(h>=1&&h<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(c+1,0,h),f.setUTCHours(0,0,0,0);var g=bi(f,t),w=new Date(0);w.setUTCFullYear(c,0,h),w.setUTCHours(0,0,0,0);var x=bi(w,t);return d.getTime()>=g.getTime()?c+1:d.getTime()>=x.getTime()?c:c-1}function gy(e,t){var n,r,o,i,s,a,l,u;ht(1,arguments);var d=Bi(),c=Jn((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=hf(e,t),h=new Date(0);h.setUTCFullYear(p,0,c),h.setUTCHours(0,0,0,0);var f=bi(h,t);return f}var wy=6048e5;function yy(e,t){ht(1,arguments);var n=en(e),r=bi(n,t).getTime()-gy(n,t).getTime();return Math.round(r/wy)+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 Sn={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)}},hr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},vy={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 Sn.y(t,n)},Y:function(t,n,r,o){var i=hf(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=ff(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 Sn.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=yy(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):ke(i,n.length)},I:function(t,n,r){var o=py(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"}):Sn.d(t,n)},D:function(t,n,r){var o=fy(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=hr.noon:o===0?i=hr.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=hr.evening:o>=12?i=hr.afternoon:o>=4?i=hr.morning:i=hr.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 Sn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Sn.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"}):Sn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Sn.s(t,n)},S:function(t,n){return Sn.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 Fu(s);case"XXXX":case"XX":return Hn(s);case"XXXXX":case"XXX":default:return Hn(s,":")}},x:function(t,n,r,o){var i=o._originalDate||t,s=i.getTimezoneOffset();switch(n){case"x":return Fu(s);case"xxxx":case"xx":return Hn(s);case"xxxxx":case"xxx":default:return Hn(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"+Ou(s,":");case"OOOO":default:return"GMT"+Hn(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"+Ou(s,":");case"zzzz":default:return"GMT"+Hn(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 Ou(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 Fu(e,t){if(e%60===0){var n=e>0?"-":"+";return n+ke(Math.abs(e)/60,2)}return Hn(e,t)}function Hn(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 Du=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"})}},mf=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"})}},by=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Du(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}}",Du(o,n)).replace("{{time}}",mf(i,n))},_y={p:mf,P:by},xy=["D","DD"],Cy=["YY","YYYY"];function Sy(e){return xy.indexOf(e)!==-1}function Ey(e){return Cy.indexOf(e)!==-1}function Pu(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 ky={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"}},Ty=function(t,n,r){var o,i=ky[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 Ay={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},$y={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ny={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},My={date:hs({formats:Ay,defaultWidth:"full"}),time:hs({formats:$y,defaultWidth:"full"}),dateTime:hs({formats:Ny,defaultWidth:"full"})},Iy={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oy=function(t,n,r,o){return Iy[t]};function Qr(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 Fy={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Dy={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Py={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"]},Ry={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"]},Ly={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"}},Hy={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"}},jy=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"},By={ordinalNumber:jy,era:Qr({values:Fy,defaultWidth:"wide"}),quarter:Qr({values:Dy,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Qr({values:Py,defaultWidth:"wide"}),day:Qr({values:Ry,defaultWidth:"wide"}),dayPeriod:Qr({values:Ly,defaultWidth:"wide",formattingValues:Hy,defaultFormattingWidth:"wide"})};function Jr(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)?Uy(a,function(c){return c.test(s)}):Vy(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 Vy(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Uy(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Wy(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 Gy=/^(\d+)(th|st|nd|rd)?/i,zy=/\d+/i,qy={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},Yy={any:[/^b/i,/^(a|c)/i]},Zy={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ky={any:[/1/i,/2/i,/3/i,/4/i]},Xy={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},Qy={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]},Jy={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},ev={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]},tv={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},nv={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}},rv={ordinalNumber:Wy({matchPattern:Gy,parsePattern:zy,valueCallback:function(t){return parseInt(t,10)}}),era:Jr({matchPatterns:qy,defaultMatchWidth:"wide",parsePatterns:Yy,defaultParseWidth:"any"}),quarter:Jr({matchPatterns:Zy,defaultMatchWidth:"wide",parsePatterns:Ky,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Jr({matchPatterns:Xy,defaultMatchWidth:"wide",parsePatterns:Qy,defaultParseWidth:"any"}),day:Jr({matchPatterns:Jy,defaultMatchWidth:"wide",parsePatterns:ev,defaultParseWidth:"any"}),dayPeriod:Jr({matchPatterns:tv,defaultMatchWidth:"any",parsePatterns:nv,defaultParseWidth:"any"})},ov={code:"en-US",formatDistance:Ty,formatLong:My,formatRelative:Oy,localize:By,match:rv,options:{weekStartsOn:0,firstWeekContainsDate:1}},iv=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sv=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,av=/^'([^]*?)'?$/,lv=/''/g,uv=/[a-zA-Z]/;function pf(e,t,n){var r,o,i,s,a,l,u,d,c,p,h,f,g,w;ht(2,arguments);var x=String(t),_=Bi(),S=(r=(o=void 0)!==null&&o!==void 0?o:_.locale)!==null&&r!==void 0?r:ov,$=Jn((i=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:_.firstWeekContainsDate)!==null&&s!==void 0?s:(u=_.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 F=Jn((c=(p=(h=(f=void 0)!==null&&f!==void 0?f:void 0)!==null&&h!==void 0?h:_.weekStartsOn)!==null&&p!==void 0?p:(g=_.locale)===null||g===void 0||(w=g.options)===null||w===void 0?void 0:w.weekStartsOn)!==null&&c!==void 0?c:0);if(!(F>=0&&F<=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=en(e);if(!uy(P))throw new RangeError("Invalid time value");var D=ay(P),b=cy(P,D),y={firstWeekContainsDate:$,weekStartsOn:F,locale:S,_originalDate:P},k=x.match(sv).map(function(T){var N=T[0];if(N==="p"||N==="P"){var O=_y[N];return O(T,S.formatLong)}return T}).join("").match(iv).map(function(T){if(T==="''")return"'";var N=T[0];if(N==="'")return cv(T);var O=vy[N];if(O)return Ey(T)&&Pu(T,t,String(e)),Sy(T)&&Pu(T,t,String(e)),O(b,T,S.localize,y);if(N.match(uv))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return T}).join("");return k}function cv(e){var t=e.match(av);return t?t[1].replace(lv,"'"):e}function dv(e){return pf(e,"d MMM, yyyy")}function fv(e){return pf(e,"h:mm a")}function hv(e){let t,n,r,o,i,s,a;return m("div",C(v([["className","grid grid-cols-7"],(t=[m("div",C(v([["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",C(v([["className"," flex flex-col justify-center items-start"],(r=[m("div",C(v([["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:dv(e.Timestamp)})],["children",E.Children.toArray(Array.from(o))])]))),m("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:fv(e.Timestamp)})],["children",E.Children.toArray(Array.from(r))])])))],["children",E.Children.toArray(Array.from(n))])]))),m("div",C(v([["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",C(v([["className","justify-center items-start flex flex-col"],(s=Pe(V(()=>{let l;return we(H(m("div",C(v([["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))])])))),V(()=>{const u=e.User.Email;return u==null?H(Ke()):H(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",C(v([["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 mv(e){const t=ko(n=>m(hv,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 pv(e){let t,n,r,o,i;const s=e.height,a=e.width;return m("svg",C(v([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=v([m("path",C(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)"]]))),m("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),m("path",C(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"]]))),(o=ye(m("linearGradient",C(v([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(i=v([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 gv(){let e;return m("div",C(v([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[m(pv,{width:120,height:120})],["children",E.Children.toArray(Array.from(e))])])))}function wv(){let e,t,n,r;return m("div",C(v([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[m(gv,null),m("div",C(v([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[m("div",C(v([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[m("div",C(v([["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 yv(e){return{Data:Ew(e.Data)}}function vv(e){let t,n;const r=e.props,o=r.tag===1?m(mv,yv(r.fields[0])):m(wv,null);return m("div",C(v([["className","relative h-full grow"],(t=[m("div",C(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",E.Children.toArray([o])]])))],["children",E.Children.toArray(Array.from(t))])])))}class Ru extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function bv(e){let t,n;const r=e.pageChangedHandler,o=e.pagingInfo;return m("div",C(v([["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",C(v([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=Pe(V(()=>{let i,s,a;return we((i=o,i.tag===1?H(m("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=i.fields[0],H((a=v([m("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:Wt(Dw(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(Pw(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))}))))),V(()=>{let l,u,d;return H(m("div",C(v([["className","justify-start items-start gap-3 flex"],(l=[m("button",C(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 Ru(0,[]))}],["disabled",!uf(o)]]))),m("button",C(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 Ru(1,[]))}],["disabled",!lf(o)]])))],["children",E.Children.toArray(Array.from(l))])]))))}))})),["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class Ws extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function _v(e,t){e(t.tag===0?new Ws(2,[]):new Ws(1,[]))}function xv(e){let t,n;const r=e.actionHandler,o=e.props;return m("div",C(v([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[m(oy,new yw(_w(o),()=>{r(new Ws(0,[]))})),m(vv,{props:o}),m(bv,{pagingInfo:xw(o),pageChangedHandler:i=>{_v(r,i)}})],["children",E.Children.toArray(Array.from(n))])])))}function Cv(e,t){t.tag===0?e(new Sr(0,[t.fields[0]])):e(new Sr(1,[]))}function Sv(e,t){switch(t.tag){case 2:{e(new Sr(4,[]));break}case 0:{e(new Sr(2,[]));break}default:e(new Sr(3,[]))}}function Lu(e){let t,n;const r=e.importHistory;let o;const i=Yw(r);o=$o(()=>Ao(()=>i,Kw,(d,c)=>{}),void 0,void 0);const s=o[0],a=o[1];let l;const u=Lw(s);return l={ActionHandler:d=>{Cv(a,d)},Disabled:Hw(s),Value:Rs(u)},m("div",C(v([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[m(Qw,null),m("div",C(v([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[m(ey,l),m(xv,{props:jw(s),actionHandler:d=>{Sv(a,d)}})],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(t))])])))}class Hu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function Ev(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",C(v([["className",Xt(" ",["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:Xt(" ",["w-full h-4 relative rounded",r[1]])})],["children",E.Children.toArray(Array.from(n))])])))}function ju(e){const t=ko(n=>Ev(e,n),v(["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 kv(){let e,t;return m("div",C(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=Di(ye(ju(new Hu(0,[]))),ko(n=>ju(new Hu(1,[])),Pe(Qd(1,1,5)))),["children",E.Children.toArray(Array.from(t))])])))}function Tv(e){const t=_1(e.backendUrl);let n;const r=$o(()=>Ao(cw,(i,s)=>dw(()=>x1(t),i),(i,s)=>{}),void 0,[])[0].View;n=r.tag===2?m(Lu,{importHistory:new A(1,[void 0])}):r.tag===1?m(Lu,{importHistory:new A(0,[pw(r.fields[0])])}):m(kv,null);const o=[m("style",{children:[ba]}),n];return m(Oe,{},...o)}function Av(){ua(e=>m(Tv,e),"apollo-import-workspace-past-history")}function $v(e,t){return V(()=>{const n=new yg([],t);return _p(r=>eg(r,n),e)})}function gf(e,t){return Ed($v(e,t))}class Nv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class Mv extends Te{constructor(t,n,r,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=o}}class Iv 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 Bu(e,t){return new co(e.FirstName,e.LastName,e.Email,e.MobilePhone,vn(n=>n.fields[0],t))}class Ov extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class Fv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class mr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class rn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class Dv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class Pv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class Rv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function Lv(e,t){let n;return new Fv(Gt(r=>new Ov(r),N0(r=>r,gf((n=Gt(r=>ze(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!Ca(r))),{Equals:(r,o)=>r===o,GetHashCode:sr}),{Compare:Mi})))}class wf extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class Hv 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 jv(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([["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 yf(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(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",E.Children.toArray(Array.from(n))])])))}function Wa(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(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",E.Children.toArray(Array.from(n))])])))}class fe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function vf(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 Rn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class eo extends Te{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class Bv extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class ln extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let gr=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 Vv(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 vn(r=>r[0],Aa(r=>fd(td(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(o,i)=>o===i,GetHashCode:sr}),e))}function Uv(e,t){return new Bv(Gt(n=>{const r=n[0];return[r,n[1],fd(r,t,{Equals:pe,GetHashCode:Sm})?new ln(1,[]):new ln(0,[])]},e))}function bf(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 wr(e,t){return an(n=>n,Gt(n=>hd(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,11)))}function Ga(e,t,n,r,o,i,s){let a,l,u;const d=f=>Uv(e,f);let c;c=an(f=>f,[n,r,o,i,s]).length;const h=n!=null?r!=null?o!=null?(a=o,l=n,u=r,new Uo(1,[new Mv(l,u,a,i),vn(f=>new Iv(f),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 gr(new eo(n,d(an(f=>f,[r,o,i,s]))),new eo(r,d(an(f=>f,[n,o,i,s]))),new eo(o,d(an(f=>f,[n,r,i,s]))),new eo(i,d(an(f=>f,[n,r,o,s]))),new eo(s,d(an(f=>f,[n,r,o,i]))),t,e.length,c,e.length-c,h)}function to(e,t,n,r,o){let i,s,a;const l=[r,o];return a=bf(n,l[0],l[1]),Ga(e,(i=n.Preview,i!=null&&pe(i[0],r)?(s=i[0],[s,wr(o,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function no(e,t,n){let r,o;const i=[n,void 0];return o=bf(t,i[0],i[1]),Ga(e,(r=t.Preview,r!=null&&pe(r[0],n)?(r[0],void 0):t.Preview),o[0],o[1],o[2],o[3],o[4])}function _f(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 Wv=e=>t=>_f(e,t);function Gv(e,t){const n=_f(e,t),r=e.Preview;let o;switch(n?r==null?o=2:pe(r[0],t)?(o=1,r[0]):o=2:o=0,o){case 0:return!1;case 1:return!1;default:return!0}}function zv(e,t){let n,r,o,i,s,a,l,u,d;const c=p=>Vv(e,p);return[(n=t==null?(r=c(new fe(0,[])),o=c(new fe(1,[])),i=c(new fe(2,[])),s=c(new fe(3,[])),a=c(new fe(4,[])),l=an(p=>p,[r,o,i,s,a]),u=p=>{let h,f;switch(p!=null?(h=p,l.filter(g=>pe(g,h)).length>1?f=0:f=1):f=1,f){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]),Ga(e,void 0,n[0],n[1],n[2],n[3],n[4])),J()]}function qv(e,t,n,r){let o,i,s,a,l,u,d,c,p,h,f,g,w,x,_,S,$,F,P,D,b;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?f=6:f=15;break}case 2:{r.Email.ColumnIndex!=null?f=7:f=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?f=8:f=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?f=9:f=15;break}default:r.FirstName.ColumnIndex!=null?f=5:f=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(f=11,F=r.LastName.ColumnIndex):f=15;break}case 2:{r.Email.ColumnIndex!=null?(f=12,P=r.Email.ColumnIndex):f=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(f=13,D=r.MobilePhone.ColumnIndex):f=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(f=14,b=r.EmploymentBasis.ColumnIndex):f=15;break}default:r.FirstName.ColumnIndex!=null?(f=10,$=r.FirstName.ColumnIndex):f=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!pe(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(y=>pe(u,y[0])?pe(y[2],new ln(0,[])):!1)?(f=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],w=n.fields[1]):f=15;break}case 2:{d=n.fields[1],!pe(r.Email.ColumnIndex,d)&&r.Email.IncomingFields.fields[0].some(y=>pe(d,y[0])?pe(y[2],new ln(0,[])):!1)?(f=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):f=15;break}case 3:{c=n.fields[1],!pe(r.MobilePhone.ColumnIndex,c)&&r.MobilePhone.IncomingFields.fields[0].some(y=>pe(c,y[0])?pe(y[2],new ln(0,[])):!1)?(f=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],_=n.fields[1]):f=15;break}case 4:{p=n.fields[1],!pe(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(y=>pe(p,y[0])?pe(y[2],new ln(0,[])):!1)?(f=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],S=n.fields[1]):f=15;break}default:h=n.fields[1],!pe(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(y=>pe(h,y[0])?pe(y[2],new ln(0,[])):!1)?(f=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],g=n.fields[1]):f=15}}switch(f){case 0:return[(o=[new fe(0,[]),g],to(e,t,r,o[0],o[1])),J()];case 1:return[(i=[new fe(1,[]),w],to(e,t,r,i[0],i[1])),J()];case 2:return[(s=[new fe(2,[]),x],to(e,t,r,s[0],s[1])),J()];case 3:return[(a=[new fe(3,[]),_],to(e,t,r,a[0],a[1])),J()];case 4:return[(l=[new fe(4,[]),S],to(e,t,r,l[0],l[1])),J()];case 5:return[no(e,r,new fe(0,[])),J()];case 6:return[no(e,r,new fe(1,[])),J()];case 7:return[no(e,r,new fe(2,[])),J()];case 8:return[no(e,r,new fe(3,[])),J()];case 9:return[no(e,r,new fe(4,[])),J()];case 10:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(0,[]),wr($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 11:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(1,[]),wr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 12:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(2,[]),wr(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 13:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(3,[]),wr(D,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];case 14:return[new gr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new fe(4,[]),wr(b,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),J()];default:return[r,J()]}}const xf=typeof document<"u"?B.useLayoutEffect:()=>{};function Yv(e){const t=K(null);return xf(()=>{t.current=e},[e]),be((...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},qn=e=>e&&"window"in e&&e.window===e?e:Io(e).defaultView||window;function Zv(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 Kv(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 Cf(e){let t=null;return()=>(t==null&&(t=e()),t)}const Xv=Cf(function(){return Kv(/^Mac/i)}),Qv=Cf(function(){return Zv(/Android/i)});function Jv(e){return e.mozInputSource===0&&e.isTrusted?!0:Qv()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class eb{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 Sf(e){let t=K({isFocused:!1,observer:null});xf(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=Yv(r=>{e==null||e(r)});return be(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 eb("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 tb(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:o}=e;const i=be(l=>{if(l.target===l.currentTarget)return r&&r(l),o&&o(!1),!0},[r,o]),s=Sf(i),a=be(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,Gs=new Set,fo=new Map,er=!1,zs=!1;const nb={Tab:!0,Escape:!0};function za(e,t){for(let n of Gs)n(e,t)}function rb(e){return!(e.metaKey||!Xv()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function _i(e){er=!0,rb(e)&&(Oo="keyboard",za("keyboard",e))}function $t(e){Oo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(er=!0,za("pointer",e))}function Ef(e){Jv(e)&&(er=!0,Oo="virtual")}function kf(e){e.target===window||e.target===document||(!er&&!zs&&(Oo="virtual",za("virtual",e)),er=!1,zs=!1)}function Tf(){er=!1,zs=!0}function qs(e){if(typeof window>"u"||fo.get(qn(e)))return;const t=qn(e),n=Io(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){er=!0,r.apply(this,arguments)},n.addEventListener("keydown",_i,!0),n.addEventListener("keyup",_i,!0),n.addEventListener("click",Ef,!0),t.addEventListener("focus",kf,!0),t.addEventListener("blur",Tf,!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",()=>{Af(e)},{once:!0}),fo.set(t,{focus:r})}const Af=(e,t)=>{const n=qn(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",Ef,!0),n.removeEventListener("focus",kf,!0),n.removeEventListener("blur",Tf,!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 ob(e){const t=Io(e);let n;return t.readyState!=="loading"?qs(e):(n=()=>{qs(e)},t.addEventListener("DOMContentLoaded",n)),()=>Af(e,n)}typeof document<"u"&&ob();function $f(){return Oo!=="pointer"}const ib=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function sb(e,t,n){var r;const o=typeof window<"u"?qn(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,i=typeof window<"u"?qn(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?qn(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?qn(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof o&&!ib.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&&!nb[n.key])}function ab(e,t,n){qs(),Se(()=>{let r=(o,i)=>{sb(!!(n!=null&&n.isTextInput),o,i)&&e($f())};return Gs.add(r),()=>{Gs.delete(r)}},t)}function lb(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:o}=e,i=K({isFocusWithin:!1}),s=be(u=>{i.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(i.current.isFocusWithin=!1,n&&n(u),o&&o(!1))},[n,o,i]),a=Sf(s),l=be(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 Ys(){xi=!0,setTimeout(()=>{xi=!1},50)}function Vu(e){e.pointerType==="touch"&&Ys()}function ub(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",Vu):document.addEventListener("touchend",Ys),ms++,()=>{ms--,!(ms>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",Vu):document.removeEventListener("touchend",Ys))}}function cb(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(ub,[]);let{hoverProps:l,triggerHoverEnd:u}=te(()=>{let d=(h,f)=>{if(a.pointerType=f,o||f==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let g=h.currentTarget;a.target=g,t&&t({type:"hoverstart",target:g,pointerType:f}),n&&n(!0),s(!0)},c=(h,f)=>{if(a.pointerType="",a.target=null,f==="touch"||!a.isHovered)return;a.isHovered=!1;let g=h.currentTarget;r&&r({type:"hoverend",target:g,pointerType:f}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{xi&&h.pointerType==="mouse"||d(h,h.pointerType)},p.onPointerLeave=h=>{!o&&h.currentTarget.contains(h.target)&&c(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!xi&&d(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!o&&h.currentTarget.contains(h.target)&&c(h,"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 db(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,o=K({isFocused:!1,isFocusVisible:t||$f()}),[i,s]=ae(!1),[a,l]=ae(()=>o.current.isFocused&&o.current.isFocusVisible),u=be(()=>l(o.current.isFocused&&o.current.isFocusVisible),[]),d=be(h=>{o.current.isFocused=h,s(h),u()},[u]);ab(h=>{o.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:c}=tb({isDisabled:r,onFocusChange:d}),{focusWithinProps:p}=lb({isDisabled:!r,onFocusWithinChange:d});return{isFocused:i,isFocusVisible:a,focusProps:r?p:c}}var fb=Object.defineProperty,hb=(e,t,n)=>t in e?fb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ps=(e,t,n)=>(hb(e,typeof t!="symbol"?t+"":t,n),n);let mb=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"}},Kn=new mb;function Ur(e){return Kn.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Vi(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function _n(){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 Vi(()=>{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=_n();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 On(){let[e]=ae(_n);return Se(()=>()=>e.dispose(),[e]),e}let Re=(e,t)=>{Kn.isServer?Se(e,t):yn(e,t)};function Fn(e){let t=K(e);return Re(()=>{t.current=e},[e]),t}let ee=function(e){let t=Fn(e);return B.useCallback((...n)=>t.current(...n),[t])};function pb(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 gb(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function wb({disabled:e=!1}={}){let t=K(null),[n,r]=ae(!1),o=On(),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=Ur(a.currentTarget);o.addEventListener(l,"pointerup",i,!1),o.addEventListener(l,"pointermove",u=>{if(t.current){let d=pb(u);r(gb(d,t.current.getBoundingClientRect()))}},!1),o.addEventListener(l,"pointercancel",i,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:i,onClick:i}}}let yb=Ve(void 0);function qa(){return Ee(yb)}function Zs(...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 Or=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Or||{}),Tn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Tn||{});function et(){let e=bb();return be(t=>vb({mergeRefs:e,...t}),[e])}function vb({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:o,visible:i=!0,name:s,mergeRefs:a}){a=a??_b;let l=Nf(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,h=[];for(let[f,g]of Object.entries(t))typeof g=="boolean"&&(p=!0),g===!0&&h.push(f.replace(/([A-Z])/g,w=>`-${w.toLowerCase()}`));if(p){c["data-headlessui-state"]=h.join(" ");for(let f of h)c[`data-${f}`]=""}}if(i===Oe&&(Object.keys(En(l)).length>0||Object.keys(En(c)).length>0))if(!Pr(d)||Array.isArray(d)&&d.length>1){if(Object.keys(En(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(En(l)).concat(Object.keys(En(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,h=p==null?void 0:p.className,f=typeof h=="function"?(...x)=>Zs(h(...x),l.className):Zs(h,l.className),g=f?{className:f}:{},w=Nf(d.props,En(gs(l,["ref"])));for(let x in c)x in w&&delete c[x];return va(d,Object.assign({},w,c,u,{ref:o(xb(d),u.ref)},g))}return m(i,Object.assign({},gs(l,["ref"]),i!==Oe&&u,i!==Oe&&c),d)}function bb(){let e=K([]),t=be(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 _b(...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 Nf(...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 Mf(...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(wa(e),{displayName:(t=e.displayName)!=null?t:e.name})}function En(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 xb(e){return B.version.split(".")[0]>="19"?e.props.ref:e.ref}function Cb(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 Sb(e){let[t]=ae(e);return t}function If(e={},t=null,n=[]){for(let[r,o]of Object.entries(e))Ff(n,Of(t,r),o);return n}function Of(e,t){return e?e+"["+t+"]":t}function Ff(e,t,n){if(Array.isArray(n))for(let[r,o]of n.entries())Ff(e,Of(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,""]):If(n,t,e)}function Eb(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 kb="span";var Fr=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(Fr||{});function Tb(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:kb,name:"Hidden"})}let wo=qe(Tb),Ab=Ve(null);function $b({children:e}){let t=Ee(Ab);if(!t)return B.createElement(B.Fragment,null,e);let{target:n}=t;return n?Ni(B.createElement(B.Fragment,null,e),n):null}function Nb({data:e,form:t,disabled:n,onReset:r,overrides:o}){let[i,s]=ae(null),a=On();return Se(()=>{if(r&&i)return a.addEventListener(i,"reset",r)},[i,t,r]),B.createElement($b,null,B.createElement(Mb,{setForm:s,formId:t}),If(e).map(([l,u])=>B.createElement(wo,{features:Fr.Hidden,...En({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...o})})))}function Mb({setForm:e,formId:t}){return Se(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:B.createElement(wo,{features:Fr.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let Ib=Ve(void 0);function Df(){return Ee(Ib)}function Ob(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&&Fb(n)?!1:r}function Fb(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Pf=Symbol();function Db(e,t=!0){return Object.assign(e,{[Pf]: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[Pf]))?void 0:n}let Ui=Ve(null);Ui.displayName="DescriptionContext";function Rf(){let e=Ee(Ui);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,Rf),t}return e}function Pb(){var e,t;return(t=(e=Ee(Ui))==null?void 0:e.value)!=null?t:void 0}function Rb(){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 B.createElement(Ui.Provider,{value:o},n.children)},[t])]}let Lb="p";function Hb(e,t){let n=Ft(),r=qa(),{id:o=`headlessui-description-${n}`,...i}=e,s=Rf(),a=it(t);Re(()=>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:Lb,name:s.name||"Description"})}let jb=qe(Hb),Bb=Object.assign(jb,{});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 Wi=Ve(null);Wi.displayName="LabelContext";function Lf(){let e=Ee(Wi);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,Lf),t}return e}function Hf(e){var t,n,r;let o=(n=(t=Ee(Wi))==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 Vb({inherit:e=!1}={}){let t=Hf(),[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 B.createElement(Wi.Provider,{value:a},i.children)},[r])]}let Ub="label";function Wb(e,t){var n;let r=Ft(),o=Lf(),i=Df(),s=qa(),{id:a=`headlessui-label-${r}`,htmlFor:l=i??((n=o.props)==null?void 0:n.htmlFor),passive:u=!1,...d}=e,c=it(t);Re(()=>o.register(a),[a,o.register]);let p=ee(w=>{let x=w.currentTarget;if(x instanceof HTMLLabelElement&&w.preventDefault(),o.props&&"onClick"in o.props&&typeof o.props.onClick=="function"&&o.props.onClick(w),x instanceof HTMLLabelElement){let _=document.getElementById(x.htmlFor);if(_){let S=_.getAttribute("disabled");if(S==="true"||S==="")return;let $=_.getAttribute("aria-disabled");if($==="true"||$==="")return;(_ instanceof HTMLInputElement&&(_.type==="radio"||_.type==="checkbox")||_.role==="radio"||_.role==="checkbox"||_.role==="switch")&&_.click(),_.focus({preventScroll:!0})}}}),h=s||!1,f=te(()=>({...o.slot,disabled:h}),[o.slot,h]),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:f,defaultTag:l?Ub:"div",name:o.name||"Label"})}let Gb=qe(Wb),zb=Object.assign(Gb,{}),qb=Ve(()=>{});function Yb({value:e,children:t}){return B.createElement(qb.Provider,{value:e},t)}function Zb(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 Kb(e=Zb){return be((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 Xb(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Qb(e,t=!1){let[n,r]=ir(()=>({}),{}),o=te(()=>Xb(e),[e,n]);return Re(()=>{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 Jb=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 jf(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 Bf(e){return $i(e.subscribe,e.getSnapshot,e.getSnapshot)}let e_=new Jb(()=>jf(()=>[],{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 Wr(e,t){let n=e_.get(t),r=Ft(),o=Bf(n);if(Re(()=>{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 Ks=new Map,ho=new Map;function Uu(e){var t;let n=(t=ho.get(e))!=null?t:0;return ho.set(e,n+1),n!==0?()=>Wu(e):(Ks.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Wu(e))}function Wu(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=Ks.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,Ks.delete(e))}function Vf(e,{allowed:t,disallowed:n}={}){let r=Wr(e,"inert-others");Re(()=>{var o,i;if(!r)return;let s=_n();for(let l of(o=n==null?void 0:n())!=null?o:[])l&&s.add(Uu(l));let a=(i=t==null?void 0:t())!=null?i:[];for(let l of a){if(!l)continue;let u=Ur(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(Uu(c));d=d.parentElement}}return s.dispose},[r,t,n])}function Uf(e,t,n){let r=Fn(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=_n();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(","),t_=["[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||{}),Xs=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(Xs||{}),n_=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(n_||{});function Wf(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 r_(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(t_)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var Ya=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(Ya||{});function Gf(e,t=0){var n;return e===((n=Ur(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 o_=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(o_||{});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 hn(e){e==null||e.focus({preventScroll:!0})}let i_=["textarea","input"].join(",");function s_(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,i_))!=null?n:!1}function zf(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 a_(e,t){return Er(Wf(),t,{relativeTo:e})}function Er(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?zf(e):e:t&64?r_(e):Wf(e);o.length>0&&s.length>1&&(s=s.filter(h=>!o.some(f=>f!=null&&"current"in f?(f==null?void 0:f.current)===h:f===h))),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 h=l+d;if(t&16)h=(h+c)%c;else{if(h<0)return 3;if(h>=c)return 1}p=s[h],p==null||p.focus(u),d+=a}while(p!==i.activeElement);return t&6&&s_(p)&&p.select(),2}function qf(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function l_(){return/Android/gi.test(window.navigator.userAgent)}function u_(){return qf()||l_()}function ro(e,t,n,r){let o=Fn(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 Yf(e,t,n,r){let o=Fn(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 Gu=30;function Zf(e,t,n){let r=Wr(e,"outside-click"),o=Fn(n),i=be(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(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of c)if(p!==null&&(p.contains(d)||l.composed&&l.composedPath().includes(p)))return;return!Gf(d,Ya.Loose)&&d.tabIndex!==-1&&l.preventDefault(),o.current(l,d)},[o,t]),s=K(null);ro(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),ro(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),ro(r,"click",l=>{u_()||s.current&&(i(l,()=>s.current),s.current=null)},!0);let a=K({x:0,y:0});ro(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),ro(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Gu||Math.abs(u.y-a.current.y)>=Gu))return i(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Yf(r,"blur",l=>i(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Gr(...e){return te(()=>Ur(...e),[...e])}function Kf(e,t,n,r){let o=Fn(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 c_(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 d_(){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 f_(){return qf()?{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=_n();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 h_(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function m_(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let Yn=jf(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:_n(),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:m_(n)},o=[f_(),d_(),h_()];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)}});Yn.subscribe(()=>{let e=Yn.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)&&Yn.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&Yn.dispatch("TEARDOWN",n)}});function p_(e,t,n=()=>({containers:[]})){let r=Bf(Yn),o=t?r.get(t):void 0,i=o?o.count>0:!1;return Re(()=>{if(!(!t||!e))return Yn.dispatch("PUSH",t,n),()=>Yn.dispatch("POP",t,n)},[e,t]),i}function Xf(e,t,n=()=>[document.body]){let r=Wr(e,"scroll-lock");p_(r,t,o=>{var i;return{containers:[...(i=o.containers)!=null?i:[],n]}})}function zu(e){return[e.screenX,e.screenY]}function g_(){let e=K([-1,-1]);return{wasMoved(t){let n=zu(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=zu(t)}}}function w_(e=0){let[t,n]=ae(e),r=be(l=>n(l),[t]),o=be(l=>n(u=>u|l),[t]),i=be(l=>(t&l)===l,[t]),s=be(l=>n(u=>u&~l),[n]),a=be(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:o,hasFlag:i,removeFlag:s,toggleFlag:a}}var y_={},qu,Yu;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((qu=process==null?void 0:y_)==null?void 0:qu.NODE_ENV)==="test"&&typeof((Yu=Element==null?void 0:Element.prototype)==null?void 0:Yu.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 v_=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(v_||{});function Qf(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Jf(e,t,n,r){let[o,i]=ae(n),{hasFlag:s,addFlag:a,removeFlag:l}=w_(e&&o?3:0),u=K(!1),d=K(!1),c=On();return Re(()=>{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),b_(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 h;d.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||i(!1),(h=r==null?void 0:r.end)==null||h.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 b_(e,{prepare:t,run:n,done:r,inFlight:o}){let i=_n();return x_(e,{prepare:t,inFlight:o}),i.nextFrame(()=>{n(),i.requestAnimationFrame(()=>{i.add(__(e,r))})}),i.dispose}function __(e,t){var n,r;let o=_n();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 x_(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 Za(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 Gi(){return typeof window<"u"}function zr(e){return eh(e)?(e.nodeName||"").toLowerCase():"#document"}function Et(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function tn(e){var t;return(t=(eh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function eh(e){return Gi()?e instanceof Node||e instanceof Et(e).Node:!1}function dt(e){return Gi()?e instanceof Element||e instanceof Et(e).Element:!1}function Jt(e){return Gi()?e instanceof HTMLElement||e instanceof Et(e).HTMLElement:!1}function Zu(e){return!Gi()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Et(e).ShadowRoot}function Fo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(o)}function C_(e){return["table","td","th"].includes(zr(e))}function zi(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Ka(e){const t=Xa(),n=dt(e)?zt(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 S_(e){let t=Mn(e);for(;Jt(t)&&!Dr(t);){if(Ka(t))return t;if(zi(t))return null;t=Mn(t)}return null}function Xa(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Dr(e){return["html","body","#document"].includes(zr(e))}function zt(e){return Et(e).getComputedStyle(e)}function qi(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Mn(e){if(zr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Zu(e)&&e.host||tn(e);return Zu(t)?t.host:t}function th(e){const t=Mn(e);return Dr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jt(t)&&Fo(t)?t:th(t)}function yo(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=th(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=Et(o);if(i){const a=Qs(s);return t.concat(s,s.visualViewport||[],Fo(o)?o:[],a&&n?yo(a):[])}return t.concat(o,yo(o,[],n))}function Qs(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function E_(){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 tr=Math.min,ot=Math.max,vo=Math.round,Go=Math.floor,Zt=e=>({x:e,y:e}),k_={left:"right",right:"left",bottom:"top",top:"bottom"},T_={start:"end",end:"start"};function Ku(e,t,n){return ot(e,tr(t,n))}function qr(e,t){return typeof e=="function"?e(t):e}function In(e){return e.split("-")[0]}function Do(e){return e.split("-")[1]}function nh(e){return e==="x"?"y":"x"}function rh(e){return e==="y"?"height":"width"}function nr(e){return["top","bottom"].includes(In(e))?"y":"x"}function oh(e){return nh(nr(e))}function A_(e,t,n){n===void 0&&(n=!1);const r=Do(e),o=oh(e),i=rh(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){const t=Si(e);return[Js(e),t,Js(t)]}function Js(e){return e.replace(/start|end/g,t=>T_[t])}function N_(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 M_(e,t,n,r){const o=Do(e);let i=N_(In(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Js)))),i}function Si(e){return e.replace(/left|right|bottom|top/g,t=>k_[t])}function I_(e){return{top:0,right:0,bottom:0,left:0,...e}}function O_(e){return typeof e!="number"?I_(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 Xu(e,t,n){let{reference:r,floating:o}=e;const i=nr(t),s=oh(t),a=rh(s),l=In(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 h;switch(l){case"top":h={x:d,y:r.y-o.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:c};break;case"left":h={x:r.x-o.width,y:c};break;default:h={x:r.x,y:r.y}}switch(Do(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const F_=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}=Xu(u,r,l),p=r,h={},f=0;for(let g=0;g<a.length;g++){const{name:w,fn:x}=a[g],{x:_,y:S,data:$,reset:F}=await x({x:d,y:c,initialPlacement:r,placement:p,strategy:o,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});d=_??d,c=S??c,h={...h,[w]:{...h[w],...$}},F&&f<=50&&(f++,typeof F=="object"&&(F.placement&&(p=F.placement),F.rects&&(u=F.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):F.rects),{x:d,y:c}=Xu(u,p,l)),g=-1)}return{x:d,y:c,placement:p,strategy:o,middlewareData:h}};async function Yi(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:h=0}=qr(t,e),f=O_(h),w=a[p?c==="floating"?"reference":"floating":c],x=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==="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},F=Ei(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:S,strategy:l}):_);return{top:(x.top-F.top+f.top)/$.y,bottom:(F.bottom-x.bottom+f.bottom)/$.y,left:(x.left-F.left+f.left)/$.x,right:(F.right-x.right+f.right)/$.x}}const D_=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:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:g=!0,...w}=qr(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=In(o),_=nr(a),S=In(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),F=p||(S||!g?[Si(a)]:$_(a)),P=f!=="none";!p&&P&&F.push(...M_(a,g,f,$));const D=[a,...F],b=await Yi(t,w),y=[];let k=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&y.push(b[x]),c){const X=A_(o,s,$);y.push(b[X[0]],b[X[1]])}if(k=[...k,{placement:o,overflows:y}],!y.every(X=>X<=0)){var T,N;const X=(((T=i.flip)==null?void 0:T.index)||0)+1,ce=D[X];if(ce)return{data:{index:X,overflows:k},reset:{placement:ce}};let G=(N=k.filter(U=>U.overflows[0]<=0).sort((U,I)=>U.overflows[1]-I.overflows[1])[0])==null?void 0:N.placement;if(!G)switch(h){case"bestFit":{var O;const U=(O=k.filter(I=>{if(P){const W=nr(I.placement);return W===_||W==="y"}return!0}).map(I=>[I.placement,I.overflows.filter(W=>W>0).reduce((W,L)=>W+L,0)]).sort((I,W)=>I[1]-W[1])[0])==null?void 0:O[0];U&&(G=U);break}case"initialPlacement":G=a;break}if(o!==G)return{reset:{placement:G}}}return{}}}};async function P_(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=In(n),a=Do(n),l=nr(n)==="y",u=["left","top"].includes(s)?-1:1,d=i&&l?-1:1,c=qr(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:f}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof f=="number"&&(h=a==="end"?f*-1:f),l?{x:h*d,y:p*u}:{x:p*u,y:h*d}}const R_=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 P_(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}}}}},L_=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:_}=w;return{x,y:_}}},...l}=qr(e,t),u={x:n,y:r},d=await Yi(t,l),c=nr(In(o)),p=nh(c);let h=u[p],f=u[c];if(i){const w=p==="y"?"top":"left",x=p==="y"?"bottom":"right",_=h+d[w],S=h-d[x];h=Ku(_,h,S)}if(s){const w=c==="y"?"top":"left",x=c==="y"?"bottom":"right",_=f+d[w],S=f-d[x];f=Ku(_,f,S)}const g=a.fn({...t,[p]:h,[c]:f});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[c]:s}}}}}},H_=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}=qr(e,t),d=await Yi(t,u),c=In(o),p=Do(o),h=nr(o)==="y",{width:f,height:g}=i.floating;let w,x;c==="top"||c==="bottom"?(w=c,x=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=c,w=p==="end"?"top":"bottom");const _=g-d.top-d.bottom,S=f-d.left-d.right,$=tr(g-d[w],_),F=tr(f-d[x],S),P=!t.middlewareData.shift;let D=$,b=F;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(b=S),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(D=_),P&&!p){const k=ot(d.left,0),T=ot(d.right,0),N=ot(d.top,0),O=ot(d.bottom,0);h?b=f-2*(k!==0||T!==0?k+T:ot(d.left,d.right)):D=g-2*(N!==0||O!==0?N+O:ot(d.top,d.bottom))}await l({...t,availableWidth:b,availableHeight:D});const y=await s.getDimensions(a.floating);return f!==y.width||g!==y.height?{reset:{rects:!0}}:{}}}};function ih(e){const t=zt(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Jt(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 Qa(e){return dt(e)?e:e.contextElement}function kr(e){const t=Qa(e);if(!Jt(t))return Zt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ih(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 j_=Zt(0);function sh(e){const t=Et(e);return!Xa()||!t.visualViewport?j_:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function B_(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Et(e)?!1:t}function rr(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Qa(e);let s=Zt(1);t&&(r?dt(r)&&(s=kr(r)):s=kr(e));const a=B_(i,n,r)?sh(i):Zt(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),h=r&&dt(r)?Et(r):r;let f=p,g=Qs(f);for(;g&&r&&h!==f;){const w=kr(g),x=g.getBoundingClientRect(),_=zt(g),S=x.left+(g.clientLeft+parseFloat(_.paddingLeft))*w.x,$=x.top+(g.clientTop+parseFloat(_.paddingTop))*w.y;l*=w.x,u*=w.y,d*=w.x,c*=w.y,l+=S,u+=$,f=Et(g),g=Qs(f)}}return Ei({width:d,height:c,x:l,y:u})}function Ja(e,t){const n=qi(e).scrollLeft;return t?t.left+n:rr(tn(e)).left+n}function ah(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:Ja(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function V_(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=tn(r),a=t?zi(t.floating):!1;if(r===s||a&&i)return n;let l={scrollLeft:0,scrollTop:0},u=Zt(1);const d=Zt(0),c=Jt(r);if((c||!c&&!i)&&((zr(r)!=="body"||Fo(s))&&(l=qi(r)),Jt(r))){const h=rr(r);u=kr(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const p=s&&!c&&!i?ah(s,l,!0):Zt(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 U_(e){return Array.from(e.getClientRects())}function W_(e){const t=tn(e),n=qi(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+Ja(e);const a=-n.scrollTop;return zt(r).direction==="rtl"&&(s+=ot(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}function G_(e,t){const n=Et(e),r=tn(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=Xa();(!u||u&&t==="fixed")&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a,y:l}}function z_(e,t){const n=rr(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=Jt(e)?kr(e):Zt(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 Qu(e,t,n){let r;if(t==="viewport")r=G_(e,n);else if(t==="document")r=W_(tn(e));else if(dt(t))r=z_(t,n);else{const o=sh(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ei(r)}function lh(e,t){const n=Mn(e);return n===t||!dt(n)||Dr(n)?!1:zt(n).position==="fixed"||lh(n,t)}function q_(e,t){const n=t.get(e);if(n)return n;let r=yo(e,[],!1).filter(a=>dt(a)&&zr(a)!=="body"),o=null;const i=zt(e).position==="fixed";let s=i?Mn(e):e;for(;dt(s)&&!Dr(s);){const a=zt(s),l=Ka(s);!l&&a.position==="fixed"&&(o=null),(i?!l&&!o:!l&&a.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||Fo(s)&&!l&&lh(e,s))?r=r.filter(d=>d!==s):o=a,s=Mn(s)}return t.set(e,r),r}function Y_(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?zi(t)?[]:q_(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,d)=>{const c=Qu(t,d,o);return u.top=ot(c.top,u.top),u.right=tr(c.right,u.right),u.bottom=tr(c.bottom,u.bottom),u.left=ot(c.left,u.left),u},Qu(t,a,o));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Z_(e){const{width:t,height:n}=ih(e);return{width:t,height:n}}function K_(e,t,n){const r=Jt(t),o=tn(t),i=n==="fixed",s=rr(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const l=Zt(0);if(r||!r&&!i)if((zr(t)!=="body"||Fo(o))&&(a=qi(t)),r){const p=rr(t,!0,i,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else o&&(l.x=Ja(o));const u=o&&!r&&!i?ah(o,a):Zt(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 zt(e).position==="static"}function Ju(e,t){if(!Jt(e)||zt(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return tn(e)===n&&(n=n.ownerDocument.body),n}function uh(e,t){const n=Et(e);if(zi(e))return n;if(!Jt(e)){let o=Mn(e);for(;o&&!Dr(o);){if(dt(o)&&!ws(o))return o;o=Mn(o)}return n}let r=Ju(e,t);for(;r&&C_(r)&&ws(r);)r=Ju(r,t);return r&&Dr(r)&&ws(r)&&!Ka(r)?n:r||S_(e)||n}const X_=async function(e){const t=this.getOffsetParent||uh,n=this.getDimensions,r=await n(e.floating);return{reference:K_(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Q_(e){return zt(e).direction==="rtl"}const J_={convertOffsetParentRelativeRectToViewportRelativeRect:V_,getDocumentElement:tn,getClippingRect:Y_,getOffsetParent:uh,getElementRects:X_,getClientRects:U_,getDimensions:Z_,getScale:kr,isElement:dt,isRTL:Q_};function ch(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ex(e,t){let n=null,r;const o=tn(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:h}=u;if(a||t(),!p||!h)return;const f=Go(c),g=Go(o.clientWidth-(d+p)),w=Go(o.clientHeight-(c+h)),x=Go(d),S={rootMargin:-f+"px "+-g+"px "+-w+"px "+-x+"px",threshold:ot(0,tr(1,l))||1};let $=!0;function F(P){const D=P[0].intersectionRatio;if(D!==l){if(!$)return s();D?s(!1,D):r=setTimeout(()=>{s(!1,1e-7)},1e3)}D===1&&!ch(u,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(F,{...S,root:o.ownerDocument})}catch{n=new IntersectionObserver(F,S)}n.observe(e)}return s(!0),i}function tx(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=Qa(e),d=o||i?[...u?yo(u):[],...yo(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const c=u&&a?ex(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(x=>{let[_]=x;_&&_.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var S;(S=h)==null||S.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let f,g=l?rr(e):null;l&&w();function w(){const x=rr(e);g&&!ch(g,x)&&n(),g=x,f=requestAnimationFrame(w)}return n(),()=>{var x;d.forEach(_=>{o&&_.removeEventListener("scroll",n),i&&_.removeEventListener("resize",n)}),c==null||c(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const ys=Yi,nx=R_,rx=L_,ox=D_,ix=H_,sx=(e,t,n)=>{const r=new Map,o={platform:J_,...n},i={...o.platform,_c:r};return F_(e,t,{...o,platform:i})};var ei=typeof document<"u"?yn: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 dh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ec(e,t){const n=dh(e);return Math.round(t*n)/n}function vs(e){const t=K(e);return ei(()=>{t.current=e}),t}function ax(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,h]=ae(r);ki(p,r)||h(r);const[f,g]=ae(null),[w,x]=ae(null),_=be(I=>{I!==P.current&&(P.current=I,g(I))},[]),S=be(I=>{I!==D.current&&(D.current=I,x(I))},[]),$=i||f,F=s||w,P=K(null),D=K(null),b=K(d),y=l!=null,k=vs(l),T=vs(o),N=vs(u),O=be(()=>{if(!P.current||!D.current)return;const I={placement:t,strategy:n,middleware:p};T.current&&(I.platform=T.current),sx(P.current,D.current,I).then(W=>{const L={...W,isPositioned:N.current!==!1};X.current&&!ki(b.current,L)&&(b.current=L,St(()=>{c(L)}))})},[p,t,n,T,N]);ei(()=>{u===!1&&b.current.isPositioned&&(b.current.isPositioned=!1,c(I=>({...I,isPositioned:!1})))},[u]);const X=K(!1);ei(()=>(X.current=!0,()=>{X.current=!1}),[]),ei(()=>{if($&&(P.current=$),F&&(D.current=F),$&&F){if(k.current)return k.current($,F,O);O()}},[$,F,O,k,y]);const ce=te(()=>({reference:P,floating:D,setReference:_,setFloating:S}),[_,S]),G=te(()=>({reference:$,floating:F}),[$,F]),U=te(()=>{const I={position:n,left:0,top:0};if(!G.floating)return I;const W=ec(G.floating,d.x),L=ec(G.floating,d.y);return a?{...I,transform:"translate("+W+"px, "+L+"px)",...dh(G.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:L}},[n,a,G.floating,d.x,d.y]);return te(()=>({...d,update:O,refs:ce,elements:G,floatingStyles:U}),[d,O,ce,G,U])}const fh=(e,t)=>({...nx(e),options:[e,t]}),lx=(e,t)=>({...rx(e),options:[e,t]}),ux=(e,t)=>({...ox(e),options:[e,t]}),cx=(e,t)=>({...ix(e),options:[e,t]}),hh={...oi},dx=hh.useInsertionEffect,fx=dx||(e=>e());function mh(e){const t=K(()=>{});return fx(()=>{t.current=e}),be(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 ea=typeof document<"u"?yn:Se;let tc=!1,hx=0;const nc=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+hx++;function mx(){const[e,t]=ae(()=>tc?nc():void 0);return ea(()=>{e==null&&t(nc())},[]),Se(()=>{tc=!0},[]),e}const px=hh.useId,gx=px||mx;function wx(){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 yx=Ve(null),vx=Ve(null),bx=()=>{var e;return((e=Ee(yx))==null?void 0:e.id)||null},_x=()=>Ee(vx),xx="data-floating-ui-focusable";function Cx(e){const{open:t=!1,onOpenChange:n,elements:r}=e,o=gx(),i=K({}),[s]=ae(()=>wx()),a=bx()!=null,[l,u]=ae(r.reference),d=mh((h,f,g)=>{i.current.openEvent=h?f:void 0,s.emit("openchange",{open:h,event:f,reason:g,nested:a}),n==null||n(h,f,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 Sx(e){e===void 0&&(e={});const{nodeId:t}=e,n=Cx({...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=_x();ea(()=>{d&&(c.current=d)},[d]);const h=ax({...e,elements:{...o,...a&&{reference:a}}}),f=be(S=>{const $=dt(S)?{getBoundingClientRect:()=>S.getBoundingClientRect(),contextElement:S}:S;l($),h.refs.setReference($)},[h.refs]),g=be(S=>{(dt(S)||S===null)&&(c.current=S,s(S)),(dt(h.refs.reference.current)||h.refs.reference.current===null||S!==null&&!dt(S))&&h.refs.setReference(S)},[h.refs]),w=te(()=>({...h.refs,setReference:g,setPositionReference:f,domReference:c}),[h.refs,g,f]),x=te(()=>({...h.elements,domReference:d}),[h.elements,d]),_=te(()=>({...h,...r,refs:w,elements:x,nodeId:t}),[h,w,x,t,r]);return ea(()=>{r.dataRef.current.floatingContext=_;const S=p==null?void 0:p.nodesRef.current.find($=>$.id===t);S&&(S.context=_)}),te(()=>({...h,context:_,refs:w,elements:x}),[h,w,x,_])}const rc="active",oc="selected";function bs(e,t,n){const r=new Map,o=n==="item";let i=e;if(o&&e){const{[rc]:s,[oc]:a,...l}=e;i=l}return{...n==="floating"&&{tabIndex:-1,[xx]:""},...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&&[rc,oc].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,h=arguments.length,f=new Array(h),g=0;g<h;g++)f[g]=arguments[g];return(p=r.get(u))==null?void 0:p.map(w=>w(...f)).find(w=>w!==void 0)}}}else s[u]=d}),s),{})}}function Ex(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=be(a=>bs(a,e,"reference"),t),i=be(a=>bs(a,e,"floating"),n),s=be(a=>bs(a,e,"item"),r);return te(()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:s}),[o,i,s])}function ic(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const kx=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}=qr(e,t),{rects:c,elements:{floating:p}}=t,h=n.current[s],f=(u==null?void 0:u.current)||p,g=p.clientTop||f.clientTop,w=p.clientTop!==0,x=f.clientTop!==0,_=p===f;if(!h)return{};const S={...t,...await fh(-h.offsetTop-p.clientTop-c.reference.height/2-h.offsetHeight/2-i).fn(t)},$=await ys(ic(S,f.scrollHeight+g+p.clientTop),d),F=await ys(S,{...d,elementContext:"reference"}),P=ot(0,$.top),D=S.y+P,k=(f.scrollHeight>f.clientHeight?T=>T:vo)(ot(0,f.scrollHeight+(w&&_||x?g*2:0)-P-ot(0,$.bottom)));if(f.style.maxHeight=k+"px",f.scrollTop=P,o){const T=f.offsetHeight<h.offsetHeight*tr(a,n.current.length)-1||F.top>=-l||F.bottom>=-l;St(()=>o(T))}return r&&(r.current=await ys(ic({...S,y:D},f.offsetHeight+g+p.clientTop),d)),{y:D}}});function Tx(e,t){const{open:n,elements:r}=e,{enabled:o=!0,overflowRef:i,scrollRef:s,onChange:a}=t,l=mh(a),u=K(!1),d=K(null),c=K(null);Se(()=>{if(!o)return;function h(g){if(g.ctrlKey||!f||i.current==null)return;const w=g.deltaY,x=i.current.top>=-.5,_=i.current.bottom>=-.5,S=f.scrollHeight-f.clientHeight,$=w<0?-1:1,F=w<0?"max":"min";f.scrollHeight<=f.clientHeight||(!x&&w>0||!_&&w<0?(g.preventDefault(),St(()=>{l(P=>P+Math[F](w,S*$))})):/firefox/i.test(E_())&&(f.scrollTop+=w))}const f=(s==null?void 0:s.current)||r.floating;if(n&&f)return f.addEventListener("wheel",h),requestAnimationFrame(()=>{d.current=f.scrollTop,i.current!=null&&(c.current={...i.current})}),()=>{d.current=null,c.current=null,f.removeEventListener("wheel",h)}},[o,n,r.floating,i,s,l]);const p=te(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const h=(s==null?void 0:s.current)||r.floating;if(!(!i.current||!h||!u.current)){if(d.current!==null){const f=h.scrollTop-d.current;(i.current.bottom<-.5&&f<-1||i.current.top<-.5&&f>1)&&St(()=>l(g=>g+f))}requestAnimationFrame(()=>{d.current=h.scrollTop})}}}),[r.floating,l,i,s]);return te(()=>o?{floating:p}:{},[o,p])}let Yr=Ve({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Yr.displayName="FloatingContext";let el=Ve(null);el.displayName="PlacementContext";function Ax(e){return te(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function $x(){return Ee(Yr).setReference}function Nx(){return Ee(Yr).getReferenceProps}function Mx(){let{getFloatingProps:e,slot:t}=Ee(Yr);return be((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function Ix(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Ee(el),n=te(()=>e,[JSON.stringify(e,(o,i)=>{var s;return(s=i==null?void 0:i.outerHTML)!=null?s:i})]);Re(()=>{t==null||t(n??null)},[t,n]);let r=Ee(Yr);return te(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let sc=4;function Ox({children:e,enabled:t=!0}){let[n,r]=ae(null),[o,i]=ae(0),s=K(null),[a,l]=ae(null);Fx(a);let u=t&&n!==null&&a!==null,{to:d="bottom",gap:c=0,offset:p=0,padding:h=0,inner:f}=Dx(n,a),[g,w="center"]=d.split(" ");Re(()=>{u&&i(0)},[u]);let{refs:x,floatingStyles:_,context:S}=Sx({open:u,placement:g==="selection"?w==="center"?"bottom":`bottom-${w}`:w==="center"?`${g}`:`${g}-${w}`,strategy:"absolute",transform:!1,middleware:[fh({mainAxis:g==="selection"?0:c,crossAxis:p}),lx({padding:h}),g!=="selection"&&ux({padding:h}),g==="selection"&&f?kx({...f,padding:h,overflowRef:s,offset:o,minItemsVisible:sc,referenceOverflowThreshold:h,onFallbackChange(T){var N,O;if(!T)return;let X=S.elements.floating;if(!X)return;let ce=parseFloat(getComputedStyle(X).scrollPaddingBottom)||0,G=Math.min(sc,X.childElementCount),U=0,I=0;for(let W of(O=(N=S.elements.floating)==null?void 0:N.childNodes)!=null?O:[])if(W instanceof HTMLElement){let L=W.offsetTop,ie=L+W.clientHeight+ce,Y=X.scrollTop,M=Y+X.clientHeight;if(L>=Y&&ie<=M)G--;else{I=Math.max(0,Math.min(ie,M)-Math.max(L,Y)),U=W.clientHeight;break}}G>=1&&i(W=>{let L=U*G-I+ce;return W>=L?W:L})}}):null,cx({padding:h,apply({availableWidth:T,availableHeight:N,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${T}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${N}px)`})}})].filter(Boolean),whileElementsMounted:tx}),[$=g,F=w]=S.placement.split("-");g==="selection"&&($="selection");let P=te(()=>({anchor:[$,F].filter(Boolean).join(" ")}),[$,F]),D=Tx(S,{overflowRef:s,onChange:i}),{getReferenceProps:b,getFloatingProps:y}=Ex([D]),k=ee(T=>{l(T),x.setFloating(T)});return m(el.Provider,{value:r},m(Yr.Provider,{value:{setFloating:k,setReference:x.setReference,styles:_,getReferenceProps:b,getFloatingProps:y,slot:P}},e))}function Fx(e){Re(()=>{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 Dx(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=On(),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=ac(l,u);return[d,c=>{let p=ph(l);{let h=p.map(f=>window.getComputedStyle(u).getPropertyValue(f));r.requestAnimationFrame(function f(){r.nextFrame(f);let g=!1;for(let[x,_]of p.entries()){let S=window.getComputedStyle(u).getPropertyValue(_);if(h[x]!==S){h[x]=S,g=!0;break}}if(!g)return;let w=ac(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 Re(()=>{let[l,u]=o(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function ph(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,...ph(o)]:[r]}return[]}function ac(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 Px(e,t){let[n,r]=ae(t);return!e&&n!==t&&r(t),e?n:t}let Zi=Ve(null);Zi.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(Zi)}function gh({value:e,children:t}){return B.createElement(Zi.Provider,{value:e},t)}function Rx({children:e}){return B.createElement(Zi.Provider,{value:null},e)}function Lx(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let kn=[];Lx(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||kn[0]===t.target)return;let n=t.target;n=n.closest(Ci),kn.unshift(n??t.target),kn=kn.filter(r=>r!=null&&r.isConnected),kn.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 Hx(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:Hx(e)}}function wh(e){let t=ee(e),n=K(!1);Se(()=>(n.current=!1,()=>{n.current=!0,Vi(()=>{n.current&&t()})}),[t])}function jx(){let e=typeof document>"u";return"useSyncExternalStore"in oi?(t=>t.useSyncExternalStore)(oi)(()=>()=>{},()=>!1,()=>!e):!1}function Ro(){let e=jx(),[t,n]=ae(Kn.isHandoffComplete);return t&&Kn.isHandoffComplete===!1&&n(!1),Se(()=>{t!==!0&&n(!0)},[t]),Se(()=>Kn.handoff(),[]),e?!1:t}let yh=Ve(!1);function Bx(){return Ee(yh)}function lc(e){return B.createElement(yh.Provider,{value:e.force},e.children)}function Vx(e){let t=Bx(),n=Ee(bh),r=Gr(e),[o,i]=ae(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(Kn.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 vh=Oe,Ux=qe(function(e,t){let n=e,r=K(null),o=it(Db(c=>{r.current=c}),t),i=Gr(r),s=Vx(r),[a]=ae(()=>{var c;return Kn.isServer?null:(c=i==null?void 0:i.createElement("div"))!=null?c:null}),l=Ee(ta),u=Ro();Re(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Re(()=>{if(a&&l)return l.register(a)},[l,a]),wh(()=>{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:Ni(d({ourProps:{ref:o},theirProps:n,slot:{},defaultTag:vh,name:"Portal"}),a):null});function Wx(e,t){let n=it(t),{enabled:r=!0,...o}=e,i=et();return r?B.createElement(Ux,{...o,ref:n}):i({ourProps:{ref:n},theirProps:o,slot:{},defaultTag:vh,name:"Portal"})}let Gx=Oe,bh=Ve(null);function zx(e,t){let{target:n,...r}=e,o={ref:it(t)},i=et();return B.createElement(bh.Provider,{value:n},i({ourProps:o,theirProps:r,defaultTag:Gx,name:"Popover.Group"}))}let ta=Ve(null);function qx(){let e=Ee(ta),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 B.createElement(ta.Provider,{value:o},i)},[o])]}let Yx=qe(Wx),_h=qe(zx),xh=Object.assign(Yx,{Group:_h});function Zx(e,t=typeof document<"u"?document.defaultView:null,n){let r=Wr(e,"escape");Kf(t,"keydown",o=>{r&&(o.defaultPrevented||o.key===Ye.Escape&&n(o))})}function Kx(){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 Re(()=>{if(!t)return;function o(i){r(i.matches)}return t.addEventListener("change",o),()=>t.removeEventListener("change",o)},[t]),n}function Xx({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Gr(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 Ch=Ve(null);function uc({children:e,node:t}){let[n,r]=ae(null),o=Sh(t??n);return B.createElement(Ch.Provider,{value:o},e,o===null&&B.createElement(wo,{features:Fr.Hidden,ref:i=>{var s,a;if(i){for(let l of(a=(s=Ur(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 Sh(e=null){var t;return(t=Ee(Ch))!=null?t:e}function tl(){let e=K(!1);return Re(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var ao=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ao||{});function Qx(){let e=K(0);return Yf(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Eh(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 Jx="div";var Un=(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))(Un||{});function e2(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=Gr(n);o2(a,{ownerDocument:u});let d=i2(a,{ownerDocument:u,container:n,initialFocus:o,initialFocusFallback:i});s2(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:d});let c=Qx(),p=ee(_=>{let S=n.current;S&&($=>$())(()=>{gt(c.current,{[ao.Forwards]:()=>{Er(S,Vt.First,{skipElements:[_.relatedTarget,i]})},[ao.Backwards]:()=>{Er(S,Vt.Last,{skipElements:[_.relatedTarget,i]})}})})}),h=Wr(!!(a&2),"focus-trap#tab-lock"),f=On(),g=K(!1),w={ref:r,onKeyDown(_){_.key=="Tab"&&(g.current=!0,f.requestAnimationFrame(()=>{g.current=!1}))},onBlur(_){if(!(a&4))return;let S=Eh(s);n.current instanceof HTMLElement&&S.add(n.current);let $=_.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(kh(S,$)||(g.current?Er(n.current,gt(c.current,{[ao.Forwards]:()=>Vt.Next,[ao.Backwards]:()=>Vt.Previous})|Vt.WrapAround,{relativeTo:_.target}):_.target instanceof HTMLElement&&hn(_.target)))}},x=et();return B.createElement(B.Fragment,null,h&&B.createElement(wo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Fr.Focusable}),x({ourProps:w,theirProps:l,defaultTag:Jx,name:"FocusTrap"}),h&&B.createElement(wo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:Fr.Focusable}))}let t2=qe(e2),n2=Object.assign(t2,{features:Un});function r2(e=!0){let t=K(kn.slice());return Za(([n],[r])=>{r===!0&&n===!1&&Vi(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=kn.slice())},[e,kn,t]),ee(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function o2(e,{ownerDocument:t}){let n=!!(e&8),r=r2(n);Za(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&hn(r())},[n]),wh(()=>{n&&hn(r())})}function i2(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:o}){let i=K(null),s=Wr(!!(e&1),"focus-trap#initial-focus"),a=tl();return Za(()=>{if(e===0)return;if(!s){o!=null&&o.current&&hn(o.current);return}let l=n.current;l&&Vi(()=>{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)hn(r.current);else{if(e&16){if(Er(l,Vt.First|Vt.AutoFocus)!==Xs.Error)return}else if(Er(l,Vt.First)!==Xs.Error)return;if(o!=null&&o.current&&(hn(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 s2(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:o}){let i=tl(),s=!!(e&4);Kf(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!i.current)return;let l=Eh(r);n.current instanceof HTMLElement&&l.add(n.current);let u=o.current;if(!u)return;let d=a.target;d&&d instanceof HTMLElement?kh(l,d)?(o.current=d,hn(d)):(a.preventDefault(),a.stopPropagation(),hn(u)):hn(o.current)},!0)}function kh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Th(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:$h)!==Oe||B.Children.count(e.children)===1}let Ki=Ve(null);Ki.displayName="TransitionContext";var a2=(e=>(e.Visible="visible",e.Hidden="hidden",e))(a2||{});function l2(){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}function u2(){let e=Ee(Xi);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Xi=Ve(null);Xi.displayName="NestingContext";function Qi(e){return"children"in e?Qi(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Ah(e,t){let n=Fn(e),r=K([]),o=tl(),i=On(),s=ee((h,f=Tn.Hidden)=>{let g=r.current.findIndex(({el:w})=>w===h);g!==-1&&(gt(f,{[Tn.Unmount](){r.current.splice(g,1)},[Tn.Hidden](){r.current[g].state="hidden"}}),i.microTask(()=>{var w;!Qi(r)&&o.current&&((w=n.current)==null||w.call(n))}))}),a=ee(h=>{let f=r.current.find(({el:g})=>g===h);return f?f.state!=="visible"&&(f.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,Tn.Unmount)}),l=K([]),u=K(Promise.resolve()),d=K({enter:[],leave:[]}),c=ee((h,f,g)=>{l.current.splice(0),t&&(t.chains.current[f]=t.chains.current[f].filter(([w])=>w!==h)),t==null||t.chains.current[f].push([h,new Promise(w=>{l.current.push(w)})]),t==null||t.chains.current[f].push([h,new Promise(w=>{Promise.all(d.current[f].map(([x,_])=>_)).then(()=>w())})]),f==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>g(f)):g(f)}),p=ee((h,f,g)=>{Promise.all(d.current[f].splice(0).map(([w,x])=>x)).then(()=>{var w;(w=l.current.shift())==null||w()}).then(()=>g(f))});return te(()=>({children:r,register:a,unregister:s,onStart:c,onStop:p,wait:u,chains:d}),[a,s,r,c,p,d,u])}let $h=Oe,Nh=Or.RenderStrategy;function c2(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:h,leaveFrom:f,leaveTo:g,...w}=e,[x,_]=ae(null),S=K(null),$=Th(e),F=it(...$?[S,t,_]:t===null?[]:[t]),P=(n=w.unmount)==null||n?Tn.Unmount:Tn.Hidden,{show:D,appear:b,initial:y}=l2(),[k,T]=ae(D?"visible":"hidden"),N=u2(),{register:O,unregister:X}=N;Re(()=>O(S),[O,S]),Re(()=>{if(P===Tn.Hidden&&S.current){if(D&&k!=="visible"){T("visible");return}return gt(k,{hidden:()=>X(S),visible:()=>O(S)})}},[k,S,O,X,D,P]);let ce=Ro();Re(()=>{if($&&ce&&k==="visible"&&S.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[S,k,ce,$]);let G=y&&!b,U=b&&D&&y,I=K(!1),W=Ah(()=>{I.current||(T("hidden"),X(S))},N),L=ee(Me=>{I.current=!0;let Q=Me?"enter":"leave";W.onStart(S,Q,me=>{me==="enter"?i==null||i():me==="leave"&&(a==null||a())})}),ie=ee(Me=>{let Q=Me?"enter":"leave";I.current=!1,W.onStop(S,Q,me=>{me==="enter"?s==null||s():me==="leave"&&(l==null||l())}),Q==="leave"&&!Qi(W)&&(T("hidden"),X(S))});Se(()=>{$&&o||(L(D),ie(D))},[D,$,o]);let Y=!(!o||!$||!ce||G),[,M]=Jf(Y,x,D,{start:L,end:ie}),q=En({ref:F,className:((r=Zs(w.className,U&&u,U&&d,M.enter&&u,M.enter&&M.closed&&d,M.enter&&!M.closed&&c,M.leave&&h,M.leave&&!M.closed&&f,M.leave&&M.closed&&g,!M.transition&&D&&p))==null?void 0:r.trim())||void 0,...Qf(M)}),ne=0;k==="visible"&&(ne|=ft.Open),k==="hidden"&&(ne|=ft.Closed),M.enter&&(ne|=ft.Opening),M.leave&&(ne|=ft.Closing);let Ae=et();return B.createElement(Xi.Provider,{value:W},B.createElement(gh,{value:ne},Ae({ourProps:q,theirProps:w,defaultTag:$h,features:Nh,visible:k==="visible",name:"Transition.Child"})))}function d2(e,t){let{show:n,appear:r=!1,unmount:o=!0,...i}=e,s=K(null),a=Th(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=Ah(()=>{n||c("hidden")}),[h,f]=ae(!0),g=K([n]);Re(()=>{h!==!1&&g.current[g.current.length-1]!==n&&(g.current.push(n),f(!1))},[g,n]);let w=te(()=>({show:n,appear:r,initial:h}),[n,r,h]);Re(()=>{n?c("visible"):!Qi(p)&&s.current!==null&&c("hidden")},[n,p]);let x={unmount:o},_=ee(()=>{var F;h&&f(!1),(F=e.beforeEnter)==null||F.call(e)}),S=ee(()=>{var F;h&&f(!1),(F=e.beforeLeave)==null||F.call(e)}),$=et();return B.createElement(Xi.Provider,{value:p},B.createElement(Ki.Provider,{value:w},$({ourProps:{...x,as:Oe,children:B.createElement(Mh,{ref:l,...x,...i,beforeEnter:_,beforeLeave:S})},theirProps:{},defaultTag:Oe,features:Nh,visible:d==="visible",name:"Transition"})))}function f2(e,t){let n=Ee(Ki)!==null,r=Po()!==null;return B.createElement(B.Fragment,null,!n&&r?B.createElement(na,{ref:t,...e}):B.createElement(Mh,{ref:t,...e}))}let na=qe(d2),Mh=qe(c2),nl=qe(f2),h2=Object.assign(na,{Child:nl,Root:na});var m2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(m2||{}),p2=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(p2||{});let g2={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},rl=Ve(null);rl.displayName="DialogContext";function Ji(e){let t=Ee(rl);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ji),n}return t}function w2(e,t){return gt(t.type,g2,e,t)}let cc=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 h=Po();o===void 0&&h!==null&&(o=(h&ft.Open)===ft.Open);let f=K(null),g=it(f,t),w=Gr(f),x=o?0:1,[_,S]=ir(w2,{titleId:null,descriptionId:null,panelRef:Ai()}),$=ee(()=>i(!1)),F=ee(ie=>S({type:0,id:ie})),P=Ro()?x===0:!1,[D,b]=qx(),y={get current(){var ie;return(ie=_.panelRef.current)!=null?ie:f.current}},k=Sh(),{resolveContainers:T}=Xx({mainTreeNode:k,portals:D,defaultContainers:[y]}),N=h!==null?(h&ft.Closing)===ft.Closing:!1;Vf(u||N?!1:P,{allowed:ee(()=>{var ie,Y;return[(Y=(ie=f.current)==null?void 0:ie.closest("[data-headlessui-portal]"))!=null?Y:null]}),disallowed:ee(()=>{var ie;return[(ie=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?ie:null]})}),Zf(P,T,ie=>{ie.preventDefault(),$()}),Zx(P,w==null?void 0:w.defaultView,ie=>{ie.preventDefault(),ie.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),Xf(u||N?!1:P,w,T),Uf(P,f,$);let[O,X]=Rb(),ce=te(()=>[{dialogState:x,close:$,setTitleId:F,unmount:d},_],[x,_,$,F,d]),G=te(()=>({open:x===0}),[x]),U={ref:g,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:x===0?!0:void 0,"aria-labelledby":_.titleId,"aria-describedby":O,unmount:d},I=!Kx(),W=Un.None;P&&!u&&(W|=Un.RestoreFocus,W|=Un.TabLock,l&&(W|=Un.AutoFocus),I&&(W|=Un.InitialFocus));let L=et();return B.createElement(Rx,null,B.createElement(lc,{force:!0},B.createElement(xh,null,B.createElement(rl.Provider,{value:ce},B.createElement(_h,{target:f},B.createElement(lc,{force:!1},B.createElement(X,{slot:G},B.createElement(b,null,B.createElement(n2,{initialFocus:s,initialFocusFallback:f,containers:T,features:W},B.createElement(Yb,{value:$},L({ourProps:U,theirProps:c,slot:G,defaultTag:y2,features:v2,visible:x===0,name:"Dialog"})))))))))))}),y2="div",v2=Or.RenderStrategy|Or.Static;function b2(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?B.createElement(uc,null,B.createElement(h2,{show:r,transition:n,unmount:o.unmount},B.createElement(cc,{ref:t,...o}))):B.createElement(uc,null,B.createElement(cc,{ref:t,open:r,...o}))}let _2="div";function x2(e,t){let n=Ft(),{id:r=`headlessui-dialog-panel-${n}`,transition:o=!1,...i}=e,[{dialogState:s,unmount:a},l]=Ji("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},h=o?nl:Oe,f=o?{unmount:a}:{},g=et();return B.createElement(h,{...f},g({ourProps:p,theirProps:i,slot:d,defaultTag:_2,name:"Dialog.Panel"}))}let C2="div";function S2(e,t){let{transition:n=!1,...r}=e,[{dialogState:o,unmount:i}]=Ji("Dialog.Backdrop"),s=te(()=>({open:o===0}),[o]),a={ref:t,"aria-hidden":!0},l=n?nl:Oe,u=n?{unmount:i}:{},d=et();return B.createElement(l,{...u},d({ourProps:a,theirProps:r,slot:s,defaultTag:C2,name:"Dialog.Backdrop"}))}let E2="h2";function k2(e,t){let n=Ft(),{id:r=`headlessui-dialog-title-${n}`,...o}=e,[{dialogState:i,setTitleId:s}]=Ji("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:E2,name:"Dialog.Title"})}let T2=qe(b2),A2=qe(x2),$2=qe(S2),N2=qe(k2),Ih=Object.assign(T2,{Panel:A2,Title:N2,Description:Bb});function M2(e,t){let n=K({left:0,top:0});if(Re(()=>{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 dc=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function fc(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 dc.test(s)&&(s=s.replace(dc,"")),s}function I2(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():fc(i).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return fc(e).trim()}function O2(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=I2(r).trim().toLowerCase();return t.current=o,n.current=i,i})}var F2=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(F2||{}),D2=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(D2||{}),P2=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(P2||{}),R2=(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))(R2||{});function Cs(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=zf(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 L2={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:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((r=c.current)==null?void 0:r.previousElementSibling)===h.current||((o=h.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:h=>h.id,resolveDisabled:h=>h.dataRef.current.disabled});if(p!==null){let h=e.options[p].dataRef.current.domRef;if(((i=c.current)==null?void 0:i.nextElementSibling)===h.current||((s=h.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}},ol=Ve(null);ol.displayName="ListboxActionsContext";function es(e){let t=Ee(ol);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,es),n}return t}let ts=Ve(null);ts.displayName="ListboxDataContext";function Lo(e){let t=Ee(ts);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 H2(e,t){return gt(t.type,L2,e,t)}let j2=Oe;function B2(e,t){var n;let r=qa(),{value:o,defaultValue:i,form:s,name:a,onChange:l,by:u,invalid:d=!1,disabled:c=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:f=!1,...g}=e;const w=p?"horizontal":"vertical";let x=it(t),_=Sb(i),[S=h?[]:void 0,$]=Cb(o,l,_),[F,P]=ir(H2,{dataRef:Ai(),listboxState:f?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:f}),D=K({static:!1,hold:!1}),b=K(new Map),y=Kb(u),k=be(j=>gt(T.mode,{1:()=>S.some(ue=>y(ue,j)),0:()=>y(S,j)}),[S]),T=te(()=>({...F,value:S,disabled:c,invalid:d,mode:h?1:0,orientation:w,compare:y,isSelected:k,optionsPropsRef:D,listRef:b}),[S,c,d,h,F,b]);Re(()=>{F.dataRef.current=T},[T]);let N=T.listboxState===0;Zf(N,[T.buttonElement,T.optionsElement],(j,ue)=>{var oe;P({type:1}),Gf(ue,Ya.Loose)||(j.preventDefault(),(oe=T.buttonElement)==null||oe.focus())});let O=te(()=>({open:T.listboxState===0,disabled:c,invalid:d,value:S}),[T,c,S,d]),X=ee(j=>{let ue=T.options.find(oe=>oe.id===j);ue&&ie(ue.dataRef.current.value)}),ce=ee(()=>{if(T.activeOptionIndex!==null){let{dataRef:j,id:ue}=T.options[T.activeOptionIndex];ie(j.current.value),P({type:2,focus:Xe.Specific,id:ue})}}),G=ee(()=>P({type:0})),U=ee(()=>P({type:1})),I=On(),W=ee((j,ue,oe)=>{I.dispose(),I.microTask(()=>j===Xe.Specific?P({type:2,focus:Xe.Specific,id:ue,trigger:oe}):P({type:2,focus:j,trigger:oe}))}),L=ee((j,ue)=>(P({type:5,id:j,dataRef:ue}),()=>P({type:6,id:j}))),ie=ee(j=>gt(T.mode,{0(){return $==null?void 0:$(j)},1(){let ue=T.value.slice(),oe=ue.findIndex(ve=>y(ve,j));return oe===-1?ue.push(j):ue.splice(oe,1),$==null?void 0:$(ue)}})),Y=ee(j=>P({type:3,value:j})),M=ee(()=>P({type:4})),q=ee(j=>{P({type:7,element:j})}),ne=ee(j=>{P({type:8,element:j})}),Ae=te(()=>({onChange:ie,registerOption:L,goToOption:W,closeListbox:U,openListbox:G,selectActiveOption:ce,selectOption:X,search:Y,clearSearch:M,setButtonElement:q,setOptionsElement:ne}),[]),[Me,Q]=Vb({inherit:!0}),me={ref:x},de=be(()=>{if(_!==void 0)return $==null?void 0:$(_)},[$,_]),le=et();return B.createElement(Q,{value:Me,props:{htmlFor:(n=T.buttonElement)==null?void 0:n.id},slot:{open:T.listboxState===0,disabled:c}},B.createElement(Ox,null,B.createElement(ol.Provider,{value:Ae},B.createElement(ts.Provider,{value:T},B.createElement(gh,{value:gt(T.listboxState,{0:ft.Open,1:ft.Closed})},a!=null&&S!=null&&B.createElement(Nb,{disabled:c,data:{[a]:S},form:s,onReset:de}),le({ourProps:me,theirProps:g,slot:O,defaultTag:j2,name:"Listbox"}))))))}let V2="button";function U2(e,t){var n;let r=Lo("Listbox.Button"),o=es("Listbox.Button"),i=Ft(),s=Df(),{id:a=s||`headlessui-listbox-button-${i}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...d}=e,c=it(t,$x(),o.setButtonElement),p=Nx(),h=ee(T=>{switch(T.key){case Ye.Enter:Eb(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}}),f=ee(T=>{switch(T.key){case Ye.Space:T.preventDefault();break}}),g=ee(T=>{var N;if(Ob(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()),x=Hf([a]),_=Pb(),{isFocusVisible:S,focusProps:$}=db({autoFocus:u}),{isHovered:F,hoverProps:P}=cb({isDisabled:l}),{pressed:D,pressProps:b}=wb({disabled:l}),y=te(()=>({open:r.listboxState===0,active:D||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:F,focus:S,autofocus:u}),[r.listboxState,r.value,l,F,S,D,r.invalid,u]),k=Mf(p(),{ref:c,id:a,type:c_(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":x,"aria-describedby":_,disabled:l||void 0,autoFocus:u,onKeyDown:h,onKeyUp:f,onKeyPress:w,onClick:g},$,P,b);return et()({ourProps:k,theirProps:d,slot:y,defaultTag:V2,name:"Listbox.Button"})}let Oh=Ve(!1),W2="div",G2=Or.RenderStrategy|Or.Static;function z2(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=Ax(s),[p,h]=ae(null);c&&(a=!0);let f=Lo("Listbox.Options"),g=es("Listbox.Options"),w=Gr(f.optionsElement),x=Po(),[_,S]=Jf(u,p,x!==null?(x&ft.Open)===ft.Open:f.listboxState===0);Uf(_,f.buttonElement,g.closeListbox);let $=f.__demoMode?!1:l&&f.listboxState===0;Xf($,w);let F=f.__demoMode?!1:l&&f.listboxState===0;Vf(F,{allowed:be(()=>[f.buttonElement,f.optionsElement],[f.buttonElement,f.optionsElement])});let P=f.listboxState!==0,D=M2(P,f.buttonElement)?!1:_,b=_&&f.listboxState===1,y=Px(b,f.value),k=ee(M=>f.compare(y,M)),T=te(()=>{var M;if(c==null||!((M=c==null?void 0:c.to)!=null&&M.includes("selection")))return null;let q=f.options.findIndex(ne=>k(ne.dataRef.current.value));return q===-1&&(q=0),q},[c,f.options]),N=(()=>{if(c==null)return;if(T===null)return{...c,inner:void 0};let M=Array.from(f.listRef.current.values());return{...c,inner:{listRef:{current:M},index:T}}})(),[O,X]=Ix(N),ce=Mx(),G=it(t,c?O:null,g.setOptionsElement,h),U=On();Se(()=>{var M;let q=f.optionsElement;q&&f.listboxState===0&&q!==((M=Ur(q))==null?void 0:M.activeElement)&&(q==null||q.focus({preventScroll:!0}))},[f.listboxState,f.optionsElement]);let I=ee(M=>{var q,ne;switch(U.dispose(),M.key){case Ye.Space:if(f.searchQuery!=="")return M.preventDefault(),M.stopPropagation(),g.search(M.key);case Ye.Enter:if(M.preventDefault(),M.stopPropagation(),f.activeOptionIndex!==null){let{dataRef:Ae}=f.options[f.activeOptionIndex];g.onChange(Ae.current.value)}f.mode===0&&(St(()=>g.closeListbox()),(q=f.buttonElement)==null||q.focus({preventScroll:!0}));break;case gt(f.orientation,{vertical:Ye.ArrowDown,horizontal:Ye.ArrowRight}):return M.preventDefault(),M.stopPropagation(),g.goToOption(Xe.Next);case gt(f.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()),(ne=f.buttonElement)==null||ne.focus({preventScroll:!0});return;case Ye.Tab:M.preventDefault(),M.stopPropagation(),St(()=>g.closeListbox()),a_(f.buttonElement,M.shiftKey?Vt.Previous:Vt.Next);break;default:M.key.length===1&&(g.search(M.key),U.setTimeout(()=>g.clearSearch(),350));break}}),W=(n=f.buttonElement)==null?void 0:n.id,L=te(()=>({open:f.listboxState===0}),[f.listboxState]),ie=Mf(c?ce():{},{id:i,ref:G,"aria-activedescendant":f.activeOptionIndex===null||(r=f.options[f.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":f.mode===1?!0:void 0,"aria-labelledby":W,"aria-orientation":f.orientation,onKeyDown:I,role:"listbox",tabIndex:f.listboxState===0?0:void 0,style:{...d.style,...X,"--button-width":Qb(f.buttonElement,!0).width},...Qf(S)}),Y=et();return B.createElement(xh,{enabled:a?e.static||_:!1},B.createElement(ts.Provider,{value:f.mode===1?f:{...f,isSelected:k}},Y({ourProps:ie,theirProps:d,slot:L,defaultTag:W2,features:G2,visible:D,name:"Listbox.Options"})))}let q2="div";function Y2(e,t){let n=Ft(),{id:r=`headlessui-listbox-option-${n}`,disabled:o=!1,value:i,...s}=e,a=Ee(Oh)===!0,l=Lo("Listbox.Option"),u=es("Listbox.Option"),d=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,c=l.isSelected(i),p=K(null),h=O2(p),f=Fn({disabled:o,value:i,domRef:p,get textValue(){return h()}}),g=it(t,p,y=>{y?l.listRef.current.set(r,y):l.listRef.current.delete(r)});Re(()=>{if(!l.__demoMode&&l.listboxState===0&&d&&l.activationTrigger!==0)return _n().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]),Re(()=>{if(!a)return u.registerOption(r,f)},[f,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}))}),x=ee(()=>{if(o)return u.goToOption(Xe.Nothing);u.goToOption(Xe.Specific,r)}),_=g_(),S=ee(y=>{_.update(y),!o&&(d||u.goToOption(Xe.Specific,r,0))}),$=ee(y=>{_.wasMoved(y)&&(o||d||u.goToOption(Xe.Specific,r,0))}),F=ee(y=>{_.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]),D=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:x,onPointerEnter:S,onMouseEnter:S,onPointerMove:$,onMouseMove:$,onPointerLeave:F,onMouseLeave:F},b=et();return!c&&a?null:b({ourProps:D,theirProps:s,slot:P,defaultTag:q2,name:"Listbox.Option"})}let Z2=Oe;function K2(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 B.createElement(Oh.Provider,{value:!0},u({ourProps:i,theirProps:{...o,children:B.createElement(B.Fragment,null,r&&l?r:n)},slot:a,defaultTag:Z2,name:"ListboxSelectedOption"}))}let X2=qe(B2),Fh=qe(U2),Q2=zb,Dh=qe(z2),Ph=qe(Y2),J2=qe(K2),eC=Object.assign(X2,{Button:Fh,Label:Q2,Options:Dh,Option:Ph,SelectedOption:J2}),mn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function il(e){return m(Ih,lr(e,1))}class sl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function al(e){return m(Ih.Panel,lr(e,1))}class ll extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function ul(e){return m($2,lr(e,1))}function cl(e,t){let n;return m("svg",C(v([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",E.Children.toArray(Array.from(n))])])))}function tC(e,t){let n,r,o,i,s;return il(v([new mn(3,[e]),new mn(4,[t]),new mn(5,[[ul(ye(new ll(2,["fixed inset-0 bg-gray-500/50"]))),m("div",C(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[al(ye(new sl(2,[[m("div",C(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[m("div",C(v([["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",C(v([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(i=[cl(24,24)],["children",E.Children.toArray(Array.from(i))])])))],["children",E.Children.toArray(Array.from(o))])]))),m("div",C(v([["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 Rh(e,t){let n;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=v([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 nC(e){return m(eC,lr(e,1))}class hc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function rC(e){return m(Fh,lr(e,1))}class oC extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function iC(e,t){return m(Dh,lr(e,1),...t)}class oo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function sC(e){return m(Ph,lr(e,1))}function aC(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([["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 io extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function so(e,t,n,r,o,i,s,a,l){let u,d,c,p,h,f,g;const w=o.fields[0],x=u0(vn(_=>_[1].fields[0],c0(_=>hd(_.fields[0],w),r)));return m("div",C(v([["key",It(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[m("div",C(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(d=[m("div",C(Pe(V(()=>we(H(["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`]),V(()=>{let _;return H((_=Pe(V(()=>we(H(m("div",{className:"text-sm font-medium leading-tight",children:vf(e)})),V(()=>H(t?m("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ke()))))),["children",E.Children.toArray(Array.from(_))]))}))))))],["children",E.Children.toArray(Array.from(d))])]))),m("div",C(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(c=[Rh(16,12)],["children",E.Children.toArray(Array.from(c))])]))),m("div",C(v([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[nC(v([new Ss(0,[x]),new Ss(1,[_=>{To(S=>{s(S[0])},Sa(Aa(S=>S[1].fields[0]===_?pe(S[2],new ln(0,[])):!1,w)))}]),new Ss(2,[[m("div",C(v([["className","relative w-full"],(h=[rC(Pe(V(()=>we(H(new hc(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`])),V(()=>{let _;return H(new hc(1,[[m("span",C(Pe(V(()=>{const S=r!=null?[x,""]:n?["Select a field","text-red-900"]:["Select a field","text-gray-500"];return we(H(["className",`${S[1]} col-start-1 row-start-1 truncate pr-6`]),V(()=>H(["children",S[0]])))})))),m("span",C(v([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(_=[aC(20,20)],["children",E.Children.toArray(Array.from(_))])])))]]))}))))),iC(Pe(V(()=>H(new oC(`z-10 absolute ${i.tag===1?"-mt-[226px]":"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`)))),Pe(V(()=>Td(_=>{const S=_[2],$=_[1].fields[0];return H(sC(v([new oo(0,[Wt(_[0].fields[0])]),new oo(1,[$]),new oo(2,[pe(S,new ln(1,[]))]),new oo(3,["relative select-none"]),new oo(4,[F=>[m("span",{className:"px-4 py-2 block truncate "+(S.tag===1?"text-gray-700 opacity-50 cursor-not-allowed":F.active?"bg-primary-600 text-white":(F.selected,"text-gray-700")),children:$})]])])))},w))))],["children",E.Children.toArray(Array.from(h))])])))]])]))],["children",E.Children.toArray(Array.from(p))])]))),m("div",C(v([(f="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",f]),(g=[m("button",C(Pe(V(()=>we(H(["children","Clear"]),V(()=>we(a==null?H(["className","opacity-50 cursor-not-allowed"]):H(["className","cursor-pointer"]),V(()=>{const _=a;if(_==null)return Wl();{const S=_;return H(["onClick",$=>{S()}])}})))))))),m("button",C(Pe(V(()=>we(H(["children","Preview"]),V(()=>we(l==null?H(["className","opacity-50 cursor-not-allowed"]):H(["className","cursor-pointer"]),V(()=>{const _=l;if(_==null)return Wl();{const S=_;return H(["onClick",$=>{S()}])}}))))))))],["children",E.Children.toArray(Array.from(g))])])))],["children",E.Children.toArray(Array.from(u))])])))}function lC(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(v([["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 Lh(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=ye(m("path",C(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",E.Children.toArray(Array.from(n))])])))}function uC(e,t){let n,r,o,i,s,a,l;return m("div",C(v([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[m("div",C(v([(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",C(v([["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 “${vf(e)}”`})],["children",E.Children.toArray(Array.from(i))])]))),m("div",C(v([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[m("div",C(v([["className","self-stretch flex-col justify-center items-start flex"],(a=dd((u,d)=>m("div",C(Pe(V(()=>we(H(["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`]),V(()=>{let c;return H((c=Pe(V(()=>{const p=Ca(d);return H(p?m("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):m("div",{className:"grow shrink text-gray-700 text-sm font-medium 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",C(v([["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 cC(){let e,t,n;return m("div",C(v([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[jv(20,20),m("div",C(v([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[m("div",C(v([["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 dC(){let e,t;return m("div",C(v([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[yf(16,15),m("div",C(v([["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 fC(){let e,t,n;return m("div",C(v([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(e=[m("span",C(v([["className","text-emerald-700"],(t=[Wa(20,20)],["children",E.Children.toArray(Array.from(t))])]))),m("div",C(v([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(n=[m("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:"All destination fields have been mapped. You’re good to go."})],["children",E.Children.toArray(Array.from(n))])])))],["children",E.Children.toArray(Array.from(e))])])))}function hC(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=zv(a,l);u=$o(()=>Ao(()=>d,(S,$)=>qv(a,s,S,$),(S,$)=>{}),void 0,[]);const c=u[0],p=u[1],h=E.useState(!1),f=h[1],g=E.useState(!1),w=g[0],x=S=>{if(Wv(c)(S))return()=>{p(new Rn(1,[S]))}},_=S=>{if(Gv(c,S))return()=>{p(new Rn(2,[S]))}};return m("div",C(v([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[tC(h[0],()=>{f(!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",C(v([["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=>{f(!0)},type:"button",children:E.Children.toArray(["What is mapping and why is it important?"])})],["children",E.Children.toArray(Array.from(n))])]))),m("div",C(v([["className","justify-start items-start gap-12 inline-flex"],(r=Pe(V(()=>{let S;return we(H(m("div",C(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(S=Pe(V(()=>we(l==null?H(cC()):H(Ke()),V(()=>we(w&&c.Status.tag===0?H(dC()):H(Ke()),V(()=>{let $,F,P,D,b,y,k,T;return H(m("div",C(v([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[m("div",C(v([(F="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",F]),(P=[m("div",C(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(D=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),m("div",C(Pe(V(()=>we(H(["className",`${c.NumberOfDestinationFieldsMapped===5?"bg-emerald-100 text-emerald-800":"bg-blue-100 text-blue-800"} px-2.5 py-0.5 rounded-[10px] justify-center items-center flex`]),V(()=>{let N;return H((N=[m("div",{className:"text-center text-xs font-medium leading-none",children:`${c.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",E.Children.toArray(Array.from(N))]))}))))))],["children",E.Children.toArray(Array.from(D))])]))),m("div",{className:"w-5 h-5 px-3 py-3.5"}),m("div",C(v([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(b=[m("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),m("div",C(v([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(y=[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(y))])])))],["children",E.Children.toArray(Array.from(b))])])))],["children",E.Children.toArray(Array.from(P))])]))),m("div",C(v([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[m("div",C(ye((T=Pe(V(()=>we(H(so(new fe(0,[]),!0,w,c.FirstName.ColumnIndex,c.FirstName.IncomingFields,new io(0,[]),N=>{let O;p((O=[new fe(0,[]),N],new Rn(0,[O[0],O[1]])))},x(new fe(0,[])),_(new fe(0,[])))),V(()=>we(H(so(new fe(1,[]),!0,w,c.LastName.ColumnIndex,c.LastName.IncomingFields,new io(0,[]),N=>{let O;p((O=[new fe(1,[]),N],new Rn(0,[O[0],O[1]])))},x(new fe(1,[])),_(new fe(1,[])))),V(()=>we(H(so(new fe(2,[]),!0,w,c.Email.ColumnIndex,c.Email.IncomingFields,new io(0,[]),N=>{let O;p((O=[new fe(2,[]),N],new Rn(0,[O[0],O[1]])))},x(new fe(2,[])),_(new fe(2,[])))),V(()=>we(H(so(new fe(3,[]),!1,w,c.MobilePhone.ColumnIndex,c.MobilePhone.IncomingFields,new io(0,[]),N=>{let O;p((O=[new fe(3,[]),N],new Rn(0,[O[0],O[1]])))},x(new fe(3,[])),_(new fe(3,[])))),V(()=>we(H(so(new fe(4,[]),!1,w,c.EmploymentBasis.ColumnIndex,c.EmploymentBasis.IncomingFields,new io(1,[]),N=>{let O;p((O=[new fe(4,[]),N],new Rn(0,[O[0],O[1]])))},x(new fe(4,[])),_(new fe(4,[])))),V(()=>{let N,O,X,ce,G,U;return we(c.NumberOfIncomingFieldsDiscarded===0?H(Ke()):H(m("div",C(v([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(N=[m("div",C(v([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(O=[m("div",C(v([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(X=[lC(14,14),m("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",E.Children.toArray(Array.from(X))])]))),m("div",C(v([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(ce=[Rh(16,12)],["children",E.Children.toArray(Array.from(ce))])]))),m("div",C(v([["className","flex-col justify-start items-start gap-2 inline-flex"],(G=[m("div",C(v([["className","w-[218px] pl-3 items-center inline-flex"],(U=[m("div",C(Pe(V(()=>we(H(["className","text-gray-500 text-sm font-medium"]),V(()=>{const I=c.NumberOfIncomingFieldsDiscarded|0;return H(I===1?["children","Remaining 1 unused field"]:["children",`Remaining ${I} unused fields`])}))))))],["children",E.Children.toArray(Array.from(U))])])))],["children",E.Children.toArray(Array.from(G))])])))],["children",E.Children.toArray(Array.from(O))])])))],["children",E.Children.toArray(Array.from(N))])])))),V(()=>{let I;return H(m("div",C(v([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(I=Pe(V(()=>we(c.NumberOfDestinationFieldsMapped===5?H(fC()):H(Ke()),V(()=>{let W,L,ie,Y,M,q,ne,Ae,Me;return H(m("div",C(v([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(W=[m("div",C(v([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(L=[m("div",C(v([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(ie=[m("div",C(v([["className","grow shrink basis-0 text-right"],(Y=[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(Y))])])))],["children",E.Children.toArray(Array.from(ie))])]))),m("div",C(v([["className","justify-start items-center gap-2 flex"],(M=[m("button",C(v([(q="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",q]),["onClick",Q=>{o(c.Status)}],(ne=[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(ne))])]))),m("button",C(v([(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 me=c.Status;me.tag===0?g[1](!0):i([me.fields[0],me.fields[1]])}],(Me=[m("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Lh(13,8)],["children",E.Children.toArray(Array.from(Me))])])))],["children",E.Children.toArray(Array.from(M))])])))],["children",E.Children.toArray(Array.from(L))])])))],["children",E.Children.toArray(Array.from(W))])]))))})))),["children",E.Children.toArray(Array.from(I))])]))))}))})))))))))))),["children",E.Children.toArray(Array.from(T))]))))],["children",E.Children.toArray(Array.from(k))])])))],["children",E.Children.toArray(Array.from($))])]))))})))))),["children",E.Children.toArray(Array.from(S))])])))),V(()=>{const $=c.Preview;return $==null?H(Ke()):H(uC($[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 Ln=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}};function mC(e,t,n,r){let o,i,s,a,l,u;return m("div",C(v([["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",C(v([["className","justify-start items-start gap-12 inline-flex"],(i=[m("div",C(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(s=[m("div",C(v([["className","justify-start items-center gap-2 flex"],(a=[m("button",C(v([(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 pC(e,t,n,r,o,i){let s,a,l,u,d,c;return m("div",C(v([["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",C(v([["className","justify-start items-start gap-12 inline-flex"],(a=[m("div",C(v([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(l=[m("div",C(v([["className","justify-start items-center gap-2 flex"],(u=[m("button",C(v([(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))])])))}class on extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class Zn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var ti={exports:{}};/* @license
36
+ Papa Parse
37
+ v5.5.1
38
+ https://github.com/mholt/PapaParse
39
+ License: MIT
40
+ */var gC=ti.exports,mc;function wC(){return mc||(mc=1,function(e,t){((n,r)=>{e.exports=r()})(gC,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(b){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=F(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,b),this.parseChunk=function(y,k){var T=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<T){let O=this._config.newline;O||(N=this._config.quoteChar||'"',O=this._handle.guessLineEndings(y,N)),y=[...y.split(O).slice(T)].join(O)}this.isFirstChunk&&D(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(D(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||!D(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){D(this._config.error)?this._config.error(y):s&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:y,finished:!1})}}function c(b){var y;(b=b||{}).chunkSize||(b.chunkSize=u.RemoteChunkSize),d.call(this,b),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(O){this._chunkError(O.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(b){(b=b||{}).chunkSize||(b.chunkSize=u.LocalChunkSize),d.call(this,b);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,O=(this._config.chunkSize&&(O=Math.min(this._start+this._config.chunkSize,this._input.size),N=k.call(N,this._start,O)),y.readAsText(N,this._config.encoding));T||this._chunkLoaded({target:{result:O}})},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 h(b){var y;d.call(this,b=b||{}),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 f(b){d.call(this,b=b||{});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(O){this._streamError(O)}},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(b){var y,k,T,N,O=Math.pow(2,53),X=-O,ce=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,G=/^((\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,W=0,L=!1,ie=!1,Y=[],M={data:[],errors:[],meta:{}};function q(Q){return b.skipEmptyLines==="greedy"?Q.join("").trim()==="":Q.length===1&&Q[0].length===0}function ne(){if(M&&T&&(Me("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),T=!1),b.skipEmptyLines&&(M.data=M.data.filter(function(j){return!q(j)})),Ae()){let j=function(ue,oe){D(b.transformHeader)&&(ue=b.transformHeader(ue,oe)),Y.push(ue)};var le=j;if(M)if(Array.isArray(M.data[0])){for(var Q=0;Ae()&&Q<M.data.length;Q++)M.data[Q].forEach(j);M.data.splice(0,1)}else M.data.forEach(j)}function me(j,ue){for(var oe=b.header?{}:[],ve=0;ve<j.length;ve++){var Le=ve,ge=j[ve],ge=((Tt,Ue)=>(tt=>(b.dynamicTypingFunction&&b.dynamicTyping[tt]===void 0&&(b.dynamicTyping[tt]=b.dynamicTypingFunction(tt)),(b.dynamicTyping[tt]||b.dynamicTyping)===!0))(Tt)?Ue==="true"||Ue==="TRUE"||Ue!=="false"&&Ue!=="FALSE"&&((tt=>{if(ce.test(tt)&&(tt=parseFloat(tt),X<tt&&tt<O))return 1})(Ue)?parseFloat(Ue):G.test(Ue)?new Date(Ue):Ue===""?null:Ue):Ue)(Le=b.header?ve>=Y.length?"__parsed_extra":Y[ve]:Le,ge=b.transform?b.transform(ge,Le):ge);Le==="__parsed_extra"?(oe[Le]=oe[Le]||[],oe[Le].push(ge)):oe[Le]=ge}return b.header&&(ve>Y.length?Me("FieldMismatch","TooManyFields","Too many fields: expected "+Y.length+" fields but parsed "+ve,W+ue):ve<Y.length&&Me("FieldMismatch","TooFewFields","Too few fields: expected "+Y.length+" fields but parsed "+ve,W+ue)),oe}var de;M&&(b.header||b.dynamicTyping||b.transform)&&(de=1,!M.data.length||Array.isArray(M.data[0])?(M.data=M.data.map(me),de=M.data.length):M.data=me(M.data,0),b.header&&M.meta&&(M.meta.fields=Y),W+=de)}function Ae(){return b.header&&Y.length===0}function Me(Q,me,de,le){Q={type:Q,code:me,message:de},le!==void 0&&(Q.row=le),M.errors.push(Q)}D(b.step)&&(N=b.step,b.step=function(Q){M=Q,Ae()?ne():(ne(),M.data.length!==0&&(I+=Q.data.length,b.preview&&I>b.preview?k.abort():(M.data=M.data[0],N(M,U))))}),this.parse=function(Q,me,de){var le=b.quoteChar||'"',le=(b.newline||(b.newline=this.guessLineEndings(Q,le)),T=!1,b.delimiter?D(b.delimiter)&&(b.delimiter=b.delimiter(Q),M.meta.delimiter=b.delimiter):((le=((j,ue,oe,ve,Le)=>{var ge,Tt,Ue,tt;Le=Le||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var Dn=0;Dn<Le.length;Dn++){for(var nn,st=Le[Dn],xn=0,We=0,Pt=0,qt=(Ue=void 0,new x({comments:ve,delimiter:st,newline:ue,preview:10}).parse(j)),Cn=0;Cn<qt.data.length;Cn++)oe&&q(qt.data[Cn])?Pt++:(nn=qt.data[Cn].length,We+=nn,Ue===void 0?Ue=nn:0<nn&&(xn+=Math.abs(nn-Ue),Ue=nn));0<qt.data.length&&(We/=qt.data.length-Pt),(Tt===void 0||xn<=Tt)&&(tt===void 0||tt<We)&&1.99<We&&(Tt=xn,ge=st,tt=We)}return{successful:!!(b.delimiter=ge),bestDelimiter:ge}})(Q,b.newline,b.skipEmptyLines,b.comments,b.delimitersToGuess)).successful?b.delimiter=le.bestDelimiter:(T=!0,b.delimiter=u.DefaultDelimiter),M.meta.delimiter=b.delimiter),F(b));return b.preview&&b.header&&le.preview++,y=Q,k=new x(le),M=k.parse(y,me,de),ne(),L?{meta:{paused:!0}}:M||{meta:{paused:!1}}},this.paused=function(){return L},this.pause=function(){L=!0,k.abort(),y=D(b.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 ie},this.abort=function(){ie=!0,k.abort(),M.meta.aborted=!0,D(b.complete)&&b.complete(M),y=""},this.guessLineEndings=function(j,le){j=j.substring(0,1048576);var le=new RegExp(w(le)+"([^]*?)"+w(le),"gm"),de=(j=j.replace(le,"")).split("\r"),le=j.split(`
41
+ `),j=1<le.length&&le[0].length<de[0].length;if(de.length===1||j)return`
42
+ `;for(var ue=0,oe=0;oe<de.length;oe++)de[oe][0]===`
43
+ `&&ue++;return ue>=de.length/2?`\r
44
+ `:"\r"}}function w(b){return b.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(b){var y=(b=b||{}).delimiter,k=b.newline,T=b.comments,N=b.step,O=b.preview,X=b.fastMode,ce=null,G=b.quoteChar==null?'"':b.quoteChar,U=G;if(b.escapeChar!==void 0&&(U=b.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,W=!1;this.parse=function(L,ie,Y){if(typeof L!="string")throw new Error("Input must be a string");var M=L.length,q=y.length,ne=k.length,Ae=T.length,Me=D(N),Q=[],me=[],de=[],le=I=0;if(!L)return st();if(X||X!==!1&&L.indexOf(G)===-1){for(var j=L.split(k),ue=0;ue<j.length;ue++){if(de=j[ue],I+=de.length,ue!==j.length-1)I+=k.length;else if(Y)return st();if(!T||de.substring(0,Ae)!==T){if(Me){if(Q=[],Ue(de.split(y)),xn(),W)return st()}else Ue(de.split(y));if(O&&O<=ue)return Q=Q.slice(0,O),st(!0)}}return st()}for(var oe=L.indexOf(y,I),ve=L.indexOf(k,I),Le=new RegExp(w(U)+w(G),"g"),ge=L.indexOf(G,I);;)if(L[I]===G)for(ge=I,I++;;){if((ge=L.indexOf(G,ge+1))===-1)return Y||me.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:Q.length,index:I}),Dn();if(ge===M-1)return Dn(L.substring(I,ge).replace(Le,G));if(G===U&&L[ge+1]===U)ge++;else if(G===U||ge===0||L[ge-1]!==U){oe!==-1&&oe<ge+1&&(oe=L.indexOf(y,ge+1));var Tt=tt((ve=ve!==-1&&ve<ge+1?L.indexOf(k,ge+1):ve)===-1?oe:Math.min(oe,ve));if(L.substr(ge+1+Tt,q)===y){de.push(L.substring(I,ge).replace(Le,G)),L[I=ge+1+Tt+q]!==G&&(ge=L.indexOf(G,I)),oe=L.indexOf(y,I),ve=L.indexOf(k,I);break}if(Tt=tt(ve),L.substring(ge+1+Tt,ge+1+Tt+ne)===k){if(de.push(L.substring(I,ge).replace(Le,G)),nn(ge+1+Tt+ne),oe=L.indexOf(y,I),ge=L.indexOf(G,I),Me&&(xn(),W))return st();if(O&&Q.length>=O)return st(!0);break}me.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:Q.length,index:I}),ge++}}else if(T&&de.length===0&&L.substring(I,I+Ae)===T){if(ve===-1)return st();I=ve+ne,ve=L.indexOf(k,I),oe=L.indexOf(y,I)}else if(oe!==-1&&(oe<ve||ve===-1))de.push(L.substring(I,oe)),I=oe+q,oe=L.indexOf(y,I);else{if(ve===-1)break;if(de.push(L.substring(I,ve)),nn(ve+ne),Me&&(xn(),W))return st();if(O&&Q.length>=O)return st(!0)}return Dn();function Ue(We){Q.push(We),le=I}function tt(We){var Pt=0;return Pt=We!==-1&&(We=L.substring(ge+1,We))&&We.trim()===""?We.length:Pt}function Dn(We){return Y||(We===void 0&&(We=L.substring(I)),de.push(We),I=M,Ue(de),Me&&xn()),st()}function nn(We){I=We,Ue(de),de=[],ve=L.indexOf(k,I)}function st(We){if(b.header&&!ie&&Q.length){var Pt=Q[0],qt={},Cn=new Set(Pt);let dl=!1;for(let ur=0;ur<Pt.length;ur++){let Yt=Pt[ur];if(qt[Yt=D(b.transformHeader)?b.transformHeader(Yt,ur):Yt]){let Zr,fl=qt[Yt];for(;Zr=Yt+"_"+fl,fl++,Cn.has(Zr););Cn.add(Zr),Pt[ur]=Zr,qt[Yt]++,dl=!0,(ce=ce===null?{}:ce)[Zr]=Yt}else qt[Yt]=1,Pt[ur]=Yt;Cn.add(Yt)}dl&&console.warn("Duplicate headers found and renamed.")}return{data:Q,errors:me,meta:{delimiter:y,linebreak:k,aborted:W,truncated:!!We,cursor:le+(ie||0),renamedHeaders:ce}}}function xn(){N(st()),Q=[],me=[]}},this.abort=function(){W=!0},this.getCharIndex=function(){return I}}function _(b){var y=b.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(D(k.userStep)){for(var O=0;O<y.results.data.length&&(k.userStep({data:y.results.data[O],errors:y.results.errors,meta:y.results.meta},N),!T);O++);delete y.results}else D(k.userChunk)&&(k.userChunk(y.results,N,y.file),delete y.results)}y.finished&&!T&&S(y.workerId,y.results)}function S(b,y){var k=a[b];D(k.userComplete)&&k.userComplete(y),k.terminate(),delete a[b]}function $(){throw new Error("Not implemented.")}function F(b){if(typeof b!="object"||b===null)return b;var y,k=Array.isArray(b)?[]:{};for(y in b)k[y]=F(b[y]);return k}function P(b,y){return function(){b.apply(y,arguments)}}function D(b){return typeof b=="function"}return u.parse=function(b,y){var k=(y=y||{}).dynamicTyping||!1;if(D(k)&&(y.dynamicTypingFunction=k,k={}),y.dynamicTyping=k,y.transform=!!D(y.transform)&&y.transform,!y.worker||!u.WORKERS_SUPPORTED)return k=null,u.NODE_STREAM_INPUT,typeof b=="string"?(b=(T=>T.charCodeAt(0)!==65279?T:T.slice(1))(b),k=new(y.download?c:h)(y)):b.readable===!0&&D(b.read)&&D(b.on)?k=new f(y):(r.File&&b instanceof File||b instanceof Object)&&(k=new p(y)),k.stream(b);(k=(()=>{var T;return!!u.WORKERS_SUPPORTED&&(T=(()=>{var N=r.URL||r.webkitURL||null,O=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; ","(",O,")();"],{type:"text/javascript"})))})(),(T=new r.Worker(T)).onmessage=_,T.id=l++,a[T.id]=T)})()).userStep=y.step,k.userChunk=y.chunk,k.userComplete=y.complete,k.userError=y.error,y.step=D(y.step),y.chunk=D(y.chunk),y.complete=D(y.complete),y.error=D(y.error),delete y.worker,k.postMessage({input:b,config:y,workerId:k.id})},u.unparse=function(b,y){var k=!1,T=!0,N=",",O=`\r
48
+ `,X='"',ce=X+X,G=!1,U=null,I=!1,W=((()=>{if(typeof y=="object"){if(typeof y.delimiter!="string"||u.BAD_DELIMITERS.filter(function(Y){return y.delimiter.indexOf(Y)!==-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"||(G=y.skipEmptyLines),typeof y.newline=="string"&&(O=y.newline),typeof y.quoteChar=="string"&&(X=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&&(ce=y.escapeChar+X),y.escapeFormulae instanceof RegExp?I=y.escapeFormulae:typeof y.escapeFormulae=="boolean"&&y.escapeFormulae&&(I=/^[=+\-@\t\r].*$/)}})(),new RegExp(w(X),"g"));if(typeof b=="string"&&(b=JSON.parse(b)),Array.isArray(b)){if(!b.length||Array.isArray(b[0]))return L(null,b,G);if(typeof b[0]=="object")return L(U||Object.keys(b[0]),b,G)}else if(typeof b=="object")return typeof b.data=="string"&&(b.data=JSON.parse(b.data)),Array.isArray(b.data)&&(b.fields||(b.fields=b.meta&&b.meta.fields||U),b.fields||(b.fields=Array.isArray(b.data[0])?b.fields:typeof b.data[0]=="object"?Object.keys(b.data[0]):[]),Array.isArray(b.data[0])||typeof b.data[0]=="object"||(b.data=[b.data])),L(b.fields||[],b.data||[],G);throw new Error("Unable to serialize unrecognized input");function L(Y,M,q){var ne="",Ae=(typeof Y=="string"&&(Y=JSON.parse(Y)),typeof M=="string"&&(M=JSON.parse(M)),Array.isArray(Y)&&0<Y.length),Me=!Array.isArray(M[0]);if(Ae&&T){for(var Q=0;Q<Y.length;Q++)0<Q&&(ne+=N),ne+=ie(Y[Q],Q);0<M.length&&(ne+=O)}for(var me=0;me<M.length;me++){var de=(Ae?Y:M[me]).length,le=!1,j=Ae?Object.keys(M[me]).length===0:M[me].length===0;if(q&&!Ae&&(le=q==="greedy"?M[me].join("").trim()==="":M[me].length===1&&M[me][0].length===0),q==="greedy"&&Ae){for(var ue=[],oe=0;oe<de;oe++){var ve=Me?Y[oe]:oe;ue.push(M[me][ve])}le=ue.join("").trim()===""}if(!le){for(var Le=0;Le<de;Le++){0<Le&&!j&&(ne+=N);var ge=Ae&&Me?Y[Le]:Le;ne+=ie(M[me][ge],Le)}me<M.length-1&&(!q||0<de&&!j)&&(ne+=O)}}return ne}function ie(Y,M){var q,ne;return Y==null?"":Y.constructor===Date?JSON.stringify(Y).slice(1,25):(ne=!1,I&&typeof Y=="string"&&I.test(Y)&&(Y="'"+Y,ne=!0),q=Y.toString().replace(W,ce),(ne=ne||k===!0||typeof k=="function"&&k(Y,M)||Array.isArray(k)&&k[M]||((Ae,Me)=>{for(var Q=0;Q<Me.length;Q++)if(-1<Ae.indexOf(Me[Q]))return!0;return!1})(q,u.BAD_DELIMITERS)||-1<q.indexOf(N)||q.charAt(0)===" "||q.charAt(q.length-1)===" ")?X+q+X:q)}},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=x,u.ParserHandle=g,u.NetworkStreamer=c,u.FileStreamer=p,u.StringStreamer=h,u.ReadableStreamStreamer=f,r.jQuery&&((o=r.jQuery).fn.parse=function(b){var y=b.config||{},k=[];return this.each(function(O){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 X=0;X<this.files.length;X++)k.push({file:this.files[X],inputElem:this,instanceConfig:o.extend({},y)})}),T(),this;function T(){if(k.length===0)D(b.complete)&&b.complete();else{var O,X,ce,G,U=k[0];if(D(b.before)){var I=b.before(U.file,U.inputElem);if(typeof I=="object"){if(I.action==="abort")return O="AbortError",X=U.file,ce=U.inputElem,G=I.reason,void(D(b.error)&&b.error({name:O},X,ce,G));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 W=U.instanceConfig.complete;U.instanceConfig.complete=function(L){D(W)&&W(L,U.file,U.inputElem),N()},u.parse(U.file,U.instanceConfig)}}function N(){k.splice(0,1),T()}}),s&&(r.onmessage=function(b){b=b.data,u.WORKER_ID===void 0&&b&&(u.WORKER_ID=b.workerId),typeof b.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(b.input,b.config),finished:!0}):(r.File&&b.input instanceof File||b.input instanceof Object)&&(b=u.parse(b.input,b.config))&&r.postMessage({workerId:u.WORKER_ID,results:b,finished:!0})}),(c.prototype=Object.create(d.prototype)).constructor=c,(p.prototype=Object.create(d.prototype)).constructor=p,(h.prototype=Object.create(h.prototype)).constructor=h,(f.prototype=Object.create(d.prototype)).constructor=f,u})}(ti)),ti.exports}var yC=wC();let Wn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function vC(e){return e==null?[new Wn(0,[void 0]),J()]:[new Wn(2,[e]),J()]}function bC(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 Wn(1,[r]),H1(o)];case 1:return[new Wn(2,[i]),J()];case 2:return[new Wn(0,[s]),J()];case 3:return[t,J()];case 4:return[new Wn(0,[void 0]),J()];case 5:return[t,J()];case 6:return[new Wn(0,[void 0]),J()];default:return[t,J()]}}function Hh(e,t){let n,r,o;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([m("path",C(v([(r="M12.6666 14.6667H3.33328C2.23062 14.6667 1.33328 13.7693 1.33328 12.6667V10H2.66662V12.6667C2.66662 13.034 2.96595 13.3333 3.33328 13.3333H12.6666C13.0339 13.3333 13.3333 13.034 13.3333 12.6667V10H14.6666V12.6667C14.6666 13.7693 13.7693 14.6667 12.6666 14.6667Z",["d",r]),["fill","#2E66F7"]]))),m("path",C(v([(o="M11.3333 5.72395L8.66667 8.39062V1.33328H7.33333V8.39062L4.66667 5.72395L3.724 6.66662L8 10.9426L12.276 6.66662L11.3333 5.72395Z",["d",o]),["fill","#2E66F7"]])))]),["children",E.Children.toArray(Array.from(n))])])))}function _C(e,t,n){let r,o,i,s,a,l,u,d,c,p,h,f,g,w,x,_,S,$,F,P,D,b;return il(v([new mn(3,[t]),new mn(4,[n]),new mn(5,[[ul(ye(new ll(2,["fixed inset-0 bg-gray-500/50"]))),m("div",C(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[al(ye(new sl(2,[[m("div",C(v([["className","flex flex-col mt-6 mb-6 px-6"],(o=[m("div",C(v([["className","flex flex-row justify-between"],(i=[m("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),m("button",C(v([["onClick",y=>{n()}],["type","button"],["className","text-gray-600"],(s=[cl(24,24)],["children",E.Children.toArray(Array.from(s))])])))],["children",E.Children.toArray(Array.from(i))])]))),m("div",C(v([["className","text-gray-600 text-sm pt-6"],(a=[m("span",{children:"Fields marked with "}),m("span",{className:"text-red-600",children:"*"}),m("span",C(ye((l=" are required to create a user. While “Mobile number” and “Employment basis” are optional, they are recommended for improved searching and filtering.",["children",l]))))],["children",E.Children.toArray(Array.from(a))])]))),m("div",C(v([["className","grid grid-cols-2 mt-3"],(u=[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",C(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(d=[m("span",{children:"First name "}),m("span",{className:"text-red-600",children:"*"})],["children",E.Children.toArray(Array.from(d))])]))),m("div",C(ye((c=[m("div",C(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[m("span",{children:"For example:"}),m("br",{}),m("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",E.Children.toArray(Array.from(p))])])))],["children",E.Children.toArray(Array.from(c))])))),m("div",C(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[m("span",{children:"Last name "}),m("span",{className:"text-red-600",children:"*"})],["children",E.Children.toArray(Array.from(h))])]))),m("div",C(ye((f=[m("div",C(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(g=[m("span",{children:"For example:"}),m("br",{}),m("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",E.Children.toArray(Array.from(g))])])))],["children",E.Children.toArray(Array.from(f))])))),m("div",C(v([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(w=[m("span",{children:"Email "}),m("span",{className:"text-red-600",children:"*"})],["children",E.Children.toArray(Array.from(w))])]))),m("div",C(ye((x=[m("div",C(v([["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(x))])))),m("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),m("div",C(ye((S=[m("div",C(v([["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:"+61432368712"})],["children",E.Children.toArray(Array.from($))])])))],["children",E.Children.toArray(Array.from(S))])))),m("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),m("div",C(ye((F=[m("div",C(v([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(P=[m("span",{children:"One of the following options:"}),m("br",{}),m("ul",C(v([["className","italic list-disc px-3"],(D=[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(D))])])))],["children",E.Children.toArray(Array.from(P))])])))],["children",E.Children.toArray(Array.from(F))])))),m("a",C(v([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(b=[m("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),Hh(16,16)],["children",E.Children.toArray(Array.from(b))])])))],["children",E.Children.toArray(Array.from(u))])])))],["children",E.Children.toArray(Array.from(o))])])))]])))],["children",E.Children.toArray(Array.from(r))])])))]])]))}function xC(e,t){let n,r,o,i,s,a,l;return il(v([new mn(3,[e]),new mn(4,[t]),new mn(5,[[ul(ye(new ll(2,["fixed inset-0 bg-gray-500/50"]))),m("div",C(v([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[al(ye(new sl(2,[[m("div",C(v([["className","flex flex-col mt-6 mb-6 px-6"],(r=[m("div",C(v([["className","flex flex-row justify-between"],(o=[m("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),m("button",C(v([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(i=[cl(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",C(v([["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",C(v([["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",C(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",E.Children.toArray(Array.from(r))])])))]])))],["children",E.Children.toArray(Array.from(n))])])))]])]))}function CC(e,t){let n,r,o;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([m("path",C(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"]]))),m("path",C(v([(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 SC(e,t){let n,r;return m("svg",C(v([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=v([m("path",C(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"]]))),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 EC(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,h,f,g,w,x;t(new Zn(0,[new zn(1,[(a=i.errors,!M0(pe,a)&&a.length===0?(l=i.data.length>1?new A(0,[void 0]):new A(1,[new on(2,[])]),l.tag===1?new A(1,[l.fields[0]]):(u=i.data.length<=5001?new A(0,[void 0]):new A(1,[new on(3,[])]),u.tag===1?new A(1,[u.fields[0]]):(d=Ul(i.data),c=d.length|0,p=d.some(Ca)?new A(1,[new on(4,[])]):new A(0,[void 0]),p.tag===1?new A(1,[p.fields[0]]):(h=(f=gf(Gt(_=>_.trim().toLocaleLowerCase(),d),{Equals:(_,S)=>_===S,GetHashCode:sr}),f.length===c?new A(0,[void 0]):new A(1,[new on(5,[])])),h.tag===1?new A(1,[h.fields[0]]):(g=(w=(x=i.data,x.filter(_=>_.length!==c)),w.length===0?new A(0,[void 0]):new A(1,[new on(6,[])])),g.tag===1?new A(1,[g.fields[0]]):new A(0,[new Hv(new wf(e.name),dd((_,S)=>[new Nv(_),new Dv(S.trim())],Ul(i.data)),new Rv(Gt(_=>new Pv(Gt(S=>S.trim(),_)),I0(i.data))),e.size)])))))):new A(1,[new on(7,[ze(0,i.errors).message])]))])]))},o.error=(i,s)=>{t(new Zn(0,[new zn(1,[new A(1,[new on(7,[i])])])]))},o.worker=!0,yC.parse(e,o)}else t(new Zn(0,[new zn(1,[new A(1,[new on(1,[])])])]));else t(new Zn(0,[new zn(1,[new A(1,[new on(0,[])])])]))}function kC(e,t){bd(at.Delay(()=>at.Bind(tp(1e3),()=>(EC(e,t),at.Zero()))))}const ks=(()=>{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 TC(e){let t,n,r,o,i,s,a,l;const u=e.cancel,d=e.next,c=e.existingCsvFile;let p;const h=vC(c);p=$o(()=>Ao(()=>h,bC,(y,k)=>{}),void 0,[]);const f=p[0],g=p[1],w=y=>{g(new Zn(0,[new zn(0,[[new wf(y.name),k=>{kC(y,k)}]])]))},x=E.useState(!1),_=x[1],S=E.useState(!1),$=S[1],F=E.useState(!1),P=F[1],D=E.useRef(void 0),b=f.tag===2;return m("div",C(v([["className","bg-gray-50 h-full"],(t=[m("div",C(v([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[_C(ks,x[0],()=>{_(!1)}),xC(F[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",C(v([["className","flex flex-row items-end gap-1"],["href",ks],["download","import_users"],(r=[m("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),Hh(16,16)],["children",E.Children.toArray(Array.from(r))])]))),m("div",C(v([["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=>{_(!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",C(Pe(V(()=>we(S[0]?H(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):H(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),V(()=>{let y;return H((y=Pe(V(()=>{let k,T,N,O,X,ce,G,U,I,W,L,ie,Y;switch(f.tag){case 2:{let M;const q=f.fields[0].SizeInBytes/1024/1024;return M=q<.01?.01:q,H(m("div",C(v([["className","p-6 justify-between items-center inline-flex w-full"],(k=[m("div",C(v([["className","justify-start items-start gap-2 flex"],(T=[m("div",{className:"text-center text-gray-600 text-sm font-medium",children:f.fields[0].Name.fields[0]}),m("span",C(v([["className","text-emerald-700"],(N=[Wa(20,20)],["children",E.Children.toArray(Array.from(N))])])))],["children",E.Children.toArray(Array.from(T))])]))),m("div",C(v([["className","justify-start items-start gap-2 flex"],(O=[m("div",{className:"text-center text-gray-500 text-sm font-medium",children:`${M}MB`}),m("button",C(v([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",ne=>{g(new Zn(2,[]))}],(X=[m("div",{className:"text-center text-sm font-medium",children:"Remove"}),m("div",C(v([["className","w-4 h-4 justify-center items-center flex"],(ce=[Us(10,10)],["children",E.Children.toArray(Array.from(ce))])])))],["children",E.Children.toArray(Array.from(X))])])))],["children",E.Children.toArray(Array.from(O))])])))],["children",E.Children.toArray(Array.from(k))])]))))}case 1:return H(m("div",C(v([["className","p-6 justify-between items-center inline-flex w-full"],(G=[m("div",C(v([["className","justify-start items-start gap-2 flex"],(U=[m("div",{className:"text-center text-gray-600 text-sm font-medium",children:f.fields[0].fields[0]}),m("span",C(v([["className","animate-spin"],(I=[CC(20,20)],["children",E.Children.toArray(Array.from(I))])])))],["children",E.Children.toArray(Array.from(U))])]))),m("div",C(v([["className","justify-start items-start gap-2 flex"],(W=[m("button",C(v([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",M=>{g(new Zn(1,[]))}],(L=[m("div",{className:"text-center text-sm font-medium",children:"Cancel"}),m("div",C(v([["className","w-4 h-4 justify-center items-center flex"],(ie=[Us(10,10)],["children",E.Children.toArray(Array.from(ie))])])))],["children",E.Children.toArray(Array.from(L))])])))],["children",E.Children.toArray(Array.from(W))])])))],["children",E.Children.toArray(Array.from(G))])]))));default:{const M=q=>{q.preventDefault(),q.stopPropagation()};return H(m("div",C(v([["className","flex flex-col items-center p-4"],["onDragEnter",q=>{M(q),$(!0)}],["onDragLeave",q=>{M(q),$(!1)}],["onDragOver",q=>{M(q),$(!0)}],["onDrop",q=>{let ne;M(q),$(!1),w((ne=q,ne.dataTransfer).files.item(0))}],(Y=Pe(V(()=>{let q,ne,Ae,Me,Q,me;return we((q=f.fields[0],q==null?H(Ke()):(ne=q,H(m("div",C(v([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(Ae=[m("div",C(v([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(Me=[yf(16,15)],["children",E.Children.toArray(Array.from(Me))])]))),m("div",C(v([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(Q=[m("div",C(v([["className","self-stretch text-red-800 text-sm font-normal"],(me=Pe(V(()=>{let de;const le=oe=>m("span",{className:"font-medium",children:oe}),j=oe=>m("span",{children:[oe]}),ue=m("a",{className:"underline",children:"sample CSV",href:ks,download:"import_users"});return H((de=ne.tag===1?v([le("File is too large (over 10MB). "),j("Upload a "),le("smaller file"),j(".")]):ne.tag===2?v([le("File is empty. "),j("Ensure your file contains data before uploading.")]):ne.tag===3?v([le("Too many rows (5000+). "),j("Upload a "),le("file with fewer rows"),j(".")]):ne.tag===4?v([le("Invalid CSV: Missing header field(s). "),j("Try using our "),ue,j(".")]):ne.tag===5?v([le("Invalid CSV: Duplicate header fields. "),j("Try using our "),ue,j(".")]):ne.tag===6?v([le("Invalid CSV: Rows have different lengths. "),j("Check for missing or extra columns.")]):ne.tag===7?v([le("Invalid CSV format. "),j("Try using our "),ue,j(".")]):v([le("Unsupported file type. "),j("Upload a "),le(".csv file"),j(".")]),m("p",{children:E.Children.toArray(Array.from(de))})))})),["children",E.Children.toArray(Array.from(me))])])))],["children",E.Children.toArray(Array.from(Q))])])))],["children",E.Children.toArray(Array.from(Ae))])])))))),V(()=>{let de;return we(H(m("div",C(v([["className","pt-2"],(de=[SC(20,21)],["children",E.Children.toArray(Array.from(de))])])))),V(()=>we(H(m("input",{type:"file",onChange:le=>{const j=le.target.files;j!=null&&j.length>0&&w(j.item(0))},className:"hidden",ref:D})),V(()=>we(H(m("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),V(()=>we(H(m("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white",onClick:le=>{To(j=>{j.click()},Sa(D.current))},type:"button",children:E.Children.toArray(["Choose file"])})),V(()=>H(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(Y))])]))))}}})),["children",E.Children.toArray(Array.from(y))]))})))))),m("div",C(v([["className","flex flex-row justify-end gap-3"],(i=[m("button",C(v([(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",C(v([(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=>{f.tag===2&&d(f.fields[0])}],["type","button"],["disabled",!b],(l=["Map fields",Lh(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 AC(){return[new mt(0,[new bt(0,[void 0])]),J()]}function $C(e,t){let n,r,o,i,s,a,l,u,d,c,p,h,f,g,w,x,_,S,$,F,P,D,b,y,k,T,N,O,X,ce,G,U,I,W,L,ie,Y;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],O=t.fields[0].fields[0][2],X=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,ie=t.fields[0].fields[0][0],Y=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],W=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,ce=e.fields[0].fields[0].fields[0],G=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,D=t.fields[0].fields[0][1],b=t.fields[0].fields[0][0],y=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,F=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,h=t.fields[0].fields[0][1],f=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,x=t.fields[0].fields[0][1],_=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 rn(0,[void 0])]])]),J()];case 1:return pe(o,i)?[new mt(0,[new bt(1,[[i,s]])]),J()]:[new mt(0,[new bt(1,[[o,new rn(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&&pe(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,[[f,h,[g,w]]])]),J()];case 7:return[t,J()];case 8:return[new mt(1,[[_,x,S,$]]),J()];case 9:return[t,J()];case 10:return[new mt(0,[new bt(1,[[P,new rn(1,[new mr(0,[F])])]])]),J()];case 11:return[new mt(0,[new bt(2,[[b,D,y,k]])]),J()];case 12:return[t,J()];case 13:return[new mt(0,[new bt(1,[[N,new rn(1,[new mr(1,[T,O,X])])]])]),J()];case 14:return[t,J()];case 15:return[new mt(0,[new bt(0,[[G,new rn(1,[new mr(0,[ce])])]])]),J()];case 16:return[new mt(0,[new bt(0,[[I,L.tag===1?L.fields[0].tag===1?pe(U,L.fields[0].fields[0])&&pe(W,L.fields[0].fields[1])?L:new rn(1,[new mr(1,[U,W,void 0])]):new rn(1,[new mr(1,[U,W,void 0])]):new rn(1,[new mr(1,[U,W,void 0])])]])]),J()];case 17:return[new mt(0,[new bt(0,[[ie,new rn(0,[Y])]])]),J()];default:return[t,J()]}}function NC(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 MC(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 IC(e,t,n){switch(n.tag){case 1:{const r=n.fields[0],o=r[1].tag===1?r[1].fields[0].tag===1?[Bu(r[1].fields[0].fields[0],r[1].fields[0].fields[1]),r[0].HeaderRow,r[0].DataRows]:[Bu(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(hC,{existingMappings:Rs(o[0]),headerRow:o[1],dataRows:o[2],next:i=>{let s;t(new Ln(0,[(s=i,new zo(1,[s[0],s[1]]))]))},back:i=>{t(new Ln(1,[new Es(2,[i])]))}})}case 2:return mC(n.fields[0][3],Lv(n.fields[0][0].DataRows,n.fields[0][2]),r=>{t(new Ln(0,[new zo(2,[r])]))},r=>{t(new Ln(1,[new Es(1,[r])]))});case 3:return pC(n.fields[0][0].HeaderRow,n.fields[0][0].DataRows,n.fields[0][1],n.fields[0][2],r=>{t(new Ln(0,[new zo(3,[r])]))},()=>{t(new Ln(1,[new Es(0,[])]))});default:{const r=vn(o=>o[0],n.fields[0]);return m(TC,{existingCsvFile:Rs(r),next:o=>{t(new Ln(0,[new zo(0,[o])]))},cancel:e})}}}function Yo(e,t){let n,r,o;switch(t.tag){case 1:return m("div",C(v([["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",C(v([["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",C(v([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(o=[Wa(20,20),m("span",{children:e})],["children",E.Children.toArray(Array.from(o))])])))}}function OC(e){let t,n,r,o,i;const s=AC();i=$o(()=>Ao(()=>s,$C,(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)},h=MC(c),f=IC(p,i[1],c);u=m("div",C(v([["className","flex flex-col h-full"],(t=[m("div",C(v([["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",C(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",g=>{p()}],["type","button"],["children",E.Children.toArray(["Cancel import"])]])))],["children",E.Children.toArray(Array.from(n))])]))),m("div",C(v([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(o=[Yo("1. Upload CSV",h.UploadingCsv),m("hr",{className:"w-16 pt-1.5"}),Yo("2. Map fields",h.MappingColumns),m("hr",{className:"w-16 pt-1.5"}),Yo("3. Map values",h.MappingEmploymentBasis),m("hr",{className:"w-16 pt-1.5"}),Yo("4. Review",h.Reviewing)],["children",E.Children.toArray(Array.from(o))])]))),f],["children",E.Children.toArray(Array.from(t))])])))}else{const c=a.fields[0][0].DataRows;u=NC(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 FC(){ua(e=>m(OC,e),"apollo-import-workspace-wizard")}ua(e=>m(U0,e),"apollo-import-workspace-app");Av();FC();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flarehr/apollo-import-workspace-app",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "Apollo Import Workspace App",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",
@@ -30,6 +30,9 @@
30
30
  "vite": "^6.0.1"
31
31
  },
32
32
  "dependencies": {
33
+ "@headlessui/react": "^2.2.0",
34
+ "date-fns": "^2.30.0",
35
+ "papaparse": "^5.5.1",
33
36
  "preact": "^10.25.0",
34
37
  "preact-custom-element": "^4.3.0",
35
38
  "use-sync-external-store": "^1.2.2"