@flarehr/apollo-import-workspace-app 0.1.488 → 0.1.493
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,6 +1,6 @@
|
|
|
1
|
-
var ro,xe,vd,lr,mu,bd,Ia,ll,Da,Oa,_d,Yi={},xd=[],T0=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,vs=Array.isArray;function An(e,t){for(var n in t)e[n]=t[n];return e}function Cd(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?ro.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Ui(e,s,r,i,null)}function Ui(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++vd,__i:-1,__u:0};return i==null&&xe.vnode!=null&&xe.vnode(o),o}function bs(){return{current:null}}function Be(e){return e.children}function un(e,t){this.props=e,this.context=t}function ni(e,t){if(t==null)return e.__?ni(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"?ni(e):null}function Sd(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 Sd(e)}}function Ra(e){(!e.__d&&(e.__d=!0)&&lr.push(e)&&!Yo.__r++||mu!==xe.debounceRendering)&&((mu=xe.debounceRendering)||bd)(Yo)}function Yo(){var e,t,n,r,i,o,s,a;for(lr.sort(Ia);e=lr.shift();)e.__d&&(t=lr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=An({},i)).__v=i.__v+1,xe.vnode&&xe.vnode(r),ul(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??ni(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,kd(s,r,a),r.__e!=o&&Sd(r)),lr.length>t&&lr.sort(Ia));Yo.__r=0}function Ed(e,t,n,r,i,o,s,a,l,u,f){var d,p,h,m,w,b=r&&r.__k||xd,C=t.length;for(n.__d=l,$0(n,t,b),l=n.__d,d=0;d<C;d++)(h=n.__k[d])!=null&&(p=h.__i===-1?Yi:b[h.__i]||Yi,h.__i=d,ul(e,h,p,i,o,s,a,l,u,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&cl(p.ref,null,h),f.push(h.ref,h.__c||m,h)),w==null&&m!=null&&(w=m),65536&h.__u||p.__k===h.__k?l=Ad(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=w}function $0(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,f=u,d=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+d,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Ui(null,i,null,null,null):vs(i)?Ui(Be,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Ui(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(a=i.__i=M0(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:(a>s?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ni(o)),Nd(o,o))}function Ad(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Ad(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ni(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Tn(e,t){return t=t||[],e==null||typeof e=="boolean"||(vs(e)?e.some(function(n){Tn(n,t)}):t.push(e)),t}function M0(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===Be||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function hu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||T0.test(t)?n:n+"px"}function Eo(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||hu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||hu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=ll,e.addEventListener(t,o?Oa:Da,o)):e.removeEventListener(t,o?Oa:Da,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function pu(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=ll++;else if(t.t<n.u)return;return xe.event&&(t=xe.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function ul(e,t,n,r,i,o,s,a,l,u){var f,d,p,h,m,w,b,C,x,E,$,I,L,P,S,_,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=xe.__b)&&f(t);e:if(typeof k=="function")try{if(C=t.props,x="prototype"in k&&k.prototype.render,E=(f=k.contextType)&&r[f.__c],$=f?E?E.props.value:f.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:(x?t.__c=d=new k(C,$):(t.__c=d=new un(C,$),d.constructor=k,d.render=D0),E&&E.sub(d),d.props=C,d.state||(d.state={}),d.context=$,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),x&&d.__s==null&&(d.__s=d.state),x&&k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=An({},d.__s)),An(d.__s,k.getDerivedStateFromProps(C,d.__s))),h=d.props,m=d.state,d.__v=t,p)x&&k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),x&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(x&&k.getDerivedStateFromProps==null&&C!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(C,$),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(C,d.__s,$)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=C,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(N){N&&(N.__=t)}),I=0;I<d._sb.length;I++)d.__h.push(d._sb[I]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(C,d.__s,$),x&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,m,w)})}if(d.context=$,d.props=C,d.__P=e,d.__e=!1,L=xe.__r,P=0,x){for(d.state=d.__s,d.__d=!1,L&&L(t),f=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do d.__d=!1,L&&L(t),f=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++P<25);d.state=d.__s,d.getChildContext!=null&&(r=An(An({},r),d.getChildContext())),x&&!p&&d.getSnapshotBeforeUpdate!=null&&(w=d.getSnapshotBeforeUpdate(h,m)),Ed(e,vs(_=f!=null&&f.type===Be&&f.key==null?f.props.children:f)?_:[_],t,n,r,i,o,s,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),b&&(d.__E=d.__=null)}catch(N){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;xe.__e(N,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=I0(n.__e,t,n,r,i,o,s,l,u);(f=xe.diffed)&&f(t)}function kd(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)cl(n[r],n[++r],n[++r]);xe.__c&&xe.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){xe.__e(o,i.__v)}})}function I0(e,t,n,r,i,o,s,a,l){var u,f,d,p,h,m,w,b=n.props,C=t.props,x=t.type;if(x==="svg"?i="http://www.w3.org/2000/svg":x==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!x&&(x?h.localName===x:h.nodeType===3)){e=h,o[u]=null;break}}if(e==null){if(x===null)return document.createTextNode(C);e=document.createElementNS(i,x,C.is&&C),a&&(xe.__m&&xe.__m(t,o),a=!1),o=null}if(x===null)b===C||a&&e.data===C||(e.data=C);else{if(o=o&&ro.call(e.childNodes),b=n.props||Yi,!a&&o!=null)for(b={},u=0;u<e.attributes.length;u++)b[(h=e.attributes[u]).name]=h.value;for(u in b)if(h=b[u],u!="children"){if(u=="dangerouslySetInnerHTML")d=h;else if(!(u in C)){if(u=="value"&&"defaultValue"in C||u=="checked"&&"defaultChecked"in C)continue;Eo(e,u,null,h,i)}}for(u in C)h=C[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?m=h:u=="checked"?w=h:a&&typeof h!="function"||b[u]===h||Eo(e,u,h,b[u],i);if(f)a||d&&(f.__html===d.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ed(e,vs(p)?p:[p],t,n,r,x==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ni(n,0),a,l),o!=null)for(u=o.length;u--;)Cd(o[u]);a||(u="value",x==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||x==="progress"&&!m||x==="option"&&m!==b[u])&&Eo(e,u,m,b[u],i),u="checked",w!==void 0&&w!==e[u]&&Eo(e,u,w,b[u],i))}return e}function cl(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){xe.__e(i,n)}}function Nd(e,t,n){var r,i;if(xe.unmount&&xe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||cl(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){xe.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&Nd(r[i],t,n||typeof e.type!="function");n||Cd(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function D0(e,t,n){return this.constructor(e,n)}function qn(e,t,n){var r,i,o,s;xe.__&&xe.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],ul(t,e=(!r&&n||t).__k=c(Be,null,[e]),i||Yi,Yi,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?ro.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),kd(o,e,s)}function dl(e,t){qn(e,t,dl)}function fl(e,t,n){var r,i,o,s,a=An({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?ro.call(arguments,2):n),Ui(e.type,a,r||e.key,i||e.ref,null)}function Je(e,t){var n={__c:t="__cC"+_d++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,Ra(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}ro=xd.slice,xe={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},vd=0,un.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=An({},this.state),typeof e=="function"&&(e=e(An({},n),this.props)),e&&An(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ra(this))},un.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ra(this))},un.prototype.render=Be,lr=[],bd=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ia=function(e,t){return e.__v.__b-t.__v.__b},Yo.__r=0,ll=0,Da=pu(!1),Oa=pu(!0),_d=0;function ml(){return(ml=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 O0=["context","children"];function R0(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)i.indexOf(o=l[s])>=0||(a[o]=r[o]);return a}(e,O0);return fl(t,n)}function F0(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=c(R0,ml({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[Td(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?o[f]=c(gu,{name:f},u):i[s]=u}var d=r?c(gu,null,i):i;return c(r||n.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?dl:qn)(this._vdom,this._root)}function Td(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function P0(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[Td(e)]=n,this._vdom=fl(this._vdom,r),qn(this._vdom,this._root)}}function L0(){qn(this._vdom=null,this._root)}function gu(e,t){var n=this;return c("slot",ml({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function V0(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=F0,i.prototype.attributeChangedCallback=P0,i.prototype.disconnectedCallback=L0,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i)}function hl(e,t){V0(e,t)}var In,Ve,sa,yu,ri=0,$d=[],Ze=xe,wu=Ze.__b,vu=Ze.__r,bu=Ze.diffed,_u=Ze.__c,xu=Ze.unmount,Cu=Ze.__;function kr(e,t){Ze.__h&&Ze.__h(Ve,e,ri||t),ri=0;var n=Ve.__H||(Ve.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return ri=1,Nr(Md,e)}function Nr(e,t,n){var r=kr(In++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Md(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=Ve,!Ve.u)){var i=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var d=r.__c.props!==a;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(d=!0)}}),o&&o.call(this,a,l,u)||d};Ve.u=!0;var o=Ve.shouldComponentUpdate,s=Ve.componentWillUpdate;Ve.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,i(a,l,u),o=f}s&&s.call(this,a,l,u)},Ve.shouldComponentUpdate=i}return r.__N||r.__}function De(e,t){var n=kr(In++,3);!Ze.__s&&yl(n.__H,t)&&(n.__=e,n.i=t,Ve.__H.__h.push(n))}function Rn(e,t){var n=kr(In++,4);!Ze.__s&&yl(n.__H,t)&&(n.__=e,n.i=t,Ve.__h.push(n))}function se(e){return ri=5,ce(function(){return{current:e}},[])}function pl(e,t,n){ri=6,Rn(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 ce(e,t){var n=kr(In++,7);return yl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function ke(e,t){return ri=8,ce(function(){return e},t)}function Oe(e){var t=Ve.context[e.__c],n=kr(In++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(Ve)),t.props.value):e.__}function gl(e,t){Ze.useDebugValue&&Ze.useDebugValue(t?t(e):e)}function H0(e){var t=kr(In++,10),n=ye();return t.__=e,Ve.componentDidCatch||(Ve.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function Jt(){var e=kr(In++,11);if(!e.__){for(var t=Ve.__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 j0(){for(var e;e=$d.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ho),e.__H.__h.forEach(Fa),e.__H.__h=[]}catch(t){e.__H.__h=[],Ze.__e(t,e.__v)}}Ze.__b=function(e){Ve=null,wu&&wu(e)},Ze.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Cu&&Cu(e,t)},Ze.__r=function(e){vu&&vu(e),In=0;var t=(Ve=e.__c).__H;t&&(sa===Ve?(t.__h=[],Ve.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Ho),t.__h.forEach(Fa),t.__h=[],In=0)),sa=Ve},Ze.diffed=function(e){bu&&bu(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&($d.push(t)!==1&&yu===Ze.requestAnimationFrame||((yu=Ze.requestAnimationFrame)||B0)(j0)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),sa=Ve=null},Ze.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ho),n.__h=n.__h.filter(function(r){return!r.__||Fa(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ze.__e(r,n.__v)}}),_u&&_u(e,t)},Ze.unmount=function(e){xu&&xu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ho(r)}catch(i){t=i}}),n.__H=void 0,t&&Ze.__e(t,n.__v))};var Su=typeof requestAnimationFrame=="function";function B0(e){var t,n=function(){clearTimeout(r),Su&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Su&&(t=requestAnimationFrame(n))}function Ho(e){var t=Ve,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),Ve=t}function Fa(e){var t=Ve;e.__c=e.__(),Ve=t}function yl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Md(e,t){return typeof t=="function"?t(e):t}function Pa(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 _s(e,t){var n=t(),r=ye({t:{__:n,u:t}}),i=r[0].t,o=r[1];return Rn(function(){i.__=n,i.u=t,aa(i)&&o({t:i})},[e,n,t]),De(function(){return aa(i)&&o({t:i}),e(function(){aa(i)&&o({t:i})})},[e]),n}function aa(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function wl(e){e()}function vl(e){return e}function bl(){return[!1,wl]}var _l=Rn;function Zo(e,t){this.props=e,this.context=t}function Id(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:Pa(this.props,i)}function r(i){return this.shouldComponentUpdate=n,c(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(Zo.prototype=new un).isPureReactComponent=!0,Zo.prototype.shouldComponentUpdate=function(e,t){return Pa(this.props,e)||Pa(this.state,t)};var Eu=xe.__b;xe.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Eu&&Eu(e)};var U0=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function xl(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=U0,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Au=function(e,t){return e==null?null:Tn(Tn(e).map(t))},Dd={map:Au,forEach:Au,count:function(e){return e?Tn(e).length:0},only:function(e){var t=Tn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:Tn},W0=xe.__e;xe.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}W0(e,t,n,r)};var ku=xe.unmount;function Od(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Od(r,t,n)})),e}function Rd(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Rd(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 Wi(){this.__u=0,this.o=null,this.__b=null}function Fd(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Pd(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return c(n,o)}return i.displayName="Lazy",i.__f=!0,i}function Wr(){this.i=null,this.l=null}xe.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),ku&&ku(e)},(Wi.prototype=new un).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=Fd(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Rd(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)},Wi.prototype.componentWillUnmount=function(){this.o=[]},Wi.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]=Od(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&c(Be,null,e.fallback);return i&&(i.__u&=-33),[c(Be,null,t.__a?null:e.children),i]};var Nu=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 G0(e){return this.getChildContext=function(){return e.context},e.children}function z0(e){var t=this,n=e.h;t.componentWillUnmount=function(){qn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),qn(c(G0,{context:t.context},e.__v),t.v)}function xs(e,t){var n=c(z0,{__v:e,h:t});return n.containerInfo=t,n}(Wr.prototype=new un).__a=function(e){var t=this,n=Fd(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Nu(t,e,r)):i()};n?n(o):o()}},Wr.prototype.render=function(e){this.i=null,this.l=new Map;var t=Tn(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},Wr.prototype.componentDidUpdate=Wr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Nu(e,n,t)})};var Ld=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,q0=/^(?: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]/,Y0=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Z0=/[A-Z0-9]/g,K0=typeof document<"u",X0=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function Vd(e,t,n){return t.__k==null&&(t.textContent=""),qn(e,t),typeof n=="function"&&n(),e?e.__c:null}function Hd(e,t,n){return dl(e,t),typeof n=="function"&&n(),e?e.__c:null}un.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(un.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Tu=xe.event;function J0(){}function Q0(){return this.cancelBubble}function ep(){return this.defaultPrevented}xe.event=function(e){return Tu&&(e=Tu(e)),e.persist=J0,e.isPropagationStopped=Q0,e.isDefaultPrevented=ep,e.nativeEvent=e};var Cl,tp={enumerable:!1,configurable:!0,get:function(){return this.class}},$u=xe.vnode;xe.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||K0&&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"||X0(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":Y0.test(s)&&(s=l):l=s="oninput":o&&q0.test(s)?s=s.replace(Z0,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=Tn(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=Tn(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",tp)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=Ld,$u&&$u(e)};var Mu=xe.__r;xe.__r=function(e){Mu&&Mu(e),Cl=e.__c};var Iu=xe.diffed;xe.diffed=function(e){Iu&&Iu(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),Cl=null};var jd={ReactCurrentDispatcher:{current:{readContext:function(e){return Cl.__n[e.__c].props.value},useCallback:ke,useContext:Oe,useDebugValue:gl,useDeferredValue:vl,useEffect:De,useId:Jt,useImperativeHandle:pl,useInsertionEffect:_l,useLayoutEffect:Rn,useMemo:ce,useReducer:Nr,useRef:se,useState:ye,useSyncExternalStore:_s,useTransition:bl}}},np="18.3.1";function Bd(e){return c.bind(null,e)}function di(e){return!!e&&e.$$typeof===Ld}function Ud(e){return di(e)&&e.type===Be}function Wd(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Sl(e){return di(e)?fl.apply(null,arguments):e}function Gd(e){return!!e.__k&&(qn(null,e),!0)}function zd(e){return e&&(e.base||e.nodeType===1&&e)||null}var qd=function(e,t){return e(t)},Wt=function(e,t){return e(t)},Yd=Be,Zd=di,Z={useState:ye,useId:Jt,useReducer:Nr,useEffect:De,useLayoutEffect:Rn,useInsertionEffect:_l,useTransition:bl,useDeferredValue:vl,useSyncExternalStore:_s,startTransition:wl,useRef:se,useImperativeHandle:pl,useMemo:ce,useCallback:ke,useContext:Oe,useDebugValue:gl,version:"18.3.1",Children:Dd,render:Vd,hydrate:Hd,unmountComponentAtNode:Gd,createPortal:xs,createElement:c,createContext:Je,createFactory:Bd,cloneElement:Sl,createRef:bs,Fragment:Be,isValidElement:di,isElement:Zd,isFragment:Ud,isMemo:Wd,findDOMNode:zd,Component:un,PureComponent:Zo,memo:Id,forwardRef:xl,flushSync:Wt,unstable_batchedUpdates:qd,StrictMode:Yd,Suspense:Wi,SuspenseList:Wr,lazy:Pd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:jd};const Ko=Object.freeze(Object.defineProperty({__proto__:null,Children:Dd,Component:un,Fragment:Be,PureComponent:Zo,StrictMode:Yd,Suspense:Wi,SuspenseList:Wr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:jd,cloneElement:Sl,createContext:Je,createElement:c,createFactory:Bd,createPortal:xs,createRef:bs,default:Z,findDOMNode:zd,flushSync:Wt,forwardRef:xl,hydrate:Hd,isElement:Zd,isFragment:Ud,isMemo:Wd,isValidElement:di,lazy:Pd,memo:Id,render:Vd,startTransition:wl,unmountComponentAtNode:Gd,unstable_batchedUpdates:qd,useCallback:ke,useContext:Oe,useDebugValue:gl,useDeferredValue:vl,useEffect:De,useErrorBoundary:H0,useId:Jt,useImperativeHandle:pl,useInsertionEffect:_l,useLayoutEffect:Rn,useMemo:ce,useReducer:Nr,useRef:se,useState:ye,useSyncExternalStore:_s,useTransition:bl,version:np},Symbol.toStringTag,{value:"Module"})),rp=`*,: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-1{margin-top:.25rem}.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-4{width:1rem;height:1rem}.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-\\[63px\\]{height:63px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.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-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[148px\\]{width:148px}.w-\\[206px\\]{width:206px}.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-1{flex:1 1 0%}.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-inside{list-style-position:inside}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.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}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.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}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.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-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.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-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / 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-\\[17px\\]{padding-left:17px;padding-right:17px}.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-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.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-10{padding-bottom:2.5rem}.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-2{padding-left:.5rem}.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-sm\\/6{font-size:.875rem;line-height:1.5rem}.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-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.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-400{--tw-text-opacity: 1;color:rgb(156 163 175 / 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))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-1:before{content:var(--tw-content);top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.before\\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.checked\\:border-primary-600:checked{border-color:var(--fl-color-primary-600)}.checked\\:bg-primary-600:checked{background-color:var(--fl-color-primary-600)}.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)}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-primary-600:focus-visible{outline-color:var(--fl-color-primary-600)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:before\\:bg-gray-400:disabled:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:size-4{width:1rem;height:1rem}}@media (forced-colors: active){.forced-colors\\:appearance-auto{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.forced-colors\\:before\\:hidden:before{content:var(--tw-content);display:none}}.\\[\\&\\:not\\(\\:checked\\)\\]\\:before\\:hidden:not(:checked):before{content:var(--tw-content);display:none}`;function dn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function ip(e){return e!=null&&typeof e.GetEnumerator=="function"}function op(e){return e!=null&&typeof e.CompareTo=="function"}function sp(e){return e!=null&&typeof e.Equals=="function"}function Kd(e){return e!=null&&typeof e.GetHashCode=="function"}function La(e){return e!=null&&typeof e.Dispose=="function"}function $e(e){La(e)&&e.Dispose()}function Ce(){return null}function Xo(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 ap{constructor(t){this.iter=t,this.current=Ce()}"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 Ie(e){return ip(e)?e.GetEnumerator():new ap(e[Symbol.iterator]())}function fi(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}}}}class lp{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function Pe(e,t){return e.toString(10).padStart(t,"0")}function up(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Du(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function cp(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function cn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class kn{static id(t){return kn.idMap.has(t)||kn.idMap.set(t,++kn.count),kn.idMap.get(t)}}kn.idMap=new WeakMap;kn.count=0;function er(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function sn(e){return e*2654435761|0}function Xd(e){return er(e.toString(32))}function io(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function dp(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return sn(e);case"bigint":return Xd(e);case"string":return er(e);default:return sn(kn.id(e))}}function fp(e){return Kd(e)?e.GetHashCode():dp(e)}function mp(e){return e.getTime()}function hp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Xt(e[r]);return io(n)}function Xt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return sn(e);case"bigint":return Xd(e);case"string":return er(e);default:{if(Kd(e))return e.GetHashCode();if(dn(e))return hp(e);if(e instanceof Date)return mp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Xt(r));return io(n)}else return sn(kn.id(e))}}}function Jo(e){return fp(e)}function Va(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 Jd(e,t){return Va(e,t,te)}function pp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!te(e[n[i]],t[r[i]]))return!1;return!0}function te(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:sp(e)?e.Equals(t):dn(e)?dn(t)&&Jd(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&Qd(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&pp(e,t)}function Qd(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Du(e),r=t.getTime()+Du(t)),n===r?0:n<r?-1:1}function Tr(e,t){return e===t?0:e<t?-1:1}function gp(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function El(e,t){return gp(e,t,wt)}function yp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=wt(e[s],t[s]),o!==0)return o}return 0}function wt(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:op(e)?e.CompareTo(t):dn(e)?dn(t)?El(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?Qd(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?yp(e,t):-1}function g(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function wp(e){dn(e)?e.splice(0):e.clear()}const Cs=new WeakMap;function Qe(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Cs.set(t,e),t}function ur(e){return Cs.get(e)??(t=>n=>e(t,n))}function Ha(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Cs.set(t,e),t}function la(e){return Cs.get(e)??(t=>n=>r=>e(t,n,r))}function vp(e){let t=0,n="[";for(const r of e){if(t===0)n+=et(r);else if(t===100){n+="; ...";break}else n+="; "+et(r);t++}return n+"]"}function et(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 vp(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+et(o,t+1)).join(`
|
|
2
|
-
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function
|
|
3
|
-
`)+" }"}function Cp(e){const t=Object.values(e).map(n=>Xt(n));return io(t)}function Sp(e,t){if(e===t)return!0;if(Xo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!te(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Ep(e,t){if(e===t)return 0;if(Xo(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=wt(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Se{toJSON(){return _p(this)}toString(){return xp(this)}GetHashCode(){return Cp(this)}Equals(t){return Sp(this,t)}CompareTo(t){return Ep(this,t)}}class pt{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 Ap{constructor(t){this.message=t}}function kp(e){return e instanceof Ap||e instanceof Error}function Np(e){return e instanceof Promise}function Qo(e){return kp(e)||Np(e)?e:new Error(String(e))}const Al=et(rp),mi=Symbol("numeric");function ef(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[mi])}function Tp(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function ja(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[mi]().multiply(t)}function jo(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[mi]().toFixed(t)}function es(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[mi]().toPrecision(t)}function ts(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[mi]().toExponential(t)}function ns(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[mi]().toHex()}const $p=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Mp=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Ip=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Dp=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ft(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Ou(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function Op(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function kl(e,t,n){let r=0,i=0,o="";const s=n?oo(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=Ft(t,r,"d"),r+=i,i){case 1:o+=Fu(s);break;case 2:o+=Pe(Fu(s),2);break;case 3:o+=$p[Vu(s)];break;case 4:o+=Mp[Vu(s)];break}break;case"f":if(i=Ft(t,r,"f"),r+=i,i<=3){const b=10**(3-i);o+=Pe(Math.floor(ko(s)/b),i)}else i<=7&&(o+=(""+ko(s)).padEnd(i,"0"));break;case"F":if(i=Ft(t,r,"F"),r+=i,i<=3){const b=10**(3-i),C=Math.floor(ko(s)/b);C!=0&&(o+=Pe(C,i))}else if(i<=7){const b=ko(s);b!=0&&(o+=Pe(b,3))}break;case"g":i=Ft(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=Ft(t,r,"h"),r+=i,i){case 1:o+=Ao(s)%12;break;case 2:o+=Pe(Ao(s)%12,2);break}break;case"H":switch(i=Ft(t,r,"H"),r+=i,i){case 1:o+=Ao(s);break;case 2:o+=Pe(Ao(s),2);break}break;case"K":switch(i=Ft(t,r,"K"),r+=i,i){case 1:switch(Ru(s)){case 1:o+="Z";break;case 2:o+=zr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=Ft(t,r,"m"),r+=i,i){case 1:o+=Pu(s);break;case 2:o+=Pe(Pu(s),2);break}break;case"M":switch(i=Ft(t,r,"M"),r+=i,i){case 1:o+=No(s);break;case 2:o+=Pe(No(s),2);break;case 3:o+=Ip[No(s)-1];break;case 4:o+=Dp[No(s)-1];break}break;case"s":switch(i=Ft(t,r,"s"),r+=i,i){case 1:o+=Lu(s);break;case 2:o+=Pe(Lu(s),2);break}break;case"t":switch(i=Ft(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=Ft(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=Pe(s.getFullYear()%100,2);break;case 3:o+=Pe(s.getFullYear(),3);break;case 4:o+=Pe(s.getFullYear(),4);break;case 5:o+=Pe(s.getFullYear(),5);break}break;case"z":i=Ft(t,r,"z"),r+=i;let l="";switch(Ru(s)){case 1:l="+00:00";break;case 2:l=zr(s.getTimezoneOffset()*-6e4);break;case 0:l=zr(Up(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),d=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${Pe(f,2)}`;break;default:o+=`${u}${Pe(f,2)}:${Pe(d,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=Op(t,r);o+=p,r+=h;break;case"%":const m=Ou(t,r);if(m>=0&&m!==37)r+=2,o+=kl(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const w=Ou(t,r);if(w>=0)r+=2,o+=String.fromCharCode(w);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Ru(e){return e.kind||0}function zr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+Pe(n,2)+":"+Pe(r,2)}function rs(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 Rp(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return Pe(e.getFullYear(),4)+"-"+Pe(e.getMonth()+1,2)+"-"+Pe(e.getDate(),2)+"T"+Pe(e.getHours(),2)+":"+Pe(e.getMinutes(),2)+":"+Pe(e.getSeconds(),2)+"."+Pe(e.getMilliseconds(),3)+(n?zr(e.getTimezoneOffset()*-6e4):"")}}function Fp(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+zr(t)}function Pp(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," ")+zr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return rs(n,"first");case"T":case"t":return rs(n,"second");case"O":case"o":return Fp(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return kl(n,t,!0)}function Lp(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?rs(e,"first"):e.toLocaleDateString();case"T":case"t":return n?rs(e,"second"):e.toLocaleTimeString();case"O":case"o":return Rp(e,n);default:throw new Error("Unrecognized Date print format")}else return kl(e,t,n)}function Ss(e,t,n){return e.offset!=null?Pp(e,t):Lp(e,t)}function oo(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function Vp(){return oo(-621355968e5,1)}function tf(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function Hp(e,t=!1){const[n,r]=tf(e),i=r!=null?t&&r==="Z"?1:2:0;return oo(n.getTime(),i)}function jp(e,t){try{return t.contents=Hp(e),!0}catch{return!1}}function Bp(e){return e.kind===1?e:oo(e.getTime(),1)}function Up(e){return e.kind===2?e:oo(e.getTime(),2)}function Fu(e){return e.kind===1?e.getUTCDate():e.getDate()}function Ao(e){return e.kind===1?e.getUTCHours():e.getHours()}function ko(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Pu(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function No(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Lu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function Vu(e){return e.kind===1?e.getUTCDay():e.getDay()}function Wp(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 Nl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function Hu(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function Tl(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let d=0;d<f;d++)a.push(arguments[d]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=Wp(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),l=Hu(e,a),u=Hu.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const Ti=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,Gp=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function nf(e,t){return Tp(e,t)<0}function Dn(e){return{input:e,cont:qp(e)}}function rf(e,t){return typeof t=="string"?e(t):t.cont(e)}function yr(e){return rf(t=>t,e)}function of(e){return rf(t=>{throw new Error(t)},e)}function zp(e,t,n,r,i){let o="";if(t=t||"",i=i||"",ef(e))switch(i.toLowerCase()!=="x"&&(nf(e,0)?(e=ja(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=jo(e,r);break;case"g":case"G":e=r!=null?es(e,r):es(e);break;case"e":case"E":e=r!=null?ts(e,r):ts(e);break;case"x":e=ns(e);break;case"X":e=ns(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Ss(e):e=et(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=Zi(e,n-o.length,l,a),e=o+e):e=Zi(o+e,n,l,a)}return e}function sf(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,d,p,h]=l[0];let m=d;if(i>=0)m=i,i=-1;else if(m==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}s+=a[0],s+=zp(u,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):sf(e,a,l,s,i)}}function qp(e){return t=>{Ti.lastIndex=0;const n=[],r=[];let i=0,o=Ti.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Ti.lastIndex,Ti.lastIndex-=1,o=Ti.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),sf(t,n,r))}}function $l(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(Gp,(r,i,o,s,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(ef(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=jo(u,a);break;case"g":case"G":u=a!=null?es(u,a):es(u);break;case"e":case"E":u=a!=null?ts(u,a):ts(u);break;case"p":case"P":a=a??2,u=jo(ja(u,100),a)+" %";break;case"d":case"D":u=a!=null?ua(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?ua(ns(u),a,"0"):ns(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(d,p,h)=>{nf(u,0)&&(u=ja(u,-1),f="-"),h=h==null?"":h.substring(1),u=jo(u,Math.max(h.length,0));let[m,w]=u.split(".");w||(w="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;m=ua(m,b,"0");const C=h.replace(/#+$/,"").length;if(C>w.length?w=Yp(w,C,"0"):C<w.length&&(w=w.substring(0,C)+w.substring(C).replace(/0+$/,"")),p.indexOf(",")>0){const x=m.length%3,E=Math.floor(m.length/3);let $=x>0?m.substr(0,x)+(E>0?",":""):"";for(let I=0;I<E;I++)$+=m.substr(x+I*3,3)+(I<E-1?",":"");m=$}return w.length>0?m+"."+w:m}),u=f+u}}else u instanceof Date?u=Ss(u,l||s):u=et(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=Zi(String(u),Math.abs(o)," ",o<0)),u})}function Ml(e){return typeof e!="string"||e.length===0}function so(e){return typeof e!="string"||/^\s*$/.test(e)}function _t(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function Zi(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function ua(e,t,n){return Zi(e,t,n)}function Yp(e,t,n){return Zi(e,t,n,!0)}function Zp(e,t,n){return e.replace(new RegExp(Nl(t),"g"),n)}function Kp(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Nl),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const d=o?e.substring(u).trim():e.substring(u);(!i||d.length>0)&&s.push(d),l=!1}else{const d=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||d.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(d)),u=a.lastIndex}}while(l);return s}function Xp(e,...t){if(t.length===0)return e.trim();const n="["+Nl(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}class wr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Xt(this.value)}Equals(t){return t==null?!1:te(this.value,t instanceof wr?t.value:t)}CompareTo(t){return t==null?1:wt(this.value,t instanceof wr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof wr?e.value:e}function Hi(e){return e instanceof wr?e.value:e}function dt(e){return e==null||e instanceof wr?new wr(e):e}function af(e){return e==null?null:V(e)}function Es(e){return e==null?[]:[V(e)]}function rt(e,t){return e!=null?V(e):t}function Jp(e,t){return e!=null?V(e):t()}function kt(e,t){return t!=null?dt(e(V(t))):void 0}function Qp(e,t){return t!=null?e(V(t)):void 0}class eg{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class zt{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return We(this)}GetHashCode(){return lf(this)}Equals(t){return Ba(this,t)}}function Bt(e){return e.generics!=null?e.generics:[]}function lf(e){const t=er(e.fullname),n=Bt(e).map(lf);return io([t,...n])}function Ba(e,t){return e.fullname===""?t.fullname===""&&Va(Ki(e),Ki(t),([n,r],[i,o])=>n===i&&Ba(r,o)):e.fullname===t.fullname&&Va(Bt(e),Bt(t),Ba)}function Yn(e,t,n,r){return new zt(e,t,n,r)}function Qt(e,t,n,r){return new zt(e,t,n,void 0,r)}function uf(e,t,n,r){const i=new zt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new eg(i,a,o[a],s))});return i}function qr(e){return new zt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function vr(e){return new zt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const tg=new zt("System.Object"),$n=new zt("System.String"),ng=new zt("System.Boolean"),Nt=new zt("System.Int32");function Yr(e){if(Array.isArray(e))return e[0];if(e instanceof zt){const t=ao(e);if(t!=null)return Yr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function We(e){const t=ao(e);return t!=null?We(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>We(n)).join(",")+"]"}function cf(e){return ao(e)!=null}function ao(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function df(e){return e.generics!=null&&e.generics.length>0}function Il(e){return e.enumCases!=null&&e.enumCases.length>0}function ff(e){return e.generics==null?e:new zt(e.fullname,e.generics.map(()=>tg))}function mf(e){var t;return(t=e.generics)==null?void 0:t[0]}function Or(e){if(Il(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function rg(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 Rr(e,t){const n=parseInt(t,10);return rg(e,isNaN(n)?t:n)[1]}function hf(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function Ki(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function pf(e){if(Dl(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function gf(e){return e instanceof zt?e.cases!=null:e instanceof K}function yf(e){return e instanceof zt?e.fields!=null:e instanceof Se}function Dl(e){return e.fullname.startsWith("System.Tuple")}function ig(e,t){const r=hf(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function wf(e){return e.fields==null?[]:e.fields}function og(e,t){return e[t[0]]}function sg(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 ag(e,t){const n=Ki(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],s)=>(r[i]=t[s],r),{})}function lg(e,t){return e}const vf="Collection was empty.",ug="The input must be non-negative.",bf="The input sequence has an insufficient number of elements.";function ii(e,t){return new Array(t)}function ju(e,t){return e>t?e:t}function Bu(e,t){return e<t?e:t}function _f(e,t,n){const r=e.length|0,i=t.length|0,o=ii(n,r+i);for(let s=0;s<=r-1;s++)xt(o,s,pe(s,e));for(let s=0;s<=i-1;s++)xt(o,s+r,pe(s,t));return o}function lo(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function cg(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return pe(e.length-1,e)}function xf(e,t,n){const r=t.length|0,i=ii(n,r);for(let o=0;o<=r-1;o++)xt(i,o,e(o,pe(o,t)));return i}function Ge(e,t,n){const r=t.length|0,i=ii(n,r);for(let o=0;o<=r-1;o++)xt(i,o,e(pe(o,t)));return i}function is(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return ii(t,0);case 1:return pe(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=pe(a,n);o=o+l.length|0}const s=ii(t,o);for(let a=0;a<=n.length-1;a++){const l=pe(a,n);for(let u=0;u<=l.length-1;u++)xt(s,i,pe(u,l)),i=i+1|0}return s}}}function dg(e,t,n,r,i){const o=rt(n,0)|0,s=rt(kt(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,pe(u,e)))return u|0;l=u+1;continue e}})(o)|0}function hi(e,t,n){return dg(t,e,void 0,void 0,n)>=0}function fg(e,t){const n=ii(t,1);return xt(n,0,e),n}function mg(e){return e.slice().reverse()}function As(e,t){return t.find(e)}function Ut(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(pe(i,t));if(o!=null){const s=V(o);r.push(s)}}return te(n,Ce())?r:Ge(i=>i,r,n)}function ks(e,t,n){const r=e;return n.reduce(r,t)}function hg(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function pg(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function br(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,i=!0;const o=t.length|0,s=n.length|0;if(o>s)return!1;if(o<s)return!1;for(;r<o&&i;)i=e(pe(r,t),pe(r,n)),r=r+1|0;return i}}function Uu(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return pe(0,e)}function gg(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function pe(e,t){if(e<0||e>=t.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");return t[e]}function xt(e,t,n){if(t<0||t>=e.length)throw new Error("Index was outside the bounds of the array.\\nParameter name: index");e[t]=n}function Cf(e,t){if(!(e<0||e>=t.length))return dt(t[e])}function Sf(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class Ct extends Se{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+_t("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),d=V(u);if(te(s.head,a.head)){i=f,o=d;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,l=o,u=l.tail;if(u!=null){const f=V(u);if(s>18)return a|0;r=s+1,i=(a<<1)+Xt(l.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),d=V(u),p=wt(s.head,a.head)|0;if(p===0){i=f,o=d;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return wg(this)}[Symbol.iterator](){return fi(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Ie(this)}}class yg{constructor(t){this.xs=t,this.it=this.xs,this.current=Ce()}"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=V(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=Ce()}Dispose(){}}function wg(e){return new yg(e)}function it(){return new Ct(Ce(),void 0)}function uo(e,t){return new Ct(e,t)}function tr(e){return e.tail==null}function Ef(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=V(s);continue e}else return i|0}})(0,e)|0}function pi(e){if(e.tail!=null)return e.head;throw new Error(vf+"\\nParameter name: list")}function St(e){const t=e.tail;if(t!=null)return V(t);throw new Error(vf+"\\nParameter name: list")}function ft(){return it()}function Yt(e,t){return uo(e,t)}function fe(e){return uo(e,it())}function Te(e){return tr(e)}function an(e){return Ef(e)}function ue(e){return pi(e)}function Ne(e){return St(e)}function Fn(e){const t=Ef(e)|0,n=lo(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!tr(a)){xt(n,s,pi(a)),i=s+1,o=St(a);continue e}break}})(0,e),n}function Pn(e,t,n){let r=t,i=n;for(;!tr(i);)r=e(r,ue(i)),i=St(i);return r}function Ol(e){return Pn((t,n)=>uo(n,t),it(),e)}function vg(e,t,n){return Sf(e,Fn(t),n)}function bg(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(tr(u))return l;i=a+1,o=e(a,l,pi(u)),s=St(u);continue e}})(0,t,n)}function os(e,t){Pn((n,r)=>{e(r)},void 0,t)}function Ye(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=uo(pe(r,e),n);return n}function y(e){return Ye(e,it())}function _g(e){let t,n;if(dn(e))return y(e);if(e instanceof Ct)return e;{const r=it();let i=r;const o=Ie(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new Ct(l,void 0),t.tail=n,n)}}finally{$e(o)}const s=i,a=it();return s.tail=a,St(r)}}function co(e,t){return Pn((n,r)=>uo(r,n),t,Ol(e))}function Af(e,t){const n=it(),r=bg((o,s,a)=>{const l=new Ct(e(o,a),void 0);return s.tail=l,l},n,t),i=it();return r.tail=i,St(n)}function gi(e,t){const n=it(),r=Pn((o,s)=>{const a=new Ct(e(s),void 0);return o.tail=a,a},n,t),i=it();return r.tail=i,St(n)}function xg(e,t){return(r=>{e:for(;;){const i=r;if(tr(i))return;{const o=e(pi(i));if(o==null){r=St(i);continue e}else return o}}})(t)}function Cg(e,t){return xg(n=>e(n)?dt(n):void 0,t)}function Sg(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(tr(s))return;if(e(pi(s)))return o;r=o+1,i=St(s);continue e}})(0,t)}function Wn(e,t){const n=it(),r=Pn((o,s)=>{if(e(s)){const a=new Ct(s,void 0);return o.tail=a,a}else return o},n,t),i=it();return r.tail=i,St(n)}function Eg(e,t){const n=it(),r=it(),i=n,o=Pn((l,u)=>{let f,d;const p=l[0],h=l[1];return e(u)?[(f=new Ct(u,void 0),p.tail=f,f),h]:[p,(d=new Ct(u,void 0),h.tail=d,d)]},[i,r],t),s=it();o[0].tail=s;const a=it();return o[1].tail=a,[St(i),St(r)]}function Ag(e,t){const n=it(),r=Pn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new Ct(V(a),void 0);return o.tail=l,l}},n,t),i=it();return r.tail=i,St(n)}function kg(e,t){return Sg(e,t)!=null}function kf(e,t){const n=Fn(t);return n.sort(e),y(n)}function Ng(e,t,n){return kf((r,i)=>n.Compare(e(r),e(i)),t)}function Tg(e,t,n){return kf((r,i)=>n.Compare(e(r),e(i))*-1,t)}function Nf(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(tr(r))throw new Error(bf+"\\nParameter name: list");e=n-1,t=St(r);continue e}}function Tf(e,t){if(e<0)throw new Error(ug+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,d=a,p=l;if(f<=0)return d;if(tr(p))throw new Error(bf+"\\nParameter name: list");s=f-1,a=(u=new Ct(pi(p),void 0),d.tail=u,u),l=St(p);continue e}},r=it(),i=n(e,r,t),o=it();return i.tail=o,St(r)}function $g(e,t,n){const r=an(n)|0;let i;const o=rt(e,0)|0;i=o<0?0:o;let s;const a=rt(t,r-1)|0;return s=a>=r?r-1:a,s<i?it():Tf(s-i+1,Nf(i,n))}const v=Z;function Mg(e){const t=y([c("style",{children:[Al]}),c("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return c("div",{children:v.Children.toArray(Array.from(t))})}function Ig(e){throw new Error(e)}const Dg="Enumeration already finished.",Og="Enumeration has not started. Call MoveNext.",$f="The input sequence has an insufficient number of elements.",Rg="Reset is not supported on this enumerator.";function Fg(){throw new Error(Rg)}function Rl(){throw new Error(Og)}function Ua(){throw new Error(Dg)}class Pg{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Ie(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+et(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{$e(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return fi(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function Lg(e){return new Pg(e)}class Vg{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"(){Fg()}Dispose(){this.dispose()}}function Ns(e,t,n){return new Vg(e,t,n)}function Hg(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{$e(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{$e(a)}finally{t=void 0}}};return Ns(()=>(r?i&&Ua():Rl(),o!=null?V(o):Ua()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const d=V(f);if(d["System.Collections.IEnumerator.MoveNext"]())o=dt(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{$e(d)}finally{n=void 0}}else{const d=V(u);d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Ie(a)):(s(),l=!1)}else t=Ie(e)}return V(l)}},()=>{i||s()})}function jg(e,t){return Ns(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{$e(t)}finally{}})}function Mf(e,t,n){let r=!1,i,o=dt(e());const s=()=>{if(o!=null){const l=V(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return Ns(()=>(r||Rl(),i!=null?V(i):Ua()),()=>{if(r||(r=!0),o!=null){const l=V(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(i=u,!0):(a(),!1)}else return!1},s)}function Bg(e,t){let n,r=t;return Ns(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return Rl()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function Ug(e,t){t==null&&Ig(e)}function yi(e){return Lg(e)}function yn(e){return Ug("source",e),Ie(e)}function T(e){return yi(()=>Ie(e()))}function Ts(e){return yi(()=>Hg(e))}function Wg(e,t){return yi(()=>Bg(e,t))}function ht(){return T(()=>new Array(0))}function A(e){return T(()=>fg(e))}function Zn(e){return e instanceof Ct?Fn(e):Array.from(e)}function ee(e){return dn(e)?y(e):e instanceof Ct?e:_g(e)}function If(e,t,n){return yi(()=>Mf(e,t,n))}function Df(e,t,n){return yi(()=>{let r=-1;return Mf(e,i=>(r=r+1|0,t(r,i)),n)})}function B(e,t){return Ts([e,t])}function Gg(e,t){return If(()=>yn(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=>{$e(n)})}function zg(e,t,n){const r=yn(t);try{const i=yn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{$e(i)}}finally{$e(r)}}function Fr(e,t,n){const r=yn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{$e(r)}}function Fl(e,t){return Gg(n=>{if(e(n))return dt(n)},t)}function fo(e,t,n){const r=yn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{$e(r)}}function $r(e,t){fo((n,r)=>{e(r)},void 0,t)}function Of(e,t){fo((n,r)=>(e(n,r),n+1|0),0,t)}function qg(e){if(dn(e))return e.length|0;if(e instanceof Ct)return an(e)|0;{const t=yn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{$e(t)}}}function He(e,t){return If(()=>yn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?dt(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{$e(n)})}function Yg(e,t){return Df(()=>yn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?dt(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{$e(n)})}function Zg(e){return T(()=>mg(Zn(e)))}function Kg(e,t){return yi(()=>{const n=yn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error($f+"\\nParameter name: source");return jg(()=>{},n)}catch(r){throw $e(n),r}})}function Xg(e,t){return Df(()=>yn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return dt(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error($f+"\\nParameter name: source")}else return},n=>{$e(n)})}function $s(e,t){return T(()=>Ts(He(e,t)))}const cr={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ca(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 Jg(e,t){switch(t){case cr.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case cr.SnakeCase:return ca(e,"_");case cr.SnakeCaseAllCaps:return ca(e,"_").toUpperCase();case cr.KebabCase:return ca(e,"-");case cr.None:default:return e}}function Mr(e,t=cr.None){const n={},r=t;function i(s){throw new Error("Cannot infer key and value of "+String(s))}function o(s,a,l){s=Jg(s,a),n[s]=l}for(let s of e){let a=cr.None;if(s==null&&i(s),s instanceof K){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:i(s);break;case 1:o(s[0],a,!0);break;case 2:const l=s[1];o(s[0],a,l);break;default:o(s[0],a,s.slice(1))}else typeof s=="string"?o(s,a,!0):i(s)}return n}function Pl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function Rf(e,t){return t.has(e)?!1:(t.add(e),!0)}function Qg(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function Kn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class Ff{constructor(t,n){const r=new pt(Ce());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Ie(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();da(r.contents,o)}}finally{$e(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Ie(this)}GetEnumerator(){return Ie(Ts(this.hashMap.values()))}[Symbol.iterator](){return fi(Ie(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){da(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){Wu(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return zu(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Of((i,o)=>{xt(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Gu(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return qu(this,t)}get size(){return Gu(this)|0}add(t){const n=this;return da(n,t),n}clear(){Wu(this)}delete(t){return qu(this,t)}has(t){return zu(this,t)}keys(){return He(n=>n,this)}values(){return He(n=>n,this)}entries(){return He(n=>[n,n],this)}forEach(t,n){const r=this;$r(i=>{t(i,i,r)},r)}}function Ll(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ce();return r=[Pl(e.hashMap,n,new pt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function Wu(e){e.hashMap.clear()}function Gu(e){let t=0,n=Ie(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{$e(n)}return t|0}function da(e,t){const n=Ll(e,t);return n[0]?n[2]>-1?!1:(Kn(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function zu(e,t){const n=Ll(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function qu(e,t){const n=Ll(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Kn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class Pf{constructor(t){this.k=t}}function Ht(e){return new Pf(e)}function ge(e){return e.k}class Me extends Pf{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function jt(e,t,n,r){return new Me(e,t,n,r)}function je(e){return e.left}function Le(e){return e.right}function Gr(e){return e.h}function Lf(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof Me){const o=i;e=je(o),t=Lf(Le(o),r+1);continue e}else return r+1|0}else return r|0}}function e1(e){return Lf(e,0)}function nn(e,t,n){let r,i,o;const s=e;if(s!=null){const f=V(s);o=f instanceof Me?(r=f,Gr(r)):1}else o=0;let a;const l=n;if(l!=null){const f=V(l);a=f instanceof Me?(i=f,Gr(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Ht(t):jt(t,e,n,u+1)}function Yu(e,t,n){let r,i,o,s,a,l,u,f,d;const p=e;if(p!=null){const w=V(p);d=w instanceof Me?(r=w,Gr(r)):1}else d=0;let h;const m=n;if(m!=null){const w=V(m);h=w instanceof Me?(i=w,Gr(i)):1}else h=0;if(h>d+2){const w=V(n);if(w instanceof Me){const b=w;if(o=je(b),(o!=null?(s=V(o),s instanceof Me?(a=s,Gr(a)):1):0)>d+1){const C=V(je(b));if(C instanceof Me){const x=C;return nn(nn(e,t,je(x)),ge(x),nn(Le(x),ge(b),Le(b)))}else throw new Error("internal error: Set.rebalance")}else return nn(nn(e,t,je(b)),ge(b),Le(b))}else throw new Error("internal error: Set.rebalance")}else if(d>h+2){const w=V(e);if(w instanceof Me){const b=w;if(l=Le(b),(l!=null?(u=V(l),u instanceof Me?(f=u,Gr(f)):1):0)>h+1){const C=V(Le(b));if(C instanceof Me){const x=C;return nn(nn(je(b),ge(b),je(x)),ge(x),nn(Le(x),t,n))}else throw new Error("internal error: Set.rebalance")}else return nn(je(b),ge(b),nn(Le(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return nn(e,t,n)}function oi(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,ge(r))|0;if(r instanceof Me){const o=r;return i<0?Yu(oi(e,t,je(o)),ge(o),Le(o)):i===0?n:Yu(je(o),ge(o),oi(e,t,Le(o)))}else{const o=e.Compare(t,ge(r))|0;return o<0?jt(t,void 0,n,2):o===0?n:jt(t,n,void 0,2)}}else return Ht(t)}function Vf(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,ge(s))|0;if(s instanceof Me){const l=s;if(a<0){e=r,t=i,n=je(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Le(l);continue e}}else return a===0}else return!1}}function Hf(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Me){const o=i;Hf(n,je(o)),n(ge(o)),e=n,t=Le(o);continue e}else n(ge(i))}break}}class t1 extends Se{constructor(t,n){super(),this.stack=t,this.started=n}}function jf(e){e:for(;;){const t=e;if(Te(t))return ft();{const n=ue(t),r=Ne(t);if(n!=null){const i=V(n);if(i instanceof Me){const o=i;e=Ye([je(o),Ht(ge(o)),Le(o)],r);continue e}else return t}else{e=r;continue e}}}}function Zu(e){return new t1(jf(fe(e)),!1)}function n1(){throw new Error("Enumeration not started")}function r1(){throw new Error("Enumeration already started")}function Ku(e){if(e.started){const t=e.stack;if(Te(t))return r1();if(ue(t)!=null){const n=V(ue(t));return ge(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return n1()}function i1(e){if(e.started){const t=e.stack;if(Te(t))return!1;if(ue(t)!=null){if(V(ue(t))instanceof Me)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=jf(Ne(t)),!Te(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Te(e.stack)}function Xu(e){let t=Zu(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return Ku(t)},"System.Collections.IEnumerator.get_Current"(){return Ku(t)},"System.Collections.IEnumerator.MoveNext"(){return i1(t)},"System.Collections.IEnumerator.Reset"(){t=Zu(e)},Dispose(){}}}function o1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(Te(i))return Te(o)?0:-1;if(Te(o))return 1;if(ue(o)!=null)if(ue(i)!=null){const s=V(ue(i)),a=V(ue(o));if(s instanceof Me){const l=s;if(je(l)==null)if(a instanceof Me){const u=a;if(je(u)==null){const f=r.Compare(ge(l),ge(u))|0;if(f!==0)return f|0;e=r,t=Yt(Le(l),Ne(i)),n=Yt(Le(u),Ne(o));continue e}else{let f,d,p,h,m;switch(Te(i)?Te(o)?f=2:ue(o)!=null?(f=1,h=Ne(o),m=V(ue(o))):f=2:ue(i)!=null?(f=0,d=Ne(i),p=V(ue(i))):Te(o)?f=2:ue(o)!=null?(f=1,h=Ne(o),m=V(ue(o))):f=2,f){case 0:if(p instanceof Me){const w=p;e=r,t=Ye([je(w),jt(ge(w),void 0,Le(w),0)],d),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(p))],d),n=o;continue e}case 1:if(m instanceof Me){const w=m;e=r,t=i,n=Ye([je(w),jt(ge(w),void 0,Le(w),0)],h);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(ge(l),ge(a))|0;if(u!==0)return u|0;e=r,t=Yt(Le(l),Ne(i)),n=Yt(void 0,Ne(o));continue e}else{let u,f,d,p,h;switch(Te(i)?Te(o)?u=2:ue(o)!=null?(u=1,p=Ne(o),h=V(ue(o))):u=2:ue(i)!=null?(u=0,f=Ne(i),d=V(ue(i))):Te(o)?u=2:ue(o)!=null?(u=1,p=Ne(o),h=V(ue(o))):u=2,u){case 0:if(d instanceof Me){const m=d;e=r,t=Ye([je(m),jt(ge(m),void 0,Le(m),0)],f),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(d))],f),n=o;continue e}case 1:if(h instanceof Me){const m=h;e=r,t=i,n=Ye([je(m),jt(ge(m),void 0,Le(m),0)],p);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Me){const l=a;if(je(l)==null){const u=r.Compare(ge(s),ge(l))|0;if(u!==0)return u|0;e=r,t=Yt(void 0,Ne(i)),n=Yt(Le(l),Ne(o));continue e}else{let u,f,d,p,h;switch(Te(i)?Te(o)?u=2:ue(o)!=null?(u=1,p=Ne(o),h=V(ue(o))):u=2:ue(i)!=null?(u=0,f=Ne(i),d=V(ue(i))):Te(o)?u=2:ue(o)!=null?(u=1,p=Ne(o),h=V(ue(o))):u=2,u){case 0:if(d instanceof Me){const m=d;e=r,t=Ye([je(m),jt(ge(m),void 0,Le(m),0)],f),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(d))],f),n=o;continue e}case 1:if(h instanceof Me){const m=h;e=r,t=i,n=Ye([je(m),jt(ge(m),void 0,Le(m),0)],p);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(ge(s),ge(a))|0;if(l!==0)return l|0;e=r,t=Ne(i),n=Ne(o);continue e}}else{V(ue(o));let s,a,l,u,f;switch(Te(i)?Te(o)?s=2:ue(o)!=null?(s=1,u=Ne(o),f=V(ue(o))):s=2:ue(i)!=null?(s=0,a=Ne(i),l=V(ue(i))):Te(o)?s=2:ue(o)!=null?(s=1,u=Ne(o),f=V(ue(o))):s=2,s){case 0:if(l instanceof Me){const d=l;e=r,t=Ye([je(d),jt(ge(d),void 0,Le(d),0)],a),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(l))],a),n=o;continue e}case 1:if(f instanceof Me){const d=f;e=r,t=i,n=Ye([je(d),jt(ge(d),void 0,Le(d),0)],u);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(ue(i)!=null){V(ue(i));let s,a,l,u,f;switch(Te(i)?Te(o)?s=2:ue(o)!=null?(s=1,u=Ne(o),f=V(ue(o))):s=2:ue(i)!=null?(s=0,a=Ne(i),l=V(ue(i))):Te(o)?s=2:ue(o)!=null?(s=1,u=Ne(o),f=V(ue(o))):s=2,s){case 0:if(l instanceof Me){const d=l;e=r,t=Ye([je(d),jt(ge(d),void 0,Le(d),0)],a),n=o;continue e}else{e=r,t=Ye([void 0,Ht(ge(l))],a),n=o;continue e}case 1:if(f instanceof Me){const d=f;e=r,t=i,n=Ye([je(d),jt(ge(d),void 0,Le(d),0)],u);continue e}else{e=r,t=i,n=Ye([void 0,Ht(ge(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=Ne(i),n=Ne(o);continue e}}}function Ju(e,t,n){return t==null?n==null?0:-1:n==null?1:o1(e,fe(t),fe(n))|0}function s1(e,t,n){let r=n;Hf(i=>{xt(t,r,i),r=r+1|0},e)}function a1(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=oi(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function l1(e,t){return ks((n,r)=>oi(e,r,n),void 0,t)}function u1(e,t){return Pn((n,r)=>oi(e,r,n),void 0,t)}function Bf(e,t){if(dn(t))return l1(e,t);if(t instanceof Ct)return u1(e,t);{const n=Ie(t);try{return a1(e,void 0,n)}finally{$e(n)}}}class Vl{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return f1(this)|0}Equals(t){let n;const r=this;return t instanceof Vl&&(n=t,Ju(Zr(r),rn(r),rn(n))===0)}toString(){return"set ["+_t("; ",He(n=>et(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return Ju(Zr(n),rn(n),rn(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 Vf(Zr(n),t,rn(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){s1(rn(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return fa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return fa(this)|0}GetEnumerator(){return Xu(rn(this))}[Symbol.iterator](){return fi(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Xu(rn(this))}get size(){return fa(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 Uf(this,t)}keys(){return He(n=>n,this)}values(){return He(n=>n,this)}entries(){return He(n=>[n,n],this)}forEach(t,n){const r=this;$r(i=>{t(i,i,r)},r)}}function Ms(e,t){return new Vl(e,t)}function Zr(e){return e.comparer}function rn(e){return e.tree}function c1(e){return Ms(e,void 0)}function d1(e,t){return Ms(Zr(e),oi(Zr(e),t,rn(e)))}function fa(e){return e1(rn(e))}function Uf(e,t){return Vf(Zr(e),t,rn(e))}function f1(e){let t=0;const n=Ie(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Xt(r)+631|0}}finally{$e(n)}return Math.abs(t)|0}function Wa(e,t){return Uf(t,e)}function m1(e,t){return d1(t,e)}function h1(e){return c1(e)}function p1(e,t){return Ms(t,Bf(t,e))}function g1(e,t){return Ms(t,Bf(t,e))}function y1(){return ft()}function Hl(e){return _t("/",e)}function w1(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Hl(t),n])}function Wf(e,t,n){try{$e(n)}catch(r){e(["Error stopping subscription: "+Hl(t),r])}}function v1(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+Hl(n),i]);return}}function b1(e,t){os(n=>{Wf(e,n[0],n[1])},t)}function Qu(e,t,n,r,i,o){return os(s=>{w1(e,s)},n),os(s=>{Wf(e,s[0],s[1])},r),co(i,Ag(s=>v1(e,t,s[0],s[1]),o))}function _1(){return[ft(),h1({Compare:wt}),ft()]}function x1(e,t,n,r,i){return Wa(e,r)?[Yt(e,n),r,i]:[n,m1(e,r),Yt([e,t],i)]}function C1(e){return vg((t,n)=>x1(t[0],t[1],n[0],n[1],n[2]),e,_1())}const S1=ft();function ec(e,t){const n=p1(gi(s=>s[0],e),{Compare:wt}),r=C1(t),i=r[1],o=r[0];if(n.Equals(i))return[o,ft(),e,ft()];{const s=Eg(a=>Wa(a[0],i),e);return[o,s[1],s[0],Wn(a=>!Wa(a[0],n),r[2])]}}function E1(e){return new Gf(0,[e])}function A1(e){return new Gf(1,[e])}class Gf extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function k1(e){return E1(e)}function N1(e){return A1(e)}class T1{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function $1(e,t){t.Subscribe(new T1(e))}class M1{constructor(){this.delegates=[]}_add(t){this.delegates.push(t)}_remove(t){const n=this.delegates.indexOf(t);n>-1&&this.delegates.splice(n,1)}get Publish(){return D1(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let I1=class extends M1{};function D1(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class O1{constructor(t){this._enabled=!1,this._isDisposed=!1,this._intervalId=0,this._timeoutId=0,this.Interval=t&&t>0?t:100,this.AutoReset=!0,this._elapsed=new I1}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(dt(e),t)}function F1(e,t){let n,r=new O1(e);r.AutoReset=!1,n=r,$1(t,n.Elapsed()),n.Enabled=!0,n.Start()}class P1{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Is extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Is.prototype)}}class jl{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>jl.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Nn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Is);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(Qo(n))}});else try{e(t)}catch(n){t.onError(Qo(n))}}}function L1(e,t){return Nn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(Qo(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function V1(e){return Nn(t=>t.onSuccess(e))}class H1{Bind(t,n){return L1(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Nn(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return V1(t)}ReturnFrom(t){return t}TryFinally(t,n){return Nn(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Nn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(Qo(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Nn(t=>t.onSuccess(void 0))}}const Ae=new H1;function ma(e){}const j1=new P1;function B1(e){return Nn(t=>{e({onSuccess:n=>t.onSuccess(k1(n)),onError:n=>t.onSuccess(N1(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function U1(e){return Nn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function W1(e){return Nn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Is)})})}function G1(e,t){return z1(e,t)}function zf(e,t){return G1(e,t)}function z1(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new jl;e({onSuccess:t||ma,onError:ma,onCancel:ma,cancelToken:i||j1,trampoline:o})}function tc(e,t,n){os(r=>{try{r(t)}catch(i){e(i)}},n)}function Y(){return ft()}function qf(e){return fe(e)}function Yf(e,t,n,r){return fe(i=>{e(Ae.Delay(()=>Ae.Bind(B1(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),Ae.Zero()})))})}function Zf(e){F1(1,t=>{zf(e)})}function q1(e,t,n,r){const i=wt(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return s=>{const a=wt(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function Y1(e,t,n,r,i){const o=q1(t,n,r,i);return T(()=>Wg(o,e))}function Bl(e,t,n){return Y1(e,t,n,0,(r,i)=>r+i)}class Kr extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class Z1{constructor(t){this.state=new Kr(0,[lo(new Array(ju(t,10)),0,ju(t,10),null),0])}}function K1(e){return new Z1(e)}function nc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new Kr(0,[i,n]):e.state=new Kr(1,[i,n,o]),dt(pe(r,i))}else return}function X1(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];xt(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new Kr(1,[J1(e,i,o),o.length,0]):e.state=new Kr(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];xt(i,r,t);const o=(r+1)%i.length|0;e.state=new Kr(1,[i,o,r])}}function J1(e,t,n){return Array.from(T(()=>B(Kg(t,n),T(()=>B(Xg(t,n),T(()=>$s(r=>A(Ce()),Bl(0,1,n.length))))))))}class Ul extends Se{constructor(t,n,r,i,o,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=s,this.termination=a}}function Ir(e,t,n){return new Ul(e,t,r=>y1(),n,Qe(r=>{const i=ur(n)(r);return o=>{i(o)}}),r=>{R1(r[0],r[1])},[r=>!1,r=>{}])}function Q1(e,t){return new Ul(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function ey(e){return e.init}function ty(e,t,n,r,i,o,s){const a=ur(e)(s.init),l=la(t)(ur(s.update)),u=la(n)(ur(s.view)),f=la(r)(ur(s.setState));return new Ul(a,Qe(l),ur(i)(s.subscribe),Qe(u),Qe(f),s.onError,o(s.termination))}function ny(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=K1(10);let u=!1,f=o,d=S1,p=!1;const h=b=>{p||(X1(l,b),u||(u=!0,w(),u=!1))},m=ur(e)(h),w=()=>{let b,C=nc(l);for(;!p&&C!=null;){const x=V(C);if(a[0](x))b1(n.onError,d),a[1](f),p=!0;else{const E=n.update(x,f),$=E[0],I=n.subscribe($);n.setState($,m),tc(L=>{n.onError([yr(Dn("Error handling the message: %A"))(x),L])},m,E[1]),f=$,d=(b=ec(d,I),Qu(n.onError,m,b[0],b[1],b[2],b[3])),C=nc(l)}}};u=!0,n.setState(o,m),tc(b=>{n.onError([yr(Dn("Error intitializing:")),b])},m,i[1]),d=(r=ec(d,s),Qu(n.onError,m,r[0],r[1],r[2],r[3])),w(),u=!1}function ry(e,t){ny(Qe(n=>n),e,t)}function iy(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ha={exports:{}},pa={};const oy=iy(Ko);/**
|
|
1
|
+
var co,Ee,Pd,cr,Nu,Ld,Va,pl,Ha,ja,Vd,eo={},Hd=[],Jh=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$s=Array.isArray;function An(e,t){for(var n in t)e[n]=t[n];return e}function jd(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function c(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?co.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Zi(e,s,r,i,null)}function Zi(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++Pd,__i:-1,__u:0};return i==null&&Ee.vnode!=null&&Ee.vnode(o),o}function Ms(){return{current:null}}function ze(e){return e.children}function cn(e,t){this.props=e,this.context=t}function ii(e,t){if(t==null)return e.__?ii(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"?ii(e):null}function Bd(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 Bd(e)}}function Ba(e){(!e.__d&&(e.__d=!0)&&cr.push(e)&&!is.__r++||Nu!==Ee.debounceRendering)&&((Nu=Ee.debounceRendering)||Ld)(is)}function is(){var e,t,n,r,i,o,s,a;for(cr.sort(Va);e=cr.shift();)e.__d&&(t=cr.length,r=void 0,o=(i=(n=e).__v).__e,s=[],a=[],n.__P&&((r=An({},i)).__v=i.__v+1,Ee.vnode&&Ee.vnode(r),gl(n.__P,r,i,n.__n,n.__P.namespaceURI,32&i.__u?[o]:null,s,o??ii(i),!!(32&i.__u),a),r.__v=i.__v,r.__.__k[r.__i]=r,Gd(s,r,a),r.__e!=o&&Bd(r)),cr.length>t&&cr.sort(Va));is.__r=0}function Ud(e,t,n,r,i,o,s,a,l,u,f){var d,p,h,m,v,b=r&&r.__k||Hd,x=t.length;for(n.__d=l,Qh(n,t,b),l=n.__d,d=0;d<x;d++)(h=n.__k[d])!=null&&(p=h.__i===-1?eo:b[h.__i]||eo,h.__i=d,gl(e,h,p,i,o,s,a,l,u,f),m=h.__e,h.ref&&p.ref!=h.ref&&(p.ref&&wl(p.ref,null,h),f.push(h.ref,h.__c||m,h)),v==null&&m!=null&&(v=m),65536&h.__u||p.__k===h.__k?l=Wd(h,l,e):typeof h.type=="function"&&h.__d!==void 0?l=h.__d:m&&(l=m.nextSibling),h.__d=void 0,h.__u&=-196609);n.__d=l,n.__e=v}function Qh(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,f=u,d=0;for(e.__k=[],r=0;r<l;r++)(i=t[r])!=null&&typeof i!="boolean"&&typeof i!="function"?(s=r+d,(i=e.__k[r]=typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Zi(null,i,null,null,null):$s(i)?Zi(ze,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Zi(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i).__=e,i.__b=e.__b+1,o=null,(a=i.__i=ep(i,n,s,f))!==-1&&(f--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a==s-1?d--:a==s+1?d++:(a>s?d--:d++,i.__u|=65536))):i=e.__k[r]=null;if(f)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=ii(o)),zd(o,o))}function Wd(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=Wd(r[i],t,n));return t}e.__e!=t&&(t&&e.type&&!n.contains(t)&&(t=ii(e)),n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function $n(e,t){return t=t||[],e==null||typeof e=="boolean"||($s(e)?e.some(function(n){$n(n,t)}):t.push(e)),t}function ep(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type&&!(131072&l.__u))return n;if((typeof o!="function"||o===ze||i)&&r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function Tu(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Jh.test(t)?n:n+"px"}function Ro(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||Tu(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||Tu(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e||t==="onFocusOut"||t==="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=pl,e.addEventListener(t,o?ja:Ha,o)):e.removeEventListener(t,o?ja:Ha,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&n==1?"":n))}}function $u(e){return function(t){if(this.l){var n=this.l[t.type+e];if(t.t==null)t.t=pl++;else if(t.t<n.u)return;return Ee.event&&(t=Ee.event(t)),"handleEvent"in n?n.handleEvent(t):n(t)}}}function gl(e,t,n,r,i,o,s,a,l,u){var f,d,p,h,m,v,b,x,C,E,M,R,F,L,S,_,k=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(f=Ee.__b)&&f(t);e:if(typeof k=="function")try{if(x=t.props,C="prototype"in k&&k.prototype.render,E=(f=k.contextType)&&r[f.__c],M=f?E?E.props.value:f.__:r,n.__c?b=(d=t.__c=n.__c).__=d.__E:(C?t.__c=d=new k(x,M):(t.__c=d=new cn(x,M),d.constructor=k,d.render=np),E&&E.sub(d),d.props=x,d.state||(d.state={}),d.context=M,d.__n=r,p=d.__d=!0,d.__h=[],d._sb=[]),C&&d.__s==null&&(d.__s=d.state),C&&k.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=An({},d.__s)),An(d.__s,k.getDerivedStateFromProps(x,d.__s))),h=d.props,m=d.state,d.__v=t,p)C&&k.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),C&&d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(C&&k.getDerivedStateFromProps==null&&x!==h&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(x,M),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(x,d.__s,M)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=x,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(T){T&&(T.__=t)}),R=0;R<d._sb.length;R++)d.__h.push(d._sb[R]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(x,d.__s,M),C&&d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(h,m,v)})}if(d.context=M,d.props=x,d.__P=e,d.__e=!1,F=Ee.__r,L=0,C){for(d.state=d.__s,d.__d=!1,F&&F(t),f=d.render(d.props,d.state,d.context),S=0;S<d._sb.length;S++)d.__h.push(d._sb[S]);d._sb=[]}else do d.__d=!1,F&&F(t),f=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++L<25);d.state=d.__s,d.getChildContext!=null&&(r=An(An({},r),d.getChildContext())),C&&!p&&d.getSnapshotBeforeUpdate!=null&&(v=d.getSnapshotBeforeUpdate(h,m)),Ud(e,$s(_=f!=null&&f.type===ze&&f.key==null?f.props.children:f)?_:[_],t,n,r,i,o,s,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),b&&(d.__E=d.__=null)}catch(T){if(t.__v=null,l||o!=null){for(t.__u|=l?160:128;a&&a.nodeType===8&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else t.__e=n.__e,t.__k=n.__k;Ee.__e(T,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=tp(n.__e,t,n,r,i,o,s,l,u);(f=Ee.diffed)&&f(t)}function Gd(e,t,n){t.__d=void 0;for(var r=0;r<n.length;r++)wl(n[r],n[++r],n[++r]);Ee.__c&&Ee.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Ee.__e(o,i.__v)}})}function tp(e,t,n,r,i,o,s,a,l){var u,f,d,p,h,m,v,b=n.props,x=t.props,C=t.type;if(C==="svg"?i="http://www.w3.org/2000/svg":C==="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(u=0;u<o.length;u++)if((h=o[u])&&"setAttribute"in h==!!C&&(C?h.localName===C:h.nodeType===3)){e=h,o[u]=null;break}}if(e==null){if(C===null)return document.createTextNode(x);e=document.createElementNS(i,C,x.is&&x),a&&(Ee.__m&&Ee.__m(t,o),a=!1),o=null}if(C===null)b===x||a&&e.data===x||(e.data=x);else{if(o=o&&co.call(e.childNodes),b=n.props||eo,!a&&o!=null)for(b={},u=0;u<e.attributes.length;u++)b[(h=e.attributes[u]).name]=h.value;for(u in b)if(h=b[u],u!="children"){if(u=="dangerouslySetInnerHTML")d=h;else if(!(u in x)){if(u=="value"&&"defaultValue"in x||u=="checked"&&"defaultChecked"in x)continue;Ro(e,u,null,h,i)}}for(u in x)h=x[u],u=="children"?p=h:u=="dangerouslySetInnerHTML"?f=h:u=="value"?m=h:u=="checked"?v=h:a&&typeof h!="function"||b[u]===h||Ro(e,u,h,b[u],i);if(f)a||d&&(f.__html===d.__html||f.__html===e.innerHTML)||(e.innerHTML=f.__html),t.__k=[];else if(d&&(e.innerHTML=""),Ud(e,$s(p)?p:[p],t,n,r,C==="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&ii(n,0),a,l),o!=null)for(u=o.length;u--;)jd(o[u]);a||(u="value",C==="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[u]||C==="progress"&&!m||C==="option"&&m!==b[u])&&Ro(e,u,m,b[u],i),u="checked",v!==void 0&&v!==e[u]&&Ro(e,u,v,b[u],i))}return e}function wl(e,t,n){try{if(typeof e=="function"){var r=typeof e.__u=="function";r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(i){Ee.__e(i,n)}}function zd(e,t,n){var r,i;if(Ee.unmount&&Ee.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||wl(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Ee.__e(o,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&zd(r[i],t,n||typeof e.type!="function");n||jd(e.__e),e.__c=e.__=e.__e=e.__d=void 0}function np(e,t,n){return this.constructor(e,n)}function Gn(e,t,n){var r,i,o,s;Ee.__&&Ee.__(e,t),i=(r=typeof n=="function")?null:n&&n.__k||t.__k,o=[],s=[],gl(t,e=(!r&&n||t).__k=c(ze,null,[e]),i||eo,eo,t.namespaceURI,!r&&n?[n]:i?null:t.firstChild?co.call(t.childNodes):null,o,!r&&n?n:i?i.__e:t.firstChild,r,s),Gd(o,e,s)}function yl(e,t){Gn(e,t,yl)}function vl(e,t,n){var r,i,o,s,a=An({},e.props);for(o in e.type&&e.type.defaultProps&&(s=e.type.defaultProps),t)o=="key"?r=t[o]:o=="ref"?i=t[o]:a[o]=t[o]===void 0&&s!==void 0?s[o]:t[o];return arguments.length>2&&(a.children=arguments.length>3?co.call(arguments,2):n),Zi(e.type,a,r||e.key,i||e.ref,null)}function nt(e,t){var n={__c:t="__cC"+Vd++,__:e,Consumer:function(r,i){return r.children(i)},Provider:function(r){var i,o;return this.getChildContext||(i=new Set,(o={})[t]=this,this.getChildContext=function(){return o},this.componentWillUnmount=function(){i=null},this.shouldComponentUpdate=function(s){this.props.value!==s.value&&i.forEach(function(a){a.__e=!0,Ba(a)})},this.sub=function(s){i.add(s);var a=s.componentWillUnmount;s.componentWillUnmount=function(){i&&i.delete(s),a&&a.call(s)}}),r.children}};return n.Provider.__=n.Consumer.contextType=n}co=Hd.slice,Ee={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},Pd=0,cn.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=An({},this.state),typeof e=="function"&&(e=e(An({},n),this.props)),e&&An(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ba(this))},cn.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ba(this))},cn.prototype.render=ze,cr=[],Ld=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Va=function(e,t){return e.__v.__b-t.__v.__b},is.__r=0,pl=0,Ha=$u(!1),ja=$u(!0),Vd=0;function bl(){return(bl=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 rp=["context","children"];function ip(e){this.getChildContext=function(){return e.context};var t=e.children,n=function(r,i){if(r==null)return{};var o,s,a={},l=Object.keys(r);for(s=0;s<l.length;s++)i.indexOf(o=l[s])>=0||(a[o]=r[o]);return a}(e,rp);return vl(t,n)}function op(){var e=new CustomEvent("_preact",{detail:{},bubbles:!0,cancelable:!0});this.dispatchEvent(e),this._vdom=c(ip,bl({},this._props,{context:e.detail.context}),function t(n,r){if(n.nodeType===3)return n.data;if(n.nodeType!==1)return null;var i=[],o={},s=0,a=n.attributes,l=n.childNodes;for(s=a.length;s--;)a[s].name!=="slot"&&(o[a[s].name]=a[s].value,o[qd(a[s].name)]=a[s].value);for(s=l.length;s--;){var u=t(l[s],null),f=l[s].slot;f?o[f]=c(Mu,{name:f},u):i[s]=u}var d=r?c(Mu,null,i):i;return c(r||n.nodeName.toLowerCase(),o,d)}(this,this._vdomComponent)),(this.hasAttribute("hydrate")?yl:Gn)(this._vdom,this._root)}function qd(e){return e.replace(/-(\w)/g,function(t,n){return n?n.toUpperCase():""})}function sp(e,t,n){if(this._vdom){var r={};r[e]=n=n??void 0,r[qd(e)]=n,this._vdom=vl(this._vdom,r),Gn(this._vdom,this._root)}}function ap(){Gn(this._vdom=null,this._root)}function Mu(e,t){var n=this;return c("slot",bl({},e,{ref:function(r){r?(n.ref=r,n._listener||(n._listener=function(i){i.stopPropagation(),i.detail.context=t},r.addEventListener("_preact",n._listener))):n.ref.removeEventListener("_preact",n._listener)}}))}function lp(e,t,n,r){function i(){var o=Reflect.construct(HTMLElement,[],i);return o._vdomComponent=e,o._root=o,o}return(i.prototype=Object.create(HTMLElement.prototype)).constructor=i,i.prototype.connectedCallback=op,i.prototype.attributeChangedCallback=sp,i.prototype.disconnectedCallback=ap,n=n||e.observedAttributes||Object.keys(e.propTypes||{}),i.observedAttributes=n,n.forEach(function(o){Object.defineProperty(i.prototype,o,{get:function(){return this._vdom.props[o]},set:function(s){this._vdom?this.attributeChangedCallback(o,null,s):(this._props||(this._props={}),this._props[o]=s,this.connectedCallback());var a=typeof s;s!=null&&a!=="string"&&a!=="boolean"&&a!=="number"||this.setAttribute(o,s)}})}),customElements.define(t||e.tagName||e.displayName||e.name,i)}function _l(e,t){lp(e,t)}var Dn,We,fa,Iu,oi=0,Yd=[],Qe=Ee,Du=Qe.__b,Ou=Qe.__r,Ru=Qe.diffed,Fu=Qe.__c,Pu=Qe.unmount,Lu=Qe.__;function Mr(e,t){Qe.__h&&Qe.__h(We,e,oi||t),oi=0;var n=We.__H||(We.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function ye(e){return oi=1,Ir(Zd,e)}function Ir(e,t,n){var r=Mr(Dn++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Zd(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=We,!We.u)){var i=function(a,l,u){if(!r.__c.__H)return!0;var f=r.__c.__H.__.filter(function(p){return!!p.__c});if(f.every(function(p){return!p.__N}))return!o||o.call(this,a,l,u);var d=r.__c.props!==a;return f.forEach(function(p){if(p.__N){var h=p.__[0];p.__=p.__N,p.__N=void 0,h!==p.__[0]&&(d=!0)}}),o&&o.call(this,a,l,u)||d};We.u=!0;var o=We.shouldComponentUpdate,s=We.componentWillUpdate;We.componentWillUpdate=function(a,l,u){if(this.__e){var f=o;o=void 0,i(a,l,u),o=f}s&&s.call(this,a,l,u)},We.shouldComponentUpdate=i}return r.__N||r.__}function Oe(e,t){var n=Mr(Dn++,3);!Qe.__s&&Sl(n.__H,t)&&(n.__=e,n.i=t,We.__H.__h.push(n))}function yn(e,t){var n=Mr(Dn++,4);!Qe.__s&&Sl(n.__H,t)&&(n.__=e,n.i=t,We.__h.push(n))}function re(e){return oi=5,me(function(){return{current:e}},[])}function xl(e,t,n){oi=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 me(e,t){var n=Mr(Dn++,7);return Sl(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ie(e,t){return oi=8,me(function(){return e},t)}function Pe(e){var t=We.context[e.__c],n=Mr(Dn++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(We)),t.props.value):e.__}function Cl(e,t){Qe.useDebugValue&&Qe.useDebugValue(t?t(e):e)}function up(e){var t=Mr(Dn++,10),n=ye();return t.__=e,We.componentDidCatch||(We.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function en(){var e=Mr(Dn++,11);if(!e.__){for(var t=We.__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 cp(){for(var e;e=Yd.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ko),e.__H.__h.forEach(Ua),e.__H.__h=[]}catch(t){e.__H.__h=[],Qe.__e(t,e.__v)}}Qe.__b=function(e){We=null,Du&&Du(e)},Qe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Lu&&Lu(e,t)},Qe.__r=function(e){Ou&&Ou(e),Dn=0;var t=(We=e.__c).__H;t&&(fa===We?(t.__h=[],We.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.i=n.__N=void 0})):(t.__h.forEach(Ko),t.__h.forEach(Ua),t.__h=[],Dn=0)),fa=We},Qe.diffed=function(e){Ru&&Ru(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Yd.push(t)!==1&&Iu===Qe.requestAnimationFrame||((Iu=Qe.requestAnimationFrame)||dp)(cp)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.i=void 0})),fa=We=null},Qe.__c=function(e,t){t.some(function(n){try{n.__h.forEach(Ko),n.__h=n.__h.filter(function(r){return!r.__||Ua(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Qe.__e(r,n.__v)}}),Fu&&Fu(e,t)},Qe.unmount=function(e){Pu&&Pu(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{Ko(r)}catch(i){t=i}}),n.__H=void 0,t&&Qe.__e(t,n.__v))};var Vu=typeof requestAnimationFrame=="function";function dp(e){var t,n=function(){clearTimeout(r),Vu&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Vu&&(t=requestAnimationFrame(n))}function Ko(e){var t=We,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),We=t}function Ua(e){var t=We;e.__c=e.__(),We=t}function Sl(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Zd(e,t){return typeof t=="function"?t(e):t}function Wa(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 Is(e,t){var n=t(),r=ye({t:{__:n,u:t}}),i=r[0].t,o=r[1];return yn(function(){i.__=n,i.u=t,ma(i)&&o({t:i})},[e,n,t]),Oe(function(){return ma(i)&&o({t:i}),e(function(){ma(i)&&o({t:i})})},[e]),n}function ma(e){var t,n,r=e.u,i=e.__;try{var o=r();return!((t=i)===(n=o)&&(t!==0||1/t==1/n)||t!=t&&n!=n)}catch{return!0}}function El(e){e()}function Al(e){return e}function kl(){return[!1,El]}var Nl=yn;function os(e,t){this.props=e,this.context=t}function Kd(e,t){function n(i){var o=this.props.ref,s=o==i.ref;return!s&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!s:Wa(this.props,i)}function r(i){return this.shouldComponentUpdate=n,c(e,i)}return r.displayName="Memo("+(e.displayName||e.name)+")",r.prototype.isReactComponent=!0,r.__f=!0,r}(os.prototype=new cn).isPureReactComponent=!0,os.prototype.shouldComponentUpdate=function(e,t){return Wa(this.props,e)||Wa(this.state,t)};var Hu=Ee.__b;Ee.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Hu&&Hu(e)};var fp=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function Tl(e){function t(n){if(!("ref"in n))return e(n,null);var r=n.ref;delete n.ref;var i=e(n,r);return n.ref=r,i}return t.$$typeof=fp,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var ju=function(e,t){return e==null?null:$n($n(e).map(t))},Xd={map:ju,forEach:ju,count:function(e){return e?$n(e).length:0},only:function(e){var t=$n(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:$n},mp=Ee.__e;Ee.__e=function(e,t,n,r){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}mp(e,t,n,r)};var Bu=Ee.unmount;function Jd(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c=="function"&&r.__c()}),e.__c.__H=null),(e=function(r,i){for(var o in i)r[o]=i[o];return r}({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Jd(r,t,n)})),e}function Qd(e,t,n){return e&&n&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Qd(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 Ki(){this.__u=0,this.o=null,this.__b=null}function ef(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function tf(e){var t,n,r;function i(o){if(t||(t=e()).then(function(s){n=s.default||s},function(s){r=s}),r)throw r;if(!n)throw t;return c(n,o)}return i.displayName="Lazy",i.__f=!0,i}function zr(){this.i=null,this.l=null}Ee.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Bu&&Bu(e)},(Ki.prototype=new cn).__c=function(e,t){var n=t.__c,r=this;r.o==null&&(r.o=[]),r.o.push(n);var i=ef(r.__v),o=!1,s=function(){o||(o=!0,n.__R=null,i?i(a):a())};n.__R=s;var a=function(){if(!--r.__u){if(r.state.__a){var l=r.state.__a;r.__v.__k[0]=Qd(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)},Ki.prototype.componentWillUnmount=function(){this.o=[]},Ki.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]=Jd(this.__b,n,r.__O=r.__P)}this.__b=null}var i=t.__a&&c(ze,null,e.fallback);return i&&(i.__u&=-33),[c(ze,null,t.__a?null:e.children),i]};var Uu=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 hp(e){return this.getChildContext=function(){return e.context},e.children}function pp(e){var t=this,n=e.h;t.componentWillUnmount=function(){Gn(null,t.v),t.v=null,t.h=null},t.h&&t.h!==n&&t.componentWillUnmount(),t.v||(t.h=n,t.v={nodeType:1,parentNode:n,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),t.h.appendChild(r)},insertBefore:function(r,i){this.childNodes.push(r),t.h.appendChild(r)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),t.h.removeChild(r)}}),Gn(c(hp,{context:t.context},e.__v),t.v)}function Ds(e,t){var n=c(pp,{__v:e,h:t});return n.containerInfo=t,n}(zr.prototype=new cn).__a=function(e){var t=this,n=ef(t.__v),r=t.l.get(e);return r[0]++,function(i){var o=function(){t.props.revealOrder?(r.push(i),Uu(t,e,r)):i()};n?n(o):o()}},zr.prototype.render=function(e){this.i=null,this.l=new Map;var t=$n(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},zr.prototype.componentDidUpdate=zr.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,n){Uu(e,n,t)})};var nf=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,gp=/^(?: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]/,wp=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,yp=/[A-Z0-9]/g,vp=typeof document<"u",bp=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function rf(e,t,n){return t.__k==null&&(t.textContent=""),Gn(e,t),typeof n=="function"&&n(),e?e.__c:null}function of(e,t,n){return yl(e,t),typeof n=="function"&&n(),e?e.__c:null}cn.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(cn.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Wu=Ee.event;function _p(){}function xp(){return this.cancelBubble}function Cp(){return this.defaultPrevented}Ee.event=function(e){return Wu&&(e=Wu(e)),e.persist=_p,e.isPropagationStopped=xp,e.isDefaultPrevented=Cp,e.nativeEvent=e};var $l,Sp={enumerable:!1,configurable:!0,get:function(){return this.class}},Gu=Ee.vnode;Ee.vnode=function(e){typeof e.type=="string"&&function(t){var n=t.props,r=t.type,i={},o=r.indexOf("-")===-1;for(var s in n){var a=n[s];if(!(s==="value"&&"defaultValue"in n&&a==null||vp&&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"||bp(n.type)?l==="onfocus"?s="onfocusin":l==="onblur"?s="onfocusout":wp.test(s)&&(s=l):l=s="oninput":o&&gp.test(s)?s=s.replace(yp,"-$&").toLowerCase():a===null&&(a=void 0),l==="oninput"&&i[s=l]&&(s="oninputCapture"),i[s]=a}}r=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=$n(n.children).forEach(function(u){u.props.selected=i.value.indexOf(u.props.value)!=-1})),r=="select"&&i.defaultValue!=null&&(i.value=$n(n.children).forEach(function(u){u.props.selected=i.multiple?i.defaultValue.indexOf(u.props.value)!=-1:i.defaultValue==u.props.value})),n.class&&!n.className?(i.class=n.class,Object.defineProperty(i,"className",Sp)):(n.className&&!n.class||n.class&&n.className)&&(i.class=i.className=n.className),t.props=i}(e),e.$$typeof=nf,Gu&&Gu(e)};var zu=Ee.__r;Ee.__r=function(e){zu&&zu(e),$l=e.__c};var qu=Ee.diffed;Ee.diffed=function(e){qu&&qu(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),$l=null};var sf={ReactCurrentDispatcher:{current:{readContext:function(e){return $l.__n[e.__c].props.value},useCallback:Ie,useContext:Pe,useDebugValue:Cl,useDeferredValue:Al,useEffect:Oe,useId:en,useImperativeHandle:xl,useInsertionEffect:Nl,useLayoutEffect:yn,useMemo:me,useReducer:Ir,useRef:re,useState:ye,useSyncExternalStore:Is,useTransition:kl}}},Ep="18.3.1";function af(e){return c.bind(null,e)}function mi(e){return!!e&&e.$$typeof===nf}function lf(e){return mi(e)&&e.type===ze}function uf(e){return!!e&&!!e.displayName&&(typeof e.displayName=="string"||e.displayName instanceof String)&&e.displayName.startsWith("Memo(")}function Ml(e){return mi(e)?vl.apply(null,arguments):e}function cf(e){return!!e.__k&&(Gn(null,e),!0)}function df(e){return e&&(e.base||e.nodeType===1&&e)||null}var ff=function(e,t){return e(t)},qt=function(e,t){return e(t)},mf=ze,hf=mi,X={useState:ye,useId:en,useReducer:Ir,useEffect:Oe,useLayoutEffect:yn,useInsertionEffect:Nl,useTransition:kl,useDeferredValue:Al,useSyncExternalStore:Is,startTransition:El,useRef:re,useImperativeHandle:xl,useMemo:me,useCallback:Ie,useContext:Pe,useDebugValue:Cl,version:"18.3.1",Children:Xd,render:rf,hydrate:of,unmountComponentAtNode:cf,createPortal:Ds,createElement:c,createContext:nt,createFactory:af,cloneElement:Ml,createRef:Ms,Fragment:ze,isValidElement:mi,isElement:hf,isFragment:lf,isMemo:uf,findDOMNode:df,Component:cn,PureComponent:os,memo:Kd,forwardRef:Tl,flushSync:qt,unstable_batchedUpdates:ff,StrictMode:mf,Suspense:Ki,SuspenseList:zr,lazy:tf,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sf};const ss=Object.freeze(Object.defineProperty({__proto__:null,Children:Xd,Component:cn,Fragment:ze,PureComponent:os,StrictMode:mf,Suspense:Ki,SuspenseList:zr,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:sf,cloneElement:Ml,createContext:nt,createElement:c,createFactory:af,createPortal:Ds,createRef:Ms,default:X,findDOMNode:df,flushSync:qt,forwardRef:Tl,hydrate:of,isElement:hf,isFragment:lf,isMemo:uf,isValidElement:mi,lazy:tf,memo:Kd,render:rf,startTransition:El,unmountComponentAtNode:cf,unstable_batchedUpdates:ff,useCallback:Ie,useContext:Pe,useDebugValue:Cl,useDeferredValue:Al,useEffect:Oe,useErrorBoundary:up,useId:en,useImperativeHandle:xl,useInsertionEffect:Nl,useLayoutEffect:yn,useMemo:me,useReducer:Ir,useRef:re,useState:ye,useSyncExternalStore:Is,useTransition:kl,version:Ep},Symbol.toStringTag,{value:"Module"})),Ap=`*,: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}.left-full{left:100%}.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}.-my-3{margin-top:-.75rem;margin-bottom:-.75rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-auto{margin-left:auto;margin-right:auto}.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-1{margin-left:.25rem}.ml-3{margin-left:.75rem}.mt-0\\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.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-12{width:3rem;height:3rem}.size-4{width:1rem;height:1rem}.size-5{width:1.25rem;height:1.25rem}.h-1\\.5{height:.375rem}.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-\\[118px\\]{height:118px}.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-\\[63px\\]{height:63px}.h-\\[72px\\]{height:72px}.h-full{height:100%}.h-px{height:1px}.max-h-48{max-height:12rem}.max-h-\\[470px\\]{max-height:470px}.min-h-full{min-height:100%}.w-16{width:4rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-80{width:20rem}.w-96{width:24rem}.w-\\[1030px\\]{width:1030px}.w-\\[120px\\]{width:120px}.w-\\[128px\\]{width:128px}.w-\\[140px\\]{width:140px}.w-\\[148px\\]{width:148px}.w-\\[206px\\]{width:206px}.w-\\[218px\\]{width:218px}.w-\\[230px\\]{width:230px}.w-\\[260px\\]{width:260px}.w-\\[480px\\]{width:480px}.w-\\[640px\\]{width:640px}.w-full{width:100%}.w-screen{width:100vw}.max-w-\\[640px\\]{max-width:640px}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink,.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.basis-0{flex-basis:0px}.-translate-y-1\\/4{--tw-translate-y: -25%;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))}.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-inside{list-style-position:inside}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.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-8{gap:2rem}.gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.divide-gray-300>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(209 213 219 / var(--tw-divide-opacity, 1))}.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}.whitespace-nowrap{white-space:nowrap}.text-wrap{text-wrap:wrap}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-\\[10px\\]{border-radius:10px}.rounded-\\[5px\\]{border-radius:5px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-md{border-radius:.375rem}.rounded-sm{border-radius:.125rem}.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-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.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-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / 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-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.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-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-\\[\\#a650ff\\]{--tw-gradient-from: #a650ff var(--tw-gradient-from-position);--tw-gradient-to: rgb(166 80 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-\\[\\#0095f2\\]{--tw-gradient-to: #0095f2 var(--tw-gradient-to-position)}.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-\\[17px\\]{padding-left:17px;padding-right:17px}.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-2\\.5{padding-top:.625rem;padding-bottom:.625rem}.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-10{padding-bottom:2.5rem}.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-2{padding-left:.5rem}.pl-2\\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-\\[13px\\]{padding-left:13px}.pr-1\\.5{padding-right:.375rem}.pr-2{padding-right:.5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.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-5{padding-top:1.25rem}.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-sm\\/6{font-size:.875rem;line-height:1.5rem}.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-5{line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.leading-tight{line-height:1.25}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-amber-800{--tw-text-opacity: 1;color:rgb(146 64 14 / var(--tw-text-opacity, 1))}.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-400{--tw-text-opacity: 1;color:rgb(156 163 175 / 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-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px 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-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px 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-black{--tw-ring-opacity: 1;--tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1))}.ring-gray-300{--tw-ring-opacity: 1;--tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1))}.ring-opacity-5{--tw-ring-opacity: .05}.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)}@keyframes progressBar{0%{width:0}to{width:100%}}.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))}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:inset-1:before{content:var(--tw-content);top:.25rem;right:.25rem;bottom:.25rem;left:.25rem}.before\\:rounded-full:before{content:var(--tw-content);border-radius:9999px}.before\\:bg-white:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.checked\\:border-primary-600:checked{border-color:var(--fl-color-primary-600)}.checked\\:bg-primary-600:checked{background-color:var(--fl-color-primary-600)}.hover\\:bg-emerald-700:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-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))}.hover\\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\\:text-gray-700:hover{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-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)}.focus-visible\\:outline:focus-visible{outline-style:solid}.focus-visible\\:outline-2:focus-visible{outline-width:2px}.focus-visible\\:outline-offset-2:focus-visible{outline-offset:2px}.focus-visible\\:outline-primary-600:focus-visible{outline-color:var(--fl-color-primary-600)}.hover\\:enabled\\:bg-emerald-700:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(4 120 87 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-gray-50:enabled:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\\:enabled\\:bg-primary-700:enabled:hover{background-color:var(--fl-color-primary-700)}.disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:border-gray-300:disabled{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.disabled\\:bg-gray-100:disabled{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.disabled\\:opacity-50:disabled{opacity:.5}.disabled\\:before\\:bg-gray-400:disabled:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}@media (min-width: 640px){.sm\\:mx-0{margin-left:0;margin-right:0}.sm\\:my-8{margin-top:2rem;margin-bottom:2rem}.sm\\:ml-3{margin-left:.75rem}.sm\\:ml-4{margin-left:1rem}.sm\\:mt-0{margin-top:0}.sm\\:mt-4{margin-top:1rem}.sm\\:block{display:block}.sm\\:flex{display:flex}.sm\\:size-10{width:2.5rem;height:2.5rem}.sm\\:size-4{width:1rem;height:1rem}.sm\\:w-auto{width:auto}.sm\\:w-full{width:100%}.sm\\:max-w-lg{max-width:32rem}.sm\\:flex-row-reverse{flex-direction:row-reverse}.sm\\:items-start{align-items:flex-start}.sm\\:items-center{align-items:center}.sm\\:p-0{padding:0}.sm\\:p-6{padding:1.5rem}.sm\\:text-left{text-align:left}}@media (forced-colors: active){.forced-colors\\:appearance-auto{-webkit-appearance:auto;-moz-appearance:auto;appearance:auto}.forced-colors\\:before\\:hidden:before{content:var(--tw-content);display:none}}.\\[\\&\\:not\\(\\:checked\\)\\]\\:before\\:hidden:not(:checked):before{content:var(--tw-content);display:none}`;function fn(e){return Array.isArray(e)||ArrayBuffer.isView(e)}function kp(e){return e!=null&&typeof e.GetEnumerator=="function"}function Np(e){return e!=null&&typeof e.CompareTo=="function"}function Tp(e){return e!=null&&typeof e.Equals=="function"}function pf(e){return e!=null&&typeof e.GetHashCode=="function"}function Ga(e){return e!=null&&typeof e.Dispose=="function"}function De(e){Ga(e)&&e.Dispose()}function $e(){return null}function as(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 $p{constructor(t){this.iter=t,this.current=$e()}"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 Fe(e){return kp(e)?e.GetEnumerator():new $p(e[Symbol.iterator]())}function hi(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}}}}class Mp{constructor(t){this.factory=t,this.isValueCreated=!1}get Value(){return this.isValueCreated||(this.createdValue=this.factory(),this.isValueCreated=!0),this.createdValue}get IsValueCreated(){return this.isValueCreated}}function He(e,t){return e.toString(10).padStart(t,"0")}function Ip(e,t,n){return e.toString(10).padStart(t,"0").padEnd(n,"0")}function Yu(e){const t=e;return typeof t.offset=="number"?t.offset:e.kind===1?0:e.getTimezoneOffset()*-6e4}function Dp(e,t){return e=e<0&&t!=null&&t!==10?65535+e+1:e,e.toString(t)}function dn(e,t){return e=e<0&&t!=null&&t!==10?4294967295+e+1:e,e.toString(t)}class kn{static id(t){return kn.idMap.has(t)||kn.idMap.set(t,++kn.count),kn.idMap.get(t)}}kn.idMap=new WeakMap;kn.count=0;function Qn(e){let t=0,n=5381;const r=e.length;for(;t<r;)n=n*33^e.charCodeAt(t++);return n}function an(e){return e*2654435761|0}function gf(e){return Qn(e.toString(32))}function fo(e){let t=0;const n=e.length;for(let r=0;r<n;r++){const i=e[r];t=(t<<5)+t^i}return t}function Op(e){if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return an(e);case"bigint":return gf(e);case"string":return Qn(e);default:return an(kn.id(e))}}function Rp(e){return pf(e)?e.GetHashCode():Op(e)}function Fp(e){return e.getTime()}function Pp(e){const t=e.length,n=new Array(t);for(let r=0;r<t;r++)n[r]=Qt(e[r]);return fo(n)}function Qt(e){var t;if(e==null)return 0;switch(typeof e){case"boolean":return e?1:0;case"number":return an(e);case"bigint":return gf(e);case"string":return Qn(e);default:{if(pf(e))return e.GetHashCode();if(fn(e))return Pp(e);if(e instanceof Date)return Fp(e);if(((t=Object.getPrototypeOf(e))==null?void 0:t.constructor)===Object){const n=Object.values(e).map(r=>Qt(r));return fo(n)}else return an(kn.id(e))}}}function ls(e){return Rp(e)}function za(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 wf(e,t){return za(e,t,Q)}function Lp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;n.sort(),r.sort();for(let i=0;i<n.length;i++)if(n[i]!==r[i]||!Q(e[n[i]],t[r[i]]))return!1;return!0}function Q(e,t){var n;return e===t?!0:e==null?t==null:t==null?!1:Tp(e)?e.Equals(t):fn(e)?fn(t)&&wf(e,t):typeof e!="object"?!1:e instanceof Date?t instanceof Date&&yf(e,t)===0:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object&&Lp(e,t)}function yf(e,t){let n,r;return"offset"in e&&"offset"in t?(n=e.getTime(),r=t.getTime()):(n=e.getTime()+Yu(e),r=t.getTime()+Yu(t)),n===r?0:n<r?-1:1}function Dr(e,t){return e===t?0:e<t?-1:1}function Vp(e,t,n){if(e==null)return t==null?0:1;if(t==null)return-1;if(e.length!==t.length)return e.length<t.length?-1:1;for(let r=0,i=0;r<e.length;r++)if(i=n(e[r],t[r]),i!==0)return i;return 0}function Il(e,t){return Vp(e,t,_t)}function Hp(e,t){const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return n.length<r.length?-1:1;n.sort(),r.sort();for(let i=0,o=0;i<n.length;i++){const s=n[i];if(s!==r[i])return s<r[i]?-1:1;if(o=_t(e[s],t[s]),o!==0)return o}return 0}function _t(e,t){var n;return e===t?0:e==null?t==null?0:-1:t==null?1:Np(e)?e.CompareTo(t):fn(e)?fn(t)?Il(e,t):-1:typeof e!="object"?e<t?-1:1:e instanceof Date?t instanceof Date?yf(e,t):-1:((n=Object.getPrototypeOf(e))==null?void 0:n.constructor)===Object?Hp(e,t):-1}function w(e){const t={};for(const n of e)t[n[0]]=n[1];return t}function jp(e){fn(e)?e.splice(0):e.clear()}const Os=new WeakMap;function rt(e){if(e==null)return null;const t=(n,r)=>e(n)(r);return Os.set(t,e),t}function dr(e){return Os.get(e)??(t=>n=>e(t,n))}function qa(e){if(e==null)return null;const t=(n,r,i)=>e(n)(r)(i);return Os.set(t,e),t}function ha(e){return Os.get(e)??(t=>n=>r=>e(t,n,r))}function Bp(e){let t=0,n="[";for(const r of e){if(t===0)n+=Xe(r);else if(t===100){n+="; ...";break}else n+="; "+Xe(r);t++}return n+"]"}function Xe(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 Bp(e);{const r=(n=Object.getPrototypeOf(e))==null?void 0:n.constructor;return r===Object&&t<10?"{ "+Object.entries(e).map(([i,o])=>i+" = "+Xe(o,t+1)).join(`
|
|
2
|
+
`)+" }":(r==null?void 0:r.name)??""}}return String(e)}function Up(e,t){if(t.length===0)return e;{let n,r=!0;return t.length===1?(n=Xe(t[0]),r=n.indexOf(" ")>=0):n=t.map(i=>Xe(i)).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 Up(this.name,this.fields)}GetHashCode(){const t=this.fields.map(n=>Qt(n));return t.splice(0,0,an(this.tag)),fo(t)}Equals(t){return this===t?!0:as(this,t)&&this.tag===t.tag?wf(this.fields,t.fields):!1}CompareTo(t){return this===t?0:as(this,t)?this.tag===t.tag?Il(this.fields,t.fields):this.tag<t.tag?-1:1:-1}}function Wp(e){const t={},n=Object.keys(e);for(let r=0;r<n.length;r++)t[n[r]]=e[n[r]];return t}function Gp(e){return"{ "+Object.entries(e).map(([t,n])=>t+" = "+Xe(n)).join(`
|
|
3
|
+
`)+" }"}function zp(e){const t=Object.values(e).map(n=>Qt(n));return fo(t)}function qp(e,t){if(e===t)return!0;if(as(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++)if(!Q(e[n[r]],t[n[r]]))return!1;return!0}else return!1}function Yp(e,t){if(e===t)return 0;if(as(e,t)){const n=Object.keys(e);for(let r=0;r<n.length;r++){const i=_t(e[n[r]],t[n[r]]);if(i!==0)return i}return 0}else return-1}class Se{toJSON(){return Wp(this)}toString(){return Gp(this)}GetHashCode(){return zp(this)}Equals(t){return qp(this,t)}CompareTo(t){return Yp(this,t)}}class vt{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 Zp{constructor(t){this.message=t}}function Kp(e){return e instanceof Zp||e instanceof Error}function Xp(e){return e instanceof Promise}function us(e){return Kp(e)||Xp(e)?e:new Error(String(e))}const Dl=Xe(Ap),pi=Symbol("numeric");function vf(e){return typeof e=="number"||typeof e=="bigint"||(e==null?void 0:e[pi])}function Jp(e,t){return typeof e=="number"||typeof e=="bigint"?e<t?-1:e>t?1:0:e.CompareTo(t)}function Ya(e,t){return typeof e=="number"?e*t:typeof e=="bigint"?e*BigInt(t):e[pi]().multiply(t)}function Xo(e,t){return typeof e=="number"?e.toFixed(t):typeof e=="bigint"?e:e[pi]().toFixed(t)}function cs(e,t){return typeof e=="number"?e.toPrecision(t):typeof e=="bigint"?e:e[pi]().toPrecision(t)}function ds(e,t){return typeof e=="number"?e.toExponential(t):typeof e=="bigint"?e:e[pi]().toExponential(t)}function fs(e){return typeof e=="number"?(Number(e)>>>0).toString(16):typeof e=="bigint"?BigInt.asUintN(64,e).toString(16):e[pi]().toHex()}const Qp=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e1=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],t1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],n1=["January","February","March","April","May","June","July","August","September","October","November","December"];function Ht(e,t,n){let r=0,i=t;for(;i<e.length&&e[i]===n;)i++,r++;return r}function Zu(e,t){return t>=e.length-1?-1:e.charCodeAt(t+1)}function r1(e,t){let n=t;const r=e[t];let i="",o=!1;for(;t<e.length;){t++;const s=e[t];if(s===r){o=!0;break}else if(s==="\\")if(t<e.length)t++,i+=e[t];else throw new Error("Invalid string format");else i+=s}if(!o)throw new Error(`Invalid string format could not find matching quote for ${r}`);return[i,t-n+1]}function Ol(e,t,n){let r=0,i=0,o="";const s=n?mo(e.getTime(),1):e;for(;r<t.length;){const a=t[r];switch(a){case"d":switch(i=Ht(t,r,"d"),r+=i,i){case 1:o+=Xu(s);break;case 2:o+=He(Xu(s),2);break;case 3:o+=Qp[ec(s)];break;case 4:o+=e1[ec(s)];break}break;case"f":if(i=Ht(t,r,"f"),r+=i,i<=3){const b=10**(3-i);o+=He(Math.floor(Po(s)/b),i)}else i<=7&&(o+=(""+Po(s)).padEnd(i,"0"));break;case"F":if(i=Ht(t,r,"F"),r+=i,i<=3){const b=10**(3-i),x=Math.floor(Po(s)/b);x!=0&&(o+=He(x,i))}else if(i<=7){const b=Po(s);b!=0&&(o+=He(b,3))}break;case"g":i=Ht(t,r,"g"),r+=i,i<=2&&(o+="A.D.");break;case"h":switch(i=Ht(t,r,"h"),r+=i,i){case 1:o+=Fo(s)%12;break;case 2:o+=He(Fo(s)%12,2);break}break;case"H":switch(i=Ht(t,r,"H"),r+=i,i){case 1:o+=Fo(s);break;case 2:o+=He(Fo(s),2);break}break;case"K":switch(i=Ht(t,r,"K"),r+=i,i){case 1:switch(Ku(s)){case 1:o+="Z";break;case 2:o+=Yr(s.getTimezoneOffset()*-6e4);break}break}break;case"m":switch(i=Ht(t,r,"m"),r+=i,i){case 1:o+=Ju(s);break;case 2:o+=He(Ju(s),2);break}break;case"M":switch(i=Ht(t,r,"M"),r+=i,i){case 1:o+=Lo(s);break;case 2:o+=He(Lo(s),2);break;case 3:o+=t1[Lo(s)-1];break;case 4:o+=n1[Lo(s)-1];break}break;case"s":switch(i=Ht(t,r,"s"),r+=i,i){case 1:o+=Qu(s);break;case 2:o+=He(Qu(s),2);break}break;case"t":switch(i=Ht(t,r,"t"),r+=i,i){case 1:o+=s.getHours()<12?"A":"P";break;case 2:o+=s.getHours()<12?"AM":"PM";break}break;case"y":switch(i=Ht(t,r,"y"),r+=i,i){case 1:o+=s.getFullYear()%100;break;case 2:o+=He(s.getFullYear()%100,2);break;case 3:o+=He(s.getFullYear(),3);break;case 4:o+=He(s.getFullYear(),4);break;case 5:o+=He(s.getFullYear(),5);break}break;case"z":i=Ht(t,r,"z"),r+=i;let l="";switch(Ku(s)){case 1:l="+00:00";break;case 2:l=Yr(s.getTimezoneOffset()*-6e4);break;case 0:l=Yr(f1(s).getTimezoneOffset()*-6e4);break}const u=l[0]==="-"?"-":"+",f=parseInt(l.substring(1,3),10),d=parseInt(l.substring(4,6),10);switch(i){case 1:o+=`${u}${f}`;break;case 2:o+=`${u}${He(f,2)}`;break;default:o+=`${u}${He(f,2)}:${He(d,2)}`;break}break;case":":o+=":",r++;break;case"/":o+="/",r++;break;case"'":case'"':const[p,h]=r1(t,r);o+=p,r+=h;break;case"%":const m=Zu(t,r);if(m>=0&&m!==37)r+=2,o+=Ol(s,String.fromCharCode(m),n);else throw new Error("Invalid format string");break;case"\\":const v=Zu(t,r);if(v>=0)r+=2,o+=String.fromCharCode(v);else throw new Error("Invalid format string");break;default:r++,o+=a;break}}return o}function Ku(e){return e.kind||0}function Yr(e){const t=e<0;e=Math.abs(e);const n=~~(e/36e5),r=e%36e5/6e4;return(t?"-":"+")+He(n,2)+":"+He(r,2)}function ms(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 i1(e,t){if(t)return e.toISOString();{const n=e.kind==null?!0:e.kind===2;return He(e.getFullYear(),4)+"-"+He(e.getMonth()+1,2)+"-"+He(e.getDate(),2)+"T"+He(e.getHours(),2)+":"+He(e.getMinutes(),2)+":"+He(e.getSeconds(),2)+"."+He(e.getMilliseconds(),3)+(n?Yr(e.getTimezoneOffset()*-6e4):"")}}function o1(e,t){const n=e.toISOString();return n.substring(0,n.length-1)+Yr(t)}function s1(e,t){const n=new Date(e.getTime()+(e.offset??0));if(typeof t!="string")return n.toISOString().replace(/\.\d+/,"").replace(/[A-Z]|\.\d+/g," ")+Yr(e.offset??0);if(t.length===1)switch(t){case"D":case"d":return ms(n,"first");case"T":case"t":return ms(n,"second");case"O":case"o":return o1(n,e.offset??0);default:throw new Error("Unrecognized Date print format")}else return Ol(n,t,!0)}function a1(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?ms(e,"first"):e.toLocaleDateString();case"T":case"t":return n?ms(e,"second"):e.toLocaleTimeString();case"O":case"o":return i1(e,n);default:throw new Error("Unrecognized Date print format")}else return Ol(e,t,n)}function Rs(e,t,n){return e.offset!=null?s1(e,t):a1(e,t)}function mo(e,t){const n=new Date(e);return n.kind=(t??0)|0,n}function l1(){return mo(-621355968e5,1)}function bf(e){function t(){throw new Error(`The string is not a valid Date: ${e}`)}(e==null||e.trim()==="")&&t(),e.length===10&&e[4]==="-"&&e[7]==="-"&&(e+="T00:00:00");let n=new Date(e),r=null;if(isNaN(n.getTime())){const i=/^\s*(\d+[^\w\s:]\d+[^\w\s:]\d+)?\s*(\d+:\d+(?::\d+(?:\.\d+)?)?)?\s*([AaPp][Mm])?\s*(Z|[+-]([01]?\d):?([0-5]?\d)?)?\s*$/.exec(e);if(i!=null){let o,s=0;if(i[2]!=null){const a=i[2].split(":"),l=parseInt(a[0],10);s=l*3600+parseInt(a[1]||"0",10)*60+parseFloat(a[2]||"0"),i[3]!=null&&i[3].toUpperCase()==="PM"&&l<12&&(s+=720)}if(i[4]!=null){if(i[1]!=null)o=new Date(i[1]+" UTC");else{const a=new Date;o=new Date(a.getUTCFullYear()+"/"+(a.getUTCMonth()+1)+"/"+a.getUTCDate())}if(i[4]==="Z")r="Z";else{let a=parseInt(i[5],10)*60+parseInt(i[6]||"0",10);i[4][0]==="-"&&(a*=-1),r=a,s-=a*60}}else if(i[1]!=null)o=new Date(i[1]);else{const a=new Date;o=new Date(a.getFullYear()+"/"+(a.getMonth()+1)+"/"+a.getDate())}n=new Date(o.getTime()+s*1e3),n=new Date(n.getTime()+(n.getTimezoneOffset()-o.getTimezoneOffset())*6e4)}else t();isNaN(n.getTime())&&t()}return[n,r]}function u1(e,t=!1){const[n,r]=bf(e),i=r!=null?t&&r==="Z"?1:2:0;return mo(n.getTime(),i)}function c1(e,t){try{return t.contents=u1(e),!0}catch{return!1}}function d1(e){return e.kind===1?e:mo(e.getTime(),1)}function f1(e){return e.kind===2?e:mo(e.getTime(),2)}function Xu(e){return e.kind===1?e.getUTCDate():e.getDate()}function Fo(e){return e.kind===1?e.getUTCHours():e.getHours()}function Po(e){return e.kind===1?e.getUTCMilliseconds():e.getMilliseconds()}function Ju(e){return e.kind===1?e.getUTCMinutes():e.getMinutes()}function Lo(e){return(e.kind===1?e.getUTCMonth():e.getMonth())+1}function Qu(e){return e.kind===1?e.getUTCSeconds():e.getSeconds()}function ec(e){return e.kind===1?e.getUTCDay():e.getDay()}function m1(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 Fs(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function tc(e,t,n=0){if(t==null)throw new Error("Input cannot ve null");if(!e.global)throw new Error("Non-global RegExp");e.lastIndex=n;const r=[];let i,o=-1;for(;(i=e.exec(t))!=null;)i.index===o?e.lastIndex++:(o=i.index,r.push(i));return r}function Rl(e,t,n,r,i=0){function o(){let s=arguments[0];if(r){r--;const a=[],l=arguments.length,u=typeof arguments[l-1]!="string";let f=u?l-3:l-2;for(let d=0;d<f;d++)a.push(arguments[d]);a.index=arguments[f++],a.input=arguments[f++],u&&(a.groups=arguments[f]),s=n(a)}return s}if(typeof e=="string"){const s=e;e=m1(t,r??0),t=s,r=void 0}if(typeof n=="function")return r=r??-1,t.substring(0,i)+t.substring(i).replace(e,o);if(n=n.replace(/\$0/g,s=>"$&").replace(/\${([^}]+)}/g,"$<$1>"),r!=null){let s;const a=t.substring(i),l=tc(e,a),u=tc.length>r?(s=l[r-1],a.substring(0,s.index+s[0].length)):a;return t.substring(0,i)+u.replace(e,n)+t.substring(i+u.length)}else return t.replace(e,n)}const Ri=/(^|[^%])%([0+\- ]*)(\*|\d+)?(?:\.(\d+))?(\w)/g,h1=/\{(\d+)(,-?\d+)?(?:\:([a-zA-Z])(\d{0,2})|\:(.+?))?\}/g;function _f(e,t){return Jp(e,t)<0}function On(e){return{input:e,cont:g1(e)}}function xf(e,t){return typeof t=="string"?e(t):t.cont(e)}function _r(e){return xf(t=>t,e)}function Cf(e){return xf(t=>{throw new Error(t)},e)}function p1(e,t,n,r,i){let o="";if(t=t||"",i=i||"",vf(e))switch(i.toLowerCase()!=="x"&&(_f(e,0)?(e=Ya(e,-1),o="-"):t.indexOf(" ")>=0?o=" ":t.indexOf("+")>=0&&(o="+")),r=r==null?null:parseInt(r,10),i){case"f":case"F":r=r??6,e=Xo(e,r);break;case"g":case"G":e=r!=null?cs(e,r):cs(e);break;case"e":case"E":e=r!=null?ds(e,r):ds(e);break;case"x":e=fs(e);break;case"X":e=fs(e).toUpperCase();break;default:e=String(e);break}else e instanceof Date?e=Rs(e):e=Xe(e);if(n=typeof n=="number"?n:parseInt(n,10),isNaN(n))e=o+e;else{const s=t.indexOf("0")>=0,a=t.indexOf("-")>=0,l=a||!s?" ":"0";l==="0"?(e=to(e,n-o.length,l,a),e=o+e):e=to(o+e,n,l,a)}return e}function Sf(e,t,n,r="",i=-1){return(...o)=>{let s=r;const a=t.slice(),l=n.slice();for(const u of o){const[,,f,d,p,h]=l[0];let m=d;if(i>=0)m=i,i=-1;else if(m==="*"){if(u<0)throw new Error("Non-negative number required");i=u;continue}s+=a[0],s+=p1(u,f,m,p,h),a.splice(0,1),l.splice(0,1)}return l.length===0?(s+=a[0],e(s)):Sf(e,a,l,s,i)}}function g1(e){return t=>{Ri.lastIndex=0;const n=[],r=[];let i=0,o=Ri.exec(e);for(;o;){const s=o.index+(o[1]||"").length;n.push(e.substring(i,s).replace(/%%/g,"%")),r.push(o),i=Ri.lastIndex,Ri.lastIndex-=1,o=Ri.exec(e)}return n.length===0?t(e.replace(/%%/g,"%")):(n.push(e.substring(i).replace(/%%/g,"%")),Sf(t,n,r))}}function Fl(e,...t){let n;return typeof e=="object"?(n=String(t[0]),t.shift()):n=e,n.replace(h1,(r,i,o,s,a,l)=>{if(i<0||i>=t.length)throw new Error("Index must be greater or equal to zero and less than the arguments' length.");let u=t[i];if(vf(u))switch(a=a==null?null:parseInt(a,10),s){case"f":case"F":a=a??2,u=Xo(u,a);break;case"g":case"G":u=a!=null?cs(u,a):cs(u);break;case"e":case"E":u=a!=null?ds(u,a):ds(u);break;case"p":case"P":a=a??2,u=Xo(Ya(u,100),a)+" %";break;case"d":case"D":u=a!=null?pa(String(u),a,"0"):String(u);break;case"x":case"X":u=a!=null?pa(fs(u),a,"0"):fs(u),s==="X"&&(u=u.toUpperCase());break;default:if(l){let f="";u=l.replace(/([0#,]+)(\.[0#]+)?/,(d,p,h)=>{_f(u,0)&&(u=Ya(u,-1),f="-"),h=h==null?"":h.substring(1),u=Xo(u,Math.max(h.length,0));let[m,v]=u.split(".");v||(v="");const b=p.replace(/,/g,"").replace(/^#+/,"").length;m=pa(m,b,"0");const x=h.replace(/#+$/,"").length;if(x>v.length?v=w1(v,x,"0"):x<v.length&&(v=v.substring(0,x)+v.substring(x).replace(/0+$/,"")),p.indexOf(",")>0){const C=m.length%3,E=Math.floor(m.length/3);let M=C>0?m.substr(0,C)+(E>0?",":""):"";for(let R=0;R<E;R++)M+=m.substr(C+R*3,3)+(R<E-1?",":"");m=M}return v.length>0?m+"."+v:m}),u=f+u}}else u instanceof Date?u=Rs(u,l||s):u=Xe(u);return o=parseInt((o||" ").substring(1),10),isNaN(o)||(u=to(String(u),Math.abs(o)," ",o<0)),u})}function Pl(e){return typeof e!="string"||e.length===0}function ho(e){return typeof e!="string"||/^\s*$/.test(e)}function At(e,t){return Array.isArray(t)?t.join(e):Array.from(t).join(e)}function to(e,t,n,r){n=n||" ",t=t-e.length;for(let i=0;i<t;i++)e=r?e+n:n+e;return e}function pa(e,t,n){return to(e,t,n)}function w1(e,t,n){return to(e,t,n,!0)}function Ef(e,t,n){return e.replace(new RegExp(Fs(t),"g"),n)}function y1(e,t,n,r){if(n=typeof n=="number"?n:void 0,r=typeof r=="number"?r:0,n&&n<0)throw new Error("Count cannot be less than zero");if(n===0)return[];const i=(r&1)===1,o=(r&2)===2;t=t||[],t=t.filter(f=>f).map(Fs),t=t.length>0?t:["\\s"];const s=[],a=new RegExp(t.join("|"),"g");let l=!0,u=0;do{const f=a.exec(e);if(f===null){const d=o?e.substring(u).trim():e.substring(u);(!i||d.length>0)&&s.push(d),l=!1}else{const d=o?e.substring(u,f.index).trim():e.substring(u,f.index);(!i||d.length>0)&&(n!=null&&s.length+1===n?(s.push(o?e.substring(u).trim():e.substring(u)),l=!1):s.push(d)),u=a.lastIndex}}while(l);return s}function v1(e,...t){if(t.length===0)return e.trim();const n="["+Fs(t.join(""))+"]+";return e.replace(new RegExp("^"+n),"").replace(new RegExp(n+"$"),"")}function Af(e,...t){return t.length===0?e.trimEnd():e.replace(new RegExp("["+Fs(t.join(""))+"]+$"),"")}class xr{constructor(t){this.value=t}toJSON(){return this.value}toString(){return String(this.value)}GetHashCode(){return Qt(this.value)}Equals(t){return t==null?!1:Q(this.value,t instanceof xr?t.value:t)}CompareTo(t){return t==null?1:_t(this.value,t instanceof xr?t.value:t)}}function V(e){if(e==null)throw new Error("Option has no value");return e instanceof xr?e.value:e}function zi(e){return e instanceof xr?e.value:e}function ut(e){return e==null||e instanceof xr?new xr(e):e}function kf(e){return e==null?null:V(e)}function po(e){return e==null?[]:[V(e)]}function at(e,t){return e!=null?V(e):t}function b1(e,t){return e!=null?V(e):t()}function Et(e,t){return t!=null?ut(e(V(t))):void 0}function _1(e,t){return t!=null?e(V(t)):void 0}class x1{constructor(t,n,r,i){this.declaringType=t,this.tag=n,this.name=r,this.fields=i}}class Zt{constructor(t,n,r,i,o,s,a){this.fullname=t,this.generics=n,this.construct=r,this.parent=i,this.fields=o,this.cases=s,this.enumCases=a}toString(){return qe(this)}GetHashCode(){return Nf(this)}Equals(t){return Za(this,t)}}function Gt(e){return e.generics!=null?e.generics:[]}function Nf(e){const t=Qn(e.fullname),n=Gt(e).map(Nf);return fo([t,...n])}function Za(e,t){return e.fullname===""?t.fullname===""&&za(no(e),no(t),([n,r],[i,o])=>n===i&&Za(r,o)):e.fullname===t.fullname&&za(Gt(e),Gt(t),Za)}function zn(e,t,n,r){return new Zt(e,t,n,r)}function tn(e,t,n,r){return new Zt(e,t,n,void 0,r)}function Tf(e,t,n,r){const i=new Zt(e,t,n,void 0,void 0,()=>{const o=n.prototype.cases();return r().map((s,a)=>new x1(i,a,o[a],s))});return i}function Zr(e){return new Zt("Microsoft.FSharp.Core.FSharpOption`1",[e])}function Cr(e){return new Zt("Microsoft.FSharp.Collections.FSharpList`1",[e])}const C1=new Zt("System.Object"),Mn=new Zt("System.String"),S1=new Zt("System.Boolean"),It=new Zt("System.Int32");function Kr(e){if(Array.isArray(e))return e[0];if(e instanceof Zt){const t=go(e);if(t!=null)return Kr(t)+"[]";{const n=e.fullname.lastIndexOf(".");return n===-1?e.fullname:e.fullname.substr(n+1)}}else return e.name}function qe(e){const t=go(e);return t!=null?qe(t)+"[]":e.generics==null||e.generics.length===0?e.fullname:e.fullname+"["+e.generics.map(n=>qe(n)).join(",")+"]"}function $f(e){return go(e)!=null}function go(e){var t;return e.fullname==="[]"&&((t=e.generics)==null?void 0:t.length)===1?e.generics[0]:void 0}function Mf(e){return e.generics!=null&&e.generics.length>0}function Ll(e){return e.enumCases!=null&&e.enumCases.length>0}function If(e){return e.generics==null?e:new Zt(e.fullname,e.generics.map(()=>C1))}function Df(e){var t;return(t=e.generics)==null?void 0:t[0]}function Fr(e){if(Ll(e)&&e.enumCases!=null)return e.enumCases.map(t=>t[1]);throw new Error(`${e.fullname} is not an enum type`)}function E1(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 Pr(e,t){const n=parseInt(t,10);return E1(e,isNaN(n)?t:n)[1]}function Of(e){if(e.cases!=null)return e.cases();throw new Error(`${e.fullname} is not an F# union type`)}function no(e){if(e.fields!=null)return e.fields();throw new Error(`${e.fullname} is not an F# record type`)}function Rf(e){if(Vl(e)&&e.generics!=null)return e.generics;throw new Error(`${e.fullname} is not a tuple type`)}function Ff(e){return e instanceof Zt?e.cases!=null:e instanceof z}function Pf(e){return e instanceof Zt?e.fields!=null:e instanceof Se}function Vl(e){return e.fullname.startsWith("System.Tuple")}function A1(e,t){const r=Of(t)[e.tag];if(r==null)throw new Error(`Cannot find case ${e.name} in union type`);return[r,e.fields]}function Lf(e){return e.fields==null?[]:e.fields}function k1(e,t){return e[t[0]]}function N1(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 T1(e,t){const n=no(e);if(n.length!==t.length)throw new Error(`Expected an array of length ${n.length} but got ${t.length}`);return e.construct!=null?new e.construct(...t):n.reduce((r,[i,o],s)=>(r[i]=t[s],r),{})}function $1(e,t){return e}const Vf="Collection was empty.",M1="The input must be non-negative.",Hf="The input sequence has an insufficient number of elements.";function si(e,t){return new Array(t)}function nc(e,t){return e>t?e:t}function rc(e,t){return e<t?e:t}function jf(e,t,n){const r=e.length|0,i=t.length|0,o=si(n,r+i);for(let s=0;s<=r-1;s++)kt(o,s,ve(s,e));for(let s=0;s<=i-1;s++)kt(o,s+r,ve(s,t));return o}function wo(e,t,n,r){const i=t|0;return e.fill(r,i,i+n)}function I1(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return ve(e.length-1,e)}function Bf(e,t,n){const r=t.length|0,i=si(n,r);for(let o=0;o<=r-1;o++)kt(i,o,e(o,ve(o,t)));return i}function Ye(e,t,n){const r=t.length|0,i=si(n,r);for(let o=0;o<=r-1;o++)kt(i,o,e(ve(o,t)));return i}function hs(e,t){const n=Array.isArray(e)?e:Array.from(e);switch(n.length|0){case 0:return si(t,0);case 1:return ve(0,n);default:{let i=0,o=0;for(let a=0;a<=n.length-1;a++){const l=ve(a,n);o=o+l.length|0}const s=si(t,o);for(let a=0;a<=n.length-1;a++){const l=ve(a,n);for(let u=0;u<=l.length-1;u++)kt(s,i,ve(u,l)),i=i+1|0}return s}}}function D1(e,t,n,r,i){const o=at(n,0)|0,s=at(Et(l=>o+l,r),e.length)|0;return(l=>{e:for(;;){const u=l;if(u>=s)return-1;if(i.Equals(t,ve(u,e)))return u|0;l=u+1;continue e}})(o)|0}function gi(e,t,n){return D1(t,e,void 0,void 0,n)>=0}function O1(e,t){const n=si(t,1);return kt(n,0,e),n}function R1(e){return e.slice().reverse()}function Ps(e,t){return t.find(e)}function zt(e,t,n){const r=[];for(let i=0;i<=t.length-1;i++){const o=e(ve(i,t));if(o!=null){const s=V(o);r.push(s)}}return Q(n,$e())?r:Ye(i=>i,r,n)}function Ls(e,t,n){const r=e;return n.reduce(r,t)}function F1(e,t){const n=e.slice();return n.sort((r,i)=>t.Compare(r,i)),n}function P1(e,t,n){const r=t.slice();return r.sort((i,o)=>n.Compare(e(i),e(o))),r}function yo(e,t,n){if(t==null)return n==null;if(n==null)return!1;{let r=0,i=!0;const o=t.length|0,s=n.length|0;if(o>s)return!1;if(o<s)return!1;for(;r<o&&i;)i=e(ve(r,t),ve(r,n)),r=r+1|0;return i}}function ic(e){if(e.length===0)throw new Error("The input array was empty\\nParameter name: array");return ve(0,e)}function L1(e){if(e.length===0)throw new Error("Not enough elements\\nParameter name: array");return e.slice(1)}function ve(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 kt(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 Uf(e,t){if(!(e<0||e>=t.length))return ut(t[e])}function Wf(e,t,n){return t.reduceRight((r,i)=>e(i,r),n)}class Nt extends Se{constructor(t,n){super(),this.head=t,this.tail=n}toString(){return"["+At("; ",this)+"]"}Equals(t){const n=this;return n===t?!0:((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),d=V(u);if(Q(s.head,a.head)){i=f,o=d;continue e}else return!1}else return!1;else return u==null}})(n,t)}GetHashCode(){return((r,i,o)=>{e:for(;;){const s=r,a=i,l=o,u=l.tail;if(u!=null){const f=V(u);if(s>18)return a|0;r=s+1,i=(a<<1)+Qt(l.head)+631*s,o=f;continue e}else return a|0}})(0,0,this)|0}toJSON(){const t=this;return Array.from(t)}CompareTo(t){return((i,o)=>{e:for(;;){const s=i,a=o,l=s.tail,u=a.tail;if(l!=null)if(u!=null){const f=V(l),d=V(u),p=_t(s.head,a.head)|0;if(p===0){i=f,o=d;continue e}else return p|0}else return 1;else return u!=null?-1:0}})(this,t)|0}GetEnumerator(){return H1(this)}[Symbol.iterator](){return hi(Fe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Fe(this)}}class V1{constructor(t){this.xs=t,this.it=this.xs,this.current=$e()}"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=V(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=$e()}Dispose(){}}function H1(e){return new V1(e)}function lt(){return new Nt($e(),void 0)}function vo(e,t){return new Nt(e,t)}function er(e){return e.tail==null}function Gf(e){return((n,r)=>{e:for(;;){const i=n,s=r.tail;if(s!=null){n=i+1,r=V(s);continue e}else return i|0}})(0,e)|0}function wi(e){if(e.tail!=null)return e.head;throw new Error(Vf+"\\nParameter name: list")}function Tt(e){const t=e.tail;if(t!=null)return V(t);throw new Error(Vf+"\\nParameter name: list")}function mt(){return lt()}function Xt(e,t){return vo(e,t)}function fe(e){return vo(e,lt())}function Ne(e){return er(e)}function ln(e){return Gf(e)}function se(e){return wi(e)}function Me(e){return Tt(e)}function tr(e){const t=Gf(e)|0,n=wo(new Array(t),0,t,null);return((i,o)=>{e:for(;;){const s=i,a=o;if(!er(a)){kt(n,s,wi(a)),i=s+1,o=Tt(a);continue e}break}})(0,e),n}function Fn(e,t,n){let r=t,i=n;for(;!er(i);)r=e(r,se(i)),i=Tt(i);return r}function Hl(e){return Fn((t,n)=>vo(n,t),lt(),e)}function j1(e,t,n){return Wf(e,tr(t),n)}function B1(e,t,n){return((i,o,s)=>{e:for(;;){const a=i,l=o,u=s;if(er(u))return l;i=a+1,o=e(a,l,wi(u)),s=Tt(u);continue e}})(0,t,n)}function ps(e,t){Fn((n,r)=>{e(r)},void 0,t)}function Je(e,t){let n=t;for(let r=e.length-1;r>=0;r--)n=vo(ve(r,e),n);return n}function g(e){return Je(e,lt())}function U1(e){let t,n;if(fn(e))return g(e);if(e instanceof Nt)return e;{const r=lt();let i=r;const o=Fe(e);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const l=o["System.Collections.Generic.IEnumerator`1.get_Current"]();i=(t=i,n=new Nt(l,void 0),t.tail=n,n)}}finally{De(o)}const s=i,a=lt();return s.tail=a,Tt(r)}}function bo(e,t){return Fn((n,r)=>vo(r,n),t,Hl(e))}function jl(e,t){const n=lt(),r=B1((o,s,a)=>{const l=new Nt(e(o,a),void 0);return s.tail=l,l},n,t),i=lt();return r.tail=i,Tt(n)}function Sr(e,t){const n=lt(),r=Fn((o,s)=>{const a=new Nt(e(s),void 0);return o.tail=a,a},n,t),i=lt();return r.tail=i,Tt(n)}function W1(e,t){return(r=>{e:for(;;){const i=r;if(er(i))return;{const o=e(wi(i));if(o==null){r=Tt(i);continue e}else return o}}})(t)}function G1(e,t){return W1(n=>e(n)?ut(n):void 0,t)}function z1(e,t){return((r,i)=>{e:for(;;){const o=r,s=i;if(er(s))return;if(e(wi(s)))return o;r=o+1,i=Tt(s);continue e}})(0,t)}function Nn(e,t){const n=lt(),r=Fn((o,s)=>{if(e(s)){const a=new Nt(s,void 0);return o.tail=a,a}else return o},n,t),i=lt();return r.tail=i,Tt(n)}function q1(e,t){const n=lt(),r=lt(),i=n,o=Fn((l,u)=>{let f,d;const p=l[0],h=l[1];return e(u)?[(f=new Nt(u,void 0),p.tail=f,f),h]:[p,(d=new Nt(u,void 0),h.tail=d,d)]},[i,r],t),s=lt();o[0].tail=s;const a=lt();return o[1].tail=a,[Tt(i),Tt(r)]}function Y1(e,t){const n=lt(),r=Fn((o,s)=>{const a=e(s);if(a==null)return o;{const l=new Nt(V(a),void 0);return o.tail=l,l}},n,t),i=lt();return r.tail=i,Tt(n)}function Bl(e,t){return z1(e,t)!=null}function zf(e,t){const n=tr(t);return n.sort(e),g(n)}function Z1(e,t,n){return zf((r,i)=>n.Compare(e(r),e(i)),t)}function K1(e,t,n){return zf((r,i)=>n.Compare(e(r),e(i))*-1,t)}function qf(e,t){e:for(;;){const n=e,r=t;if(n<=0)return r;if(er(r))throw new Error(Hf+"\\nParameter name: list");e=n-1,t=Tt(r);continue e}}function Yf(e,t){if(e<0)throw new Error(M1+"\\nParameter name: count");const n=(s,a,l)=>{let u;e:for(;;){const f=s,d=a,p=l;if(f<=0)return d;if(er(p))throw new Error(Hf+"\\nParameter name: list");s=f-1,a=(u=new Nt(wi(p),void 0),d.tail=u,u),l=Tt(p);continue e}},r=lt(),i=n(e,r,t),o=lt();return i.tail=o,Tt(r)}function X1(e,t,n){const r=ln(n)|0;let i;const o=at(e,0)|0;i=o<0?0:o;let s;const a=at(t,r-1)|0;return s=a>=r?r-1:a,s<i?lt():Yf(s-i+1,qf(i,n))}const y=X;function J1(e){const t=g([c("style",{children:[Dl]}),c("div",{className:"text-blue-500",children:`Welcome to apollo-import-workspace-app, with backend url ${e.backendUrl}`})]);return c("div",{children:y.Children.toArray(Array.from(t))})}function Q1(e){throw new Error(e)}const eg="Enumeration already finished.",tg="Enumeration has not started. Call MoveNext.",Zf="The input sequence has an insufficient number of elements.",ng="Reset is not supported on this enumerator.";function rg(){throw new Error(ng)}function Ul(){throw new Error(tg)}function Ka(){throw new Error(eg)}class ig{constructor(t){this.f=t}toString(){const t=this;let n=0,r="seq [";const i=Fe(t);try{for(;n<4&&i["System.Collections.IEnumerator.MoveNext"]();)n>0&&(r=r+"; "),r=r+Xe(i["System.Collections.Generic.IEnumerator`1.get_Current"]()),n=n+1|0;return n===4&&(r=r+"; ..."),r+"]"}finally{De(i)}}GetEnumerator(){return this.f()}[Symbol.iterator](){return hi(Fe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return this.f()}}function og(e){return new ig(e)}class sg{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"(){rg()}Dispose(){this.dispose()}}function Vs(e,t,n){return new sg(e,t,n)}function ag(e){let t,n,r=!1,i=!1,o;const s=()=>{if(i=!0,n!=null){const a=V(n);try{De(a)}finally{n=void 0}}if(t!=null){const a=V(t);try{De(a)}finally{t=void 0}}};return Vs(()=>(r?i&&Ka():Ul(),o!=null?V(o):Ka()),()=>{let a;if(r||(r=!0),i)return!1;{let l;for(;l==null;){const u=t,f=n;if(u!=null)if(f!=null){const d=V(f);if(d["System.Collections.IEnumerator.MoveNext"]())o=ut(d["System.Collections.Generic.IEnumerator`1.get_Current"]()),l=!0;else try{De(d)}finally{n=void 0}}else{const d=V(u);d["System.Collections.IEnumerator.MoveNext"]()?n=(a=d["System.Collections.Generic.IEnumerator`1.get_Current"](),Fe(a)):(s(),l=!1)}else t=Fe(e)}return V(l)}},()=>{i||s()})}function lg(e,t){return Vs(()=>t["System.Collections.Generic.IEnumerator`1.get_Current"](),()=>t["System.Collections.IEnumerator.MoveNext"](),()=>{try{De(t)}finally{}})}function Kf(e,t,n){let r=!1,i,o=ut(e());const s=()=>{if(o!=null){const l=V(o);try{n(l)}finally{o=void 0}}},a=()=>{try{s()}finally{i=void 0}};return Vs(()=>(r||Ul(),i!=null?V(i):Ka()),()=>{if(r||(r=!0),o!=null){const l=V(o);let u;try{u=t(l)}catch(f){throw a(),f}return u!=null?(i=u,!0):(a(),!1)}else return!1},s)}function ug(e,t){let n,r=t;return Vs(()=>{if(n!=null){const i=V(n)[0];return V(n)[1],i}else return Ul()},()=>(n=e(r),n!=null?(V(n)[0],r=V(n)[1],!0):!1),()=>{})}function cg(e,t){t==null&&Q1(e)}function yi(e){return og(e)}function gn(e){return cg("source",e),Fe(e)}function N(e){return yi(()=>Fe(e()))}function Hs(e){return yi(()=>ag(e))}function dg(e,t){return yi(()=>ug(e,t))}function dt(){return N(()=>new Array(0))}function A(e){return N(()=>O1(e))}function qn(e){return e instanceof Nt?tr(e):Array.from(e)}function K(e){return fn(e)?g(e):e instanceof Nt?e:U1(e)}function Xf(e,t,n){return yi(()=>Kf(e,t,n))}function Jf(e,t,n){return yi(()=>{let r=-1;return Kf(e,i=>(r=r+1|0,t(r,i)),n)})}function H(e,t){return Hs([e,t])}function fg(e,t){return Xf(()=>gn(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=>{De(n)})}function mg(e,t,n){const r=gn(t);try{const i=gn(n);try{let o=0,s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]();for(;o===0&&s&&a;)o=e(r["System.Collections.Generic.IEnumerator`1.get_Current"](),i["System.Collections.Generic.IEnumerator`1.get_Current"]())|0,o===0&&(s=r["System.Collections.IEnumerator.MoveNext"](),a=i["System.Collections.IEnumerator.MoveNext"]());return(o!==0?o:s?1:a?-1:0)|0}finally{De(i)}}finally{De(r)}}function Lr(e,t,n){const r=gn(t);try{let i=!1;for(;!i&&r["System.Collections.IEnumerator.MoveNext"]();)i=n.Equals(e,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{De(r)}}function Wl(e,t){return fg(n=>{if(e(n))return ut(n)},t)}function _o(e,t,n){const r=gn(n);try{let i=t;for(;r["System.Collections.IEnumerator.MoveNext"]();)i=e(i,r["System.Collections.Generic.IEnumerator`1.get_Current"]());return i}finally{De(r)}}function nr(e,t){_o((n,r)=>{e(r)},void 0,t)}function Qf(e,t){_o((n,r)=>(e(n,r),n+1|0),0,t)}function hg(e){if(fn(e))return e.length|0;if(e instanceof Nt)return ln(e)|0;{const t=gn(e);try{let n=0;for(;t["System.Collections.IEnumerator.MoveNext"]();)n=n+1|0;return n|0}finally{De(t)}}}function je(e,t){return Xf(()=>gn(t),n=>n["System.Collections.IEnumerator.MoveNext"]()?ut(e(n["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{De(n)})}function pg(e,t){return Jf(()=>gn(t),(n,r)=>r["System.Collections.IEnumerator.MoveNext"]()?ut(e(n,r["System.Collections.Generic.IEnumerator`1.get_Current"]())):void 0,n=>{De(n)})}function gg(e){return N(()=>R1(qn(e)))}function wg(e,t){return yi(()=>{const n=gn(t);try{for(let r=1;r<=e;r++)if(!n["System.Collections.IEnumerator.MoveNext"]())throw new Error(Zf+"\\nParameter name: source");return lg(()=>{},n)}catch(r){throw De(n),r}})}function yg(e,t){return Jf(()=>gn(t),(n,r)=>{if(n<e){if(r["System.Collections.IEnumerator.MoveNext"]())return ut(r["System.Collections.Generic.IEnumerator`1.get_Current"]());throw new Error(Zf+"\\nParameter name: source")}else return},n=>{De(n)})}function js(e,t){return N(()=>Hs(je(e,t)))}const fr={None:0,LowerFirst:1,SnakeCase:2,SnakeCaseAllCaps:3,KebabCase:4};function ga(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 vg(e,t){switch(t){case fr.LowerFirst:return e.charAt(0).toLowerCase()+e.slice(1);case fr.SnakeCase:return ga(e,"_");case fr.SnakeCaseAllCaps:return ga(e,"_").toUpperCase();case fr.KebabCase:return ga(e,"-");case fr.None:default:return e}}function rr(e,t=fr.None){const n={},r=t;function i(s){throw new Error("Cannot infer key and value of "+String(s))}function o(s,a,l){s=vg(s,a),n[s]=l}for(let s of e){let a=fr.None;if(s==null&&i(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:i(s);break;case 1:o(s[0],a,!0);break;case 2:const l=s[1];o(s[0],a,l);break;default:o(s[0],a,s.slice(1))}else typeof s=="string"?o(s,a,!0):i(s)}return n}function Gl(e,t,n){return e.has(t)?(n.contents=e.get(t),!0):!1}function e0(e,t){return t.has(e)?!1:(t.add(e),!0)}function bg(e,t,n){if(e.has(t))throw new Error("An item with the same key has already been added. Key: "+t);e.set(t,n)}function Yn(e,t){if(e.has(t))return e.get(t);throw new Error(`The given key '${t}' was not present in the dictionary.`)}class t0{constructor(t,n){const r=new vt($e());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Fe(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();wa(r.contents,o)}}finally{De(i)}}get[Symbol.toStringTag](){return"HashSet"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Fe(this)}GetEnumerator(){return Fe(Hs(this.hashMap.values()))}[Symbol.iterator](){return hi(Fe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){wa(this,t)}"System.Collections.Generic.ICollection`1.Clear"(){oc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){return ac(this,t)}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Qf((i,o)=>{kt(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return sc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){return lc(this,t)}get size(){return sc(this)|0}add(t){const n=this;return wa(n,t),n}clear(){oc(this)}delete(t){return lc(this,t)}has(t){return ac(this,t)}keys(){return je(n=>n,this)}values(){return je(n=>n,this)}entries(){return je(n=>[n,n],this)}forEach(t,n){const r=this;nr(i=>{t(i,i,r)},r)}}function zl(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=$e();return r=[Gl(e.hashMap,n,new vt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o))]:[!1,n,-1]}function oc(e){e.hashMap.clear()}function sc(e){let t=0,n=Fe(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{De(n)}return t|0}function wa(e,t){const n=zl(e,t);return n[0]?n[2]>-1?!1:(Yn(e.hashMap,n[1]).push(t),!0):(e.hashMap.set(n[1],[t]),!0)}function ac(e,t){const n=zl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function lc(e,t){const n=zl(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Yn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}class n0{constructor(t){this.k=t}}function Ut(e){return new n0(e)}function we(e){return e.k}class Re extends n0{constructor(t,n,r,i){super(t),this.left=n,this.right=r,this.h=i|0}}function Wt(e,t,n,r){return new Re(e,t,n,r)}function Ge(e){return e.left}function Ue(e){return e.right}function qr(e){return e.h}function r0(e,t){e:for(;;){const n=e,r=t;if(n!=null){const i=V(n);if(i instanceof Re){const o=i;e=Ge(o),t=r0(Ue(o),r+1);continue e}else return r+1|0}else return r|0}}function _g(e){return r0(e,0)}function rn(e,t,n){let r,i,o;const s=e;if(s!=null){const f=V(s);o=f instanceof Re?(r=f,qr(r)):1}else o=0;let a;const l=n;if(l!=null){const f=V(l);a=f instanceof Re?(i=f,qr(i)):1}else a=0;const u=(o<a?a:o)|0;return u===0?Ut(t):Wt(t,e,n,u+1)}function uc(e,t,n){let r,i,o,s,a,l,u,f,d;const p=e;if(p!=null){const v=V(p);d=v instanceof Re?(r=v,qr(r)):1}else d=0;let h;const m=n;if(m!=null){const v=V(m);h=v instanceof Re?(i=v,qr(i)):1}else h=0;if(h>d+2){const v=V(n);if(v instanceof Re){const b=v;if(o=Ge(b),(o!=null?(s=V(o),s instanceof Re?(a=s,qr(a)):1):0)>d+1){const x=V(Ge(b));if(x instanceof Re){const C=x;return rn(rn(e,t,Ge(C)),we(C),rn(Ue(C),we(b),Ue(b)))}else throw new Error("internal error: Set.rebalance")}else return rn(rn(e,t,Ge(b)),we(b),Ue(b))}else throw new Error("internal error: Set.rebalance")}else if(d>h+2){const v=V(e);if(v instanceof Re){const b=v;if(l=Ue(b),(l!=null?(u=V(l),u instanceof Re?(f=u,qr(f)):1):0)>h+1){const x=V(Ue(b));if(x instanceof Re){const C=x;return rn(rn(Ge(b),we(b),Ge(C)),we(C),rn(Ue(C),t,n))}else throw new Error("internal error: Set.rebalance")}else return rn(Ge(b),we(b),rn(Ue(b),t,n))}else throw new Error("internal error: Set.rebalance")}else return rn(e,t,n)}function ai(e,t,n){if(n!=null){const r=V(n),i=e.Compare(t,we(r))|0;if(r instanceof Re){const o=r;return i<0?uc(ai(e,t,Ge(o)),we(o),Ue(o)):i===0?n:uc(Ge(o),we(o),ai(e,t,Ue(o)))}else{const o=e.Compare(t,we(r))|0;return o<0?Wt(t,void 0,n,2):o===0?n:Wt(t,n,void 0,2)}}else return Ut(t)}function i0(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,we(s))|0;if(s instanceof Re){const l=s;if(a<0){e=r,t=i,n=Ge(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Ue(l);continue e}}else return a===0}else return!1}}function o0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof Re){const o=i;o0(n,Ge(o)),n(we(o)),e=n,t=Ue(o);continue e}else n(we(i))}break}}class xg extends Se{constructor(t,n){super(),this.stack=t,this.started=n}}function s0(e){e:for(;;){const t=e;if(Ne(t))return mt();{const n=se(t),r=Me(t);if(n!=null){const i=V(n);if(i instanceof Re){const o=i;e=Je([Ge(o),Ut(we(o)),Ue(o)],r);continue e}else return t}else{e=r;continue e}}}}function cc(e){return new xg(s0(fe(e)),!1)}function Cg(){throw new Error("Enumeration not started")}function Sg(){throw new Error("Enumeration already started")}function dc(e){if(e.started){const t=e.stack;if(Ne(t))return Sg();if(se(t)!=null){const n=V(se(t));return we(n)}else throw new Error("Please report error: Set iterator, unexpected stack for current")}else return Cg()}function Eg(e){if(e.started){const t=e.stack;if(Ne(t))return!1;if(se(t)!=null){if(V(se(t))instanceof Re)throw new Error("Please report error: Set iterator, unexpected stack for moveNext");return e.stack=s0(Me(t)),!Ne(e.stack)}else throw new Error("Please report error: Set iterator, unexpected stack for moveNext")}else return e.started=!0,!Ne(e.stack)}function fc(e){let t=cc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return dc(t)},"System.Collections.IEnumerator.get_Current"(){return dc(t)},"System.Collections.IEnumerator.MoveNext"(){return Eg(t)},"System.Collections.IEnumerator.Reset"(){t=cc(e)},Dispose(){}}}function Ag(e,t,n){e:for(;;){const r=e,i=t,o=n;if(Ne(i))return Ne(o)?0:-1;if(Ne(o))return 1;if(se(o)!=null)if(se(i)!=null){const s=V(se(i)),a=V(se(o));if(s instanceof Re){const l=s;if(Ge(l)==null)if(a instanceof Re){const u=a;if(Ge(u)==null){const f=r.Compare(we(l),we(u))|0;if(f!==0)return f|0;e=r,t=Xt(Ue(l),Me(i)),n=Xt(Ue(u),Me(o));continue e}else{let f,d,p,h,m;switch(Ne(i)?Ne(o)?f=2:se(o)!=null?(f=1,h=Me(o),m=V(se(o))):f=2:se(i)!=null?(f=0,d=Me(i),p=V(se(i))):Ne(o)?f=2:se(o)!=null?(f=1,h=Me(o),m=V(se(o))):f=2,f){case 0:if(p instanceof Re){const v=p;e=r,t=Je([Ge(v),Wt(we(v),void 0,Ue(v),0)],d),n=o;continue e}else{e=r,t=Je([void 0,Ut(we(p))],d),n=o;continue e}case 1:if(m instanceof Re){const v=m;e=r,t=i,n=Je([Ge(v),Wt(we(v),void 0,Ue(v),0)],h);continue e}else{e=r,t=i,n=Je([void 0,Ut(we(m))],h);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const u=r.Compare(we(l),we(a))|0;if(u!==0)return u|0;e=r,t=Xt(Ue(l),Me(i)),n=Xt(void 0,Me(o));continue e}else{let u,f,d,p,h;switch(Ne(i)?Ne(o)?u=2:se(o)!=null?(u=1,p=Me(o),h=V(se(o))):u=2:se(i)!=null?(u=0,f=Me(i),d=V(se(i))):Ne(o)?u=2:se(o)!=null?(u=1,p=Me(o),h=V(se(o))):u=2,u){case 0:if(d instanceof Re){const m=d;e=r,t=Je([Ge(m),Wt(we(m),void 0,Ue(m),0)],f),n=o;continue e}else{e=r,t=Je([void 0,Ut(we(d))],f),n=o;continue e}case 1:if(h instanceof Re){const m=h;e=r,t=i,n=Je([Ge(m),Wt(we(m),void 0,Ue(m),0)],p);continue e}else{e=r,t=i,n=Je([void 0,Ut(we(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else if(a instanceof Re){const l=a;if(Ge(l)==null){const u=r.Compare(we(s),we(l))|0;if(u!==0)return u|0;e=r,t=Xt(void 0,Me(i)),n=Xt(Ue(l),Me(o));continue e}else{let u,f,d,p,h;switch(Ne(i)?Ne(o)?u=2:se(o)!=null?(u=1,p=Me(o),h=V(se(o))):u=2:se(i)!=null?(u=0,f=Me(i),d=V(se(i))):Ne(o)?u=2:se(o)!=null?(u=1,p=Me(o),h=V(se(o))):u=2,u){case 0:if(d instanceof Re){const m=d;e=r,t=Je([Ge(m),Wt(we(m),void 0,Ue(m),0)],f),n=o;continue e}else{e=r,t=Je([void 0,Ut(we(d))],f),n=o;continue e}case 1:if(h instanceof Re){const m=h;e=r,t=i,n=Je([Ge(m),Wt(we(m),void 0,Ue(m),0)],p);continue e}else{e=r,t=i,n=Je([void 0,Ut(we(h))],p);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}}else{const l=r.Compare(we(s),we(a))|0;if(l!==0)return l|0;e=r,t=Me(i),n=Me(o);continue e}}else{V(se(o));let s,a,l,u,f;switch(Ne(i)?Ne(o)?s=2:se(o)!=null?(s=1,u=Me(o),f=V(se(o))):s=2:se(i)!=null?(s=0,a=Me(i),l=V(se(i))):Ne(o)?s=2:se(o)!=null?(s=1,u=Me(o),f=V(se(o))):s=2,s){case 0:if(l instanceof Re){const d=l;e=r,t=Je([Ge(d),Wt(we(d),void 0,Ue(d),0)],a),n=o;continue e}else{e=r,t=Je([void 0,Ut(we(l))],a),n=o;continue e}case 1:if(f instanceof Re){const d=f;e=r,t=i,n=Je([Ge(d),Wt(we(d),void 0,Ue(d),0)],u);continue e}else{e=r,t=i,n=Je([void 0,Ut(we(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else if(se(i)!=null){V(se(i));let s,a,l,u,f;switch(Ne(i)?Ne(o)?s=2:se(o)!=null?(s=1,u=Me(o),f=V(se(o))):s=2:se(i)!=null?(s=0,a=Me(i),l=V(se(i))):Ne(o)?s=2:se(o)!=null?(s=1,u=Me(o),f=V(se(o))):s=2,s){case 0:if(l instanceof Re){const d=l;e=r,t=Je([Ge(d),Wt(we(d),void 0,Ue(d),0)],a),n=o;continue e}else{e=r,t=Je([void 0,Ut(we(l))],a),n=o;continue e}case 1:if(f instanceof Re){const d=f;e=r,t=i,n=Je([Ge(d),Wt(we(d),void 0,Ue(d),0)],u);continue e}else{e=r,t=i,n=Je([void 0,Ut(we(f))],u);continue e}default:throw new Error("unexpected state in SetTree.compareStacks")}}else{e=r,t=Me(i),n=Me(o);continue e}}}function mc(e,t,n){return t==null?n==null?0:-1:n==null?1:Ag(e,fe(t),fe(n))|0}function kg(e,t,n){let r=n;o0(i=>{kt(t,r,i),r=r+1|0},e)}function Ng(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){e=r,t=ai(r,o["System.Collections.Generic.IEnumerator`1.get_Current"](),i),n=o;continue e}else return i}}function Tg(e,t){return Ls((n,r)=>ai(e,r,n),void 0,t)}function $g(e,t){return Fn((n,r)=>ai(e,r,n),void 0,t)}function a0(e,t){if(fn(t))return Tg(e,t);if(t instanceof Nt)return $g(e,t);{const n=Fe(t);try{return Ng(e,void 0,n)}finally{De(n)}}}class ql{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Dg(this)|0}Equals(t){let n;const r=this;return t instanceof ql&&(n=t,mc(Xr(r),on(r),on(n))===0)}toString(){return"set ["+At("; ",je(n=>Xe(n),this))+"]"}get[Symbol.toStringTag](){return"FSharpSet"}toJSON(){const t=this;return Array.from(t)}CompareTo(t){const n=this;return mc(Xr(n),on(n),on(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 i0(Xr(n),t,on(n))}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){kg(on(this),t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ya(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ya(this)|0}GetEnumerator(){return fc(on(this))}[Symbol.iterator](){return hi(Fe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return fc(on(this))}get size(){return ya(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 l0(this,t)}keys(){return je(n=>n,this)}values(){return je(n=>n,this)}entries(){return je(n=>[n,n],this)}forEach(t,n){const r=this;nr(i=>{t(i,i,r)},r)}}function Bs(e,t){return new ql(e,t)}function Xr(e){return e.comparer}function on(e){return e.tree}function Mg(e){return Bs(e,void 0)}function Ig(e,t){return Bs(Xr(e),ai(Xr(e),t,on(e)))}function ya(e){return _g(on(e))}function l0(e,t){return i0(Xr(e),t,on(e))}function Dg(e){let t=0;const n=Fe(e);try{for(;n["System.Collections.IEnumerator.MoveNext"]();){const r=n["System.Collections.Generic.IEnumerator`1.get_Current"]();t=(t<<1)+Qt(r)+631|0}}finally{De(n)}return Math.abs(t)|0}function Xa(e,t){return l0(t,e)}function Og(e,t){return Ig(t,e)}function Rg(e){return Mg(e)}function Fg(e,t){return Bs(t,a0(t,e))}function Pg(e,t){return Bs(t,a0(t,e))}function Lg(){return mt()}function Yl(e){return At("/",e)}function Vg(e,t){const n=new Error("Duplicate SubId");return e(["Duplicate SubId: "+Yl(t),n])}function u0(e,t,n){try{De(n)}catch(r){e(["Error stopping subscription: "+Yl(t),r])}}function Hg(e,t,n,r){try{return[n,r(t)]}catch(i){e(["Error starting subscription: "+Yl(n),i]);return}}function jg(e,t){ps(n=>{u0(e,n[0],n[1])},t)}function hc(e,t,n,r,i,o){return ps(s=>{Vg(e,s)},n),ps(s=>{u0(e,s[0],s[1])},r),bo(i,Y1(s=>Hg(e,t,s[0],s[1]),o))}function Bg(){return[mt(),Rg({Compare:_t}),mt()]}function Ug(e,t,n,r,i){return Xa(e,r)?[Xt(e,n),r,i]:[n,Og(e,r),Xt([e,t],i)]}function Wg(e){return j1((t,n)=>Ug(t[0],t[1],n[0],n[1],n[2]),e,Bg())}const Gg=mt();function pc(e,t){const n=Fg(Sr(s=>s[0],e),{Compare:_t}),r=Wg(t),i=r[1],o=r[0];if(n.Equals(i))return[o,mt(),e,mt()];{const s=q1(a=>Xa(a[0],i),e);return[o,s[1],s[0],Nn(a=>!Xa(a[0],n),r[2])]}}function zg(e){return new c0(0,[e])}function qg(e){return new c0(1,[e])}class c0 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Choice1Of2","Choice2Of2"]}}function Yg(e){return zg(e)}function Zg(e){return qg(e)}class Kg{constructor(t,n,r){this.OnNext=t,this.OnError=n||(i=>{}),this.OnCompleted=r||(()=>{})}}function Xg(e,t){t.Subscribe(new Kg(e))}class Jg{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 ew(t=>{this._add(t)},t=>{this._remove(t)})}Trigger(t,n){let r=null;const i=n===void 0?t:(r=t,n);this.delegates.forEach(o=>{o(r,i)})}}let Qg=class extends Jg{};function ew(e,t){return{AddHandler(n){e(n)},RemoveHandler(n){t(n)},Subscribe(n){const r=(i,o)=>n.OnNext(o);return e(r),{Dispose(){t(r)}}}}}class tw{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 Qg}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 nw(e,t){console.error(ut(e),t)}function rw(e,t){let n,r=new tw(e);r.AutoReset=!1,n=r,Xg(t,n.Elapsed()),n.Enabled=!0,n.Start()}class d0{constructor(t=!1){this._id=0,this._cancelled=t,this._listeners=new Map}get isCancelled(){return this._cancelled}cancel(){if(!this._cancelled){this._cancelled=!0;for(const[,t]of this._listeners)t()}}addListener(t){const n=this._id;return this._listeners.set(this._id++,t),n}removeListener(t){return this._listeners.delete(t)}register(t,n){const r=this,i=this.addListener(n==null?t:()=>t(n));return{Dispose(){r.removeListener(i)}}}Dispose(){}}class Us extends Error{constructor(){super("The operation was canceled"),Object.setPrototypeOf(this,Us.prototype)}}class Zl{static get maxTrampolineCallCount(){return 2e3}constructor(){this.callCount=0}incrementAndCheck(){return this.callCount++>Zl.maxTrampolineCallCount}hijack(t){this.callCount=0,setTimeout(t,0)}}function Tn(e){return t=>{if(t.cancelToken.isCancelled)t.onCancel(new Us);else if(t.trampoline.incrementAndCheck())t.trampoline.hijack(()=>{try{e(t)}catch(n){t.onError(us(n))}});else try{e(t)}catch(n){t.onError(us(n))}}}function iw(e,t){return Tn(n=>{e({onSuccess:r=>{try{t(r)(n)}catch(i){n.onError(us(i))}},onError:n.onError,onCancel:n.onCancel,cancelToken:n.cancelToken,trampoline:n.trampoline})})}function ow(e){return Tn(t=>t.onSuccess(e))}class sw{Bind(t,n){return iw(t,n)}Combine(t,n){return this.Bind(t,()=>n)}Delay(t){return Tn(n=>t()(n))}For(t,n){const r=t[Symbol.iterator]();let i=r.next();return this.While(()=>!i.done,this.Delay(()=>{const o=n(i.value);return i=r.next(),o}))}Return(t){return ow(t)}ReturnFrom(t){return t}TryFinally(t,n){return Tn(r=>{t({onSuccess:i=>{n(),r.onSuccess(i)},onError:i=>{n(),r.onError(i)},onCancel:i=>{n(),r.onCancel(i)},cancelToken:r.cancelToken,trampoline:r.trampoline})})}TryWith(t,n){return Tn(r=>{t({onSuccess:r.onSuccess,onCancel:r.onCancel,cancelToken:r.cancelToken,trampoline:r.trampoline,onError:i=>{try{n(i)(r)}catch(o){r.onError(us(o))}}})})}Using(t,n){return this.TryFinally(n(t),()=>t.Dispose())}While(t,n){return t()?this.Bind(n,()=>this.While(t,n)):this.Return(void 0)}Zero(){return Tn(t=>t.onSuccess(void 0))}}const le=new sw;function va(e){}function aw(e){return new d0(!1)}function lw(e){e.cancel()}function uw(e){return e!=null&&e.isCancelled}const cw=new d0;function dw(e){return Tn(t=>{e({onSuccess:n=>t.onSuccess(Yg(n)),onError:n=>t.onSuccess(Zg(n)),onCancel:t.onCancel,cancelToken:t.cancelToken,trampoline:t.trampoline})})}function fw(e){return Tn(t=>e([t.onSuccess,t.onError,t.onCancel]))}function Kl(e){return Tn(t=>{let n;const r=setTimeout(()=>{t.cancelToken.removeListener(n),t.onSuccess(void 0)},e);n=t.cancelToken.addListener(()=>{clearTimeout(r),t.onCancel(new Us)})})}function mw(e,t){return hw(e,t)}function Ws(e,t){return mw(e,t)}function hw(e,t,n,r,i){typeof t!="function"&&(i=t,t=void 0);const o=new Zl;e({onSuccess:t||va,onError:va,onCancel:va,cancelToken:i||cw,trampoline:o})}function gc(e,t,n){ps(r=>{try{r(t)}catch(i){e(i)}},n)}function Z(){return mt()}function f0(e){return fe(e)}function m0(e,t,n,r){return fe(i=>{e(le.Delay(()=>le.Bind(dw(t(n)),o=>{const s=o;return s.tag===0&&i(r(s.fields[0])),le.Zero()})))})}function h0(e){rw(1,t=>{Ws(e)})}function pw(e,t,n,r){const i=_t(e,n)|0;if(i===0)throw new Error("The step of a range cannot be zero");const o=i>0;return s=>{const a=_t(s,t)|0;return o&&a<=0||!o&&a>=0?[s,r(s,e)]:void 0}}function gw(e,t,n,r,i){const o=pw(t,n,r,i);return N(()=>dg(o,e))}function Xl(e,t,n){return gw(e,t,n,0,(r,i)=>r+i)}class Jr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Writable","ReadWritable"]}}class ww{constructor(t){this.state=new Jr(0,[wo(new Array(nc(t,10)),0,nc(t,10),null),0])}}function yw(e){return new ww(e)}function wc(e){const t=e.state;if(t.tag===1){const n=t.fields[1]|0,r=t.fields[2]|0,i=t.fields[0],o=(r+1)%i.length|0;return o===n?e.state=new Jr(0,[i,n]):e.state=new Jr(1,[i,n,o]),ut(ve(r,i))}else return}function vw(e,t){const n=e.state;if(n.tag===1){const r=n.fields[1]|0,i=n.fields[2]|0,o=n.fields[0];kt(o,r,t);const s=(r+1)%o.length|0;s===i?e.state=new Jr(1,[bw(e,i,o),o.length,0]):e.state=new Jr(1,[o,s,i])}else{const r=n.fields[1]|0,i=n.fields[0];kt(i,r,t);const o=(r+1)%i.length|0;e.state=new Jr(1,[i,o,r])}}function bw(e,t,n){return Array.from(N(()=>H(wg(t,n),N(()=>H(yg(t,n),N(()=>js(r=>A($e()),Xl(0,1,n.length))))))))}class Jl extends Se{constructor(t,n,r,i,o,s,a){super(),this.init=t,this.update=n,this.subscribe=r,this.view=i,this.setState=o,this.onError=s,this.termination=a}}function Or(e,t,n){return new Jl(e,t,r=>Lg(),n,rt(r=>{const i=dr(n)(r);return o=>{i(o)}}),r=>{nw(r[0],r[1])},[r=>!1,r=>{}])}function _w(e,t){return new Jl(t.init,t.update,t.subscribe,t.view,e,t.onError,t.termination)}function xw(e){return e.init}function Cw(e,t,n,r,i,o,s){const a=dr(e)(s.init),l=ha(t)(dr(s.update)),u=ha(n)(dr(s.view)),f=ha(r)(dr(s.setState));return new Jl(a,rt(l),dr(i)(s.subscribe),rt(u),rt(f),s.onError,o(s.termination))}function Sw(e,t,n){let r;const i=n.init(t),o=i[0],s=n.subscribe(o),a=n.termination,l=yw(10);let u=!1,f=o,d=Gg,p=!1;const h=b=>{p||(vw(l,b),u||(u=!0,v(),u=!1))},m=dr(e)(h),v=()=>{let b,x=wc(l);for(;!p&&x!=null;){const C=V(x);if(a[0](C))jg(n.onError,d),a[1](f),p=!0;else{const E=n.update(C,f),M=E[0],R=n.subscribe(M);n.setState(M,m),gc(F=>{n.onError([_r(On("Error handling the message: %A"))(C),F])},m,E[1]),f=M,d=(b=pc(d,R),hc(n.onError,m,b[0],b[1],b[2],b[3])),x=wc(l)}}};u=!0,n.setState(o,m),gc(b=>{n.onError([_r(On("Error intitializing:")),b])},m,i[1]),d=(r=pc(d,s),hc(n.onError,m,r[0],r[1],r[2],r[3])),v(),u=!1}function Ew(e,t){Sw(rt(n=>n),e,t)}function Aw(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var ba={exports:{}},_a={};const kw=Aw(ss);/**
|
|
4
4
|
* @license React
|
|
5
5
|
* use-sync-external-store-shim.production.min.js
|
|
6
6
|
*
|
|
@@ -8,18 +8,18 @@ var ro,xe,vd,lr,mu,bd,Ia,ll,Da,Oa,_d,Yi={},xd=[],T0=/acit|ex(?:s|g|n|p|$)|rph|gr
|
|
|
8
8
|
*
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
|
-
*/var rc;function sy(){if(rc)return pa;rc=1;var e=oy;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(d,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),w=m[0].inst,b=m[1];return o(function(){w.value=h,w.getSnapshot=p,l(w)&&b({inst:w})},[d,h,p]),i(function(){return l(w)&&b({inst:w}),d(function(){l(w)&&b({inst:w})})},[d]),s(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!n(d,h)}catch{return!0}}function u(d,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return pa.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,pa}var ic;function ay(){return ic||(ic=1,ha.exports=sy()),ha.exports}var ly=ay();class uy{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=ey(i)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const d=this.finalDispatch;d==null?o.push(f):d(f)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let d=!1;const p=La(this.state[0]);return ry(this.arg,Q1((h,m)=>{const w=this.state;this.finalDispatch=m,this.state=[h,w[1],!0,o],h!==w[0]&&f()},ty((h,m)=>{const w=this.cmd;return this.cmd=Y(),[this.state[0],w]},(h,m,w)=>h(m)(this.state[0]),Ha(h=>h),Ha(h=>h),Qe(h=>h),h=>[m=>h[0](m)?!0:p&&d,m=>{const w=m;La(w)?$e(w):h[1](m)}],i))),()=>{d=!0}}}}function oc(e,t,n){return new uy(e,t,n)}function cy(e){return e.state}function dy(e){return e.subscribe}function fy(e,t,n){return te(e.arg,t)?!te(e.dependencies,n):!0}function Dr(e,t,n){const r=ye(()=>oc(e,t,n)),i=r[0];fy(i,t,n)&&r[1](oc(e,t,n));const o=ly.useSyncExternalStore(dy(i),()=>cy(i)),s=o[2],a=o[3],l=o[1];return De(()=>{if(s&&a.length>0){let u=Ie(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{$e(u)}wp(a)}},[s,a]),[o[0],l]}class my extends Se{constructor(t,n){super(),this.Name=t,this.Email=n}}function Wl(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],my,()=>[["Name",$n],["Email",qr($n)]])}class hy extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function Kf(){return uf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],hy,()=>[[],[]])}class py extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function gy(){return uf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],py,()=>[[],[]])}class yy extends Se{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function wy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],yy,()=>[["User",Wl()],["ProfileCount",Nt],["RequestType",gy()],["RequestedAt",Yn("System.DateTime")]])}class vy extends Se{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=s}}function by(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],vy,()=>[["Stage",Kf()],["InputRowCount",Nt],["StartTime",Yn("System.DateTime")],["SucceededRowCount",qr(Nt)],["FailedRowCount",qr(Nt)],["RemainingRowCount",qr(Nt)]])}class _y extends Se{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=s}}function Xf(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],_y,()=>[["Stage",Kf()],["InputRowCount",Nt],["SucceededRowCount",Nt],["FailedRowCount",Nt],["StartTime",Yn("System.DateTime")],["StopTime",Yn("System.DateTime")]])}class xy extends Se{constructor(t,n,r,i,o,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=s,this.StartTime=a}}function Cy(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],xy,()=>[["ImportId",Nt],["User",Wl()],["Filename",$n],["NumberOfRecords",Nt],["CurrentStage",qr(by())],["CompletedStages",vr(Xf())],["StartTime",Yn("System.DateTime")]])}class Sy extends Se{constructor(t,n,r,i,o,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function Ey(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],Sy,()=>[["ImportId",Nt],["User",Wl()],["Filename",$n],["NumberOfRecords",Nt],["CompletedStages",vr(Xf())],["BenefitsRequests",vr(wy())],["StartTime",Yn("System.DateTime")],["StopTime",Yn("System.DateTime")]])}class Ay extends Se{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function ky(){return Qt("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],Ay,()=>[["ActiveImport",qr(Cy())],["ImportHistory",vr(Ey())]])}function Ny(e){return new M(0,[e])}function Jf(e){return new M(1,[e])}class M extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function On(e,t){return t.tag===0?Ny(e(t.fields[0])):Jf(t.fields[0])}function Ty(e,t){return t.tag===0?e(t.fields[0]):Jf(t.fields[0])}class Ga extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function $y(e){return e.tag===1?new Ga(0,[]):new Ga(1,[])}function My(e,t,n){return e.tag===1?Tg(t,n,{Compare:wt}):Ng(t,n,{Compare:wt})}class Ds extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Bo=class extends Se{constructor(t){super(),this.View=t}},Uo=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},Qf=class extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function Iy(){return[new Bo(new Uo(0,[])),fe(e=>{e(new Qf(new Ds(0,[void 0])))})]}function Dy(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Bo(new Uo(2,[t.fields[0].fields[0].fields[0]])),Y()]:[new Bo(new Uo(1,[t.fields[0].fields[0].fields[0]])),Y()]:[new Bo(new Uo(0,[])),Yf(r=>{Zf(r)},e,void 0,r=>new Qf(new Ds(1,[r])))]}class Gl extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class em extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class Os extends Se{constructor(t,n,r,i,o,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Hr extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class tm extends Se{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}class nm{constructor(t,n){this.k=t,this.v=n}}function si(e,t){return new nm(e,t)}function tt(e){return e.k}function at(e){return e.v}class nt extends nm{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function pr(e,t,n,r,i){return new nt(e,t,n,r,i)}function Ke(e){return e.left}function Xe(e){return e.right}function Gn(e){return e.h}function rm(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof nt){const o=i;e=rm(n+1,Ke(o)),t=Xe(o);continue e}else return n+1|0}else return n|0}}function im(e){return rm(0,e)}function Vt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const d=V(a);s=d instanceof nt?(i=d,Gn(i)):1}else s=0;let l;const u=r;if(u!=null){const d=V(u);l=d instanceof nt?(o=d,Gn(o)):1}else l=0;const f=(s<l?l:s)|0;return f===0?si(t,n):pr(t,n,e,r,f+1)}function ss(e,t,n,r){let i,o,s,a,l,u,f,d,p;const h=e;if(h!=null){const b=V(h);p=b instanceof nt?(i=b,Gn(i)):1}else p=0;let m;const w=r;if(w!=null){const b=V(w);m=b instanceof nt?(o=b,Gn(o)):1}else m=0;if(m>p+2){const b=V(r);if(b instanceof nt){const C=b;if(s=Ke(C),(s!=null?(a=V(s),a instanceof nt?(l=a,Gn(l)):1):0)>p+1){const x=V(Ke(C));if(x instanceof nt){const E=x;return Vt(Vt(e,t,n,Ke(E)),tt(E),at(E),Vt(Xe(E),tt(C),at(C),Xe(C)))}else throw new Error("internal error: Map.rebalance")}else return Vt(Vt(e,t,n,Ke(C)),tt(C),at(C),Xe(C))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const b=V(e);if(b instanceof nt){const C=b;if(u=Xe(C),(u!=null?(f=V(u),f instanceof nt?(d=f,Gn(d)):1):0)>m+1){const x=V(Xe(C));if(x instanceof nt){const E=x;return Vt(Vt(Ke(C),tt(C),at(C),Ke(E)),tt(E),at(E),Vt(Xe(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Vt(Ke(C),tt(C),at(C),Vt(Xe(C),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Vt(e,t,n,r)}function ai(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,tt(i))|0;if(i instanceof nt){const s=i;return o<0?ss(ai(e,t,n,Ke(s)),tt(s),at(s),Xe(s)):o===0?pr(t,n,Ke(s),Xe(s),Gn(s)):ss(Ke(s),tt(s),at(s),ai(e,t,n,Xe(s)))}else return o<0?pr(t,n,void 0,r,2):o===0?si(t,n):pr(t,n,r,void 0,2)}else return si(t,n)}function zl(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,tt(s))|0;if(a===0)return dt(at(s));if(s instanceof nt){const l=s;e=r,t=i,n=a<0?Ke(l):Xe(l);continue e}else return}else return}}function Oy(e,t,n){const r=zl(e,t,n);if(r==null)throw new Error;return V(r)}function om(e){if(e!=null){const t=V(e);if(t instanceof nt){const n=t;if(Ke(n)==null)return[tt(n),at(n),Xe(n)];{const r=om(Ke(n));return[r[0],r[1],Vt(r[2],tt(n),at(n),Xe(n))]}}else return[tt(t),at(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function za(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof nt){const o=i,s=e.Compare(t,tt(o))|0;if(s<0)return ss(za(e,t,n,Ke(o)),tt(o),at(o),Xe(o));if(s===0){const a=n(dt(at(o)));if(a!=null)return pr(t,V(a),Ke(o),Xe(o),Gn(o));if(Ke(o)==null)return Xe(o);if(Xe(o)==null)return Ke(o);{const l=om(Xe(o));return Vt(Ke(o),l[0],l[1],l[2])}}else return ss(Ke(o),tt(o),at(o),za(e,t,n,Xe(o)))}else{const o=e.Compare(t,tt(i))|0;if(o<0){const s=n(void 0);return s!=null?pr(t,V(s),void 0,r,2):r}else if(o===0){const s=n(dt(at(i)));return s!=null?si(t,V(s)):void 0}else{const s=n(void 0);return s!=null?pr(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?si(t,V(i)):r}}function Ry(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,tt(s))|0;if(s instanceof nt){const l=s;if(a<0){e=r,t=i,n=Ke(l);continue e}else{if(a===0)return!0;e=r,t=i,n=Xe(l);continue e}}else return a===0}else return!1}}function sm(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof nt){const o=i;sm(n,Ke(o)),n(tt(o),at(o)),e=n,t=Xe(o);continue e}else n(tt(i),at(i))}break}}function Fy(e,t){sm(e,t)}function am(e,t,n){let r=n;Fy((i,o)=>{xt(t,r,[i,o]),r=r+1|0},e)}function Py(e){const t=im(e)|0,n=lo(new Array(t),0,t,[null,null]);return am(e,n,0),n}function Ly(e,t){return Pn((n,r)=>ai(e,r[0],r[1],n),void 0,t)}function Vy(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=ai(r,s[0],s[1],i),n=o;continue e}else return i}}function Hy(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=pe(r,t);n=ai(e,i[0],i[1],n)}return n}function lm(e,t){if(dn(t))return Hy(e,t);if(t instanceof Ct)return Ly(e,t);{const n=Ie(t);try{return Vy(e,void 0,n)}finally{$e(n)}}}class jy extends Se{constructor(t,n){super(),this.stack=t,this.started=n}}function um(e){e:for(;;){const t=e;if(Te(t))return ft();{const n=Ne(t),r=ue(t);if(r!=null){const i=V(r);if(i instanceof nt){const o=i;e=Ye([Ke(o),si(tt(o),at(o)),Xe(o)],n);continue e}else return t}else{e=n;continue e}}}}function sc(e){return new jy(um(fe(e)),!1)}function By(){throw new Error("enumeration not started")}function Uy(){throw new Error("enumeration already finished")}function ac(e){if(e.started){const t=e.stack;if(Te(t))return Uy();if(ue(t)!=null){const n=V(ue(t));if(n instanceof nt)throw new Error("Please report error: Map iterator, unexpected stack for current");return[tt(n),at(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return By()}function Wy(e){if(e.started){const t=e.stack;if(Te(t))return!1;if(ue(t)!=null){if(V(ue(t))instanceof nt)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=um(Ne(t)),!Te(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Te(e.stack)}function lc(e){let t=sc(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return ac(t)},"System.Collections.IEnumerator.get_Current"(){return ac(t)},"System.Collections.IEnumerator.MoveNext"(){return Wy(t)},"System.Collections.IEnumerator.Reset"(){t=sc(e)},Dispose(){}}}class as{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return Zy(this)|0}Equals(t){const n=this;if(t instanceof as){const r=t,i=Ie(n);try{const o=Ie(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return te(l[0],u[0])&&te(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{$e(o)}}finally{$e(i)}}else return!1}toString(){return"map ["+_t("; ",He(n=>$l("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return lc(this.tree)}[Symbol.iterator](){return fi(Ie(this))}"System.Collections.IEnumerable.GetEnumerator"(){return lc(this.tree)}CompareTo(t){const n=this;if(t instanceof as)return zg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:wt(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return uc(n,t[0])&&te(_r(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){am(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return ga(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return ga(this)|0}get size(){return ga(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return He(n=>[n[0],n[1]],this)}get(t){return _r(this,t)}has(t){return uc(this,t)}keys(){return He(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return He(n=>n[1],this)}forEach(t,n){const r=this;$r(i=>{t(i[1],i[0],r)},r)}}function mo(e,t){return new as(e,t)}function Gy(e){return mo(e,void 0)}function zy(e,t,n){return mo(e.comparer,ai(e.comparer,t,n,e.tree))}function qy(e,t,n){return mo(e.comparer,za(e.comparer,t,n,e.tree))}function _r(e,t){return Oy(e.comparer,t,e.tree)}function ga(e){return im(e.tree)}function uc(e,t){return Ry(e.comparer,t,e.tree)}function Yy(e,t,n){const r=zl(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function cc(e){return Ge(t=>t[1],Py(e.tree))}function hn(e,t){return zl(e.comparer,t,e.tree)}function Zy(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Ie(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Xt(i[0]))|0,n=t(n,Xt(i[1]))|0}}finally{$e(r)}return n|0}function cm(e,t,n){return zy(n,e,t)}function To(e,t,n){return qy(n,e,t)}function dm(e,t){return hn(t,e)}function Ky(e){return He(t=>[t[0],t[1]],e)}function Xr(e,t){return mo(t,lm(t,e))}function Xy(e,t){return mo(t,lm(t,e))}function ql(e){return Gy(e)}const ir=new Os("",new Gl(0,[]),ft(),!1,void 0,void 0,void 0,new em(0,[]));new tm(0,"","","",ql({Compare:Tr}),new Hr(0,[""]));function dc(e,t){return Ml(t)?new Array(0):Kp(t,[e],void 0,0)}function Jy(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 fm(e){return new Os(e,ir.method,ir.headers,ir.withCredentials,ir.overridenMimeType,ir.overridenResponseType,ir.timeout,ir.content)}function mm(e,t){return new Os(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function Qy(e,t){return new Os(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function fc(e){return U1(t=>{const n=new XMLHttpRequest;n.open(Jy(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,d,p,h,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,d=n.responseType,p=(h=n.responseType,h===""?new Hr(0,[n.responseText]):h==="text"?new Hr(0,[n.responseText]):h==="arraybuffer"?new Hr(2,[n.response]):h==="blob"?new Hr(1,[n.response]):new Hr(3,[n.response])),m=Xy(Ut(w=>{const b=y(dc(":",w));if(!Te(b))return[ue(b).toLocaleLowerCase(),_t(":",Ne(b)).trim()]},dc(`\r
|
|
12
|
-
`,n.getAllResponseHeaders())),{Compare:
|
|
11
|
+
*/var yc;function Nw(){if(yc)return _a;yc=1;var e=kw;function t(d,p){return d===p&&(d!==0||1/d===1/p)||d!==d&&p!==p}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function a(d,p){var h=p(),m=r({inst:{value:h,getSnapshot:p}}),v=m[0].inst,b=m[1];return o(function(){v.value=h,v.getSnapshot=p,l(v)&&b({inst:v})},[d,h,p]),i(function(){return l(v)&&b({inst:v}),d(function(){l(v)&&b({inst:v})})},[d]),s(h),h}function l(d){var p=d.getSnapshot;d=d.value;try{var h=p();return!n(d,h)}catch{return!0}}function u(d,p){return p()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?u:a;return _a.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,_a}var vc;function Tw(){return vc||(vc=1,ba.exports=Nw()),ba.exports}var $w=Tw();class Mw{constructor(t,n,r){this.arg=n,this.dependencies=r;const i=t(),o=[];this.finalDispatch=void 0;let s;const a=xw(i)(this.arg);let l=a[0],u=a[1];s=[[l,f=>{const d=this.finalDispatch;d==null?o.push(f):d(f)},!1,o],u],this.state=s[0],this.cmd=s[1],this.subscribe=f=>{let d=!1;const p=Ga(this.state[0]);return Ew(this.arg,_w((h,m)=>{const v=this.state;this.finalDispatch=m,this.state=[h,v[1],!0,o],h!==v[0]&&f()},Cw((h,m)=>{const v=this.cmd;return this.cmd=Z(),[this.state[0],v]},(h,m,v)=>h(m)(this.state[0]),qa(h=>h),qa(h=>h),rt(h=>h),h=>[m=>h[0](m)?!0:p&&d,m=>{const v=m;Ga(v)?De(v):h[1](m)}],i))),()=>{d=!0}}}}function bc(e,t,n){return new Mw(e,t,n)}function Iw(e){return e.state}function Dw(e){return e.subscribe}function Ow(e,t,n){return Q(e.arg,t)?!Q(e.dependencies,n):!0}function Rr(e,t,n){const r=ye(()=>bc(e,t,n)),i=r[0];Ow(i,t,n)&&r[1](bc(e,t,n));const o=$w.useSyncExternalStore(Dw(i),()=>Iw(i)),s=o[2],a=o[3],l=o[1];return Oe(()=>{if(s&&a.length>0){let u=Fe(a);try{for(;u["System.Collections.IEnumerator.MoveNext"]();){const f=u["System.Collections.Generic.IEnumerator`1.get_Current"]();setTimeout(()=>{l(f)})}}finally{De(u)}jp(a)}},[s,a]),[o[0],l]}class Rw extends Se{constructor(t,n){super(),this.Name=t,this.Email=n}}function Ql(){return tn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.UserDto",[],Rw,()=>[["Name",Mn],["Email",Zr(Mn)]])}class Fw extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Profiles","Tax"]}}function p0(){return Tf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ImportStageDto",[],Fw,()=>[[],[]])}class Pw extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Invite","RevokeInvite"]}}function Lw(){return Tf("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestTypeDto",[],Pw,()=>[[],[]])}class Vw extends Se{constructor(t,n,r,i){super(),this.User=t,this.ProfileCount=n|0,this.RequestType=r,this.RequestedAt=i}}function Hw(){return tn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.BenefitsRequestInfoDto",[],Vw,()=>[["User",Ql()],["ProfileCount",It],["RequestType",Lw()],["RequestedAt",zn("System.DateTime")]])}class jw extends Se{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.StartTime=r,this.SucceededRowCount=i,this.FailedRowCount=o,this.RemainingRowCount=s}}function Bw(){return tn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.RunningStageDto",[],jw,()=>[["Stage",p0()],["InputRowCount",It],["StartTime",zn("System.DateTime")],["SucceededRowCount",Zr(It)],["FailedRowCount",Zr(It)],["RemainingRowCount",Zr(It)]])}class Uw extends Se{constructor(t,n,r,i,o,s){super(),this.Stage=t,this.InputRowCount=n|0,this.SucceededRowCount=r|0,this.FailedRowCount=i|0,this.StartTime=o,this.StopTime=s}}function g0(){return tn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.CompletedStageDto",[],Uw,()=>[["Stage",p0()],["InputRowCount",It],["SucceededRowCount",It],["FailedRowCount",It],["StartTime",zn("System.DateTime")],["StopTime",zn("System.DateTime")]])}class Ww extends Se{constructor(t,n,r,i,o,s,a){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CurrentStage=o,this.CompletedStages=s,this.StartTime=a}}function Gw(){return tn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.ActiveImportDto",[],Ww,()=>[["ImportId",It],["User",Ql()],["Filename",Mn],["NumberOfRecords",It],["CurrentStage",Zr(Bw())],["CompletedStages",Cr(g0())],["StartTime",zn("System.DateTime")]])}class zw extends Se{constructor(t,n,r,i,o,s,a,l){super(),this.ImportId=t|0,this.User=n,this.Filename=r,this.NumberOfRecords=i|0,this.CompletedStages=o,this.BenefitsRequests=s,this.StartTime=a,this.StopTime=l}}function qw(){return tn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.PastImportDto",[],zw,()=>[["ImportId",It],["User",Ql()],["Filename",Mn],["NumberOfRecords",It],["CompletedStages",Cr(g0())],["BenefitsRequests",Cr(Hw())],["StartTime",zn("System.DateTime")],["StopTime",zn("System.DateTime")]])}class Yw extends Se{constructor(t,n){super(),this.ActiveImport=t,this.ImportHistory=n}}function Zw(){return tn("Import.Dto.Shared.WorkspaceApi.GetAccountImportsResponse.AccountImportsDto",[],Yw,()=>[["ActiveImport",Zr(Gw())],["ImportHistory",Cr(qw())]])}function Kw(e){return new $(0,[e])}function w0(e){return new $(1,[e])}class $ extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Ok","Error"]}}function Rn(e,t){return t.tag===0?Kw(e(t.fields[0])):w0(t.fields[0])}function Xw(e,t){return t.tag===0?e(t.fields[0]):w0(t.fields[0])}class Ja extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Asc","Desc"]}}function Jw(e){return e.tag===1?new Ja(0,[]):new Ja(1,[])}function Qw(e,t,n){return e.tag===1?K1(t,n,{Compare:_t}):Z1(t,n,{Compare:_t})}class Gs extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Requested","Finished"]}}let Jo=class extends Se{constructor(t){super(),this.View=t}},Qo=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Loading","Loaded","Error"]}},y0=class extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["GetAccountImports"]}};function ey(){return[new Jo(new Qo(0,[])),fe(e=>{e(new y0(new Gs(0,[void 0])))})]}function ty(e,t,n){return t.fields[0].tag===1?t.fields[0].fields[0].tag===1?[new Jo(new Qo(2,[t.fields[0].fields[0].fields[0]])),Z()]:[new Jo(new Qo(1,[t.fields[0].fields[0].fields[0]])),Z()]:[new Jo(new Qo(0,[])),m0(r=>{h0(r)},e,void 0,r=>new y0(new Gs(1,[r])))]}class eu extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS"]}}class v0 extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Empty","Text","Binary","Form"]}}class zs extends Se{constructor(t,n,r,i,o,s,a,l){super(),this.url=t,this.method=n,this.headers=r,this.withCredentials=i,this.overridenMimeType=o,this.overridenResponseType=s,this.timeout=a,this.content=l}}class Br extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Text","Blob","ArrayBuffer","Unknown"]}}class b0 extends Se{constructor(t,n,r,i,o,s){super(),this.statusCode=t|0,this.responseText=n,this.responseType=r,this.responseUrl=i,this.responseHeaders=o,this.content=s}}class _0{constructor(t,n){this.k=t,this.v=n}}function li(e,t){return new _0(e,t)}function it(e){return e.k}function ft(e){return e.v}class st extends _0{constructor(t,n,r,i,o){super(t,n),this.left=r,this.right=i,this.h=o|0}}function vr(e,t,n,r,i){return new st(e,t,n,r,i)}function et(e){return e.left}function tt(e){return e.right}function Un(e){return e.h}function x0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof st){const o=i;e=x0(n+1,et(o)),t=tt(o);continue e}else return n+1|0}else return n|0}}function C0(e){return x0(0,e)}function Bt(e,t,n,r){let i,o,s;const a=e;if(a!=null){const d=V(a);s=d instanceof st?(i=d,Un(i)):1}else s=0;let l;const u=r;if(u!=null){const d=V(u);l=d instanceof st?(o=d,Un(o)):1}else l=0;const f=(s<l?l:s)|0;return f===0?li(t,n):vr(t,n,e,r,f+1)}function gs(e,t,n,r){let i,o,s,a,l,u,f,d,p;const h=e;if(h!=null){const b=V(h);p=b instanceof st?(i=b,Un(i)):1}else p=0;let m;const v=r;if(v!=null){const b=V(v);m=b instanceof st?(o=b,Un(o)):1}else m=0;if(m>p+2){const b=V(r);if(b instanceof st){const x=b;if(s=et(x),(s!=null?(a=V(s),a instanceof st?(l=a,Un(l)):1):0)>p+1){const C=V(et(x));if(C instanceof st){const E=C;return Bt(Bt(e,t,n,et(E)),it(E),ft(E),Bt(tt(E),it(x),ft(x),tt(x)))}else throw new Error("internal error: Map.rebalance")}else return Bt(Bt(e,t,n,et(x)),it(x),ft(x),tt(x))}else throw new Error("internal error: Map.rebalance")}else if(p>m+2){const b=V(e);if(b instanceof st){const x=b;if(u=tt(x),(u!=null?(f=V(u),f instanceof st?(d=f,Un(d)):1):0)>m+1){const C=V(tt(x));if(C instanceof st){const E=C;return Bt(Bt(et(x),it(x),ft(x),et(E)),it(E),ft(E),Bt(tt(E),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Bt(et(x),it(x),ft(x),Bt(tt(x),t,n,r))}else throw new Error("internal error: Map.rebalance")}else return Bt(e,t,n,r)}function ui(e,t,n,r){if(r!=null){const i=V(r),o=e.Compare(t,it(i))|0;if(i instanceof st){const s=i;return o<0?gs(ui(e,t,n,et(s)),it(s),ft(s),tt(s)):o===0?vr(t,n,et(s),tt(s),Un(s)):gs(et(s),it(s),ft(s),ui(e,t,n,tt(s)))}else return o<0?vr(t,n,void 0,r,2):o===0?li(t,n):vr(t,n,r,void 0,2)}else return li(t,n)}function tu(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,it(s))|0;if(a===0)return ut(ft(s));if(s instanceof st){const l=s;e=r,t=i,n=a<0?et(l):tt(l);continue e}else return}else return}}function ny(e,t,n){const r=tu(e,t,n);if(r==null)throw new Error;return V(r)}function S0(e){if(e!=null){const t=V(e);if(t instanceof st){const n=t;if(et(n)==null)return[it(n),ft(n),tt(n)];{const r=S0(et(n));return[r[0],r[1],Bt(r[2],it(n),ft(n),tt(n))]}}else return[it(t),ft(t),void 0]}else throw new Error("internal error: Map.spliceOutSuccessor")}function Qa(e,t,n,r){if(r!=null){const i=V(r);if(i instanceof st){const o=i,s=e.Compare(t,it(o))|0;if(s<0)return gs(Qa(e,t,n,et(o)),it(o),ft(o),tt(o));if(s===0){const a=n(ut(ft(o)));if(a!=null)return vr(t,V(a),et(o),tt(o),Un(o));if(et(o)==null)return tt(o);if(tt(o)==null)return et(o);{const l=S0(tt(o));return Bt(et(o),l[0],l[1],l[2])}}else return gs(et(o),it(o),ft(o),Qa(e,t,n,tt(o)))}else{const o=e.Compare(t,it(i))|0;if(o<0){const s=n(void 0);return s!=null?vr(t,V(s),void 0,r,2):r}else if(o===0){const s=n(ut(ft(i)));return s!=null?li(t,V(s)):void 0}else{const s=n(void 0);return s!=null?vr(t,V(s),r,void 0,2):r}}}else{const i=n(void 0);return i!=null?li(t,V(i)):r}}function ry(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o!=null){const s=V(o),a=r.Compare(i,it(s))|0;if(s instanceof st){const l=s;if(a<0){e=r,t=i,n=et(l);continue e}else{if(a===0)return!0;e=r,t=i,n=tt(l);continue e}}else return a===0}else return!1}}function E0(e,t){e:for(;;){const n=e,r=t;if(r!=null){const i=V(r);if(i instanceof st){const o=i;E0(n,et(o)),n(it(o),ft(o)),e=n,t=tt(o);continue e}else n(it(i),ft(i))}break}}function iy(e,t){E0(e,t)}function A0(e,t,n){let r=n;iy((i,o)=>{kt(t,r,[i,o]),r=r+1|0},e)}function oy(e){const t=C0(e)|0,n=wo(new Array(t),0,t,[null,null]);return A0(e,n,0),n}function sy(e,t){return Fn((n,r)=>ui(e,r[0],r[1],n),void 0,t)}function ay(e,t,n){e:for(;;){const r=e,i=t,o=n;if(o["System.Collections.IEnumerator.MoveNext"]()){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"]();e=r,t=ui(r,s[0],s[1],i),n=o;continue e}else return i}}function ly(e,t){let n=void 0;for(let r=0;r<=t.length-1;r++){const i=ve(r,t);n=ui(e,i[0],i[1],n)}return n}function k0(e,t){if(fn(t))return ly(e,t);if(t instanceof Nt)return sy(e,t);{const n=Fe(t);try{return ay(e,void 0,n)}finally{De(n)}}}class uy extends Se{constructor(t,n){super(),this.stack=t,this.started=n}}function N0(e){e:for(;;){const t=e;if(Ne(t))return mt();{const n=Me(t),r=se(t);if(r!=null){const i=V(r);if(i instanceof st){const o=i;e=Je([et(o),li(it(o),ft(o)),tt(o)],n);continue e}else return t}else{e=n;continue e}}}}function _c(e){return new uy(N0(fe(e)),!1)}function cy(){throw new Error("enumeration not started")}function dy(){throw new Error("enumeration already finished")}function xc(e){if(e.started){const t=e.stack;if(Ne(t))return dy();if(se(t)!=null){const n=V(se(t));if(n instanceof st)throw new Error("Please report error: Map iterator, unexpected stack for current");return[it(n),ft(n)]}else throw new Error("Please report error: Map iterator, unexpected stack for current")}else return cy()}function fy(e){if(e.started){const t=e.stack;if(Ne(t))return!1;if(se(t)!=null){if(V(se(t))instanceof st)throw new Error("Please report error: Map iterator, unexpected stack for moveNext");return e.stack=N0(Me(t)),!Ne(e.stack)}else throw new Error("Please report error: Map iterator, unexpected stack for moveNext")}else return e.started=!0,!Ne(e.stack)}function Cc(e){let t=_c(e);return{"System.Collections.Generic.IEnumerator`1.get_Current"(){return xc(t)},"System.Collections.IEnumerator.get_Current"(){return xc(t)},"System.Collections.IEnumerator.MoveNext"(){return fy(t)},"System.Collections.IEnumerator.Reset"(){t=_c(e)},Dispose(){}}}class ws{constructor(t,n){this.comparer=t,this.tree=n}GetHashCode(){return wy(this)|0}Equals(t){const n=this;if(t instanceof ws){const r=t,i=Fe(n);try{const o=Fe(r);try{const s=()=>{const a=i["System.Collections.IEnumerator.MoveNext"]();if(a===o["System.Collections.IEnumerator.MoveNext"]())if(a){const l=i["System.Collections.Generic.IEnumerator`1.get_Current"](),u=o["System.Collections.Generic.IEnumerator`1.get_Current"]();return Q(l[0],u[0])&&Q(l[1],u[1])?s():!1}else return!0;else return!1};return s()}finally{De(o)}}finally{De(i)}}else return!1}toString(){return"map ["+At("; ",je(n=>Fl("({0}, {1})",n[0],n[1]),this))+"]"}get[Symbol.toStringTag](){return"FSharpMap"}toJSON(){const t=this;return Array.from(t)}GetEnumerator(){return Cc(this.tree)}[Symbol.iterator](){return hi(Fe(this))}"System.Collections.IEnumerable.GetEnumerator"(){return Cc(this.tree)}CompareTo(t){const n=this;if(t instanceof ws)return mg((i,o)=>{const s=n.comparer.Compare(i[0],o[0])|0;return(s!==0?s:_t(i[1],o[1]))|0},n,t)|0;throw new Error("not comparable\\nParameter name: obj")}"System.Collections.Generic.ICollection`1.Add2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Clear"(){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Remove2B595"(t){throw new Error("Map cannot be mutated")}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const n=this;return Sc(n,t[0])&&Q(Er(n,t[0]),t[1])}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){A0(this.tree,t,n)}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!0}"System.Collections.Generic.ICollection`1.get_Count"(){return xa(this)|0}"System.Collections.Generic.IReadOnlyCollection`1.get_Count"(){return xa(this)|0}get size(){return xa(this)|0}clear(){throw new Error("Map cannot be mutated")}delete(t){throw new Error("Map cannot be mutated")}entries(){return je(n=>[n[0],n[1]],this)}get(t){return Er(this,t)}has(t){return Sc(this,t)}keys(){return je(n=>n[0],this)}set(t,n){throw new Error("Map cannot be mutated")}values(){return je(n=>n[1],this)}forEach(t,n){const r=this;nr(i=>{t(i[1],i[0],r)},r)}}function xo(e,t){return new ws(e,t)}function my(e){return xo(e,void 0)}function hy(e,t,n){return xo(e.comparer,ui(e.comparer,t,n,e.tree))}function py(e,t,n){return xo(e.comparer,Qa(e.comparer,t,n,e.tree))}function Er(e,t){return ny(e.comparer,t,e.tree)}function xa(e){return C0(e.tree)}function Sc(e,t){return ry(e.comparer,t,e.tree)}function gy(e,t,n){const r=tu(e.comparer,t,e.tree);if(r==null)return!1;{const i=V(r);return n.contents=i,!0}}function Ec(e){return Ye(t=>t[1],oy(e.tree))}function gr(e,t){return tu(e.comparer,t,e.tree)}function wy(e){const t=(i,o)=>(i<<1)+o+631;let n=0;const r=Fe(e);try{for(;r["System.Collections.IEnumerator.MoveNext"]();){const i=r["System.Collections.Generic.IEnumerator`1.get_Current"]();n=t(n,Qt(i[0]))|0,n=t(n,Qt(i[1]))|0}}finally{De(r)}return n|0}function T0(e,t,n){return hy(n,e,t)}function Vo(e,t,n){return py(n,e,t)}function $0(e,t){return gr(t,e)}function yy(e){return je(t=>[t[0],t[1]],e)}function Qr(e,t){return xo(t,k0(t,e))}function vy(e,t){return xo(t,k0(t,e))}function nu(e){return my(e)}const sr=new zs("",new eu(0,[]),mt(),!1,void 0,void 0,void 0,new v0(0,[]));new b0(0,"","","",nu({Compare:Dr}),new Br(0,[""]));function Ac(e,t){return Pl(t)?new Array(0):y1(t,[e],void 0,0)}function by(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 M0(e){return new zs(e,sr.method,sr.headers,sr.withCredentials,sr.overridenMimeType,sr.overridenResponseType,sr.timeout,sr.content)}function I0(e,t){return new zs(t.url,e,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,t.content)}function _y(e,t){return new zs(t.url,t.method,t.headers,t.withCredentials,t.overridenMimeType,t.overridenResponseType,t.timeout,e)}function kc(e){return fw(t=>{const n=new XMLHttpRequest;n.open(by(e.method),e.url),n.onreadystatechange=()=>{let l,u,f,d,p,h,m;n.readyState===4&&t[0]((l=(u=n.responseType,u===""||u==="text"?n.responseText:""),f=n.status|0,d=n.responseType,p=(h=n.responseType,h===""?new Br(0,[n.responseText]):h==="text"?new Br(0,[n.responseText]):h==="arraybuffer"?new Br(2,[n.response]):h==="blob"?new Br(1,[n.response]):new Br(3,[n.response])),m=vy(zt(v=>{const b=g(Ac(":",v));if(!Ne(b))return[se(b).toLocaleLowerCase(),At(":",Me(b)).trim()]},Ac(`\r
|
|
12
|
+
`,n.getAllResponseHeaders())),{Compare:Dr}),new b0(f,l,d,n.responseURL,m,p)))};const r=Fe(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{De(r)}n.withCredentials=e.withCredentials;const i=e.overridenMimeType;if(i!=null){const l=i;n.overrideMimeType(l)}const o=e.overridenResponseType;if(o!=null)switch(o.tag){case 1:{n.responseType="blob";break}case 2:{n.responseType="arraybuffer";break}default:n.responseType="text"}const 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(ut(a.fields[0]));break}case 3:{n.send(ut(a.fields[0]));break}case 2:{n.send(ut(a.fields[0]));break}default:n.send()}})}class ne extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["BadPrimitive","BadPrimitiveExtra","BadType","BadField","BadPath","TooSmallArray","FailMessage","BadOneOf"]}}class ro extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["PascalCase","CamelCase","SnakeCase"]}}function Nc(e){return e.slice(void 0,1).toLowerCase()+e.slice(1,e.length)}function D0(e,t){switch(e.tag){case 2:return Rl(Nc(t),"[A-Z]","_$0").toLowerCase();case 0:return t;default:return Nc(t)}}const xy=/^[\(\{]{0,2}[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[\)\}]{0,2}$/,Tc=/^([0-9a-f]{8})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{4})([0-9a-f]{12})$/,Cy=/^\{0x[0-9a-f]{8},(0x[0-9a-f]{4},){2}\{(0x[0-9a-f]{2},){7}0x[0-9a-f]{2}\}\}$/;function Sy(e){function t(r){return r.replace(Tc,"$1-$2-$3-$4-$5")}const n=e.trim().toLowerCase();if(xy.test(n))return v1(n,"{","}","(",")");if(Tc.test(n))return t(n);if(Cy.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 Ey(e,t){try{return t.contents=Sy(e),!0}catch{return!1}}var el;(function(e){e[e.AllowHexSpecifier=512]="AllowHexSpecifier"})(el||(el={}));function Ay(e,t){const[,n,r,i]=e;return{sign:n||"",prefix:r||"",digits:i,radix:t}}function $c(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 ky(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 Ny(e,t){if(t&el.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 Ty(e,t,n){const i=/^\s*([\+\-])?(0[xXoObB])?([0-9a-fA-F]+)\s*$/.exec(e.replace(/_/g,""));if(i!=null){const[,,o,s]=i;if(n=n||Ny(o,t),!ky(n).test(s))return Ay(i,n)}return null}function $y(e,t,n,r,i){const o=Ty(e,t,i);if(o!=null){let s=Number.parseInt(o.sign+o.digits,o.radix);if(!Number.isNaN(s)){const[a,l]=$c(!0,r);!n&&o.radix!==10&&s>=a&&s<=l&&(s=s<<32-r>>32-r);const[u,f]=$c(n,r);if(s>=u&&s<=f)return s}}throw new Error(`The input string ${e} was not in a correct format.`)}function vi(e,t,n,r,i){try{return i.contents=$y(e,t,n,r),!0}catch{return!1}}function O0(e,t){My(t);const n=new Date(e);return n.offset=t??new Date().getTimezoneOffset()*-6e4,n}function My(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 Iy(){return O0(-621355968e5,0)}function Dy(e){const[t,n]=bf(e),r=n==null?t.getTimezoneOffset()*-6e4:n==="Z"?0:n*6e4;return O0(t.getTime(),r)}function Oy(e,t){try{return t.contents=Dy(e),!0}catch{return!1}}function Co(e){return e<0?Math.ceil(e):Math.floor(e)}function Mc(e=0,t=0,n=0,r=0,i=0){switch(arguments.length){case 1:return Ry(arguments[0]);case 3:e=0,t=arguments[0],n=arguments[1],r=arguments[2],i=0;break}return e*864e5+t*36e5+n*6e4+r*1e3+i}function Ry(e){return Number(BigInt(e)/10000n)}function Fy(e){return Co(e/864e5)}function Py(e){return Co(e%864e5/36e5)}function Ly(e){return Co(e%36e5/6e4)}function Vy(e){return Co(e%6e4/1e3)}function Hy(e){return Co(e%1e3)}function jy(e,t="c",n){if(["c","g","G"].indexOf(t)===-1)throw new Error("Custom formats are not supported");const r=Math.abs(Fy(e)),i=Math.abs(Py(e)),o=Math.abs(Ly(e)),s=Math.abs(Vy(e)),a=Math.abs(Hy(e));return`${e<0?"-":""}${r===0&&(t==="c"||t==="g")?"":t==="c"?r+".":r+":"}${t==="g"?i:He(i,2)}:${He(o,2)}:${He(s,2)}${a===0&&(t==="c"||t==="g")?"":t==="g"?"."+He(a,3):"."+Ip(a,3,7)}`}function By(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 Mc(r,0,0,0,0)}if(n>0){const r=/^(-?)((\d+)\.)?(?:0*)([0-9]|0[0-9]|1[0-9]|2[0-3]):(?:0*)([0-5][0-9]|[0-9])(:(?:0*)([0-5][0-9]|[0-9]))?\.?(\d+)?$/.exec(e);if(r!=null&&r[4]!=null&&r[5]!=null){let i=0,o=0,s=0;const a=r[1]!=null&&r[1]==="-"?-1:1,l=+r[4],u=+r[5];if(r[3]!=null&&(i=+r[3]),r[7]!=null&&(s=+r[7]),r[8]!=null)switch(r[8].length){case 1:o=+r[8]*100;break;case 2:o=+r[8]*10;break;case 3:o=+r[8];break;case 4:o=+r[8]/10;break;case 5:o=+r[8]/100;break;case 6:o=+r[8]/1e3;break;case 7:o=+r[8]/1e4;break;default:throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}return a*Mc(i,l,u,s,o)}}throw new Error(`String '${e}' was not recognized as a valid TimeSpan.`)}function Uy(e,t){try{return t.contents=By(e),!0}catch{return!1}}function Fi(e,t,n){try{return"Expecting "+e+" but instead got:"+(n?`
|
|
13
13
|
`:" ")+(JSON.stringify(t,null,4)+"")}catch{return"Expecting "+e+" but decoder failed. Couldn't report given value due to circular structure."+(n?`
|
|
14
|
-
`:" ")}}function
|
|
15
|
-
Reason: `+t.fields[2]:t.tag===3
|
|
14
|
+
`:" ")}}function Wy(e,t){const n=t.tag===2?Fi(t.fields[0],t.fields[1],!0):t.tag===1?Fi(t.fields[0],t.fields[1],!1)+`
|
|
15
|
+
Reason: `+t.fields[2]:t.tag===3?Fi(t.fields[0],t.fields[1],!0):t.tag===4?Fi(t.fields[0],t.fields[1],!0)+("\nNode `"+t.fields[2]+"` is unkown."):t.tag===5?"Expecting "+t.fields[0]+`.
|
|
16
16
|
`+(JSON.stringify(t.fields[1],null,4)+""):t.tag===7?`The following errors were found:
|
|
17
17
|
|
|
18
|
-
`+
|
|
18
|
+
`+At(`
|
|
19
19
|
|
|
20
|
-
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]
|
|
20
|
+
`,t.fields[0]):t.tag===6?"The following `failure` occurred with the decoder: "+t.fields[0]:Fi(t.fields[0],t.fields[1],!1);return t.tag===7?n:"Error at: `"+e+"`\n"+n}function R0(e,t,n){const r=t(e,n);if(r.tag===1){const i=r.fields[0];return new $(1,[Wy(i[0],i[1])])}else return new $(0,[r.fields[0]])}function F0(e,t){try{return R0("$",e,JSON.parse(t))}catch(n){if(n instanceof SyntaxError)return new $(1,["Given an invalid JSON: "+n.message]);throw n}}function P0(e,t){return typeof t=="string"?new $(0,[t]):new $(1,[[e,new ne(0,["a string",t])]])}function Gy(e,t){if(typeof t=="string"){const n=t;return n.length===1?new $(0,[n[0]]):new $(1,[[e,new ne(0,["a single character string",t])]])}else return new $(1,[[e,new ne(0,["a char",t])]])}function zy(e,t){if(typeof t=="string"){let n,r="00000000-0000-0000-0000-000000000000";return n=[Ey(t,new vt(()=>r,i=>{r=i})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new ne(0,["a guid",t])]])}else return new $(1,[[e,new ne(0,["a guid",t])]])}function qy(e,t){return t==null?new $(0,[void 0]):new $(1,[[e,new ne(0,["null",t])]])}const Ic=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-128<=i&&i<=127?new $(0,[(i+128&255)-128]):new $(1,[[n,new ne(1,["a sbyte",i,"Value was either too large or too small for a sbyte"])]]):new $(1,[[n,new ne(1,["a sbyte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[vi(r,511,!1,8,new vt(()=>o,s=>{o=s|0})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new ne(0,["a sbyte",r])]])}else return new $(1,[[n,new ne(0,["a sbyte",r])]])},Dc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=255?new $(0,[i&255]):new $(1,[[n,new ne(1,["a byte",i,"Value was either too large or too small for a byte"])]]):new $(1,[[n,new ne(1,["a byte",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[vi(r,511,!0,8,new vt(()=>o,s=>{o=s})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new ne(0,["a byte",r])]])}else return new $(1,[[n,new ne(0,["a byte",r])]])},Oc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-32768<=i&&i<=32767?new $(0,[(i+32768&65535)-32768]):new $(1,[[n,new ne(1,["an int16",i,"Value was either too large or too small for an int16"])]]):new $(1,[[n,new ne(1,["an int16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[vi(r,511,!1,16,new vt(()=>o,s=>{o=s|0})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new ne(0,["an int16",r])]])}else return new $(1,[[n,new ne(0,["an int16",r])]])},Rc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=65535?new $(0,[i&65535]):new $(1,[[n,new ne(1,["an uint16",i,"Value was either too large or too small for an uint16"])]]):new $(1,[[n,new ne(1,["an uint16",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[vi(r,511,!0,16,new vt(()=>o,s=>{o=s})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new ne(0,["an uint16",r])]])}else return new $(1,[[n,new ne(0,["an uint16",r])]])},Fc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?-2147483648<=i&&i<=2147483647?new $(0,[~~i]):new $(1,[[n,new ne(1,["an int",i,"Value was either too large or too small for an int"])]]):new $(1,[[n,new ne(1,["an int",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[vi(r,511,!1,32,new vt(()=>o,s=>{o=s|0})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new ne(0,["an int",r])]])}else return new $(1,[[n,new ne(0,["an int",r])]])},Pc=e=>t=>{const n=e,r=t;if(typeof r=="number"){const i=r;return isFinite(i)&&Math.floor(i)===i?0<=i&&i<=4294967295?new $(0,[i>>>0]):new $(1,[[n,new ne(1,["an uint32",i,"Value was either too large or too small for an uint32"])]]):new $(1,[[n,new ne(1,["an uint32",i,"Value is not an integral value"])]])}else if(typeof r=="string"){let i,o=0;return i=[vi(r,511,!0,32,new vt(()=>o,s=>{o=s})),o],i[0]?new $(0,[i[1]]):new $(1,[[n,new ne(0,["an uint32",r])]])}else return new $(1,[[n,new ne(0,["an uint32",r])]])};function Yy(e,t){return typeof t=="boolean"?new $(0,[t]):new $(1,[[e,new ne(0,["a boolean",t])]])}function Zy(e,t){return typeof t=="number"?new $(0,[t]):new $(1,[[e,new ne(0,["a float",t])]])}function Ky(e,t){return typeof t=="number"?new $(0,[t]):new $(1,[[e,new ne(0,["a float32",t])]])}function Xy(e,t){if(typeof t=="string"){let n,r=l1();return n=[c1(t,new vt(()=>r,i=>{r=i})),r],n[0]?new $(0,[d1(n[1])]):new $(1,[[e,new ne(0,["a datetime",t])]])}else return new $(1,[[e,new ne(0,["a datetime",t])]])}function Jy(e,t){if(typeof t=="string"){let n,r=Iy();return n=[Oy(t,new vt(()=>r,i=>{r=i})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new ne(0,["a datetimeoffset",t])]])}else return new $(1,[[e,new ne(0,["a datetime",t])]])}function Qy(e,t){if(typeof t=="string"){let n,r=0;return n=[Uy(t,new vt(()=>r,i=>{r=i})),r],n[0]?new $(0,[n[1]]):new $(1,[[e,new ne(0,["a timespan",t])]])}else return new $(1,[[e,new ne(0,["a timespan",t])]])}function Lc(e,t,n,r){let i;const o=n+".["+dn(e)+"]";if(Array.isArray(r)){const s=r;return e<s.length?t(o,ve(e,s)):new $(1,[[o,new ne(5,["a longer array. Need index `"+dn(e)+"` but there are only `"+(i=s.length,dn(i))+"` entries",r])]])}else return new $(1,[[o,new ne(0,["an array",r])]])}function e2(e,t,n){return n==null?new $(0,[void 0]):Rn(ut,e(t,n))}function Vc(e,t,n){if(Array.isArray(n)){let r=-1;return Rn(Hl,Ls((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+dn(r)+"]",o);return s.tag===0?new $(0,[Xt(s.fields[0],i.fields[0])]):new $(1,[s.fields[0]])}else return i},new $(0,[mt()]),n))}else return new $(1,[[t,new ne(0,["a list",n])]])}function t2(e,t,n){if(Array.isArray(n)){let r=-1;return Rn(gg,Ls((i,o)=>{if(r=r+1|0,i.tag===0){const s=e(t+".["+dn(r)+"]",o);return s.tag===0?new $(0,[H([s.fields[0]],i.fields[0])]):new $(1,[s.fields[0]])}else return i},new $(0,[[]]),n))}else return new $(1,[[t,new ne(0,["a seq",n])]])}function Hc(e,t,n){if(Array.isArray(n)){let r=-1;const i=n;return Ls((o,s)=>{if(r=r+1|0,o.tag===0){const a=o.fields[0],l=e(t+".["+dn(r)+"]",s);return l.tag===0?(kt(a,r,l.fields[0]),new $(0,[a])):new $(1,[l.fields[0]])}else return o},new $(0,[wo(new Array(i.length),0,i.length,null)]),i)}else return new $(1,[[t,new ne(0,["an array",n])]])}function n2(e,t,n){return((i,o)=>{e:for(;;){const s=i,a=o;if(Ne(s))return new $(1,[[t,new ne(7,[a])]]);{const l=R0(t,rt(se(s)),n);if(l.tag===1){i=Me(s),o=bo(a,fe(l.fields[0]));continue e}else return new $(0,[l.fields[0]])}}})(e,mt())}function r2(e,t,n){return new $(0,[e])}function jc(e,t,n,r){const i=t(n,r);return i.tag===0?e(i.fields[0],n,r):new $(1,[i.fields[0]])}function i2(e,t,n,r){const i=t(n,r);return i.tag===1?new $(1,[i.fields[0]]):new $(0,[e(i.fields[0])])}function o2(e,t){let n;const r=e;return n=i=>o=>Lc(0,r,i,o),i=>o=>jc(qa(s=>{let a;const l=t;return a=u=>f=>Lc(1,l,u,f),u=>f=>jc((d,p,h)=>r2([s,d]),rt(a),u,f)}),rt(n),i,o)}function s2(e){return Qr(e,{Compare:_t})}function a2(e){return Pg(e,{Compare:_t})}function l2(e,t,n){return n!==null&&Object.getPrototypeOf(n||!1)===Object.prototype?Wf((r,i)=>{const o=r[0];return i.tag===0?Rn(s=>Xt(s,i.fields[0]),r[1](t+"."+o)(n[o])):i},e,new $(0,[mt()])):new $(1,[[t,new ne(0,["an object",n])]])}function u2(e,t,n,r){return r!==null&&Object.getPrototypeOf(r||!1)===Object.prototype?_o((i,o)=>{if(i.tag===0){const s=e(n,o);if(s.tag===0){const a=t(n+"."+o,r[o]);return a.tag===0?new $(0,[Xt([s.fields[0],a.fields[0]],i.fields[0])]):new $(1,[a.fields[0]])}else return new $(1,[s.fields[0]])}else return i},new $(0,[mt()]),Object.keys(r)):new $(1,[[n,new ne(0,["an object",r])]])}function L0(e,t,n,r){let i;const o=t.length+e|0;if(o!==r.length)return new $(1,[[n,new ne(6,[(i=r.length|0,_r(On("Expected array of length %i but got %i"))(o)(i))])]]);{let s=new $(0,[mt()]);for(let a=e;a<=r.length-1;a++)if(s.tag===0){const l=s.fields[0],u=_r(On("%s[%i]"))(n)(a),f=ve(a-e,t),d=ve(a,r);s=Rn(p=>Xt(p,l),f(u)(d))}return Rn(Hl,s)}}function Bc(e,t,n,r,i,o){const s=Ps(a=>Kr(a)===r,Of(n));if(s!=null){const a=s,l=Ye(u=>sn(e,t,!1,u[1]),Lf(a));return Rn(u=>N1(a,tr(u)),l.length===0&&o.length<=1?new $(0,[mt()]):L0(1,l,i,o))}else return new $(1,[[i,new ne(6,["Cannot find case "+r+" in "+qe(n)])]])}function Uc(e,t,n,r){let i;const o=new vt($e());let s;const a=qe(r);s=a===""?e:T0(a,o,e);let l;if(Pf(r)){const u=Ye(f=>[D0(t,Kr(f)),sn(s,t,!1,f[1])],no(r));l=f=>d=>Rn(p=>T1(r,tr(p)),l2(u,f,d))}else if(Ff(r))l=u=>f=>{if(typeof f=="string")return Bc(s,t,r,f,u,[]);if(Array.isArray(f)){const d=f;return Xw(p=>Bc(s,t,r,p,u,d),P0(u+"[0]",ve(0,d)))}else return new $(1,[[u,new ne(0,["a string or array",f])]])};else if(n)l=u=>f=>new $(1,[[u,new ne(2,["an extra coder for "+qe(r),f])]]);else throw new Error((i=qe(r),_r(On(`Cannot generate auto decoder for %s. Please pass an extra decoder.
|
|
21
21
|
|
|
22
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function
|
|
22
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function sn(e,t,n,r){let i,o,s,a;const l=qe(r),u=$0(l,e);if(u==null)if($f(r)){const f=sn(e,t,!1,go(r));return d=>p=>Hc(rt(f),d,p)}else if(Ll(r))switch(qe(Df(r))){case"System.SByte":return d=>p=>{const h=r,m=d,v=p,b=Ic(m)(v);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0]|0;return Lr(x,Fr(h),{Equals:(C,E)=>C===E,GetHashCode:an})?new $(0,[Pr(h,x.toString())]):new $(1,[[m,new ne(1,[qe(h),v,"Unkown value provided for the enum"])]])}};case"System.Byte":return d=>p=>{const h=r,m=d,v=p,b=Dc(m)(v);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0];return Lr(x,Fr(h),{Equals:(C,E)=>C===E,GetHashCode:an})?new $(0,[Pr(h,x.toString())]):new $(1,[[m,new ne(1,[qe(h),v,"Unkown value provided for the enum"])]])}};case"System.Int16":return d=>p=>{const h=r,m=d,v=p,b=Oc(m)(v);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0]|0;return Lr(x,Fr(h),{Equals:(C,E)=>C===E,GetHashCode:an})?new $(0,[Pr(h,Dp(x))]):new $(1,[[m,new ne(1,[qe(h),v,"Unkown value provided for the enum"])]])}};case"System.UInt16":return d=>p=>{const h=r,m=d,v=p,b=Rc(m)(v);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0];return Lr(x,Fr(h),{Equals:(C,E)=>C===E,GetHashCode:an})?new $(0,[Pr(h,x.toString())]):new $(1,[[m,new ne(1,[qe(h),v,"Unkown value provided for the enum"])]])}};case"System.Int32":return d=>p=>{const h=r,m=d,v=p,b=Fc(m)(v);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0]|0;return Lr(x,Fr(h),{Equals:(C,E)=>C===E,GetHashCode:an})?new $(0,[Pr(h,dn(x))]):new $(1,[[m,new ne(1,[qe(h),v,"Unkown value provided for the enum"])]])}};case"System.UInt32":return d=>p=>{const h=r,m=d,v=p,b=Pc(m)(v);if(b.tag===1)return new $(1,[b.fields[0]]);{const x=b.fields[0];return Lr(x,Fr(h),{Equals:(C,E)=>C===E,GetHashCode:an})?new $(0,[Pr(h,x.toString())]):new $(1,[[m,new ne(1,[qe(h),v,"Unkown value provided for the enum"])]])}};default:{const d=qe(r),p=Cf(On(`Cannot generate auto decoder for %s.
|
|
23
23
|
Thoth.Json.Net only support the following enum types:
|
|
24
24
|
- sbyte
|
|
25
25
|
- byte
|
|
@@ -28,9 +28,9 @@ Thoth.Json.Net only support the following enum types:
|
|
|
28
28
|
- int
|
|
29
29
|
- uint32
|
|
30
30
|
If you can't use one of these types, please pass an extra decoder.
|
|
31
|
-
`))(d);return h=>p(h)}}else if(
|
|
31
|
+
`))(d);return h=>p(h)}}else if(Mf(r))if(Vl(r)){const f=Ye(d=>sn(e,t,!1,d),Rf(r));return d=>p=>Array.isArray(p)?Rn(h=>$1(tr(h)),L0(0,f,d,p)):new $(1,[[d,new ne(0,["an array",p])]])}else switch(qe(If(r))){case"Microsoft.FSharp.Core.FSharpOption`1[System.Object]":return i=sn(e,t,!0,ve(0,Gt(r))),d=>p=>e2(rt(i),d,p);case"Microsoft.FSharp.Collections.FSharpList`1[System.Object]":return o=sn(e,t,!1,ve(0,Gt(r))),d=>p=>Vc(rt(o),d,p);case"System.Collections.Generic.IEnumerable`1[System.Object]":return s=sn(e,t,!1,ve(0,Gt(r))),d=>p=>t2(rt(s),d,p);case"Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]":{const d=sn(e,t,!1,ve(0,Gt(r))),p=sn(e,t,!1,ve(1,Gt(r)));let h;const m=g([v=>b=>u2(rt(d),rt(p),v,b),(a=o2(rt(d),rt(p)),v=>b=>Vc(rt(a),v,b))]);return h=v=>b=>n2(m,v,b),v=>b=>i2(s2,rt(h),v,b)}case"Microsoft.FSharp.Collections.FSharpSet`1[System.Object]":{const d=sn(e,t,!1,ve(0,Gt(r)));return p=>h=>{const m=Hc(rt(d),p,h);return m.tag===0?new $(0,[a2(m.fields[0])]):new $(1,[m.fields[0]])}}default:return Uc(e,t,n,r)}else switch(l){case"System.Boolean":return f=>d=>Yy(f,d);case"Microsoft.FSharp.Core.Unit":return f=>d=>qy(f,d);case"System.String":return f=>d=>P0(f,d);case"System.Char":return f=>d=>Gy(f,d);case"System.SByte":return Ic;case"System.Byte":return Dc;case"System.Int16":return Oc;case"System.UInt16":return Rc;case"System.Int32":return Fc;case"System.UInt32":return Pc;case"System.Double":return f=>d=>Zy(f,d);case"System.Single":return f=>d=>Ky(f,d);case"System.DateTime":return f=>d=>Xy(f,d);case"System.DateTimeOffset":return f=>d=>Jy(f,d);case"System.TimeSpan":return f=>d=>Qy(f,d);case"System.Guid":return f=>d=>zy(f,d);case"System.Object":return f=>d=>new $(0,[d]);default:return Uc(e,t,n,r)}else{const f=u;return d=>p=>f.contents(d)(p)}}function c2(e){return nu({Compare:Dr})}function V0(e,t,n){const r=at(t,new ro(0,[]));return sn(c2(),r,!1,e)}function d2(e){return e}const H0=$e();function Ho(e){return Array.from(e)}function f2(e){return Rs(e,"O")}function m2(e){return jy(e)}function h2(){return $e()}function p2(e){return Rs(e,"O")}function g2(e,t){return JSON.stringify(t,void 0,ut(e))}function w2(e){return t=>b1(Et(e,t),()=>H0)}function Wc(e,t,n,r){let i;const o=new vt($e());let s;const a=qe(r);s=a===""?e:T0(a,o,e);let l;if(Pf(r)){const u=Ye(f=>{const d=D0(t,Kr(f)),p=Sn(s,t,n,f[1]);return h=>m=>{const v=k1(h,f);return(!n||n&&v!=null)&&(m[d]=p(v)),m}},no(r));l=f=>_o((d,p)=>p(f)(d),{},u)}else if(Ff(r))l=u=>{const f=A1(u,r),d=f[0],p=f[1],h=p.length|0;if(h===0)return Kr(d);{const m=h|0,v=Lf(d),b=wo(new Array(m+1),0,m+1,null);kt(b,0,Kr(d));for(let x=1;x<=m;x++){const C=Sn(s,t,n,ve(x-1,v)[1]);kt(b,x,C(ve(x-1,p)))}return b}};else throw new Error((i=qe(r),_r(On(`Cannot generate auto encoder for %s. Please pass an extra encoder.
|
|
32
32
|
|
|
33
|
-
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function Sn(e,t,n,r){const i=
|
|
33
|
+
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders`))(i)));return o.contents=l,l}function Sn(e,t,n,r){const i=qe(r),o=$0(i,e);if(o==null)if($f(r)){const s=Sn(e,t,n,go(r));return a=>Ho(je(s,a))}else if(Ll(r))switch(qe(Df(r))){case"System.SByte":return a=>a;case"System.Byte":return a=>a;case"System.Int16":return a=>a;case"System.UInt16":return a=>a;case"System.Int32":return a=>a;case"System.UInt32":return a=>a;default:{const a=qe(r);return Cf(On(`Cannot generate auto encoder for %s.
|
|
34
34
|
Thoth.Json.Net only support the following enum types:
|
|
35
35
|
- sbyte
|
|
36
36
|
- byte
|
|
@@ -42,26 +42,26 @@ Thoth.Json.Net only support the following enum types:
|
|
|
42
42
|
If you can't use one of these types, please pass an extra encoder.
|
|
43
43
|
|
|
44
44
|
Documentation available at: https://thoth-org.github.io/Thoth.Json/documentation/auto/extra-coders.html#ready-to-use-extra-coders
|
|
45
|
-
`))(a)}}else if(df(r))if(Dl(r)){const s=Ge(a=>Sn(e,t,n,a),pf(r));return a=>$o(Yg((l,u)=>pe(l,s)(u),a))}else{const s=We(ff(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new lp(()=>Zw(Sn(e,t,n,pe(0,Bt(r)))));return l=>l==null?_m:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=Sn(e,t,n,pe(0,Bt(r)));return l=>$o(He(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=pe(0,Bt(r)),l=Sn(e,t,n,pe(1,Bt(r)));if(We(a)==="System.String"||We(a)==="System.Guid")return u=>fo((f,d)=>{const p=d;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=Sn(e,t,n,a),d=>$o(He(p=>{const h=p;return[u(h[0]),l(h[1])]},d))}}else return Tc(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return zw;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return qw;case"System.DateTimeOffset":return Ww;case"System.TimeSpan":return Gw;case"System.Guid":return Uw;case"System.Object":return s=>s;default:return Tc(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function Kw(e){return ql({Compare:Tr})}function Xw(e,t,n,r){const i=rt(t,new Xi(0,[])),o=rt(r,!0);return Sn(Kw(),i,o,e)}class xm extends Se{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function Jw(){return Qt("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],xm,()=>[["RowId",Nt],["Data",Yn("Microsoft.FSharp.Collections.FSharpMap`2",[$n,$n])]])}class Cm extends Se{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}}function Qw(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],Cm,()=>[["IncludesEmploymentInfo",ng],["Data",vr(Jw())]])}class ev extends Se{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function tv(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],ev,()=>[["Column",$n],["PropName",$n],["Message",$n]])}class nv extends Se{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function rv(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],nv,()=>[["RowId",Nt],["FieldErrors",vr(tv())]])}class iv extends Se{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function ov(){return Qt("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],iv,()=>[["Errors",vr(rv())],["DuplicateEmailCount",Nt]])}function Sm(e){return`${e}/import/workspace/v1.0/accounts/current`}function Em(e){return Ae.Delay(()=>{let t;const n=fc(e);return t=Ae.Bind(n,r=>Ae.Return(new M(0,[r]))),Ae.Bind(t,r=>{const i=r;if(i.tag===1)return Ae.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){const s=fc(e);return Ae.Bind(s,a=>Ae.Return(new M(0,[a])))}else return Ae.Return(new M(0,[o]))}})})}function sv(e,t){return Ae.Delay(()=>{const n=Em(mm(new Gl(0,[]),fm(Sm(e)+"/imports")));return Ae.Bind(n,r=>{const i=r;if(i.tag===1)return Ae.Return(new M(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=ym(Qe(bm(ky(),new Xi(1,[]))),o.responseText);return a=l.tag===1?new M(1,[l.fields[0]]):new M(0,[l.fields[0]]),Ae.Return(a)}case 404:return Ae.Return(new M(0,[void 0]));default:return Ae.Return(new M(1,["Failed to get account imports"]))}}})})}function av(e,t){return Ae.Delay(()=>{let n;const r=Em((n=mm(new Gl(1,[]),fm(Sm(e)+"/import/validate")),Qy(new em(1,[Yw(0,Xw(Qw(),new Xi(1,[]),void 0,void 0)(t))]),n)));return Ae.Bind(r,i=>{const o=i;if(o.tag===1)return Ae.Return(new M(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=ym(Qe(bm(ov(),new Xi(1,[]))),s.responseText);return Ae.Return(a)}else return Ae.Return(new M(1,[`Failed to validate: ${s.responseText}`]))}})})}class lv extends Se{constructor(t){super(),this.UserActivities=t}}class $c extends Se{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function uv(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:rt(kt(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function cv(e){return co(y(Es(kt(t=>new $c(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),gi(t=>new $c(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function dv(e){return new lv(rt(kt(cv,e),ft()))}class Mc extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class fv extends Se{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class po extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class mv extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class hv extends Se{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class Am extends Se{constructor(t,n){super(),this.Column=t,this.Direction=n}}class pv extends K{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class ls extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class gv extends Se{constructor(t,n,r,i,o){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=i|0,this.PageSize=o|0}}function yv(e){return e.tag===1?km(e.fields[0].Data):$m()}function wv(e){return e.tag===1?vi(e.fields[0].Data):new ls(1,[])}function vv(e){const t=Yl($m(),e);return new po([Im(an(e),20),t])}function go(e){return e.fields[0][1]}function km(e){return Tm(go(e))}function bv(e){return Zl(go(e))}function vi(e){return e.fields[0][0]}function _v(e){const t=vi(e);if(t.tag===0){const n=t.fields[0],r=Nf(n.FirstRowIndex,bv(e));return Tf(Dv(n),r)}else return ft()}function Nm(e,t){const n=Yl(km(e),t);return new po([$v(vi(e),an(Zl(n))),n])}function xv(e){return new po([vi(e),Ev(go(e))])}function Cv(e){return new po([Tv(vi(e)),go(e)])}function Sv(e){return new po([Nv(vi(e)),go(e)])}function Yl(e,t){return new mv([e,My(e.Direction,n=>n.Timestamp,t)])}function Zl(e){return e.fields[0][1]}function Tm(e){return e.fields[0][0]}function Ev(e){return Yl(Av(Tm(e)),Zl(e))}function $m(){return new Am(new pv,new Ga(0,[]))}function Av(e){return new Am(e.Column,$y(e.Direction))}function Mm(e,t){return~~(e/t)+(e%t===0?0:1)}function Rs(e,t,n){if(e<=0)return new ls(1,[]);{const r=Bu(n,Mm(e,t))|0,i=(r-1)*t|0;return new ls(0,[new gv(r,i,Bu(i+t-1,e-1),e,t)])}}function Im(e,t){return Rs(e,t,1)}function kv(e){if(e.tag===0){const t=e.fields[0];return Mm(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function Dm(e){return e.tag===0?e.fields[0].CurrentPage<kv(e):!1}function Om(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function Nv(e){const t=Om(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Rs(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Tv(e){const t=Dm(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return Rs(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function $v(e,t){return t<=0?new ls(1,[]):e.tag===0?Rs(t,20,e.fields[0].CurrentPage):Im(t,20)}function Mv(e){return e.FirstRowIndex+1}function Iv(e){return e.LastRowIndex+1}function Dv(e){return e.LastRowIndex-e.FirstRowIndex+1}let Xn=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class bi extends Se{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class Kl extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function Ov(e){if(e.tag===1)return Rm(e.fields[0])}function Rv(e){return e.tag===0}function Fv(e){return e.tag===1?new Mc(1,[Uv(e.fields[0])]):new Mc(0,[])}function Rm(e){const t=e.View;if(t.tag===1)return t.fields[0]}function Pv(e){return Rm(e)!=null}function Lv(e,t){return new Xn(1,[new bi(e.ImportHistory,new Kl(1,[t]),Nm(e.PaginatedList,Wn(n=>uv(n.User,t),e.ImportHistory.UserActivities)))])}function Vv(e){return new Xn(1,[new bi(e.ImportHistory,new Kl(0,[]),Nm(e.PaginatedList,e.ImportHistory.UserActivities))])}function Hv(e){return new Xn(1,[new bi(e.ImportHistory,e.View,xv(e.PaginatedList))])}function jv(e){return new Xn(1,[new bi(e.ImportHistory,e.View,Cv(e.PaginatedList))])}function Bv(e){return new Xn(1,[new bi(e.ImportHistory,e.View,Sv(e.PaginatedList))])}function Uv(e){return new fv(e.PaginatedList,Pv(e))}let Jr=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function Wv(e){let t;return[e.tag===1?new Xn(0,[]):(t=e.fields[0],new Xn(1,[new bi(t,new Kl(0,[]),vv(t.UserActivities))])),Y()]}function Fm(e,t){return e.tag===1?t(e.fields[0]):[new Xn(0,[]),Y()]}function Gv(e,t){return Fm(e,n=>[t(n),Y()])}function zv(e,t){const n=r=>Gv(t,r);switch(e.tag){case 1:return n(Vv);case 2:return n(Hv);case 3:return n(jv);case 4:return n(Bv);default:{const r=e.fields[0];return Fm(t,i=>Ml(r)?[t,fe(o=>{o(new Jr(1,[]))})]:[Lv(i,r),Y()])}}}function qv(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([(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",v.Children.toArray(Array.from(n))])])))}function Yv(){let e,t,n;return c("div",g(y([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[c("div",g(y([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),c("div",g(y([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[qv(24,24)],["children",v.Children.toArray(Array.from(n))])]))),c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function Zv(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([["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",v.Children.toArray(Array.from(n))])])))}function Ya(e,t){let n,r;return c("svg",g(y([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([(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",v.Children.toArray(Array.from(n))])])))}class Ic extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function Kv(e){let t,n;const r=rt(e.Value,"");return c("div",g(y([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[c("div",g(y([["className",_t(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=ee(T(()=>{let i;return B(A(c("div",g(y([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[Zv(20,20)],["children",v.Children.toArray(Array.from(i))])])))),T(()=>{let o;return B(A(c("input",g(y([(o="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",o]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new Ic(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),T(()=>{let s;return Ml(r)?A(Ce()):A(c("div",g(y([["onClick",a=>{e.ActionHandler(new Ic(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[Ya(10,10)],["children",v.Children.toArray(Array.from(s))])]))))}))}))})),["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function Xv(e){let t,n;const r=e.height,i=e.width;return c("svg",g(y([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=fe(c("path",g(y([(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",v.Children.toArray(Array.from(t))])])))}function Jv(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return c("div",g(y([["className",_t(" ",ee(T(()=>B(A("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),T(()=>r.tag===1?A("rotate-180"):A(""))))))],["onClick",i=>{n(void 0)}],(t=[c(Xv,{width:10,height:7})],["children",v.Children.toArray(Array.from(t))])])))}function Qv(e){const t=e.toggleSortDirection,n=e.props;return c(Jv,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function eb(e){let t,n,r,i;const o=c(Qv,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return c("div",g(y([["className","flex-none grid grid-cols-7"],(t=[c("div",g(y([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",v.Children.toArray(Array.from(r))])]))),c("div",g(y([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(i=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(t))])])))}function us(e){"@babel/helpers - typeof";return us=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},us(e)}function xr(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 Mt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function vn(e){Mt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||us(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 tb(e,t){Mt(2,arguments);var n=vn(e).getTime(),r=xr(t);return new Date(n+r)}var nb={};function Fs(){return nb}function rb(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 ib(e){return Mt(1,arguments),e instanceof Date||us(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function ob(e){if(Mt(1,arguments),!ib(e)&&typeof e!="number")return!1;var t=vn(e);return!isNaN(Number(t))}function sb(e,t){Mt(2,arguments);var n=xr(t);return tb(e,-n)}var ab=864e5;function lb(e){Mt(1,arguments);var t=vn(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/ab)+1}function cs(e){Mt(1,arguments);var t=1,n=vn(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function Pm(e){Mt(1,arguments);var t=vn(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=cs(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=cs(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function ub(e){Mt(1,arguments);var t=Pm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=cs(n);return r}var cb=6048e5;function db(e){Mt(1,arguments);var t=vn(e),n=cs(t).getTime()-ub(t).getTime();return Math.round(n/cb)+1}function ds(e,t){var n,r,i,o,s,a,l,u;Mt(1,arguments);var f=Fs(),d=xr((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=vn(e),h=p.getUTCDay(),m=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function Lm(e,t){var n,r,i,o,s,a,l,u;Mt(1,arguments);var f=vn(e),d=f.getUTCFullYear(),p=Fs(),h=xr((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i: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 m=new Date(0);m.setUTCFullYear(d+1,0,h),m.setUTCHours(0,0,0,0);var w=ds(m,t),b=new Date(0);b.setUTCFullYear(d,0,h),b.setUTCHours(0,0,0,0);var C=ds(b,t);return f.getTime()>=w.getTime()?d+1:f.getTime()>=C.getTime()?d:d-1}function fb(e,t){var n,r,i,o,s,a,l,u;Mt(1,arguments);var f=Fs(),d=xr((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=Lm(e,t),h=new Date(0);h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0);var m=ds(h,t);return m}var mb=6048e5;function hb(e,t){Mt(1,arguments);var n=vn(e),r=ds(n,t).getTime()-fb(n,t).getTime();return Math.round(r/mb)+1}function Fe(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Hn={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return Fe(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Fe(r+1,2)},d:function(t,n){return Fe(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Fe(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Fe(t.getUTCHours(),n.length)},m:function(t,n){return Fe(t.getUTCMinutes(),n.length)},s:function(t,n){return Fe(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return Fe(o,n.length)}},Pr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},pb={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Hn.y(t,n)},Y:function(t,n,r,i){var o=Lm(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return Fe(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Fe(s,n.length)},R:function(t,n){var r=Pm(t);return Fe(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Fe(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Fe(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Fe(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Hn.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Fe(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=hb(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Fe(o,n.length)},I:function(t,n,r){var i=db(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Fe(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Hn.d(t,n)},D:function(t,n,r){var i=lb(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Fe(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Fe(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Fe(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return Fe(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Pr.noon:i===0?o=Pr.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Pr.evening:i>=12?o=Pr.afternoon:i>=4?o=Pr.morning:o=Pr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Hn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Hn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Fe(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Fe(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Hn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Hn.s(t,n)},S:function(t,n){return Hn.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Oc(s);case"XXXX":case"XX":return ar(s);case"XXXXX":case"XXX":default:return ar(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return Oc(s);case"xxxx":case"xx":return ar(s);case"xxxxx":case"xxx":default:return ar(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Dc(s,":");case"OOOO":default:return"GMT"+ar(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Dc(s,":");case"zzzz":default:return"GMT"+ar(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return Fe(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return Fe(s,n.length)}};function Dc(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+Fe(o,2)}function Oc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Fe(Math.abs(e)/60,2)}return ar(e,t)}function ar(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Fe(Math.floor(i/60),2),s=Fe(i%60,2);return r+o+n+s}var Rc=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"})}},Vm=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"})}},gb=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Rc(t,n);var s;switch(i){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}}",Rc(i,n)).replace("{{time}}",Vm(o,n))},yb={p:Vm,P:gb},wb=["D","DD"],vb=["YY","YYYY"];function bb(e){return wb.indexOf(e)!==-1}function _b(e){return vb.indexOf(e)!==-1}function Fc(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 xb={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"}},Cb=function(t,n,r){var i,o=xb[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function ya(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 Sb={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Eb={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Ab={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kb={date:ya({formats:Sb,defaultWidth:"full"}),time:ya({formats:Eb,defaultWidth:"full"}),dateTime:ya({formats:Ab,defaultWidth:"full"})},Nb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Tb=function(t,n,r,i){return Nb[t]};function Mi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var $b={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Mb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Ib={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"]},Db={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"]},Ob={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"}},Rb={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"}},Fb=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Pb={ordinalNumber:Fb,era:Mi({values:$b,defaultWidth:"wide"}),quarter:Mi({values:Mb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Mi({values:Ib,defaultWidth:"wide"}),day:Mi({values:Db,defaultWidth:"wide"}),dayPeriod:Mi({values:Ob,defaultWidth:"wide",formattingValues:Rb,defaultFormattingWidth:"wide"})};function Ii(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?Vb(a,function(d){return d.test(s)}):Lb(a,function(d){return d.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var f=t.slice(s.length);return{value:u,rest:f}}}function Lb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function Vb(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function Hb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var jb=/^(\d+)(th|st|nd|rd)?/i,Bb=/\d+/i,Ub={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},Wb={any:[/^b/i,/^(a|c)/i]},Gb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},zb={any:[/1/i,/2/i,/3/i,/4/i]},qb={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},Yb={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]},Zb={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},Kb={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]},Xb={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},Jb={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}},Qb={ordinalNumber:Hb({matchPattern:jb,parsePattern:Bb,valueCallback:function(t){return parseInt(t,10)}}),era:Ii({matchPatterns:Ub,defaultMatchWidth:"wide",parsePatterns:Wb,defaultParseWidth:"any"}),quarter:Ii({matchPatterns:Gb,defaultMatchWidth:"wide",parsePatterns:zb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ii({matchPatterns:qb,defaultMatchWidth:"wide",parsePatterns:Yb,defaultParseWidth:"any"}),day:Ii({matchPatterns:Zb,defaultMatchWidth:"wide",parsePatterns:Kb,defaultParseWidth:"any"}),dayPeriod:Ii({matchPatterns:Xb,defaultMatchWidth:"any",parsePatterns:Jb,defaultParseWidth:"any"})},e_={code:"en-US",formatDistance:Cb,formatLong:kb,formatRelative:Tb,localize:Pb,match:Qb,options:{weekStartsOn:0,firstWeekContainsDate:1}},t_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,n_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,r_=/^'([^]*?)'?$/,i_=/''/g,o_=/[a-zA-Z]/;function Hm(e,t,n){var r,i,o,s,a,l,u,f,d,p,h,m,w,b;Mt(2,arguments);var C=String(t),x=Fs(),E=(r=(i=void 0)!==null&&i!==void 0?i:x.locale)!==null&&r!==void 0?r:e_,$=xr((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:x.firstWeekContainsDate)!==null&&s!==void 0?s:(u=x.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!($>=1&&$<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=xr((d=(p=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:x.weekStartsOn)!==null&&p!==void 0?p:(w=x.locale)===null||w===void 0||(b=w.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&d!==void 0?d:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var L=vn(e);if(!ob(L))throw new RangeError("Invalid time value");var P=rb(L),S=sb(L,P),_={firstWeekContainsDate:$,weekStartsOn:I,locale:E,_originalDate:L},k=C.match(n_).map(function(N){var D=N[0];if(D==="p"||D==="P"){var O=yb[D];return O(N,E.formatLong)}return N}).join("").match(t_).map(function(N){if(N==="''")return"'";var D=N[0];if(D==="'")return s_(N);var O=pb[D];if(O)return _b(N)&&Fc(N,t,String(e)),bb(N)&&Fc(N,t,String(e)),O(S,N,E.localize,_);if(D.match(o_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+D+"`");return N}).join("");return k}function s_(e){var t=e.match(r_);return t?t[1].replace(i_,"'"):e}function a_(e){return Hm(e,"d MMM, yyyy")}function l_(e){return Hm(e,"h:mm a")}function u_(e){let t,n,r,i,o,s,a;return c("div",g(y([["className","grid grid-cols-7"],(t=[c("div",g(y([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[c("div",g(y([["className"," flex flex-col justify-center items-start"],(r=[c("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:a_(e.Timestamp)})],["children",v.Children.toArray(Array.from(i))])]))),c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:l_(e.Timestamp)})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[c("div",g(y([["className","justify-center items-start flex flex-col"],(s=ee(T(()=>{let l;return B(A(c("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",v.Children.toArray(Array.from(l))])])))),T(()=>{const u=e.User.Email;return u==null?A(Ce()):A(c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])]))),c("div",g(y([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(t))])])))}function c_(e){const t=gi(n=>c(u_,n),e.Data);return c("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:v.Children.toArray(Array.from(t))})}function d_(e){let t,n,r,i,o;const s=e.height,a=e.width;return c("svg",g(y([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=y([c("path",g(y([(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)"]]))),c("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",g(y([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(i=fe(c("linearGradient",g(y([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=y([c("stop",{offset:0,stopColor:"#FFD84D"}),c("stop",{offset:1,stopColor:"#FF876F"})]),["children",v.Children.toArray(Array.from(o))])])))),c("defs",{children:v.Children.toArray(Array.from(i))}))]),["children",v.Children.toArray(Array.from(t))])])))}function f_(){let e;return c("div",g(y([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[c(d_,{width:120,height:120})],["children",v.Children.toArray(Array.from(e))])])))}function m_(){let e,t,n,r;return c("div",g(y([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[c(f_,null),c("div",g(y([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[c("div",g(y([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[c("div",g(y([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[c("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),c("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",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function h_(e){return{Data:_v(e.Data)}}function p_(e){let t;const n=e.props,r=n.tag===1?c(c_,h_(n.fields[0])):c(m_,null);return c("div",g(y([["className","relative h-full grow"],(t=[c("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:v.Children.toArray([r])})],["children",v.Children.toArray(Array.from(t))])])))}class Pc extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function g_(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return c("div",g(y([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[c("div",{className:"self-stretch h-px bg-gray-200"}),c("div",g(y([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=ee(T(()=>{let o,s,a;return B((o=i,o.tag===1?A(c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],A((a=y([c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(Mv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(Iv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:cn(s.TotalRecordsNumber)}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:v.Children.toArray(Array.from(a))}))))),T(()=>{let l,u,f;return A(c("div",g(y([["className","justify-start items-start gap-3 flex"],(l=[c("button",g(y([["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",d=>{r(new Pc(0,[]))}],["disabled",!Om(i)]]))),c("button",g(y([["type","button"],(f="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",f]),["children","Next"],["onClick",d=>{r(new Pc(1,[]))}],["disabled",!Dm(i)]])))],["children",v.Children.toArray(Array.from(l))])]))))}))})),["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Za extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function y_(e,t){e(t.tag===0?new Za(2,[]):new Za(1,[]))}function w_(e){let t,n;const r=e.actionHandler,i=e.props;return c("div",g(y([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[c(eb,new hv(yv(i),()=>{r(new Za(0,[]))})),c(p_,{props:i}),c(g_,{pagingInfo:wv(i),pageChangedHandler:o=>{y_(r,o)}})],["children",v.Children.toArray(Array.from(n))])])))}function v_(e,t){t.tag===0?e(new Jr(0,[t.fields[0]])):e(new Jr(1,[]))}function b_(e,t){switch(t.tag){case 2:{e(new Jr(4,[]));break}case 0:{e(new Jr(2,[]));break}default:e(new Jr(3,[]))}}function Lc(e){let t,n;const r=e.importHistory;let i;const o=Wv(r);i=Dr(()=>Ir(()=>o,zv,(f,d)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=Ov(s);return l={ActionHandler:f=>{v_(a,f)},Disabled:Rv(s),Value:Hi(u)},c("div",g(y([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[c(Yv,null),c("div",g(y([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[c(Kv,l),c(w_,{props:Fv(s),actionHandler:f=>{b_(a,f)}})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Vc extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function __(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return c("div",g(y([["className",_t(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[c("div",{className:_t(" ",["w-full h-4 relative rounded",r[1]])})],["children",v.Children.toArray(Array.from(n))])])))}function Hc(e){const t=gi(n=>__(e,n),y(["col-span-1","col-span-2","col-span-4"]));return c("div",{className:"grid grid-cols-7",children:v.Children.toArray(Array.from(t))})}function x_(){let e,t;return c("div",g(y([(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=co(fe(Hc(new Vc(0,[]))),gi(n=>Hc(new Vc(1,[])),ee(Bl(1,1,5)))),["children",v.Children.toArray(Array.from(t))])])))}function C_(e){let t;const n=Dr(()=>Ir(Iy,(i,o)=>Dy(()=>sv(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?c(Lc,{importHistory:new M(1,[void 0])}):n.tag===1?c(Lc,{importHistory:new M(0,[dv(n.fields[0])])}):c(x_,null);const r=[c("style",{children:[Al]}),t];return c(Be,{},...r)}function S_(){hl(e=>c(C_,e),"apollo-import-workspace-past-history")}class E_{constructor(t,n){const r=new pt(Ce());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Ie(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();wa(r.contents,o[0],o[1])}}finally{$e(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Ie(this)}GetEnumerator(){return Ie(Ts(this.hashMap.values()))}[Symbol.iterator](){return fi(Ie(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){wa(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){jc(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=Wo(this,t[0]);let i;switch(r!=null&&te(V(r)[1],t[1])?(i=0,V(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Of((i,o)=>{xt(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return Bc(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=Wo(n,t[0]);return r!=null?(te(V(r)[1],t[1])&&va(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){wa(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return Gc(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return Uc(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){Wc(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return Zn(T(()=>He(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return va(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=Wo(this,t);if(i!=null){const o=V(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return Zn(T(()=>He(n=>n[1],t)))}get size(){return Bc(this)|0}clear(){jc(this)}delete(t){return va(this,t)}entries(){return He(n=>[n[0],n[1]],this)}get(t){return Uc(this,t)}has(t){return Gc(this,t)}keys(){return He(n=>n[0],this)}set(t,n){const r=this;return Wc(r,t,n),r}values(){return He(n=>n[1],this)}forEach(t,n){const r=this;$r(i=>{t(i[1],i[0],r)},r)}}function yo(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=Ce();return r=[Pl(e.hashMap,n,new pt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function Wo(e,t){const n=yo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Kn(e.hashMap,n[1])[n[2]];default:return}}function jc(e){e.hashMap.clear()}function Bc(e){let t=0,n=Ie(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{$e(n)}return t|0}function Uc(e,t){const n=Wo(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function Wc(e,t,n){const r=yo(e,t);r[0]?r[2]>-1?Kn(e.hashMap,r[1])[r[2]]=[t,n]:Kn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function wa(e,t,n){const r=yo(e,t);if(r[0]){if(r[2]>-1)throw new Error($l("An item with the same key has already been added. Key: {0}",t));Kn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function Gc(e,t){const n=yo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function va(e,t){const n=yo(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Kn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function A_(e,t){return T(()=>{const n=new Ff([],t);return Fl(r=>Rf(r,n),e)})}function k_(e,t,n){return T(()=>{const r=new Ff(e,n);return Fl(i=>Rf(i,r),t)})}function N_(e,t,n){return T(()=>{const r=new E_([],n),i=[],o=Ie(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,u=Ce();l=[Pl(r,a,new pt(()=>u,f=>{u=f})),u],l[0]?l[1].push(s):(Qg(r,a,[s]),i.push(a))}}finally{$e(o)}return He(s=>[s,Kn(r,s)],i)})}function jm(e,t){return Zn(A_(e,t))}function Bm(e,t,n){return Zn(k_(e,t,n))}function T_(e,t,n){return Zn(He(r=>[r[0],Zn(r[1])],N_(e,t,n)))}class $_ extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class M_ extends Se{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class I_ extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class Gi extends Se{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new Gi(void 0,void 0,void 0,void 0,void 0);function zc(e,t){return new Gi(e.FirstName,e.LastName,e.Email,e.MobilePhone,kt(n=>n.fields[0],t))}class D_ extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class st extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function Um(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function O_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function R_(e){switch(e){case"FullTime":return new st(0,[]);case"PartTime":return new st(1,[]);case"Casual":return new st(2,[]);case"LabourHire":return new st(3,[]);default:return}}class F_ extends Se{constructor(t,n){super(),this.Head=t,this.Tail=n}}function P_(e){return Xr(Ge(t=>[t[1].fields[0],O_(t[0])],_f([e.Head],e.Tail)),{Compare:Tr})}class L_ extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Lr extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class xn extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class V_ extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class H_ extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class j_ extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function B_(e,t){let n;return new L_(Ge(r=>new D_(r),pg(r=>r,jm((n=Ge(r=>pe(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!so(r))),{Equals:(r,i)=>r===i,GetHashCode:er}),{Compare:Tr})))}class Wm extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class U_ extends Se{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class Pt extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class Mo extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class _e extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function Gm(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 or=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class Di extends Se{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class W_ extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class En extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let jr=class extends Se{constructor(t,n,r,i,o,s,a,l,u,f){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=f}};function G_(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 kt(r=>r[0],As(r=>hi(Tl(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:er}),e))}function z_(e,t){return new W_(Ge(n=>{const r=n[0];return[r,n[1],hi(r,t,{Equals:te,GetHashCode:Jo})?new En(1,[]):new En(0,[])]},e))}function zm(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 Br(e,t){return Ut(n=>n,Ge(n=>Cf(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function Xl(e,t,n,r,i,o,s){let a,l,u;const f=m=>z_(e,m);let d;d=Ut(m=>m,[n,r,i,o,s]).length;const h=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new Mo(1,[new M_(l,u,a,o),kt(m=>new I_(m),s)])):new Mo(0,[new Gi(n,r,i,o,s)]):new Mo(0,[new Gi(n,r,i,o,s)]):new Mo(0,[new Gi(n,r,i,o,s)]);return new jr(new Di(n,f(Ut(m=>m,[r,i,o,s]))),new Di(r,f(Ut(m=>m,[n,i,o,s]))),new Di(i,f(Ut(m=>m,[n,r,o,s]))),new Di(o,f(Ut(m=>m,[n,r,i,s]))),new Di(s,f(Ut(m=>m,[n,r,i,o]))),t,e.length,d,e.length-d,h)}function Oi(e,t,n,r,i){let o,s,a;const l=[r,i];return a=zm(n,l[0],l[1]),Xl(e,(o=n.Preview,o!=null&&te(o[0],r)?(s=o[0],[s,Br(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function Ri(e,t,n){let r,i;const o=[n,void 0];return i=zm(t,o[0],o[1]),Xl(e,(r=t.Preview,r!=null&&te(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function qm(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 q_=e=>t=>qm(e,t);function Y_(e,t){const n=qm(e,t),r=e.Preview;let i;switch(n?r==null?i=2:te(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function Z_(e,t){let n,r,i,o,s,a,l,u,f;const d=p=>G_(e,p);return[(n=t==null?(r=d(new _e(0,[])),i=d(new _e(1,[])),o=d(new _e(2,[])),s=d(new _e(3,[])),a=d(new _e(4,[])),l=Ut(p=>p,[r,i,o,s,a]),u=p=>{let h,m;switch(p!=null?(h=p,l.filter(w=>te(w,h)).length>1?m=0:m=1):m=1,m){case 0:return;default:return p}},[u(r),u(i),u(o),u(s),u(a)]):(f=t,[f.FirstName,f.LastName,f.Email,f.MobilePhone,f.EmploymentBasis]),Xl(e,void 0,n[0],n[1],n[2],n[3],n[4])),Y()]}function K_(e,t,n,r){let i,o,s,a,l,u,f,d,p,h,m,w,b,C,x,E,$,I,L,P,S;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?m=6:m=15;break}case 2:{r.Email.ColumnIndex!=null?m=7:m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?m=8:m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?m=9:m=15;break}default:r.FirstName.ColumnIndex!=null?m=5:m=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(m=11,I=r.LastName.ColumnIndex):m=15;break}case 2:{r.Email.ColumnIndex!=null?(m=12,L=r.Email.ColumnIndex):m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(m=13,P=r.MobilePhone.ColumnIndex):m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(m=14,S=r.EmploymentBasis.ColumnIndex):m=15;break}default:r.FirstName.ColumnIndex!=null?(m=10,$=r.FirstName.ColumnIndex):m=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!te(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(_=>te(u,_[0])?te(_[2],new En(0,[])):!1)?(m=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],b=n.fields[1]):m=15;break}case 2:{f=n.fields[1],!te(r.Email.ColumnIndex,f)&&r.Email.IncomingFields.fields[0].some(_=>te(f,_[0])?te(_[2],new En(0,[])):!1)?(m=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],C=n.fields[1]):m=15;break}case 3:{d=n.fields[1],!te(r.MobilePhone.ColumnIndex,d)&&r.MobilePhone.IncomingFields.fields[0].some(_=>te(d,_[0])?te(_[2],new En(0,[])):!1)?(m=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],x=n.fields[1]):m=15;break}case 4:{p=n.fields[1],!te(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(_=>te(p,_[0])?te(_[2],new En(0,[])):!1)?(m=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],E=n.fields[1]):m=15;break}default:h=n.fields[1],!te(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(_=>te(h,_[0])?te(_[2],new En(0,[])):!1)?(m=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],w=n.fields[1]):m=15}}switch(m){case 0:return[(i=[new _e(0,[]),w],Oi(e,t,r,i[0],i[1])),Y()];case 1:return[(o=[new _e(1,[]),b],Oi(e,t,r,o[0],o[1])),Y()];case 2:return[(s=[new _e(2,[]),C],Oi(e,t,r,s[0],s[1])),Y()];case 3:return[(a=[new _e(3,[]),x],Oi(e,t,r,a[0],a[1])),Y()];case 4:return[(l=[new _e(4,[]),E],Oi(e,t,r,l[0],l[1])),Y()];case 5:return[Ri(e,r,new _e(0,[])),Y()];case 6:return[Ri(e,r,new _e(1,[])),Y()];case 7:return[Ri(e,r,new _e(2,[])),Y()];case 8:return[Ri(e,r,new _e(3,[])),Y()];case 9:return[Ri(e,r,new _e(4,[])),Y()];case 10:return[new jr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new _e(0,[]),Br($,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Y()];case 11:return[new jr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new _e(1,[]),Br(I,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Y()];case 12:return[new jr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new _e(2,[]),Br(L,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Y()];case 13:return[new jr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new _e(3,[]),Br(P,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Y()];case 14:return[new jr(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new _e(4,[]),Br(S,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Y()];default:return[r,Y()]}}const Ym=typeof document<"u"?Z.useLayoutEffect:()=>{};function X_(e){const t=se(null);return Ym(()=>{t.current=e},[e]),ke((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const wo=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},mr=e=>e&&"window"in e&&e.window===e?e:wo(e).defaultView||window;function J_(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 Q_(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 Zm(e){let t=null;return()=>(t==null&&(t=e()),t)}const e2=Zm(function(){return Q_(/^Mac/i)}),t2=Zm(function(){return J_(/Android/i)});function n2(e){return e.mozInputSource===0&&e.isTrusted?!0:t2()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class r2{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 Km(e){let t=se({isFocused:!1,observer:null});Ym(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=X_(r=>{e==null||e(r)});return ke(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new r2("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function i2(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=ke(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=Km(o),a=ke(l=>{const u=wo(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}let vo=null,Ka=new Set,zi=new Map,Cr=!1,Xa=!1;const o2={Tab:!0,Escape:!0};function Jl(e,t){for(let n of Ka)n(e,t)}function s2(e){return!(e.metaKey||!e2()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function fs(e){Cr=!0,s2(e)&&(vo="keyboard",Jl("keyboard",e))}function Zt(e){vo="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(Cr=!0,Jl("pointer",e))}function Xm(e){n2(e)&&(Cr=!0,vo="virtual")}function Jm(e){e.target===window||e.target===document||(!Cr&&!Xa&&(vo="virtual",Jl("virtual",e)),Cr=!1,Xa=!1)}function Qm(){Cr=!1,Xa=!0}function Ja(e){if(typeof window>"u"||zi.get(mr(e)))return;const t=mr(e),n=wo(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){Cr=!0,r.apply(this,arguments)},n.addEventListener("keydown",fs,!0),n.addEventListener("keyup",fs,!0),n.addEventListener("click",Xm,!0),t.addEventListener("focus",Jm,!0),t.addEventListener("blur",Qm,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Zt,!0),n.addEventListener("pointermove",Zt,!0),n.addEventListener("pointerup",Zt,!0)):(n.addEventListener("mousedown",Zt,!0),n.addEventListener("mousemove",Zt,!0),n.addEventListener("mouseup",Zt,!0)),t.addEventListener("beforeunload",()=>{eh(e)},{once:!0}),zi.set(t,{focus:r})}const eh=(e,t)=>{const n=mr(e),r=wo(e);t&&r.removeEventListener("DOMContentLoaded",t),zi.has(n)&&(n.HTMLElement.prototype.focus=zi.get(n).focus,r.removeEventListener("keydown",fs,!0),r.removeEventListener("keyup",fs,!0),r.removeEventListener("click",Xm,!0),n.removeEventListener("focus",Jm,!0),n.removeEventListener("blur",Qm,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Zt,!0),r.removeEventListener("pointermove",Zt,!0),r.removeEventListener("pointerup",Zt,!0)):(r.removeEventListener("mousedown",Zt,!0),r.removeEventListener("mousemove",Zt,!0),r.removeEventListener("mouseup",Zt,!0)),zi.delete(n))};function a2(e){const t=wo(e);let n;return t.readyState!=="loading"?Ja(e):(n=()=>{Ja(e)},t.addEventListener("DOMContentLoaded",n)),()=>eh(e,n)}typeof document<"u"&&a2();function th(){return vo!=="pointer"}const l2=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function u2(e,t,n){var r;const i=typeof window<"u"?mr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?mr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?mr(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?mr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!l2.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!o2[n.key])}function c2(e,t,n){Ja(),De(()=>{let r=(i,o)=>{u2(!!(n!=null&&n.isTextInput),i,o)&&e(th())};return Ka.add(r),()=>{Ka.delete(r)}},t)}function d2(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=se({isFocusWithin:!1}),s=ke(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=Km(s),l=ke(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let ms=!1,ba=0;function Qa(){ms=!0,setTimeout(()=>{ms=!1},50)}function qc(e){e.pointerType==="touch"&&Qa()}function f2(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",qc):document.addEventListener("touchend",Qa),ba++,()=>{ba--,!(ba>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",qc):document.removeEventListener("touchend",Qa))}}function m2(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=ye(!1),a=se({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;De(f2,[]);let{hoverProps:l,triggerHoverEnd:u}=ce(()=>{let f=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let w=h.currentTarget;a.target=w,t&&t({type:"hoverstart",target:w,pointerType:m}),n&&n(!0),s(!0)},d=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let w=h.currentTarget;r&&r({type:"hoverend",target:w,pointerType:m}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{ms&&h.pointerType==="mouse"||f(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!ms&&f(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:p,triggerHoverEnd:d}},[t,n,r,i,a]);return De(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function h2(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=se({isFocused:!1,isFocusVisible:t||th()}),[o,s]=ye(!1),[a,l]=ye(()=>i.current.isFocused&&i.current.isFocusVisible),u=ke(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=ke(h=>{i.current.isFocused=h,s(h),u()},[u]);c2(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=i2({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=d2({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:d}}var p2=Object.defineProperty,g2=(e,t,n)=>t in e?p2(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_a=(e,t,n)=>(g2(e,typeof t!="symbol"?t+"":t,n),n);let y2=class{constructor(){_a(this,"current",this.detect()),_a(this,"handoffState","pending"),_a(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"}},gr=new y2;function _i(e){return gr.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Ps(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ln(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Ps(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Ln();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function nr(){let[e]=ye(Ln);return De(()=>()=>e.dispose(),[e]),e}let ze=(e,t)=>{gr.isServer?De(e,t):Rn(e,t)};function rr(e){let t=se(e);return ze(()=>{t.current=e},[e]),t}let ae=function(e){let t=rr(e);return Z.useCallback((...n)=>t.current(...n),[t])};function w2(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 v2(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function b2({disabled:e=!1}={}){let t=se(null),[n,r]=ye(!1),i=nr(),o=ae(()=>{t.current=null,r(!1),i.dispose()}),s=ae(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=_i(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let f=w2(u);r(v2(f,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let _2=Je(void 0);function Ql(){return Oe(_2)}function el(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Ot(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Ot),r}var li=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(li||{}),zn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(zn||{});function gt(){let e=C2();return ke(t=>x2({mergeRefs:e,...t}),[e])}function x2({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??S2;let l=nh(t,e);if(o)return Io(l,n,r,s,a);let u=i??0;if(u&2){let{static:f=!1,...d}=l;if(f)return Io(d,n,r,s,a)}if(u&1){let{unmount:f=!0,...d}=l;return Ot(f?0:1,{0(){return null},1(){return Io({...d,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Io(l,n,r,s,a)}function Io(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=xa(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},f=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 d={};if(t){let p=!1,h=[];for(let[m,w]of Object.entries(t))typeof w=="boolean"&&(p=!0),w===!0&&h.push(m.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(p){d["data-headlessui-state"]=h.join(" ");for(let m of h)d[`data-${m}`]=""}}if(o===Be&&(Object.keys(jn(l)).length>0||Object.keys(jn(d)).length>0))if(!di(f)||Array.isArray(f)&&f.length>1){if(Object.keys(jn(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(jn(l)).concat(Object.keys(jn(d))).map(p=>` - ${p}`).join(`
|
|
45
|
+
`))(a)}}else if(Mf(r))if(Vl(r)){const s=Ye(a=>Sn(e,t,n,a),Rf(r));return a=>Ho(pg((l,u)=>ve(l,s)(u),a))}else{const s=qe(If(r));if(s==="Microsoft.FSharp.Core.FSharpOption`1[System.Object]"){const a=new Mp(()=>w2(Sn(e,t,n,ve(0,Gt(r)))));return l=>l==null?H0:a.Value(l)}else if(s==="Microsoft.FSharp.Collections.FSharpList`1[System.Object]"||s==="Microsoft.FSharp.Collections.FSharpSet`1[System.Object]"||s==="System.Collections.Generic.IEnumerable`1[System.Object]"){const a=Sn(e,t,n,ve(0,Gt(r)));return l=>Ho(je(a,l))}else if(s==="Microsoft.FSharp.Collections.FSharpMap`2[System.Object,System.Object]"){const a=ve(0,Gt(r)),l=Sn(e,t,n,ve(1,Gt(r)));if(qe(a)==="System.String"||qe(a)==="System.Guid")return u=>_o((f,d)=>{const p=d;return f[p[0]]=l(p[1]),f},{},u);{let u;return u=Sn(e,t,n,a),d=>Ho(je(p=>{const h=p;return[u(h[0]),l(h[1])]},d))}}else return Wc(e,t,n,r)}else switch(i){case"System.Boolean":return s=>s;case"Microsoft.FSharp.Core.Unit":return h2;case"System.String":return s=>s;case"System.Char":return s=>s;case"System.SByte":return s=>s;case"System.Byte":return s=>s;case"System.Int16":return s=>s;case"System.UInt16":return s=>s;case"System.Int32":return s=>s;case"System.UInt32":return s=>s;case"System.Double":return s=>s;case"System.Single":return s=>s;case"System.DateTime":return p2;case"System.DateTimeOffset":return f2;case"System.TimeSpan":return m2;case"System.Guid":return d2;case"System.Object":return s=>s;default:return Wc(e,t,n,r)}else{const s=o;return a=>s.contents(a)}}function y2(e){return nu({Compare:Dr})}function v2(e,t,n,r){const i=at(t,new ro(0,[])),o=at(r,!0);return Sn(y2(),i,o,e)}class ru extends Se{constructor(t,n){super(),this.RowId=t|0,this.Data=n}}function b2(){return tn("Import.Dto.Shared.WorkspaceApi.ImportRowDataDto",[],ru,()=>[["RowId",It],["Data",zn("Microsoft.FSharp.Collections.FSharpMap`2",[Mn,Mn])]])}let j0=class extends Se{constructor(t,n){super(),this.IncludesEmploymentInfo=t,this.Data=n}};function _2(){return tn("Import.Dto.Shared.WorkspaceApi.ValidateImportRequest.ImportDataDto",[],j0,()=>[["IncludesEmploymentInfo",S1],["Data",Cr(b2())]])}class x2 extends Se{constructor(t,n,r){super(),this.Column=t,this.PropName=n,this.Message=r}}function C2(){return tn("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.FieldErrorDto",[],x2,()=>[["Column",Mn],["PropName",Mn],["Message",Mn]])}class S2 extends Se{constructor(t,n){super(),this.RowId=t|0,this.FieldErrors=n}}function E2(){return tn("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.RowValidationErrorDto",[],S2,()=>[["RowId",It],["FieldErrors",Cr(C2())]])}class A2 extends Se{constructor(t,n){super(),this.Errors=t,this.DuplicateEmailCount=n|0}}function k2(){return tn("Import.Dto.Shared.WorkspaceApi.ValidateImportResponse.ValidationResultDto",[],A2,()=>[["Errors",Cr(E2())],["DuplicateEmailCount",It]])}class N2 extends Se{constructor(t){super(),this.ImportId=t|0}}function B0(e){return`${e}/import/workspace/v1.0/accounts/current`}function U0(e){return le.Delay(()=>{let t;const n=kc(e);return t=le.Bind(n,r=>le.Return(new $(0,[r]))),le.Bind(t,r=>{const i=r;if(i.tag===1)return le.Return(new $(1,[i.fields[0]]));{const o=i.fields[0];if(o.statusCode===429||o.statusCode>=500){const s=kc(e);return le.Bind(s,a=>le.Return(new $(0,[a])))}else return le.Return(new $(0,[o]))}})})}function T2(e,t){return le.Delay(()=>{const n=U0(I0(new eu(0,[]),M0(B0(e)+"/imports")));return le.Bind(n,r=>{const i=r;if(i.tag===1)return le.Return(new $(1,[i.fields[0]]));{const o=i.fields[0];switch(o.statusCode|0){case 200:{let a;const l=F0(rt(V0(Zw(),new ro(1,[]))),o.responseText);return a=l.tag===1?new $(1,[l.fields[0]]):new $(0,[l.fields[0]]),le.Return(a)}case 404:return le.Return(new $(0,[void 0]));default:return le.Return(new $(1,["Failed to get account imports"]))}}})})}function $2(e,t){return le.Delay(()=>{let n;const r=U0((n=I0(new eu(1,[]),M0(B0(e)+"/import/validate")),_y(new v0(1,[g2(0,v2(_2(),new ro(1,[]),void 0,void 0)(t))]),n)));return le.Bind(r,i=>{const o=i;if(o.tag===1)return le.Return(new $(1,[o.fields[0]]));{const s=o.fields[0];if(s.statusCode===200){const a=F0(rt(V0(k2(),new ro(1,[]))),s.responseText);return le.Return(a)}else return le.Return(new $(1,[`Failed to validate: ${s.responseText}`]))}})})}function M2(e,t){return le.Delay(()=>{let n;const r=Kl(2e3);return n=le.Bind(r,i=>le.Return(new $(0,[i]))),le.Bind(n,i=>{let o;const s=i;return o=s.tag===1?new $(1,[s.fields[0]]):new $(0,[new N2(1)]),le.Return(o)})})}class I2 extends Se{constructor(t){super(),this.UserActivities=t}}class Gc extends Se{constructor(t,n,r){super(),this.Timestamp=t,this.User=n,this.Activity=r}}function D2(e,t){const n=t.toLocaleLowerCase();return e.Name.toLocaleLowerCase().indexOf(n)>=0?!0:at(Et(r=>r.toLocaleLowerCase().indexOf(n)>=0,e.Email),!1)}function O2(e){return bo(g(po(Et(t=>new Gc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ActiveImport))),Sr(t=>new Gc(t.StartTime,t.User,`Added ${t.NumberOfRecords} users via Csv`),e.ImportHistory))}function R2(e){return new I2(at(Et(O2,e),mt()))}class zc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Error","TableData"]}}class F2 extends Se{constructor(t,n){super(),this.Data=t,this.IsFiltered=n}}class So extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["PaginatedList"]}}class P2 extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["SortedList"]}}class L2 extends Se{constructor(t,n){super(),this.SortInfo=t,this.SortDirectionToggledHandler=n}}class W0 extends Se{constructor(t,n){super(),this.Column=t,this.Direction=n}}class V2 extends z{constructor(){super(),this.tag=0,this.fields=[]}cases(){return["Time"]}}class ys extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NonEmptyPagingInfo","EmptyPagingInfo"]}}class H2 extends Se{constructor(t,n,r,i,o){super(),this.CurrentPage=t|0,this.FirstRowIndex=n|0,this.LastRowIndex=r|0,this.TotalRecordsNumber=i|0,this.PageSize=o|0}}function j2(e){return e.tag===1?G0(e.fields[0].Data):Y0()}function B2(e){return e.tag===1?bi(e.fields[0].Data):new ys(1,[])}function U2(e){const t=iu(Y0(),e);return new So([K0(ln(e),20),t])}function Eo(e){return e.fields[0][1]}function G0(e){return q0(Eo(e))}function W2(e){return ou(Eo(e))}function bi(e){return e.fields[0][0]}function G2(e){const t=bi(e);if(t.tag===0){const n=t.fields[0],r=qf(n.FirstRowIndex,W2(e));return Yf(rv(n),r)}else return mt()}function z0(e,t){const n=iu(G0(e),t);return new So([ev(bi(e),ln(ou(n))),n])}function z2(e){return new So([bi(e),Z2(Eo(e))])}function q2(e){return new So([Q2(bi(e)),Eo(e)])}function Y2(e){return new So([J2(bi(e)),Eo(e)])}function iu(e,t){return new P2([e,Qw(e.Direction,n=>n.Timestamp,t)])}function ou(e){return e.fields[0][1]}function q0(e){return e.fields[0][0]}function Z2(e){return iu(K2(q0(e)),ou(e))}function Y0(){return new W0(new V2,new Ja(0,[]))}function K2(e){return new W0(e.Column,Jw(e.Direction))}function Z0(e,t){return~~(e/t)+(e%t===0?0:1)}function qs(e,t,n){if(e<=0)return new ys(1,[]);{const r=rc(n,Z0(e,t))|0,i=(r-1)*t|0;return new ys(0,[new H2(r,i,rc(i+t-1,e-1),e,t)])}}function K0(e,t){return qs(e,t,1)}function X2(e){if(e.tag===0){const t=e.fields[0];return Z0(t.TotalRecordsNumber,t.PageSize)|0}else return 0}function X0(e){return e.tag===0?e.fields[0].CurrentPage<X2(e):!1}function J0(e){return e.tag===0?e.fields[0].CurrentPage>1:!1}function J2(e){const t=J0(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return qs(r.TotalRecordsNumber,r.PageSize,r.CurrentPage-1)}default:return e}}function Q2(e){const t=X0(e);let n;switch(t&&e.tag===0?n=0:n=1,n){case 0:{const r=e.fields[0];return qs(r.TotalRecordsNumber,r.PageSize,r.CurrentPage+1)}default:return e}}function ev(e,t){return t<=0?new ys(1,[]):e.tag===0?qs(t,20,e.fields[0].CurrentPage):K0(t,20)}function tv(e){return e.FirstRowIndex+1}function nv(e){return e.LastRowIndex+1}function rv(e){return e.LastRowIndex-e.FirstRowIndex+1}let Zn=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["LoadingError","ValidState"]}};class _i extends Se{constructor(t,n,r){super(),this.ImportHistory=t,this.View=n,this.PaginatedList=r}}class su extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Default","Filtered"]}}function iv(e){if(e.tag===1)return Q0(e.fields[0])}function ov(e){return e.tag===0}function sv(e){return e.tag===1?new zc(1,[mv(e.fields[0])]):new zc(0,[])}function Q0(e){const t=e.View;if(t.tag===1)return t.fields[0]}function av(e){return Q0(e)!=null}function lv(e,t){return new Zn(1,[new _i(e.ImportHistory,new su(1,[t]),z0(e.PaginatedList,Nn(n=>D2(n.User,t),e.ImportHistory.UserActivities)))])}function uv(e){return new Zn(1,[new _i(e.ImportHistory,new su(0,[]),z0(e.PaginatedList,e.ImportHistory.UserActivities))])}function cv(e){return new Zn(1,[new _i(e.ImportHistory,e.View,z2(e.PaginatedList))])}function dv(e){return new Zn(1,[new _i(e.ImportHistory,e.View,q2(e.PaginatedList))])}function fv(e){return new Zn(1,[new _i(e.ImportHistory,e.View,Y2(e.PaginatedList))])}function mv(e){return new F2(e.PaginatedList,av(e))}let ei=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ApplyFilter","ClearFilter","ToggleSortDirection","NextPage","PrevPage"]}};function hv(e){let t;return[e.tag===1?new Zn(0,[]):(t=e.fields[0],new Zn(1,[new _i(t,new su(0,[]),U2(t.UserActivities))])),Z()]}function em(e,t){return e.tag===1?t(e.fields[0]):[new Zn(0,[]),Z()]}function pv(e,t){return em(e,n=>[t(n),Z()])}function gv(e,t){const n=r=>pv(t,r);switch(e.tag){case 1:return n(uv);case 2:return n(cv);case 3:return n(dv);case 4:return n(fv);default:{const r=e.fields[0];return em(t,i=>Pl(r)?[t,fe(o=>{o(new ei(1,[]))})]:[lv(i,r),Z()])}}}function wv(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",24],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function yv(){let e,t,n;return c("div",w(g([["className","self-stretch px-12 pt-8 pb-4 bg-white justify-start items-end gap-6 inline-flex"],(e=[c("div",w(g([["className","grow shrink basis-0 h-[34px] rounded-md justify-start items-center gap-1 flex"],(t=[c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Users"}),c("div",w(g([["className","w-6 h-6 text-gray-900 relative overflow-hidden"],(n=[wv(24,24)],["children",y.Children.toArray(Array.from(n))])]))),c("div",{className:"text-gray-900 text-2xl font-bold font-['BR Sonoma'] leading-7",children:"Past activities"})],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function vv(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function tl(e,t){let n,r;return c("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}class qc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UpdateFilter","ClearFilter"]}}function bv(e){let t,n;const r=at(e.Value,"");return c("div",w(g([["className","self-stretch justify-start items-start gap-4 inline-flex"],(t=[c("div",w(g([["className",At(" ",["relative w-96 overflow-hidden focus:outline-none focus:border-blue-600"])],(n=K(N(()=>{let i;return H(A(c("div",w(g([["className","pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3"],(i=[vv(20,20)],["children",y.Children.toArray(Array.from(i))])])))),N(()=>{let o;return H(A(c("input",w(g([(o="rounded-md border-0 py-[0.5625rem] px-10 ring-1 ring-inset ring-gray-300 placeholder:text-gray-500 text-gray-900 focus:ring-2 focus:ring-inset focus:ring-primary-600 bg-white text-sm w-full",["className",o]),["placeholder","Search actors..."],["autoComplete","off"],["onChange",s=>{e.ActionHandler(new qc(0,[s.target.value]))}],["value",r],["disabled",e.Disabled]])))),N(()=>{let s;return Pl(r)?A($e()):A(c("div",w(g([["onClick",a=>{e.ActionHandler(new qc(1,[]))}],["className","absolute inset-y-0 right-0 flex items-center pr-3 cursor-pointer text-gray-600"],(s=[tl(10,10)],["children",y.Children.toArray(Array.from(s))])]))))}))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function _v(e){let t,n;const r=e.height,i=e.width;return c("svg",w(g([["fill","none"],["height",r],["width",i],["viewBox","0 0 "+i+" "+r],["xmlns","http://www.w3.org/2000/svg"],(t=fe(c("path",w(g([(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",y.Children.toArray(Array.from(t))])])))}function xv(e){let t;const n=e.sortDirectionChangeHandler,r=e.sortDirection;return c("div",w(g([["className",At(" ",K(N(()=>H(A("w-5 h-5 bg-gray-200 rounded overflow-hidden flex flex-col justify-center items-center"),N(()=>r.tag===1?A("rotate-180"):A(""))))))],["onClick",i=>{n(void 0)}],(t=[c(_v,{width:10,height:7})],["children",y.Children.toArray(Array.from(t))])])))}function Cv(e){const t=e.toggleSortDirection,n=e.props;return c(xv,{sortDirection:n.Direction,sortDirectionChangeHandler:t})}function Sv(e){let t,n,r,i;const o=c(Cv,{props:e.SortInfo,toggleSortDirection:e.SortDirectionToggledHandler});return c("div",w(g([["className","flex-none grid grid-cols-7"],(t=[c("div",w(g([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Time"}),o],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["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=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Actor"})],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","col-span-4 px-6 py-3.5 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 flex"],(i=[c("div",{className:"text-gray-900 text-sm font-semibold leading-tight",children:"Activity"})],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(t))])])))}function vs(e){"@babel/helpers - typeof";return vs=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},vs(e)}function Ar(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 Rt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function vn(e){Rt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||vs(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 Ev(e,t){Rt(2,arguments);var n=vn(e).getTime(),r=Ar(t);return new Date(n+r)}var Av={};function Ys(){return Av}function kv(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 Nv(e){return Rt(1,arguments),e instanceof Date||vs(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Tv(e){if(Rt(1,arguments),!Nv(e)&&typeof e!="number")return!1;var t=vn(e);return!isNaN(Number(t))}function $v(e,t){Rt(2,arguments);var n=Ar(t);return Ev(e,-n)}var Mv=864e5;function Iv(e){Rt(1,arguments);var t=vn(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/Mv)+1}function bs(e){Rt(1,arguments);var t=1,n=vn(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function tm(e){Rt(1,arguments);var t=vn(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=bs(r),o=new Date(0);o.setUTCFullYear(n,0,4),o.setUTCHours(0,0,0,0);var s=bs(o);return t.getTime()>=i.getTime()?n+1:t.getTime()>=s.getTime()?n:n-1}function Dv(e){Rt(1,arguments);var t=tm(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=bs(n);return r}var Ov=6048e5;function Rv(e){Rt(1,arguments);var t=vn(e),n=bs(t).getTime()-Dv(t).getTime();return Math.round(n/Ov)+1}function _s(e,t){var n,r,i,o,s,a,l,u;Rt(1,arguments);var f=Ys(),d=Ar((n=(r=(i=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.weekStartsOn)!==null&&i!==void 0?i:f.weekStartsOn)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=vn(e),h=p.getUTCDay(),m=(h<d?7:0)+h-d;return p.setUTCDate(p.getUTCDate()-m),p.setUTCHours(0,0,0,0),p}function nm(e,t){var n,r,i,o,s,a,l,u;Rt(1,arguments);var f=vn(e),d=f.getUTCFullYear(),p=Ys(),h=Ar((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i: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 m=new Date(0);m.setUTCFullYear(d+1,0,h),m.setUTCHours(0,0,0,0);var v=_s(m,t),b=new Date(0);b.setUTCFullYear(d,0,h),b.setUTCHours(0,0,0,0);var x=_s(b,t);return f.getTime()>=v.getTime()?d+1:f.getTime()>=x.getTime()?d:d-1}function Fv(e,t){var n,r,i,o,s,a,l,u;Rt(1,arguments);var f=Ys(),d=Ar((n=(r=(i=(o=t==null?void 0:t.firstWeekContainsDate)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(a=s.options)===null||a===void 0?void 0:a.firstWeekContainsDate)!==null&&i!==void 0?i:f.firstWeekContainsDate)!==null&&r!==void 0?r:(l=f.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=nm(e,t),h=new Date(0);h.setUTCFullYear(p,0,d),h.setUTCHours(0,0,0,0);var m=_s(h,t);return m}var Pv=6048e5;function Lv(e,t){Rt(1,arguments);var n=vn(e),r=_s(n,t).getTime()-Fv(n,t).getTime();return Math.round(r/Pv)+1}function Ve(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var Vn={y:function(t,n){var r=t.getUTCFullYear(),i=r>0?r:1-r;return Ve(n==="yy"?i%100:i,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Ve(r+1,2)},d:function(t,n){return Ve(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 Ve(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Ve(t.getUTCHours(),n.length)},m:function(t,n){return Ve(t.getUTCMinutes(),n.length)},s:function(t,n){return Ve(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,i=t.getUTCMilliseconds(),o=Math.floor(i*Math.pow(10,r-3));return Ve(o,n.length)}},Vr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Vv={G:function(t,n,r){var i=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(i,{width:"abbreviated"});case"GGGGG":return r.era(i,{width:"narrow"});case"GGGG":default:return r.era(i,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var i=t.getUTCFullYear(),o=i>0?i:1-i;return r.ordinalNumber(o,{unit:"year"})}return Vn.y(t,n)},Y:function(t,n,r,i){var o=nm(t,i),s=o>0?o:1-o;if(n==="YY"){var a=s%100;return Ve(a,2)}return n==="Yo"?r.ordinalNumber(s,{unit:"year"}):Ve(s,n.length)},R:function(t,n){var r=tm(t);return Ve(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Ve(r,n.length)},Q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(i);case"QQ":return Ve(i,2);case"Qo":return r.ordinalNumber(i,{unit:"quarter"});case"QQQ":return r.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(i,{width:"wide",context:"formatting"})}},q:function(t,n,r){var i=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(i);case"qq":return Ve(i,2);case"qo":return r.ordinalNumber(i,{unit:"quarter"});case"qqq":return r.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(i,{width:"wide",context:"standalone"})}},M:function(t,n,r){var i=t.getUTCMonth();switch(n){case"M":case"MM":return Vn.M(t,n);case"Mo":return r.ordinalNumber(i+1,{unit:"month"});case"MMM":return r.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(i,{width:"wide",context:"formatting"})}},L:function(t,n,r){var i=t.getUTCMonth();switch(n){case"L":return String(i+1);case"LL":return Ve(i+1,2);case"Lo":return r.ordinalNumber(i+1,{unit:"month"});case"LLL":return r.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(i,{width:"wide",context:"standalone"})}},w:function(t,n,r,i){var o=Lv(t,i);return n==="wo"?r.ordinalNumber(o,{unit:"week"}):Ve(o,n.length)},I:function(t,n,r){var i=Rv(t);return n==="Io"?r.ordinalNumber(i,{unit:"week"}):Ve(i,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):Vn.d(t,n)},D:function(t,n,r){var i=Iv(t);return n==="Do"?r.ordinalNumber(i,{unit:"dayOfYear"}):Ve(i,n.length)},E:function(t,n,r){var i=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(i,{width:"short",context:"formatting"});case"EEEE":default:return r.day(i,{width:"wide",context:"formatting"})}},e:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"e":return String(s);case"ee":return Ve(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});case"eeee":default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(t,n,r,i){var o=t.getUTCDay(),s=(o-i.weekStartsOn+8)%7||7;switch(n){case"c":return String(s);case"cc":return Ve(s,n.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});case"cccc":default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(t,n,r){var i=t.getUTCDay(),o=i===0?7:i;switch(n){case"i":return String(o);case"ii":return Ve(o,n.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(i,{width:"short",context:"formatting"});case"iiii":default:return r.day(i,{width:"wide",context:"formatting"})}},a:function(t,n,r){var i=t.getUTCHours(),o=i/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(t,n,r){var i=t.getUTCHours(),o;switch(i===12?o=Vr.noon:i===0?o=Vr.midnight:o=i/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(t,n,r){var i=t.getUTCHours(),o;switch(i>=17?o=Vr.evening:i>=12?o=Vr.afternoon:i>=4?o=Vr.morning:o=Vr.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var i=t.getUTCHours()%12;return i===0&&(i=12),r.ordinalNumber(i,{unit:"hour"})}return Vn.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Vn.H(t,n)},K:function(t,n,r){var i=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(i,{unit:"hour"}):Ve(i,n.length)},k:function(t,n,r){var i=t.getUTCHours();return i===0&&(i=24),n==="ko"?r.ordinalNumber(i,{unit:"hour"}):Ve(i,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Vn.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Vn.s(t,n)},S:function(t,n){return Vn.S(t,n)},X:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();if(s===0)return"Z";switch(n){case"X":return Zc(s);case"XXXX":case"XX":return ur(s);case"XXXXX":case"XXX":default:return ur(s,":")}},x:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"x":return Zc(s);case"xxxx":case"xx":return ur(s);case"xxxxx":case"xxx":default:return ur(s,":")}},O:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+Yc(s,":");case"OOOO":default:return"GMT"+ur(s,":")}},z:function(t,n,r,i){var o=i._originalDate||t,s=o.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+Yc(s,":");case"zzzz":default:return"GMT"+ur(s,":")}},t:function(t,n,r,i){var o=i._originalDate||t,s=Math.floor(o.getTime()/1e3);return Ve(s,n.length)},T:function(t,n,r,i){var o=i._originalDate||t,s=o.getTime();return Ve(s,n.length)}};function Yc(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),o=r%60;if(o===0)return n+String(i);var s=t;return n+String(i)+s+Ve(o,2)}function Zc(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Ve(Math.abs(e)/60,2)}return ur(e,t)}function ur(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),o=Ve(Math.floor(i/60),2),s=Ve(i%60,2);return r+o+n+s}var Kc=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"})}},rm=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"})}},Hv=function(t,n){var r=t.match(/(P+)(p+)?/)||[],i=r[1],o=r[2];if(!o)return Kc(t,n);var s;switch(i){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}}",Kc(i,n)).replace("{{time}}",rm(o,n))},jv={p:rm,P:Hv},Bv=["D","DD"],Uv=["YY","YYYY"];function Wv(e){return Bv.indexOf(e)!==-1}function Gv(e){return Uv.indexOf(e)!==-1}function Xc(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 zv={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"}},qv=function(t,n,r){var i,o=zv[t];return typeof o=="string"?i=o:n===1?i=o.one:i=o.other.replace("{{count}}",n.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+i:i+" ago":i};function Ca(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 Yv={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zv={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Kv={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Xv={date:Ca({formats:Yv,defaultWidth:"full"}),time:Ca({formats:Zv,defaultWidth:"full"}),dateTime:Ca({formats:Kv,defaultWidth:"full"})},Jv={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Qv=function(t,n,r,i){return Jv[t]};function Pi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,s=n!=null&&n.width?String(n.width):o;i=e.formattingValues[s]||e.formattingValues[o]}else{var a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[a]}var u=e.argumentCallback?e.argumentCallback(t):t;return i[u]}}var eb={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},tb={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},nb={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"]},rb={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"]},ib={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"}},ob={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"}},sb=function(t,n){var r=Number(t),i=r%100;if(i>20||i<10)switch(i%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},ab={ordinalNumber:sb,era:Pi({values:eb,defaultWidth:"wide"}),quarter:Pi({values:tb,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:Pi({values:nb,defaultWidth:"wide"}),day:Pi({values:rb,defaultWidth:"wide"}),dayPeriod:Pi({values:ib,defaultWidth:"wide",formattingValues:ob,defaultFormattingWidth:"wide"})};function Li(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;var s=o[0],a=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(a)?ub(a,function(d){return d.test(s)}):lb(a,function(d){return d.test(s)}),u;u=e.valueCallback?e.valueCallback(l):l,u=n.valueCallback?n.valueCallback(u):u;var f=t.slice(s.length);return{value:u,rest:f}}}function lb(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function ub(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function cb(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],o=t.match(e.parsePattern);if(!o)return null;var s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;var a=t.slice(i.length);return{value:s,rest:a}}}var db=/^(\d+)(th|st|nd|rd)?/i,fb=/\d+/i,mb={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},hb={any:[/^b/i,/^(a|c)/i]},pb={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},gb={any:[/1/i,/2/i,/3/i,/4/i]},wb={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},yb={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]},vb={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},bb={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]},_b={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},xb={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}},Cb={ordinalNumber:cb({matchPattern:db,parsePattern:fb,valueCallback:function(t){return parseInt(t,10)}}),era:Li({matchPatterns:mb,defaultMatchWidth:"wide",parsePatterns:hb,defaultParseWidth:"any"}),quarter:Li({matchPatterns:pb,defaultMatchWidth:"wide",parsePatterns:gb,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Li({matchPatterns:wb,defaultMatchWidth:"wide",parsePatterns:yb,defaultParseWidth:"any"}),day:Li({matchPatterns:vb,defaultMatchWidth:"wide",parsePatterns:bb,defaultParseWidth:"any"}),dayPeriod:Li({matchPatterns:_b,defaultMatchWidth:"any",parsePatterns:xb,defaultParseWidth:"any"})},Sb={code:"en-US",formatDistance:qv,formatLong:Xv,formatRelative:Qv,localize:ab,match:Cb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Eb=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ab=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kb=/^'([^]*?)'?$/,Nb=/''/g,Tb=/[a-zA-Z]/;function im(e,t,n){var r,i,o,s,a,l,u,f,d,p,h,m,v,b;Rt(2,arguments);var x=String(t),C=Ys(),E=(r=(i=void 0)!==null&&i!==void 0?i:C.locale)!==null&&r!==void 0?r:Sb,M=Ar((o=(s=(a=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&a!==void 0?a:C.firstWeekContainsDate)!==null&&s!==void 0?s:(u=C.locale)===null||u===void 0||(f=u.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=Ar((d=(p=(h=(m=void 0)!==null&&m!==void 0?m:void 0)!==null&&h!==void 0?h:C.weekStartsOn)!==null&&p!==void 0?p:(v=C.locale)===null||v===void 0||(b=v.options)===null||b===void 0?void 0:b.weekStartsOn)!==null&&d!==void 0?d:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!E.localize)throw new RangeError("locale must contain localize property");if(!E.formatLong)throw new RangeError("locale must contain formatLong property");var F=vn(e);if(!Tv(F))throw new RangeError("Invalid time value");var L=kv(F),S=$v(F,L),_={firstWeekContainsDate:M,weekStartsOn:R,locale:E,_originalDate:F},k=x.match(Ab).map(function(T){var I=T[0];if(I==="p"||I==="P"){var D=jv[I];return D(T,E.formatLong)}return T}).join("").match(Eb).map(function(T){if(T==="''")return"'";var I=T[0];if(I==="'")return $b(T);var D=Vv[I];if(D)return Gv(T)&&Xc(T,t,String(e)),Wv(T)&&Xc(T,t,String(e)),D(S,T,E.localize,_);if(I.match(Tb))throw new RangeError("Format string contains an unescaped latin alphabet character `"+I+"`");return T}).join("");return k}function $b(e){var t=e.match(kb);return t?t[1].replace(Nb,"'"):e}function Mb(e){return im(e,"d MMM, yyyy")}function Ib(e){return im(e,"h:mm a")}function Db(e){let t,n,r,i,o,s,a;return c("div",w(g([["className","grid grid-cols-7"],(t=[c("div",w(g([["className","col-span-1 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-center gap-4"],(n=[c("div",w(g([["className"," flex flex-col justify-center items-start"],(r=[c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(i=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:Mb(e.Timestamp)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:Ib(e.Timestamp)})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","col-span-2 px-6 py-4 bg-white border-b border-gray-200 flex justify-start items-start gap-4"],(o=[c("div",w(g([["className","justify-center items-start flex flex-col"],(s=K(N(()=>{let l;return H(A(c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(l=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:e.User.Name})],["children",y.Children.toArray(Array.from(l))])])))),N(()=>{const u=e.User.Email;return u==null?A($e()):A(c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:u}))}))})),["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","col-span-4 px-6 py-4 bg-white border-b border-gray-200 justify-start items-center gap-1 flex"],(a=[c("div",{className:"self-stretch text-gray-600 text-sm font-normal leading-tight",children:e.Activity})],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Ob(e){const t=Sr(n=>c(Db,n),e.Data);return c("div",{className:"self-stretch flex flex-col justify-start items-stretch",children:y.Children.toArray(Array.from(t))})}function Rb(e){let t,n,r,i,o;const s=e.height,a=e.width;return c("svg",w(g([["width",a],["height",s],["viewBox","0 0 "+a+" "+s],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(t=g([c("path",w(g([(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)"]]))),c("path",{d:"M60 42V67",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",w(g([(r="M60 76C60.5523 76 61 75.5523 61 75C61 74.4477 60.5523 74 60 74C59.4477 74 59 74.4477 59 75C59 75.5523 59.4477 76 60 76Z",["d",r]),["stroke","#111827"],["strokeWidth",2],["strokeLinecap","round"],["strokeLinejoin","round"]]))),(i=fe(c("linearGradient",w(g([["id","paint0_linear_3770_593"],["x1",20],["y1",20],["x2",100],["y2",20],(o=g([c("stop",{offset:0,stopColor:"#FFD84D"}),c("stop",{offset:1,stopColor:"#FF876F"})]),["children",y.Children.toArray(Array.from(o))])])))),c("defs",{children:y.Children.toArray(Array.from(i))}))]),["children",y.Children.toArray(Array.from(t))])])))}function Fb(){let e;return c("div",w(g([["className","w-[120px] h-[120px] flex flex-col justify-center items-center"],(e=[c(Rb,{width:120,height:120})],["children",y.Children.toArray(Array.from(e))])])))}function Pb(){let e,t,n,r;return c("div",w(g([["className","self-stretch grow shrink basis-0 flex flex-col justify-center items-center"],(e=[c(Fb,null),c("div",w(g([["className","flex-col justify-start items-center gap-6 inline-flex"],(t=[c("div",w(g([["className","self-stretch h-[72px] flex-col justify-start items-start gap-3 flex"],(n=[c("div",w(g([["className","h-[72px] flex-col justify-start items-center gap-1 flex"],(r=[c("div",{className:"self-stretch text-center text-gray-900 text-xl font-bold leading-7",children:"We couldn’t load your past activities"}),c("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",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function Lb(e){return{Data:G2(e.Data)}}function Vb(e){let t;const n=e.props,r=n.tag===1?c(Ob,Lb(n.fields[0])):c(Pb,null);return c("div",w(g([["className","relative h-full grow"],(t=[c("div",{className:"overflow-y-auto self-stretch flex flex-col justify-start",style:{scrollbarWidth:"none"},children:y.Children.toArray([r])})],["children",y.Children.toArray(Array.from(t))])])))}class Jc extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Prev","Next"]}}function Hb(e){let t,n;const r=e.pageChangedHandler,i=e.pagingInfo;return c("div",w(g([["className","flex-none h-[60px] bg-white flex-col justify-start items-start flex"],(t=[c("div",{className:"self-stretch h-px bg-gray-200"}),c("div",w(g([["className","self-stretch px-6 py-3 justify-between items-center inline-flex"],(n=K(N(()=>{let o,s,a;return H((o=i,o.tag===1?A(c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"No results found"})):(s=o.fields[0],A((a=g([c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:dn(tv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:dn(nv(s))}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:dn(s.TotalRecordsNumber)}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:y.Children.toArray(Array.from(a))}))))),N(()=>{let l,u,f;return A(c("div",w(g([["className","justify-start items-start gap-3 flex"],(l=[c("button",w(g([["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",d=>{r(new Jc(0,[]))}],["disabled",!J0(i)]]))),c("button",w(g([["type","button"],(f="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",f]),["children","Next"],["onClick",d=>{r(new Jc(1,[]))}],["disabled",!X0(i)]])))],["children",y.Children.toArray(Array.from(l))])]))))}))})),["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class nl extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ToggleSortDirection","NextPage","PrevPage"]}}function jb(e,t){e(t.tag===0?new nl(2,[]):new nl(1,[]))}function Bb(e){let t,n;const r=e.actionHandler,i=e.props;return c("div",w(g([(t="self-stretch grow bg-white rounded-lg shadow border border-gray-200 flex flex-col justify-center items-stretch",["className",t]),(n=[c(Sv,new L2(j2(i),()=>{r(new nl(0,[]))})),c(Vb,{props:i}),c(Hb,{pagingInfo:B2(i),pageChangedHandler:o=>{jb(r,o)}})],["children",y.Children.toArray(Array.from(n))])])))}function Ub(e,t){t.tag===0?e(new ei(0,[t.fields[0]])):e(new ei(1,[]))}function Wb(e,t){switch(t.tag){case 2:{e(new ei(4,[]));break}case 0:{e(new ei(2,[]));break}default:e(new ei(3,[]))}}function Qc(e){let t,n;const r=e.importHistory;let i;const o=hv(r);i=Rr(()=>Or(()=>o,gv,(f,d)=>{}),void 0,void 0);const s=i[0],a=i[1];let l;const u=iv(s);return l={ActionHandler:f=>{Ub(a,f)},Disabled:ov(s),Value:zi(u)},c("div",w(g([["className","self-stretch grow basis-0 flex flex-col justify-start items-start gap-2"],(t=[c(yv,null),c("div",w(g([["className","self-stretch grow shrink basis-0 px-12 pb-6 flex flex-col justify-start items-start gap-2"],(n=[c(bv,l),c(Bb,{props:sv(s),actionHandler:f=>{Wb(a,f)}})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class ed extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Header","Row"]}}function Gb(e,t){let n;const r=e.tag===1?["bg-white","bg-gray-100","h-[72px]"]:["bg-gray-50","bg-gray-300",""];return c("div",w(g([["className",At(" ",["px-6 py-3.5 border-b border-gray-200 justify-start items-center gap-2 flex",r[0],r[2],t])],(n=[c("div",{className:At(" ",["w-full h-4 relative rounded",r[1]])})],["children",y.Children.toArray(Array.from(n))])])))}function td(e){const t=Sr(n=>Gb(e,n),g(["col-span-1","col-span-2","col-span-4"]));return c("div",{className:"grid grid-cols-7",children:y.Children.toArray(Array.from(t))})}function zb(){let e,t;return c("div",w(g([(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=bo(fe(td(new ed(0,[]))),Sr(n=>td(new ed(1,[])),K(Xl(1,1,5)))),["children",y.Children.toArray(Array.from(t))])])))}function qb(e){let t;const n=Rr(()=>Or(ey,(i,o)=>ty(()=>T2(e.backendUrl),i),(i,o)=>{}),void 0,[])[0].View;t=n.tag===2?c(Qc,{importHistory:new $(1,[void 0])}):n.tag===1?c(Qc,{importHistory:new $(0,[R2(n.fields[0])])}):c(zb,null);const r=[c("style",{children:[Dl]}),t];return c(ze,{},...r)}function Yb(){_l(e=>c(qb,e),"apollo-import-workspace-past-history")}class Zb{constructor(t,n){const r=new vt($e());this.comparer=n,r.contents=this,this.hashMap=new Map([]),this["init@9"]=1;const i=Fe(t);try{for(;i["System.Collections.IEnumerator.MoveNext"]();){const o=i["System.Collections.Generic.IEnumerator`1.get_Current"]();Sa(r.contents,o[0],o[1])}}finally{De(i)}}get[Symbol.toStringTag](){return"Dictionary"}toJSON(){const t=this;return Array.from(t)}"System.Collections.IEnumerable.GetEnumerator"(){return Fe(this)}GetEnumerator(){return Fe(Hs(this.hashMap.values()))}[Symbol.iterator](){return hi(Fe(this))}"System.Collections.Generic.ICollection`1.Add2B595"(t){Sa(this,t[0],t[1])}"System.Collections.Generic.ICollection`1.Clear"(){nd(this)}"System.Collections.Generic.ICollection`1.Contains2B595"(t){const r=es(this,t[0]);let i;switch(r!=null&&Q(V(r)[1],t[1])?(i=0,V(r)):i=1,i){case 0:return!0;default:return!1}}"System.Collections.Generic.ICollection`1.CopyToZ3B4C077E"(t,n){Qf((i,o)=>{kt(t,n+i,o)},this)}"System.Collections.Generic.ICollection`1.get_Count"(){return rd(this)|0}"System.Collections.Generic.ICollection`1.get_IsReadOnly"(){return!1}"System.Collections.Generic.ICollection`1.Remove2B595"(t){const n=this,r=es(n,t[0]);return r!=null?(Q(V(r)[1],t[1])&&Ea(n,t[0]),!0):!1}"System.Collections.Generic.IDictionary`2.Add5BDDA1"(t,n){Sa(this,t,n)}"System.Collections.Generic.IDictionary`2.ContainsKey2B595"(t){return sd(this,t)}"System.Collections.Generic.IDictionary`2.get_Item2B595"(t){return id(this,t)}"System.Collections.Generic.IDictionary`2.set_Item5BDDA1"(t,n){od(this,t,n)}"System.Collections.Generic.IDictionary`2.get_Keys"(){const t=this;return qn(N(()=>je(n=>n[0],t)))}"System.Collections.Generic.IDictionary`2.Remove2B595"(t){return Ea(this,t)}"System.Collections.Generic.IDictionary`2.TryGetValue6DC89625"(t,n){const i=es(this,t);if(i!=null){const o=V(i);return n.contents=o[1],!0}else return!1}"System.Collections.Generic.IDictionary`2.get_Values"(){const t=this;return qn(N(()=>je(n=>n[1],t)))}get size(){return rd(this)|0}clear(){nd(this)}delete(t){return Ea(this,t)}entries(){return je(n=>[n[0],n[1]],this)}get(t){return id(this,t)}has(t){return sd(this,t)}keys(){return je(n=>n[0],this)}set(t,n){const r=this;return od(r,t,n),r}values(){return je(n=>n[1],this)}forEach(t,n){const r=this;nr(i=>{t(i[1],i[0],r)},r)}}function Ao(e,t){const n=e.comparer.GetHashCode(t)|0;let r,i=$e();return r=[Gl(e.hashMap,n,new vt(()=>i,o=>{i=o})),i],r[0]?[!0,n,r[1].findIndex(o=>e.comparer.Equals(t,o[0]))]:[!1,n,-1]}function es(e,t){const n=Ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Yn(e.hashMap,n[1])[n[2]];default:return}}function nd(e){e.hashMap.clear()}function rd(e){let t=0,n=Fe(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{De(n)}return t|0}function id(e,t){const n=es(e,t);if(n!=null)return V(n)[1];throw new Error("The item was not found in collection")}function od(e,t,n){const r=Ao(e,t);r[0]?r[2]>-1?Yn(e.hashMap,r[1])[r[2]]=[t,n]:Yn(e.hashMap,r[1]).push([t,n]):e.hashMap.set(r[1],[[t,n]])}function Sa(e,t,n){const r=Ao(e,t);if(r[0]){if(r[2]>-1)throw new Error(Fl("An item with the same key has already been added. Key: {0}",t));Yn(e.hashMap,r[1]).push([t,n])}else e.hashMap.set(r[1],[[t,n]])}function sd(e,t){const n=Ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return!0;default:return!1}}function Ea(e,t){const n=Ao(e,t);let r;switch(n[0]&&n[2]>-1?r=0:r=1,r){case 0:return Yn(e.hashMap,n[1]).splice(n[2],1),!0;default:return!1}}function Kb(e,t){return N(()=>{const n=new t0([],t);return Wl(r=>e0(r,n),e)})}function Xb(e,t,n){return N(()=>{const r=new t0(e,n);return Wl(i=>e0(i,r),t)})}function Jb(e,t,n){return N(()=>{const r=new Zb([],n),i=[],o=Fe(t);try{for(;o["System.Collections.IEnumerator.MoveNext"]();){const s=o["System.Collections.Generic.IEnumerator`1.get_Current"](),a=e(s);let l,u=$e();l=[Gl(r,a,new vt(()=>u,f=>{u=f})),u],l[0]?l[1].push(s):(bg(r,a,[s]),i.push(a))}}finally{De(o)}return je(s=>[s,Yn(r,s)],i)})}function om(e,t){return qn(Kb(e,t))}function sm(e,t,n){return qn(Xb(e,t,n))}function Qb(e,t,n){return qn(je(r=>[r[0],qn(r[1])],Jb(e,t,n)))}class e_ extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnIndex"]}}class t_ extends Se{constructor(t,n,r,i){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i}}class n_ extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisCsvColumnIndex"]}}class Xi extends Se{constructor(t,n,r,i,o){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o}}new Xi(void 0,void 0,void 0,void 0,void 0);function ad(e,t){return new Xi(e.FirstName,e.LastName,e.Email,e.MobilePhone,Et(n=>n.fields[0],t))}class r_ extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisRawValue"]}}class ct extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FullTime","PartTime","Casual","LabourHire"]}}function am(e){switch(e.tag){case 1:return"Part-time";case 2:return"Casual";case 3:return"Labour hire";default:return"Full-time"}}function i_(e){switch(e.tag){case 1:return"PartTime";case 2:return"Casual";case 3:return"LabourHire";default:return"FullTime"}}function o_(e){switch(e){case"FullTime":return new ct(0,[]);case"PartTime":return new ct(1,[]);case"Casual":return new ct(2,[]);case"LabourHire":return new ct(3,[]);default:return}}class s_ extends Se{constructor(t,n){super(),this.Head=t,this.Tail=n}}function a_(e){return Qr(Ye(t=>[t[1].fields[0],i_(t[0])],jf([e.Head],e.Tail)),{Compare:Dr})}class l_ extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["EmploymentBasisColumn"]}}class Hr extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["WithoutEmploymentBasis","WithEmploymentBasis"]}}class xn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["DraftColumnMappings","ValidatedColumnMappings"]}}class u_ extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvColumnName"]}}class c_ extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRow"]}}class d_ extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["CsvDataRows"]}}function f_(e,t){let n;return new l_(Ye(r=>new r_(r),P1(r=>r,om((n=Ye(r=>ve(t.fields[0].fields[0],r.fields[0]),e.fields[0]),n.filter(r=>!ho(r))),{Equals:(r,i)=>r===i,GetHashCode:Qn}),{Compare:Dr})))}class lm extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["FileName"]}}class m_ extends Se{constructor(t,n,r,i){super(),this.Name=t,this.HeaderRow=n,this.DataRows=r,this.SizeInBytes=i|0}}class Ct extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["InviteNow","InviteLater"]}}class jo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Draft","Valid"]}}class oe extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["FirstName","LastName","Email","MobilePhone","EmploymentBasis"]}}function io(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"}}function mr(e){switch(e.tag){case 1:return"lastName";case 2:return"email";case 3:return"mobileNumber";case 4:return"employmentBasis";default:return"firstName"}}function um(e){switch(e){case"firstName":return new oe(0,[]);case"lastName":return new oe(1,[]);case"email":return new oe(2,[]);case"mobileNumber":return new oe(3,[]);case"employmentBasis":return new oe(4,[]);default:return}}let ar=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Set","Clear","Preview"]}};class Vi extends Se{constructor(t,n){super(),this.ColumnIndex=t,this.IncomingFields=n}}class h_ extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["IncomingFields"]}}class En extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}let Ur=class extends Se{constructor(t,n,r,i,o,s,a,l,u,f){super(),this.FirstName=t,this.LastName=n,this.Email=r,this.MobilePhone=i,this.EmploymentBasis=o,this.Preview=s,this.NumberOfIncomingFields=a|0,this.NumberOfDestinationFieldsMapped=l|0,this.NumberOfIncomingFieldsDiscarded=u|0,this.Status=f}};function p_(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 Et(r=>r[0],Ps(r=>gi(Rl(r[1].fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Qn}),e))}function g_(e,t){return new h_(Ye(n=>{const r=n[0];return[r,n[1],gi(r,t,{Equals:Q,GetHashCode:ls})?new En(1,[]):new En(0,[])]},e))}function cm(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 zt(n=>n,Ye(n=>Uf(e.fields[0],n.fields[0]),t.fields[0].slice(void 0,10)))}function au(e,t,n,r,i,o,s){let a,l,u;const f=m=>g_(e,m);let d;d=zt(m=>m,[n,r,i,o,s]).length;const h=n!=null?r!=null?i!=null?(a=i,l=n,u=r,new jo(1,[new t_(l,u,a,o),Et(m=>new n_(m),s)])):new jo(0,[new Xi(n,r,i,o,s)]):new jo(0,[new Xi(n,r,i,o,s)]):new jo(0,[new Xi(n,r,i,o,s)]);return new Ur(new Vi(n,f(zt(m=>m,[r,i,o,s]))),new Vi(r,f(zt(m=>m,[n,i,o,s]))),new Vi(i,f(zt(m=>m,[n,r,o,s]))),new Vi(o,f(zt(m=>m,[n,r,i,s]))),new Vi(s,f(zt(m=>m,[n,r,i,o]))),t,e.length,d,e.length-d,h)}function Hi(e,t,n,r,i){let o,s,a;const l=[r,i];return a=cm(n,l[0],l[1]),au(e,(o=n.Preview,o!=null&&Q(o[0],r)?(s=o[0],[s,Wr(i,t)]):n.Preview),a[0],a[1],a[2],a[3],a[4])}function ji(e,t,n){let r,i;const o=[n,void 0];return i=cm(t,o[0],o[1]),au(e,(r=t.Preview,r!=null&&Q(r[0],n)?(r[0],void 0):t.Preview),i[0],i[1],i[2],i[3],i[4])}function dm(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 w_=e=>t=>dm(e,t);function y_(e,t){const n=dm(e,t),r=e.Preview;let i;switch(n?r==null?i=2:Q(r[0],t)?(i=1,r[0]):i=2:i=0,i){case 0:return!1;case 1:return!1;default:return!0}}function v_(e,t){let n,r,i,o,s,a,l,u,f;const d=p=>p_(e,p);return[(n=t==null?(r=d(new oe(0,[])),i=d(new oe(1,[])),o=d(new oe(2,[])),s=d(new oe(3,[])),a=d(new oe(4,[])),l=zt(p=>p,[r,i,o,s,a]),u=p=>{let h,m;switch(p!=null?(h=p,l.filter(v=>Q(v,h)).length>1?m=0:m=1):m=1,m){case 0:return;default:return p}},[u(r),u(i),u(o),u(s),u(a)]):(f=t,[f.FirstName,f.LastName,f.Email,f.MobilePhone,f.EmploymentBasis]),au(e,void 0,n[0],n[1],n[2],n[3],n[4])),Z()]}function b_(e,t,n,r){let i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,E,M,R,F,L,S;switch(n.tag){case 1:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?m=6:m=15;break}case 2:{r.Email.ColumnIndex!=null?m=7:m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?m=8:m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?m=9:m=15;break}default:r.FirstName.ColumnIndex!=null?m=5:m=15}break}case 2:{switch(n.fields[0].tag){case 1:{r.LastName.ColumnIndex!=null?(m=11,R=r.LastName.ColumnIndex):m=15;break}case 2:{r.Email.ColumnIndex!=null?(m=12,F=r.Email.ColumnIndex):m=15;break}case 3:{r.MobilePhone.ColumnIndex!=null?(m=13,L=r.MobilePhone.ColumnIndex):m=15;break}case 4:{r.EmploymentBasis.ColumnIndex!=null?(m=14,S=r.EmploymentBasis.ColumnIndex):m=15;break}default:r.FirstName.ColumnIndex!=null?(m=10,M=r.FirstName.ColumnIndex):m=15}break}default:switch(n.fields[0].tag){case 1:{u=n.fields[1],!Q(r.LastName.ColumnIndex,u)&&r.LastName.IncomingFields.fields[0].some(_=>Q(u,_[0])?Q(_[2],new En(0,[])):!1)?(m=1,r.LastName.ColumnIndex,r.LastName.IncomingFields.fields[0],b=n.fields[1]):m=15;break}case 2:{f=n.fields[1],!Q(r.Email.ColumnIndex,f)&&r.Email.IncomingFields.fields[0].some(_=>Q(f,_[0])?Q(_[2],new En(0,[])):!1)?(m=2,r.Email.ColumnIndex,r.Email.IncomingFields.fields[0],x=n.fields[1]):m=15;break}case 3:{d=n.fields[1],!Q(r.MobilePhone.ColumnIndex,d)&&r.MobilePhone.IncomingFields.fields[0].some(_=>Q(d,_[0])?Q(_[2],new En(0,[])):!1)?(m=3,r.MobilePhone.ColumnIndex,r.MobilePhone.IncomingFields.fields[0],C=n.fields[1]):m=15;break}case 4:{p=n.fields[1],!Q(r.EmploymentBasis.ColumnIndex,p)&&r.EmploymentBasis.IncomingFields.fields[0].some(_=>Q(p,_[0])?Q(_[2],new En(0,[])):!1)?(m=4,r.EmploymentBasis.ColumnIndex,r.EmploymentBasis.IncomingFields.fields[0],E=n.fields[1]):m=15;break}default:h=n.fields[1],!Q(r.FirstName.ColumnIndex,h)&&r.FirstName.IncomingFields.fields[0].some(_=>Q(h,_[0])?Q(_[2],new En(0,[])):!1)?(m=0,r.FirstName.ColumnIndex,r.FirstName.IncomingFields.fields[0],v=n.fields[1]):m=15}}switch(m){case 0:return[(i=[new oe(0,[]),v],Hi(e,t,r,i[0],i[1])),Z()];case 1:return[(o=[new oe(1,[]),b],Hi(e,t,r,o[0],o[1])),Z()];case 2:return[(s=[new oe(2,[]),x],Hi(e,t,r,s[0],s[1])),Z()];case 3:return[(a=[new oe(3,[]),C],Hi(e,t,r,a[0],a[1])),Z()];case 4:return[(l=[new oe(4,[]),E],Hi(e,t,r,l[0],l[1])),Z()];case 5:return[ji(e,r,new oe(0,[])),Z()];case 6:return[ji(e,r,new oe(1,[])),Z()];case 7:return[ji(e,r,new oe(2,[])),Z()];case 8:return[ji(e,r,new oe(3,[])),Z()];case 9:return[ji(e,r,new oe(4,[])),Z()];case 10:return[new Ur(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(0,[]),Wr(M,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 11:return[new Ur(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(1,[]),Wr(R,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 12:return[new Ur(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(2,[]),Wr(F,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 13:return[new Ur(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(3,[]),Wr(L,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];case 14:return[new Ur(r.FirstName,r.LastName,r.Email,r.MobilePhone,r.EmploymentBasis,[new oe(4,[]),Wr(S,t)],r.NumberOfIncomingFields,r.NumberOfDestinationFieldsMapped,r.NumberOfIncomingFieldsDiscarded,r.Status),Z()];default:return[r,Z()]}}const fm=typeof document<"u"?X.useLayoutEffect:()=>{};function __(e){const t=re(null);return fm(()=>{t.current=e},[e]),Ie((...n)=>{const r=t.current;return r==null?void 0:r(...n)},[])}const ko=e=>{var t;return(t=e==null?void 0:e.ownerDocument)!==null&&t!==void 0?t:document},wr=e=>e&&"window"in e&&e.window===e?e:ko(e).defaultView||window;function x_(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 C_(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 mm(e){let t=null;return()=>(t==null&&(t=e()),t)}const S_=mm(function(){return C_(/^Mac/i)}),E_=mm(function(){return x_(/Android/i)});function A_(e){return e.mozInputSource===0&&e.isTrusted?!0:E_()&&e.pointerType?e.type==="click"&&e.buttons===1:e.detail===0&&!e.pointerType}class k_{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 hm(e){let t=re({isFocused:!1,observer:null});fm(()=>{const r=t.current;return()=>{r.observer&&(r.observer.disconnect(),r.observer=null)}},[]);let n=__(r=>{e==null||e(r)});return Ie(r=>{if(r.target instanceof HTMLButtonElement||r.target instanceof HTMLInputElement||r.target instanceof HTMLTextAreaElement||r.target instanceof HTMLSelectElement){t.current.isFocused=!0;let i=r.target,o=s=>{t.current.isFocused=!1,i.disabled&&n(new k_("blur",s)),t.current.observer&&(t.current.observer.disconnect(),t.current.observer=null)};i.addEventListener("focusout",o,{once:!0}),t.current.observer=new MutationObserver(()=>{if(t.current.isFocused&&i.disabled){var s;(s=t.current.observer)===null||s===void 0||s.disconnect();let a=i===document.activeElement?null:document.activeElement;i.dispatchEvent(new FocusEvent("blur",{relatedTarget:a})),i.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:a}))}}),t.current.observer.observe(i,{attributes:!0,attributeFilter:["disabled"]})}},[n])}function N_(e){let{isDisabled:t,onFocus:n,onBlur:r,onFocusChange:i}=e;const o=Ie(l=>{if(l.target===l.currentTarget)return r&&r(l),i&&i(!1),!0},[r,i]),s=hm(o),a=Ie(l=>{const u=ko(l.target);l.target===l.currentTarget&&u.activeElement===l.target&&(n&&n(l),i&&i(!0),s(l))},[i,n,s]);return{focusProps:{onFocus:!t&&(n||i||r)?a:void 0,onBlur:!t&&(r||i)?o:void 0}}}let No=null,rl=new Set,Ji=new Map,kr=!1,il=!1;const T_={Tab:!0,Escape:!0};function lu(e,t){for(let n of rl)n(e,t)}function $_(e){return!(e.metaKey||!S_()&&e.altKey||e.ctrlKey||e.key==="Control"||e.key==="Shift"||e.key==="Meta")}function xs(e){kr=!0,$_(e)&&(No="keyboard",lu("keyboard",e))}function Jt(e){No="pointer",(e.type==="mousedown"||e.type==="pointerdown")&&(kr=!0,lu("pointer",e))}function pm(e){A_(e)&&(kr=!0,No="virtual")}function gm(e){e.target===window||e.target===document||(!kr&&!il&&(No="virtual",lu("virtual",e)),kr=!1,il=!1)}function wm(){kr=!1,il=!0}function ol(e){if(typeof window>"u"||Ji.get(wr(e)))return;const t=wr(e),n=ko(e);let r=t.HTMLElement.prototype.focus;t.HTMLElement.prototype.focus=function(){kr=!0,r.apply(this,arguments)},n.addEventListener("keydown",xs,!0),n.addEventListener("keyup",xs,!0),n.addEventListener("click",pm,!0),t.addEventListener("focus",gm,!0),t.addEventListener("blur",wm,!1),typeof PointerEvent<"u"?(n.addEventListener("pointerdown",Jt,!0),n.addEventListener("pointermove",Jt,!0),n.addEventListener("pointerup",Jt,!0)):(n.addEventListener("mousedown",Jt,!0),n.addEventListener("mousemove",Jt,!0),n.addEventListener("mouseup",Jt,!0)),t.addEventListener("beforeunload",()=>{ym(e)},{once:!0}),Ji.set(t,{focus:r})}const ym=(e,t)=>{const n=wr(e),r=ko(e);t&&r.removeEventListener("DOMContentLoaded",t),Ji.has(n)&&(n.HTMLElement.prototype.focus=Ji.get(n).focus,r.removeEventListener("keydown",xs,!0),r.removeEventListener("keyup",xs,!0),r.removeEventListener("click",pm,!0),n.removeEventListener("focus",gm,!0),n.removeEventListener("blur",wm,!1),typeof PointerEvent<"u"?(r.removeEventListener("pointerdown",Jt,!0),r.removeEventListener("pointermove",Jt,!0),r.removeEventListener("pointerup",Jt,!0)):(r.removeEventListener("mousedown",Jt,!0),r.removeEventListener("mousemove",Jt,!0),r.removeEventListener("mouseup",Jt,!0)),Ji.delete(n))};function M_(e){const t=ko(e);let n;return t.readyState!=="loading"?ol(e):(n=()=>{ol(e)},t.addEventListener("DOMContentLoaded",n)),()=>ym(e,n)}typeof document<"u"&&M_();function vm(){return No!=="pointer"}const I_=new Set(["checkbox","radio","range","color","file","image","button","submit","reset"]);function D_(e,t,n){var r;const i=typeof window<"u"?wr(n==null?void 0:n.target).HTMLInputElement:HTMLInputElement,o=typeof window<"u"?wr(n==null?void 0:n.target).HTMLTextAreaElement:HTMLTextAreaElement,s=typeof window<"u"?wr(n==null?void 0:n.target).HTMLElement:HTMLElement,a=typeof window<"u"?wr(n==null?void 0:n.target).KeyboardEvent:KeyboardEvent;return e=e||(n==null?void 0:n.target)instanceof i&&!I_.has(n==null||(r=n.target)===null||r===void 0?void 0:r.type)||(n==null?void 0:n.target)instanceof o||(n==null?void 0:n.target)instanceof s&&(n==null?void 0:n.target.isContentEditable),!(e&&t==="keyboard"&&n instanceof a&&!T_[n.key])}function O_(e,t,n){ol(),Oe(()=>{let r=(i,o)=>{D_(!!(n!=null&&n.isTextInput),i,o)&&e(vm())};return rl.add(r),()=>{rl.delete(r)}},t)}function R_(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:r,onFocusWithinChange:i}=e,o=re({isFocusWithin:!1}),s=Ie(u=>{o.current.isFocusWithin&&!u.currentTarget.contains(u.relatedTarget)&&(o.current.isFocusWithin=!1,n&&n(u),i&&i(!1))},[n,i,o]),a=hm(s),l=Ie(u=>{!o.current.isFocusWithin&&document.activeElement===u.target&&(r&&r(u),i&&i(!0),o.current.isFocusWithin=!0,a(u))},[r,i,a]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:l,onBlur:s}}}let Cs=!1,Aa=0;function sl(){Cs=!0,setTimeout(()=>{Cs=!1},50)}function ld(e){e.pointerType==="touch"&&sl()}function F_(){if(!(typeof document>"u"))return typeof PointerEvent<"u"?document.addEventListener("pointerup",ld):document.addEventListener("touchend",sl),Aa++,()=>{Aa--,!(Aa>0)&&(typeof PointerEvent<"u"?document.removeEventListener("pointerup",ld):document.removeEventListener("touchend",sl))}}function P_(e){let{onHoverStart:t,onHoverChange:n,onHoverEnd:r,isDisabled:i}=e,[o,s]=ye(!1),a=re({isHovered:!1,ignoreEmulatedMouseEvents:!1,pointerType:"",target:null}).current;Oe(F_,[]);let{hoverProps:l,triggerHoverEnd:u}=me(()=>{let f=(h,m)=>{if(a.pointerType=m,i||m==="touch"||a.isHovered||!h.currentTarget.contains(h.target))return;a.isHovered=!0;let v=h.currentTarget;a.target=v,t&&t({type:"hoverstart",target:v,pointerType:m}),n&&n(!0),s(!0)},d=(h,m)=>{if(a.pointerType="",a.target=null,m==="touch"||!a.isHovered)return;a.isHovered=!1;let v=h.currentTarget;r&&r({type:"hoverend",target:v,pointerType:m}),n&&n(!1),s(!1)},p={};return typeof PointerEvent<"u"?(p.onPointerEnter=h=>{Cs&&h.pointerType==="mouse"||f(h,h.pointerType)},p.onPointerLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,h.pointerType)}):(p.onTouchStart=()=>{a.ignoreEmulatedMouseEvents=!0},p.onMouseEnter=h=>{!a.ignoreEmulatedMouseEvents&&!Cs&&f(h,"mouse"),a.ignoreEmulatedMouseEvents=!1},p.onMouseLeave=h=>{!i&&h.currentTarget.contains(h.target)&&d(h,"mouse")}),{hoverProps:p,triggerHoverEnd:d}},[t,n,r,i,a]);return Oe(()=>{i&&u({currentTarget:a.target},a.pointerType)},[i]),{hoverProps:l,isHovered:o}}function L_(e={}){let{autoFocus:t=!1,isTextInput:n,within:r}=e,i=re({isFocused:!1,isFocusVisible:t||vm()}),[o,s]=ye(!1),[a,l]=ye(()=>i.current.isFocused&&i.current.isFocusVisible),u=Ie(()=>l(i.current.isFocused&&i.current.isFocusVisible),[]),f=Ie(h=>{i.current.isFocused=h,s(h),u()},[u]);O_(h=>{i.current.isFocusVisible=h,u()},[],{isTextInput:n});let{focusProps:d}=N_({isDisabled:r,onFocusChange:f}),{focusWithinProps:p}=R_({isDisabled:!r,onFocusWithinChange:f});return{isFocused:o,isFocusVisible:a,focusProps:r?p:d}}var V_=Object.defineProperty,H_=(e,t,n)=>t in e?V_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ka=(e,t,n)=>(H_(e,typeof t!="symbol"?t+"":t,n),n);let j_=class{constructor(){ka(this,"current",this.detect()),ka(this,"handoffState","pending"),ka(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"}},br=new j_;function xi(e){return br.isServer?null:e instanceof Node?e.ownerDocument:e!=null&&e.hasOwnProperty("current")&&e.current instanceof Node?e.current.ownerDocument:document}function Zs(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Pn(){let e=[],t={addEventListener(n,r,i,o){return n.addEventListener(r,i,o),t.add(()=>n.removeEventListener(r,i,o))},requestAnimationFrame(...n){let r=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(r))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let r=setTimeout(...n);return t.add(()=>clearTimeout(r))},microTask(...n){let r={current:!0};return Zs(()=>{r.current&&n[0]()}),t.add(()=>{r.current=!1})},style(n,r,i){let o=n.style.getPropertyValue(r);return Object.assign(n.style,{[r]:i}),this.add(()=>{Object.assign(n.style,{[r]:o})})},group(n){let r=Pn();return n(r),this.add(()=>r.dispose())},add(n){return e.includes(n)||e.push(n),()=>{let r=e.indexOf(n);if(r>=0)for(let i of e.splice(r,1))i()}},dispose(){for(let n of e.splice(0))n()}};return t}function ir(){let[e]=ye(Pn);return Oe(()=>()=>e.dispose(),[e]),e}let Ze=(e,t)=>{br.isServer?Oe(e,t):yn(e,t)};function or(e){let t=re(e);return Ze(()=>{t.current=e},[e]),t}let ae=function(e){let t=or(e);return X.useCallback((...n)=>t.current(...n),[t])};function B_(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 U_(e,t){return!(!e||!t||e.right<t.left||e.left>t.right||e.bottom<t.top||e.top>t.bottom)}function W_({disabled:e=!1}={}){let t=re(null),[n,r]=ye(!1),i=ir(),o=ae(()=>{t.current=null,r(!1),i.dispose()}),s=ae(a=>{if(i.dispose(),t.current===null){t.current=a.currentTarget,r(!0);{let l=xi(a.currentTarget);i.addEventListener(l,"pointerup",o,!1),i.addEventListener(l,"pointermove",u=>{if(t.current){let f=B_(u);r(U_(f,t.current.getBoundingClientRect()))}},!1),i.addEventListener(l,"pointercancel",o,!1)}}});return{pressed:n,pressProps:e?{}:{onPointerDown:s,onPointerUp:o,onClick:o}}}let G_=nt(void 0);function uu(){return Pe(G_)}function al(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}function Lt(e,t,...n){if(e in t){let i=t[e];return typeof i=="function"?i(...n):i}let r=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(r,Lt),r}var ci=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ci||{}),Wn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Wn||{});function bt(){let e=q_();return Ie(t=>z_({mergeRefs:e,...t}),[e])}function z_({ourProps:e,theirProps:t,slot:n,defaultTag:r,features:i,visible:o=!0,name:s,mergeRefs:a}){a=a??Y_;let l=bm(t,e);if(o)return Bo(l,n,r,s,a);let u=i??0;if(u&2){let{static:f=!1,...d}=l;if(f)return Bo(d,n,r,s,a)}if(u&1){let{unmount:f=!0,...d}=l;return Lt(f?0:1,{0(){return null},1(){return Bo({...d,hidden:!0,style:{display:"none"}},n,r,s,a)}})}return Bo(l,n,r,s,a)}function Bo(e,t={},n,r,i){let{as:o=n,children:s,refName:a="ref",...l}=Na(e,["unmount","static"]),u=e.ref!==void 0?{[a]:e.ref}:{},f=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 d={};if(t){let p=!1,h=[];for(let[m,v]of Object.entries(t))typeof v=="boolean"&&(p=!0),v===!0&&h.push(m.replace(/([A-Z])/g,b=>`-${b.toLowerCase()}`));if(p){d["data-headlessui-state"]=h.join(" ");for(let m of h)d[`data-${m}`]=""}}if(o===ze&&(Object.keys(Hn(l)).length>0||Object.keys(Hn(d)).length>0))if(!mi(f)||Array.isArray(f)&&f.length>1){if(Object.keys(Hn(l)).length>0)throw new Error(['Passing props on "Fragment"!',"",`The current component <${r} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(Hn(l)).concat(Object.keys(Hn(d))).map(p=>` - ${p}`).join(`
|
|
46
46
|
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(p=>` - ${p}`).join(`
|
|
47
47
|
`)].join(`
|
|
48
|
-
`))}else{let p=f.props,h=p==null?void 0:p.className,m=typeof h=="function"?(...C)=>el(h(...C),l.className):el(h,l.className),w=m?{className:m}:{},b=nh(f.props,jn(xa(l,["ref"])));for(let C in d)C in b&&delete d[C];return Sl(f,Object.assign({},b,d,u,{ref:i(E2(f),u.ref)},w))}return c(o,Object.assign({},xa(l,["ref"]),o!==Be&&u,o!==Be&&d),f)}function C2(){let e=se([]),t=ke(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 S2(...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 nh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function rh(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let s of o)s==null||s(...i)}});return t}function lt(e){var t;return Object.assign(xl(e),{displayName:(t=e.displayName)!=null?t:e.name})}function jn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function xa(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function E2(e){return Z.version.split(".")[0]>="19"?e.props.ref:e.ref}function A2(e,t,n){let[r,i]=ye(n),o=e!==void 0,s=se(o),a=se(!1),l=se(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,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.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,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.")),[o?e:r,ae(u=>(o||i(u),t==null?void 0:t(u)))]}function k2(e){let[t]=ye(e);return t}function ih(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))sh(n,oh(t,r),i);return n}function oh(e,t){return e?e+"["+t+"]":t}function sh(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())sh(e,oh(t,r.toString()),i);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,""]):ih(n,t,e)}function N2(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let T2="span";var ui=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(ui||{});function $2(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return gt()({ourProps:o,theirProps:i,slot:{},defaultTag:T2,name:"Hidden"})}let Ji=lt($2),M2=Je(null);function I2({children:e}){let t=Oe(M2);if(!t)return Z.createElement(Z.Fragment,null,e);let{target:n}=t;return n?xs(Z.createElement(Z.Fragment,null,e),n):null}function D2({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=ye(null),a=nr();return De(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),Z.createElement(I2,null,Z.createElement(O2,{setForm:s,formId:t}),ih(e).map(([l,u])=>Z.createElement(Ji,{features:ui.Hidden,...jn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function O2({setForm:e,formId:t}){return De(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:Z.createElement(Ji,{features:ui.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let R2=Je(void 0);function ah(){return Oe(R2)}function F2(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&&P2(n)?!1:r}function P2(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let lh=Symbol();function L2(e,t=!0){return Object.assign(e,{[lh]:t})}function Et(...e){let t=se(e);De(()=>{t.current=e},[e]);let n=ae(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[lh]))?void 0:n}let Ls=Je(null);Ls.displayName="DescriptionContext";function uh(){let e=Oe(Ls);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,uh),t}return e}function V2(){var e,t;return(t=(e=Oe(Ls))==null?void 0:e.value)!=null?t:void 0}function H2(){let[e,t]=ye([]);return[e.length>0?e.join(" "):void 0,ce(()=>function(n){let r=ae(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=ce(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return Z.createElement(Ls.Provider,{value:i},n.children)},[t])]}let j2="p";function B2(e,t){let n=Jt(),r=Ql(),{id:i=`headlessui-description-${n}`,...o}=e,s=uh(),a=Et(t);ze(()=>s.register(i),[i,s.register]);let l=r||!1,u=ce(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:i};return gt()({ourProps:f,theirProps:o,slot:u,defaultTag:j2,name:s.name||"Description"})}let U2=lt(B2),W2=Object.assign(U2,{});var ut=(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))(ut||{});let Vs=Je(null);Vs.displayName="LabelContext";function ch(){let e=Oe(Vs);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,ch),t}return e}function dh(e){var t,n,r;let i=(n=(t=Oe(Vs))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function G2({inherit:e=!1}={}){let t=dh(),[n,r]=ye([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,ce(()=>function(o){let s=ae(l=>(r(u=>[...u,l]),()=>r(u=>{let f=u.slice(),d=f.indexOf(l);return d!==-1&&f.splice(d,1),f}))),a=ce(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return Z.createElement(Vs.Provider,{value:a},o.children)},[r])]}let z2="label";function q2(e,t){var n;let r=Jt(),i=ch(),o=ah(),s=Ql(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...f}=e,d=Et(t);ze(()=>i.register(a),[a,i.register]);let p=ae(b=>{let C=b.currentTarget;if(C instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),C instanceof HTMLLabelElement){let x=document.getElementById(C.htmlFor);if(x){let E=x.getAttribute("disabled");if(E==="true"||E==="")return;let $=x.getAttribute("aria-disabled");if($==="true"||$==="")return;(x instanceof HTMLInputElement&&(x.type==="radio"||x.type==="checkbox")||x.role==="radio"||x.role==="checkbox"||x.role==="switch")&&x.click(),x.focus({preventScroll:!0})}}}),h=s||!1,m=ce(()=>({...i.slot,disabled:h}),[i.slot,h]),w={ref:d,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in w&&(delete w.htmlFor,delete w.onClick),"onClick"in f&&delete f.onClick),gt()({ourProps:w,theirProps:f,slot:m,defaultTag:l?z2:"div",name:i.name||"Label"})}let Y2=lt(q2),Z2=Object.assign(Y2,{}),K2=Je(()=>{});function X2({value:e,children:t}){return Z.createElement(K2.Provider,{value:e},t)}function J2(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 Q2(e=J2){return ke((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 ex(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function tx(e,t=!1){let[n,r]=Nr(()=>({}),{}),i=ce(()=>ex(e),[e,n]);return ze(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let nx=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 fh(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}function mh(e){return _s(e.subscribe,e.getSnapshot,e.getSnapshot)}let rx=new nx(()=>fh(()=>[],{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 xi(e,t){let n=rx.get(t),r=Jt(),i=mh(n);if(ze(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}let tl=new Map,qi=new Map;function Yc(e){var t;let n=(t=qi.get(e))!=null?t:0;return qi.set(e,n+1),n!==0?()=>Zc(e):(tl.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>Zc(e))}function Zc(e){var t;let n=(t=qi.get(e))!=null?t:1;if(n===1?qi.delete(e):qi.set(e,n-1),n!==1)return;let r=tl.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,tl.delete(e))}function hh(e,{allowed:t,disallowed:n}={}){let r=xi(e,"inert-others");ze(()=>{var i,o;if(!r)return;let s=Ln();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(Yc(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=_i(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let d of f.children)a.some(p=>d.contains(p))||s.add(Yc(d));f=f.parentElement}}return s.dispose},[r,t,n])}function ph(e,t,n){let r=rr(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});De(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Ln();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,r,e])}let hs=["[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(","),ix=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var ln=(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))(ln||{}),nl=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(nl||{}),ox=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(ox||{});function gh(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(hs)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function sx(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(ix)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var eu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(eu||{});function yh(e,t=0){var n;return e===((n=_i(e))==null?void 0:n.body)?!1:Ot(t,{0(){return e.matches(hs)},1(){let r=e;for(;r!==null;){if(r.matches(hs))return!0;r=r.parentElement}return!1}})}var ax=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(ax||{});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 Mn(e){e==null||e.focus({preventScroll:!0})}let lx=["textarea","input"].join(",");function ux(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,lx))!=null?n:!1}function wh(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function cx(e,t){return Qr(gh(),t,{relativeTo:e})}function Qr(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?wh(e):e:t&64?sx(e):gh(e);i.length>0&&s.length>1&&(s=s.filter(h=>!i.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===h:m===h))),r=r??o.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}:{},f=0,d=s.length,p;do{if(f>=d||f+d<=0)return 0;let h=l+f;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}p=s[h],p==null||p.focus(u),f+=a}while(p!==o.activeElement);return t&6&&ux(p)&&p.select(),2}function vh(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function dx(){return/Android/gi.test(window.navigator.userAgent)}function fx(){return vh()||dx()}function Fi(e,t,n,r){let i=rr(n);De(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function bh(e,t,n,r){let i=rr(n);De(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const Kc=30;function _h(e,t,n){let r=xi(e,"outside-click"),i=rr(n),o=ke(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let d=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of d)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!yh(f,eu.Loose)&&f.tabIndex!==-1&&l.preventDefault(),i.current(l,f)},[i,t]),s=se(null);Fi(r,"pointerdown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),Fi(r,"mousedown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),Fi(r,"click",l=>{fx()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=se({x:0,y:0});Fi(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),Fi(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=Kc||Math.abs(u.y-a.current.y)>=Kc))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),bh(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Ci(...e){return ce(()=>_i(...e),[...e])}function xh(e,t,n,r){let i=rr(n);De(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function mx(e,t){return ce(()=>{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 hx(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function px(){return vh()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Ln();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i: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),f=e.querySelector(u);f&&!r(f)&&(s=f)}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;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function gx(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function yx(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let hr=fh(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Ln(),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:yx(n)},i=[px(),hx(),gx()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});hr.subscribe(()=>{let e=hr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&hr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&hr.dispatch("TEARDOWN",n)}});function wx(e,t,n=()=>({containers:[]})){let r=mh(hr),i=t?r.get(t):void 0,o=i?i.count>0:!1;return ze(()=>{if(!(!t||!e))return hr.dispatch("PUSH",t,n),()=>hr.dispatch("POP",t,n)},[e,t]),o}function Ch(e,t,n=()=>[document.body]){let r=xi(e,"scroll-lock");wx(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function Xc(e){return[e.screenX,e.screenY]}function vx(){let e=se([-1,-1]);return{wasMoved(t){let n=Xc(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=Xc(t)}}}function bx(e=0){let[t,n]=ye(e),r=ke(l=>n(l),[t]),i=ke(l=>n(u=>u|l),[t]),o=ke(l=>(t&l)===l,[t]),s=ke(l=>n(u=>u&~l),[n]),a=ke(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var _x={},Jc,Qc;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((Jc=process==null?void 0:_x)==null?void 0:Jc.NODE_ENV)==="test"&&typeof((Qc=Element==null?void 0:Element.prototype)==null?void 0:Qc.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
49
|
-
`)),[]});var xx=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(xx||{});function Sh(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Eh(e,t,n,r){let[i,o]=ye(n),{hasFlag:s,addFlag:a,removeFlag:l}=bx(e&&i?3:0),u=se(!1),f=se(!1),d=nr();return ze(()=>{var p;if(e){if(n&&o(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),Cx(t,{inFlight:u,prepare(){f.current?f.current=!1:f.current=u.current,u.current=!0,!f.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){f.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var h;f.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||o(!1),(h=r==null?void 0:r.end)==null||h.call(r,n))}})}},[e,n,t,d]),e?[i,{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 Cx(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Ln();return Ex(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(Sx(e,r))})}),o.dispose}function Sx(e,t){var n,r;let i=Ln();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!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(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function Ex(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 tu(e,t){let n=se([]),r=ae(e);De(()=>{let i=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=r(t,i);return n.current=t,a}},[r,...t])}function Hs(){return typeof window<"u"}function Si(e){return Ah(e)?(e.nodeName||"").toLowerCase():"#document"}function Gt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(Ah(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Ah(e){return Hs()?e instanceof Node||e instanceof Gt(e).Node:!1}function Tt(e){return Hs()?e instanceof Element||e instanceof Gt(e).Element:!1}function wn(e){return Hs()?e instanceof HTMLElement||e instanceof Gt(e).HTMLElement:!1}function ed(e){return!Hs()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Gt(e).ShadowRoot}function bo(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=fn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Ax(e){return["table","td","th"].includes(Si(e))}function js(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function nu(e){const t=ru(),n=Tt(e)?fn(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 kx(e){let t=Jn(e);for(;wn(t)&&!ci(t);){if(nu(t))return t;if(js(t))return null;t=Jn(t)}return null}function ru(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ci(e){return["html","body","#document"].includes(Si(e))}function fn(e){return Gt(e).getComputedStyle(e)}function Bs(e){return Tt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Jn(e){if(Si(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ed(e)&&e.host||bn(e);return ed(t)?t.host:t}function kh(e){const t=Jn(e);return ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&bo(t)?t:kh(t)}function Qi(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=kh(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Gt(i);if(o){const a=rl(s);return t.concat(s,s.visualViewport||[],bo(i)?i:[],a&&n?Qi(a):[])}return t.concat(i,Qi(i,[],n))}function rl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Nx(){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 Sr=Math.min,bt=Math.max,eo=Math.round,Do=Math.floor,gn=e=>({x:e,y:e}),Tx={left:"right",right:"left",bottom:"top",top:"bottom"},$x={start:"end",end:"start"};function td(e,t,n){return bt(e,Sr(t,n))}function Ei(e,t){return typeof e=="function"?e(t):e}function Qn(e){return e.split("-")[0]}function _o(e){return e.split("-")[1]}function Nh(e){return e==="x"?"y":"x"}function Th(e){return e==="y"?"height":"width"}function Er(e){return["top","bottom"].includes(Qn(e))?"y":"x"}function $h(e){return Nh(Er(e))}function Mx(e,t,n){n===void 0&&(n=!1);const r=_o(e),i=$h(e),o=Th(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ps(s)),[s,ps(s)]}function Ix(e){const t=ps(e);return[il(e),t,il(t)]}function il(e){return e.replace(/start|end/g,t=>$x[t])}function Dx(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function Ox(e,t,n,r){const i=_o(e);let o=Dx(Qn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(il)))),o}function ps(e){return e.replace(/left|right|bottom|top/g,t=>Tx[t])}function Rx(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fx(e){return typeof e!="number"?Rx(e):{top:e,right:e,bottom:e,left:e}}function gs(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function nd(e,t,n){let{reference:r,floating:i}=e;const o=Er(t),s=$h(t),a=Th(s),l=Qn(t),u=o==="y",f=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch(_o(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const Px=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=nd(u,r,l),p=r,h={},m=0;for(let w=0;w<a.length;w++){const{name:b,fn:C}=a[w],{x,y:E,data:$,reset:I}=await C({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=x??f,d=E??d,h={...h,[b]:{...h[b],...$}},I&&m<=50&&(m++,typeof I=="object"&&(I.placement&&(p=I.placement),I.rects&&(u=I.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):I.rects),{x:f,y:d}=nd(u,p,l)),w=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:h}};async function Us(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Ei(t,e),m=Fx(h),b=a[p?d==="floating"?"reference":"floating":d],C=gs(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),x=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),$=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},I=gs(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:E,strategy:l}):x);return{top:(C.top-I.top+m.top)/$.y,bottom:(I.bottom-C.bottom+m.bottom)/$.y,left:(C.left-I.left+m.left)/$.x,right:(I.right-C.right+m.right)/$.x}}const Lx=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:w=!0,...b}=Ei(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const C=Qn(i),x=Er(a),E=Qn(a)===a,$=await(l.isRTL==null?void 0:l.isRTL(u.floating)),I=p||(E||!w?[ps(a)]:Ix(a)),L=m!=="none";!p&&L&&I.push(...Ox(a,w,m,$));const P=[a,...I],S=await Us(t,b),_=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(S[C]),d){const z=Mx(i,s,$);_.push(S[z[0]],S[z[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every(z=>z<=0)){var N,D;const z=(((N=o.flip)==null?void 0:N.index)||0)+1,me=P[z];if(me)return{data:{index:z,overflows:k},reset:{placement:me}};let q=(D=k.filter(G=>G.overflows[0]<=0).sort((G,F)=>G.overflows[1]-F.overflows[1])[0])==null?void 0:D.placement;if(!q)switch(h){case"bestFit":{var O;const G=(O=k.filter(F=>{if(L){const U=Er(F.placement);return U===x||U==="y"}return!0}).map(F=>[F.placement,F.overflows.filter(U=>U>0).reduce((U,H)=>U+H,0)]).sort((F,U)=>F[1]-U[1])[0])==null?void 0:O[0];G&&(q=G);break}case"initialPlacement":q=a;break}if(i!==q)return{reset:{placement:q}}}return{}}}};async function Vx(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Qn(n),a=_o(n),l=Er(n)==="y",u=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,d=Ei(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*f,y:p*u}:{x:p*u,y:h*f}}const Hx=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await Vx(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},jx=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x:C,y:x}=b;return{x:C,y:x}}},...l}=Ei(e,t),u={x:n,y:r},f=await Us(t,l),d=Er(Qn(i)),p=Nh(d);let h=u[p],m=u[d];if(o){const b=p==="y"?"top":"left",C=p==="y"?"bottom":"right",x=h+f[b],E=h-f[C];h=td(x,h,E)}if(s){const b=d==="y"?"top":"left",C=d==="y"?"bottom":"right",x=m+f[b],E=m-f[C];m=td(x,m,E)}const w=a.fn({...t,[p]:h,[d]:m});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[p]:o,[d]:s}}}}}},Bx=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Ei(e,t),f=await Us(t,u),d=Qn(i),p=_o(i),h=Er(i)==="y",{width:m,height:w}=o.floating;let b,C;d==="top"||d==="bottom"?(b=d,C=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(C=d,b=p==="end"?"top":"bottom");const x=w-f.top-f.bottom,E=m-f.left-f.right,$=Sr(w-f[b],x),I=Sr(m-f[C],E),L=!t.middlewareData.shift;let P=$,S=I;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(P=x),L&&!p){const k=bt(f.left,0),N=bt(f.right,0),D=bt(f.top,0),O=bt(f.bottom,0);h?S=m-2*(k!==0||N!==0?k+N:bt(f.left,f.right)):P=w-2*(D!==0||O!==0?D+O:bt(f.top,f.bottom))}await l({...t,availableWidth:S,availableHeight:P});const _=await s.getDimensions(a.floating);return m!==_.width||w!==_.height?{reset:{rects:!0}}:{}}}};function Mh(e){const t=fn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=eo(n)!==o||eo(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function iu(e){return Tt(e)?e:e.contextElement}function ei(e){const t=iu(e);if(!wn(t))return gn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Mh(t);let s=(o?eo(n.width):n.width)/r,a=(o?eo(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ux=gn(0);function Ih(e){const t=Gt(e);return!ru()||!t.visualViewport?Ux:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Wx(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Gt(e)?!1:t}function Ar(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=iu(e);let s=gn(1);t&&(r?Tt(r)&&(s=ei(r)):s=ei(e));const a=Wx(o,n,r)?Ih(o):gn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(o){const p=Gt(o),h=r&&Tt(r)?Gt(r):r;let m=p,w=rl(m);for(;w&&r&&h!==m;){const b=ei(w),C=w.getBoundingClientRect(),x=fn(w),E=C.left+(w.clientLeft+parseFloat(x.paddingLeft))*b.x,$=C.top+(w.clientTop+parseFloat(x.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,d*=b.y,l+=E,u+=$,m=Gt(w),w=rl(m)}}return gs({width:f,height:d,x:l,y:u})}function ou(e,t){const n=Bs(e).scrollLeft;return t?t.left+n:Ar(bn(e)).left+n}function Dh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:ou(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function Gx(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=bn(r),a=t?js(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=gn(1);const f=gn(0),d=wn(r);if((d||!d&&!o)&&((Si(r)!=="body"||bo(s))&&(l=Bs(r)),wn(r))){const h=Ar(r);u=ei(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!d&&!o?Dh(s,l,!0):gn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function zx(e){return Array.from(e.getClientRects())}function qx(e){const t=bn(e),n=Bs(e),r=e.ownerDocument.body,i=bt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=bt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ou(e);const a=-n.scrollTop;return fn(r).direction==="rtl"&&(s+=bt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function Yx(e,t){const n=Gt(e),r=bn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=ru();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function Zx(e,t){const n=Ar(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=wn(e)?ei(e):gn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function rd(e,t,n){let r;if(t==="viewport")r=Yx(e,n);else if(t==="document")r=qx(bn(e));else if(Tt(t))r=Zx(t,n);else{const i=Ih(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return gs(r)}function Oh(e,t){const n=Jn(e);return n===t||!Tt(n)||ci(n)?!1:fn(n).position==="fixed"||Oh(n,t)}function Kx(e,t){const n=t.get(e);if(n)return n;let r=Qi(e,[],!1).filter(a=>Tt(a)&&Si(a)!=="body"),i=null;const o=fn(e).position==="fixed";let s=o?Jn(e):e;for(;Tt(s)&&!ci(s);){const a=fn(s),l=nu(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||bo(s)&&!l&&Oh(e,s))?r=r.filter(f=>f!==s):i=a,s=Jn(s)}return t.set(e,r),r}function Xx(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?js(t)?[]:Kx(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const d=rd(t,f,i);return u.top=bt(d.top,u.top),u.right=Sr(d.right,u.right),u.bottom=Sr(d.bottom,u.bottom),u.left=bt(d.left,u.left),u},rd(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Jx(e){const{width:t,height:n}=Mh(e);return{width:t,height:n}}function Qx(e,t,n){const r=wn(t),i=bn(t),o=n==="fixed",s=Ar(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=gn(0);if(r||!r&&!o)if((Si(t)!=="body"||bo(i))&&(a=Bs(t)),r){const p=Ar(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=ou(i));const u=i&&!r&&!o?Dh(i,a):gn(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Ca(e){return fn(e).position==="static"}function id(e,t){if(!wn(e)||fn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bn(e)===n&&(n=n.ownerDocument.body),n}function Rh(e,t){const n=Gt(e);if(js(e))return n;if(!wn(e)){let i=Jn(e);for(;i&&!ci(i);){if(Tt(i)&&!Ca(i))return i;i=Jn(i)}return n}let r=id(e,t);for(;r&&Ax(r)&&Ca(r);)r=id(r,t);return r&&ci(r)&&Ca(r)&&!nu(r)?n:r||kx(e)||n}const eC=async function(e){const t=this.getOffsetParent||Rh,n=this.getDimensions,r=await n(e.floating);return{reference:Qx(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tC(e){return fn(e).direction==="rtl"}const nC={convertOffsetParentRelativeRectToViewportRelativeRect:Gx,getDocumentElement:bn,getClippingRect:Xx,getOffsetParent:Rh,getElementRects:eC,getClientRects:zx,getDimensions:Jx,getScale:ei,isElement:Tt,isRTL:tC};function Fh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function rC(e,t){let n=null,r;const i=bn(e);function o(){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),o();const u=e.getBoundingClientRect(),{left:f,top:d,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=Do(d),w=Do(i.clientWidth-(f+p)),b=Do(i.clientHeight-(d+h)),C=Do(f),E={rootMargin:-m+"px "+-w+"px "+-b+"px "+-C+"px",threshold:bt(0,Sr(1,l))||1};let $=!0;function I(L){const P=L[0].intersectionRatio;if(P!==l){if(!$)return s();P?s(!1,P):r=setTimeout(()=>{s(!1,1e-7)},1e3)}P===1&&!Fh(u,e.getBoundingClientRect())&&s(),$=!1}try{n=new IntersectionObserver(I,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(I,E)}n.observe(e)}return s(!0),o}function iC(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=iu(e),f=i||o?[...u?Qi(u):[],...Qi(t)]:[];f.forEach(C=>{i&&C.addEventListener("scroll",n,{passive:!0}),o&&C.addEventListener("resize",n)});const d=u&&a?rC(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(C=>{let[x]=C;x&&x.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,w=l?Ar(e):null;l&&b();function b(){const C=Ar(e);w&&!Fh(w,C)&&n(),w=C,m=requestAnimationFrame(b)}return n(),()=>{var C;f.forEach(x=>{i&&x.removeEventListener("scroll",n),o&&x.removeEventListener("resize",n)}),d==null||d(),(C=h)==null||C.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Sa=Us,oC=Hx,sC=jx,aC=Lx,lC=Bx,uC=(e,t,n)=>{const r=new Map,i={platform:nC,...n},o={...i.platform,_c:r};return Px(e,t,{...i,platform:o})};var Go=typeof document<"u"?Rn:De;function ys(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,i;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(!ys(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ys(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function Ph(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function od(e,t){const n=Ph(e);return Math.round(t*n)/n}function Ea(e){const t=se(e);return Go(()=>{t.current=e}),t}function cC(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,d]=ye({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=ye(r);ys(p,r)||h(r);const[m,w]=ye(null),[b,C]=ye(null),x=ke(F=>{F!==L.current&&(L.current=F,w(F))},[]),E=ke(F=>{F!==P.current&&(P.current=F,C(F))},[]),$=o||m,I=s||b,L=se(null),P=se(null),S=se(f),_=l!=null,k=Ea(l),N=Ea(i),D=Ea(u),O=ke(()=>{if(!L.current||!P.current)return;const F={placement:t,strategy:n,middleware:p};N.current&&(F.platform=N.current),uC(L.current,P.current,F).then(U=>{const H={...U,isPositioned:D.current!==!1};z.current&&!ys(S.current,H)&&(S.current=H,Wt(()=>{d(H)}))})},[p,t,n,N,D]);Go(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(F=>({...F,isPositioned:!1})))},[u]);const z=se(!1);Go(()=>(z.current=!0,()=>{z.current=!1}),[]),Go(()=>{if($&&(L.current=$),I&&(P.current=I),$&&I){if(k.current)return k.current($,I,O);O()}},[$,I,O,k,_]);const me=ce(()=>({reference:L,floating:P,setReference:x,setFloating:E}),[x,E]),q=ce(()=>({reference:$,floating:I}),[$,I]),G=ce(()=>{const F={position:n,left:0,top:0};if(!q.floating)return F;const U=od(q.floating,f.x),H=od(q.floating,f.y);return a?{...F,transform:"translate("+U+"px, "+H+"px)",...Ph(q.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:U,top:H}},[n,a,q.floating,f.x,f.y]);return ce(()=>({...f,update:O,refs:me,elements:q,floatingStyles:G}),[f,O,me,q,G])}const Lh=(e,t)=>({...oC(e),options:[e,t]}),dC=(e,t)=>({...sC(e),options:[e,t]}),fC=(e,t)=>({...aC(e),options:[e,t]}),mC=(e,t)=>({...lC(e),options:[e,t]}),Vh={...Ko},hC=Vh.useInsertionEffect,pC=hC||(e=>e());function Hh(e){const t=se(()=>{});return pC(()=>{t.current=e}),ke(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var ol=typeof document<"u"?Rn:De;let sd=!1,gC=0;const ad=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gC++;function yC(){const[e,t]=ye(()=>sd?ad():void 0);return ol(()=>{e==null&&t(ad())},[]),De(()=>{sd=!0},[]),e}const wC=Vh.useId,vC=wC||yC;function bC(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(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(i=>i!==n))||[])}}}const _C=Je(null),xC=Je(null),CC=()=>{var e;return((e=Oe(_C))==null?void 0:e.id)||null},SC=()=>Oe(xC),EC="data-floating-ui-focusable";function AC(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=vC(),o=se({}),[s]=ye(()=>bC()),a=CC()!=null,[l,u]=ye(r.reference),f=Hh((h,m,w)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:w,nested:a}),n==null||n(h,m,w)}),d=ce(()=>({setPositionReference:u}),[]),p=ce(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return ce(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:d}),[t,f,p,s,i,d])}function kC(e){e===void 0&&(e={});const{nodeId:t}=e,n=AC({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=ye(null),[a,l]=ye(null),f=(i==null?void 0:i.domReference)||o,d=se(null),p=SC();ol(()=>{f&&(d.current=f)},[f]);const h=cC({...e,elements:{...i,...a&&{reference:a}}}),m=ke(E=>{const $=Tt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l($),h.refs.setReference($)},[h.refs]),w=ke(E=>{(Tt(E)||E===null)&&(d.current=E,s(E)),(Tt(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!Tt(E))&&h.refs.setReference(E)},[h.refs]),b=ce(()=>({...h.refs,setReference:w,setPositionReference:m,domReference:d}),[h.refs,w,m]),C=ce(()=>({...h.elements,domReference:f}),[h.elements,f]),x=ce(()=>({...h,...r,refs:b,elements:C,nodeId:t}),[h,b,C,t,r]);return ol(()=>{r.dataRef.current.floatingContext=x;const E=p==null?void 0:p.nodesRef.current.find($=>$.id===t);E&&(E.context=x)}),ce(()=>({...h,context:x,refs:b,elements:C}),[h,b,C,x])}const ld="active",ud="selected";function Aa(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[ld]:s,[ud]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[EC]:""},...o,...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,f]=l;if(!(i&&[ld,ud].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var d;(d=r.get(u))==null||d.push(f),s[u]=function(){for(var p,h=arguments.length,m=new Array(h),w=0;w<h;w++)m[w]=arguments[w];return(p=r.get(u))==null?void 0:p.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[u]=f}),s),{})}}function NC(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),i=ke(a=>Aa(a,e,"reference"),t),o=ke(a=>Aa(a,e,"floating"),n),s=ke(a=>Aa(a,e,"item"),r);return ce(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function cd(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const TC=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...f}=Ei(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[s],m=(u==null?void 0:u.current)||p,w=p.clientTop||m.clientTop,b=p.clientTop!==0,C=m.clientTop!==0,x=p===m;if(!h)return{};const E={...t,...await Lh(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-o).fn(t)},$=await Sa(cd(E,m.scrollHeight+w+p.clientTop),f),I=await Sa(E,{...f,elementContext:"reference"}),L=bt(0,$.top),P=E.y+L,k=(m.scrollHeight>m.clientHeight?N=>N:eo)(bt(0,m.scrollHeight+(b&&x||C?w*2:0)-L-bt(0,$.bottom)));if(m.style.maxHeight=k+"px",m.scrollTop=L,i){const N=m.offsetHeight<h.offsetHeight*Sr(a,n.current.length)-1||I.top>=-l||I.bottom>=-l;Wt(()=>i(N))}return r&&(r.current=await Sa(cd({...E,y:P},m.offsetHeight+w+p.clientTop),f)),{y:P}}});function $C(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=Hh(a),u=se(!1),f=se(null),d=se(null);De(()=>{if(!i)return;function h(w){if(w.ctrlKey||!m||o.current==null)return;const b=w.deltaY,C=o.current.top>=-.5,x=o.current.bottom>=-.5,E=m.scrollHeight-m.clientHeight,$=b<0?-1:1,I=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!C&&b>0||!x&&b<0?(w.preventDefault(),Wt(()=>{l(L=>L+Math[I](b,E*$))})):/firefox/i.test(Nx())&&(m.scrollTop+=b))}const m=(s==null?void 0:s.current)||r.floating;if(n&&m)return m.addEventListener("wheel",h),requestAnimationFrame(()=>{f.current=m.scrollTop,o.current!=null&&(d.current={...o.current})}),()=>{f.current=null,d.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);const p=ce(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const h=(s==null?void 0:s.current)||r.floating;if(!(!o.current||!h||!u.current)){if(f.current!==null){const m=h.scrollTop-f.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&Wt(()=>l(w=>w+m))}requestAnimationFrame(()=>{f.current=h.scrollTop})}}}),[r.floating,l,o,s]);return ce(()=>i?{floating:p}:{},[i,p])}let Ai=Je({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});Ai.displayName="FloatingContext";let su=Je(null);su.displayName="PlacementContext";function MC(e){return ce(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function IC(){return Oe(Ai).setReference}function DC(){return Oe(Ai).getReferenceProps}function OC(){let{getFloatingProps:e,slot:t}=Oe(Ai);return ke((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function RC(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Oe(su),n=ce(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);ze(()=>{t==null||t(n??null)},[t,n]);let r=Oe(Ai);return ce(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let dd=4;function FC({children:e,enabled:t=!0}){let[n,r]=ye(null),[i,o]=ye(0),s=se(null),[a,l]=ye(null);PC(a);let u=t&&n!==null&&a!==null,{to:f="bottom",gap:d=0,offset:p=0,padding:h=0,inner:m}=LC(n,a),[w,b="center"]=f.split(" ");ze(()=>{u&&o(0)},[u]);let{refs:C,floatingStyles:x,context:E}=kC({open:u,placement:w==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${w}`:`${w}-${b}`,strategy:"absolute",transform:!1,middleware:[Lh({mainAxis:w==="selection"?0:d,crossAxis:p}),dC({padding:h}),w!=="selection"&&fC({padding:h}),w==="selection"&&m?TC({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:dd,referenceOverflowThreshold:h,onFallbackChange(N){var D,O;if(!N)return;let z=E.elements.floating;if(!z)return;let me=parseFloat(getComputedStyle(z).scrollPaddingBottom)||0,q=Math.min(dd,z.childElementCount),G=0,F=0;for(let U of(O=(D=E.elements.floating)==null?void 0:D.childNodes)!=null?O:[])if(U instanceof HTMLElement){let H=U.offsetTop,de=H+U.clientHeight+me,J=z.scrollTop,R=J+z.clientHeight;if(H>=J&&de<=R)q--;else{F=Math.max(0,Math.min(de,R)-Math.max(H,J)),G=U.clientHeight;break}}q>=1&&o(U=>{let H=G*q-F+me;return U>=H?U:H})}}):null,mC({padding:h,apply({availableWidth:N,availableHeight:D,elements:O}){Object.assign(O.floating.style,{overflow:"auto",maxWidth:`${N}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${D}px)`})}})].filter(Boolean),whileElementsMounted:iC}),[$=w,I=b]=E.placement.split("-");w==="selection"&&($="selection");let L=ce(()=>({anchor:[$,I].filter(Boolean).join(" ")}),[$,I]),P=$C(E,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:_}=NC([P]),k=ae(N=>{l(N),C.setFloating(N)});return c(su.Provider,{value:r},c(Ai.Provider,{value:{setFloating:k,setReference:C.setReference,styles:x,getReferenceProps:S,getFloatingProps:_,slot:L}},e))}function PC(e){ze(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function LC(e,t){var n,r,i;let o=ka((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=ka((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=ka((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function ka(e,t,n=void 0){let r=nr(),i=ae((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 f=fd(l,u);return[f,d=>{let p=jh(l);{let h=p.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let w=!1;for(let[C,x]of p.entries()){let E=window.getComputedStyle(u).getPropertyValue(x);if(h[C]!==E){h[C]=E,w=!0;break}}if(!w)return;let b=fd(l,u);f!==b&&(d(b),f=b)})}return r.dispose}]}return[n,null]}),o=ce(()=>i(e,t)[0],[e,t]),[s=o,a]=ye();return ze(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function jh(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(),i=t[1].slice(n+1).trim();return i?[r,...jh(i)]:[r]}return[]}function fd(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 VC(e,t){let[n,r]=ye(t);return!e&&n!==t&&r(t),e?n:t}let Ws=Je(null);Ws.displayName="OpenClosedContext";var $t=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))($t||{});function xo(){return Oe(Ws)}function Bh({value:e,children:t}){return Z.createElement(Ws.Provider,{value:e},t)}function HC({children:e}){return Z.createElement(Ws.Provider,{value:null},e)}function jC(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let Bn=[];jC(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||Bn[0]===t.target)return;let n=t.target;n=n.closest(hs),Bn.unshift(n??t.target),Bn=Bn.filter(r=>r!=null&&r.isConnected),Bn.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 BC(e){throw new Error("Unexpected object: "+e)}var ct=(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))(ct||{});function Na(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:BC(e)}}function Uh(e){let t=ae(e),n=se(!1);De(()=>(n.current=!1,()=>{n.current=!0,Ps(()=>{n.current&&t()})}),[t])}function UC(){let e=typeof document>"u";return"useSyncExternalStore"in Ko?(t=>t.useSyncExternalStore)(Ko)(()=>()=>{},()=>!1,()=>!e):!1}function Co(){let e=UC(),[t,n]=ye(gr.isHandoffComplete);return t&&gr.isHandoffComplete===!1&&n(!1),De(()=>{t!==!0&&n(!0)},[t]),De(()=>gr.handoff(),[]),e?!1:t}let Wh=Je(!1);function WC(){return Oe(Wh)}function md(e){return Z.createElement(Wh.Provider,{value:e.force},e.children)}function GC(e){let t=WC(),n=Oe(zh),r=Ci(e),[i,o]=ye(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(gr.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 De(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),De(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let Gh=Be,zC=lt(function(e,t){let n=e,r=se(null),i=Et(L2(d=>{r.current=d}),t),o=Ci(r),s=GC(r),[a]=ye(()=>{var d;return gr.isServer?null:(d=o==null?void 0:o.createElement("div"))!=null?d:null}),l=Oe(sl),u=Co();ze(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),ze(()=>{if(a&&l)return l.register(a)},[l,a]),Uh(()=>{var d;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((d=s.parentElement)==null||d.removeChild(s)))});let f=gt();return u?!s||!a?null:xs(f({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:Gh,name:"Portal"}),a):null});function qC(e,t){let n=Et(t),{enabled:r=!0,...i}=e,o=gt();return r?Z.createElement(zC,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:Gh,name:"Portal"})}let YC=Be,zh=Je(null);function ZC(e,t){let{target:n,...r}=e,i={ref:Et(t)},o=gt();return Z.createElement(zh.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:YC,name:"Popover.Group"}))}let sl=Je(null);function KC(){let e=Oe(sl),t=se([]),n=ae(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ae(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=ce(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,ce(()=>function({children:o}){return Z.createElement(sl.Provider,{value:i},o)},[i])]}let XC=lt(qC),qh=lt(ZC),Yh=Object.assign(XC,{Group:qh});function JC(e,t=typeof document<"u"?document.defaultView:null,n){let r=xi(e,"escape");xh(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===ut.Escape&&n(i))})}function QC(){var e;let[t]=ye(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ye((e=t==null?void 0:t.matches)!=null?e:!1);return ze(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function e3({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Ci(n),i=ae(()=>{var o,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(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((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:i,contains:ae(o=>i().some(s=>s.contains(o)))}}let Zh=Je(null);function hd({children:e,node:t}){let[n,r]=ye(null),i=Kh(t??n);return Z.createElement(Zh.Provider,{value:i},e,i===null&&Z.createElement(Ji,{features:ui.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=_i(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function Kh(e=null){var t;return(t=Oe(Zh))!=null?t:e}function au(){let e=se(!1);return ze(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var ji=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(ji||{});function t3(){let e=se(0);return bh(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function Xh(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 n3="div";var dr=(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))(dr||{});function r3(e,t){let n=se(null),r=Et(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Co()||(a=0);let u=Ci(n);a3(a,{ownerDocument:u});let f=l3(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});u3(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let d=t3(),p=ae(x=>{let E=n.current;E&&($=>$())(()=>{Ot(d.current,{[ji.Forwards]:()=>{Qr(E,ln.First,{skipElements:[x.relatedTarget,o]})},[ji.Backwards]:()=>{Qr(E,ln.Last,{skipElements:[x.relatedTarget,o]})}})})}),h=xi(!!(a&2),"focus-trap#tab-lock"),m=nr(),w=se(!1),b={ref:r,onKeyDown(x){x.key=="Tab"&&(w.current=!0,m.requestAnimationFrame(()=>{w.current=!1}))},onBlur(x){if(!(a&4))return;let E=Xh(s);n.current instanceof HTMLElement&&E.add(n.current);let $=x.relatedTarget;$ instanceof HTMLElement&&$.dataset.headlessuiFocusGuard!=="true"&&(Jh(E,$)||(w.current?Qr(n.current,Ot(d.current,{[ji.Forwards]:()=>ln.Next,[ji.Backwards]:()=>ln.Previous})|ln.WrapAround,{relativeTo:x.target}):x.target instanceof HTMLElement&&Mn(x.target)))}},C=gt();return Z.createElement(Z.Fragment,null,h&&Z.createElement(Ji,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ui.Focusable}),C({ourProps:b,theirProps:l,defaultTag:n3,name:"FocusTrap"}),h&&Z.createElement(Ji,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:ui.Focusable}))}let i3=lt(r3),o3=Object.assign(i3,{features:dr});function s3(e=!0){let t=se(Bn.slice());return tu(([n],[r])=>{r===!0&&n===!1&&Ps(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=Bn.slice())},[e,Bn,t]),ae(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function a3(e,{ownerDocument:t}){let n=!!(e&8),r=s3(n);tu(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&Mn(r())},[n]),Uh(()=>{n&&Mn(r())})}function l3(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=se(null),s=xi(!!(e&1),"focus-trap#initial-focus"),a=au();return tu(()=>{if(e===0)return;if(!s){i!=null&&i.current&&Mn(i.current);return}let l=n.current;l&&Ps(()=>{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){o.current=u;return}}else if(l.contains(u)){o.current=u;return}if(r!=null&&r.current)Mn(r.current);else{if(e&16){if(Qr(l,ln.First|ln.AutoFocus)!==nl.Error)return}else if(Qr(l,ln.First)!==nl.Error)return;if(i!=null&&i.current&&(Mn(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function u3(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=au(),s=!!(e&4);xh(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=Xh(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?Jh(l,f)?(i.current=f,Mn(f)):(a.preventDefault(),a.stopPropagation(),Mn(u)):Mn(i.current)},!0)}function Jh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function Qh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:t0)!==Be||Z.Children.count(e.children)===1}let Gs=Je(null);Gs.displayName="TransitionContext";var c3=(e=>(e.Visible="visible",e.Hidden="hidden",e))(c3||{});function d3(){let e=Oe(Gs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function f3(){let e=Oe(zs);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let zs=Je(null);zs.displayName="NestingContext";function qs(e){return"children"in e?qs(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function e0(e,t){let n=rr(e),r=se([]),i=au(),o=nr(),s=ae((h,m=zn.Hidden)=>{let w=r.current.findIndex(({el:b})=>b===h);w!==-1&&(Ot(m,{[zn.Unmount](){r.current.splice(w,1)},[zn.Hidden](){r.current[w].state="hidden"}}),o.microTask(()=>{var b;!qs(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=ae(h=>{let m=r.current.find(({el:w})=>w===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,zn.Unmount)}),l=se([]),u=se(Promise.resolve()),f=se({enter:[],leave:[]}),d=ae((h,m,w)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([b])=>b!==h)),t==null||t.chains.current[m].push([h,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[m].push([h,new Promise(b=>{Promise.all(f.current[m].map(([C,x])=>x)).then(()=>b())})]),m==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>w(m)):w(m)}),p=ae((h,m,w)=>{Promise.all(f.current[m].splice(0).map(([b,C])=>C)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>w(m))});return ce(()=>({children:r,register:a,unregister:s,onStart:d,onStop:p,wait:u,chains:f}),[a,s,r,d,p,f,u])}let t0=Be,n0=li.RenderStrategy;function m3(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:d,entered:p,leave:h,leaveFrom:m,leaveTo:w,...b}=e,[C,x]=ye(null),E=se(null),$=Qh(e),I=Et(...$?[E,t,x]:t===null?[]:[t]),L=(n=b.unmount)==null||n?zn.Unmount:zn.Hidden,{show:P,appear:S,initial:_}=d3(),[k,N]=ye(P?"visible":"hidden"),D=f3(),{register:O,unregister:z}=D;ze(()=>O(E),[O,E]),ze(()=>{if(L===zn.Hidden&&E.current){if(P&&k!=="visible"){N("visible");return}return Ot(k,{hidden:()=>z(E),visible:()=>O(E)})}},[k,E,O,z,P,L]);let me=Co();ze(()=>{if($&&me&&k==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,k,me,$]);let q=_&&!S,G=S&&P&&_,F=se(!1),U=e0(()=>{F.current||(N("hidden"),z(E))},D),H=ae(Re=>{F.current=!0;let re=Re?"enter":"leave";U.onStart(E,re,we=>{we==="enter"?o==null||o():we==="leave"&&(a==null||a())})}),de=ae(Re=>{let re=Re?"enter":"leave";F.current=!1,U.onStop(E,re,we=>{we==="enter"?s==null||s():we==="leave"&&(l==null||l())}),re==="leave"&&!qs(U)&&(N("hidden"),z(E))});De(()=>{$&&i||(H(P),de(P))},[P,$,i]);let J=!(!i||!$||!me||q),[,R]=Eh(J,C,P,{start:H,end:de}),le=jn({ref:I,className:((r=el(b.className,G&&u,G&&f,R.enter&&u,R.enter&&R.closed&&f,R.enter&&!R.closed&&d,R.leave&&h,R.leave&&!R.closed&&m,R.leave&&R.closed&&w,!R.transition&&P&&p))==null?void 0:r.trim())||void 0,...Sh(R)}),ne=0;k==="visible"&&(ne|=$t.Open),k==="hidden"&&(ne|=$t.Closed),R.enter&&(ne|=$t.Opening),R.leave&&(ne|=$t.Closing);let ve=gt();return Z.createElement(zs.Provider,{value:U},Z.createElement(Bh,{value:ne},ve({ourProps:le,theirProps:b,defaultTag:t0,features:n0,visible:k==="visible",name:"Transition.Child"})))}function h3(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=se(null),a=Qh(e),l=Et(...a?[s,t]:t===null?[]:[t]);Co();let u=xo();if(n===void 0&&u!==null&&(n=(u&$t.Open)===$t.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=ye(n?"visible":"hidden"),p=e0(()=>{n||d("hidden")}),[h,m]=ye(!0),w=se([n]);ze(()=>{h!==!1&&w.current[w.current.length-1]!==n&&(w.current.push(n),m(!1))},[w,n]);let b=ce(()=>({show:n,appear:r,initial:h}),[n,r,h]);ze(()=>{n?d("visible"):!qs(p)&&s.current!==null&&d("hidden")},[n,p]);let C={unmount:i},x=ae(()=>{var I;h&&m(!1),(I=e.beforeEnter)==null||I.call(e)}),E=ae(()=>{var I;h&&m(!1),(I=e.beforeLeave)==null||I.call(e)}),$=gt();return Z.createElement(zs.Provider,{value:p},Z.createElement(Gs.Provider,{value:b},$({ourProps:{...C,as:Be,children:Z.createElement(r0,{ref:l,...C,...o,beforeEnter:x,beforeLeave:E})},theirProps:{},defaultTag:Be,features:n0,visible:f==="visible",name:"Transition"})))}function p3(e,t){let n=Oe(Gs)!==null,r=xo()!==null;return Z.createElement(Z.Fragment,null,!n&&r?Z.createElement(al,{ref:t,...e}):Z.createElement(r0,{ref:t,...e}))}let al=lt(h3),r0=lt(m3),lu=lt(p3),g3=Object.assign(al,{Child:lu,Root:al});var y3=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(y3||{}),w3=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(w3||{});let v3={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},uu=Je(null);uu.displayName="DialogContext";function Ys(e){let t=Oe(uu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Ys),n}return t}function b3(e,t){return Ot(t.type,v3,e,t)}let pd=lt(function(e,t){let n=Jt(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...d}=e,p=se(!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=xo();i===void 0&&h!==null&&(i=(h&$t.Open)===$t.Open);let m=se(null),w=Et(m,t),b=Ci(m),C=i?0:1,[x,E]=Nr(b3,{titleId:null,descriptionId:null,panelRef:bs()}),$=ae(()=>o(!1)),I=ae(de=>E({type:0,id:de})),L=Co()?C===0:!1,[P,S]=KC(),_={get current(){var de;return(de=x.panelRef.current)!=null?de:m.current}},k=Kh(),{resolveContainers:N}=e3({mainTreeNode:k,portals:P,defaultContainers:[_]}),D=h!==null?(h&$t.Closing)===$t.Closing:!1;hh(u||D?!1:L,{allowed:ae(()=>{var de,J;return[(J=(de=m.current)==null?void 0:de.closest("[data-headlessui-portal]"))!=null?J:null]}),disallowed:ae(()=>{var de;return[(de=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?de:null]})}),_h(L,N,de=>{de.preventDefault(),$()}),JC(L,b==null?void 0:b.defaultView,de=>{de.preventDefault(),de.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),$()}),Ch(u||D?!1:L,b,N),ph(L,m,$);let[O,z]=H2(),me=ce(()=>[{dialogState:C,close:$,setTitleId:I,unmount:f},x],[C,x,$,I,f]),q=ce(()=>({open:C===0}),[C]),G={ref:w,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:C===0?!0:void 0,"aria-labelledby":x.titleId,"aria-describedby":O,unmount:f},F=!QC(),U=dr.None;L&&!u&&(U|=dr.RestoreFocus,U|=dr.TabLock,l&&(U|=dr.AutoFocus),F&&(U|=dr.InitialFocus));let H=gt();return Z.createElement(HC,null,Z.createElement(md,{force:!0},Z.createElement(Yh,null,Z.createElement(uu.Provider,{value:me},Z.createElement(qh,{target:m},Z.createElement(md,{force:!1},Z.createElement(z,{slot:q},Z.createElement(S,null,Z.createElement(o3,{initialFocus:s,initialFocusFallback:m,containers:N,features:U},Z.createElement(X2,{value:$},H({ourProps:G,theirProps:d,slot:q,defaultTag:_3,features:x3,visible:C===0,name:"Dialog"})))))))))))}),_3="div",x3=li.RenderStrategy|li.Static;function C3(e,t){let{transition:n=!1,open:r,...i}=e,o=xo(),s=e.hasOwnProperty("open")||o!==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(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?Z.createElement(hd,null,Z.createElement(g3,{show:r,transition:n,unmount:i.unmount},Z.createElement(pd,{ref:t,...i}))):Z.createElement(hd,null,Z.createElement(pd,{ref:t,open:r,...i}))}let S3="div";function E3(e,t){let n=Jt(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=Ys("Dialog.Panel"),u=Et(t,l.panelRef),f=ce(()=>({open:s===0}),[s]),d=ae(b=>{b.stopPropagation()}),p={ref:u,id:r,onClick:d},h=i?lu:Be,m=i?{unmount:a}:{},w=gt();return Z.createElement(h,{...m},w({ourProps:p,theirProps:o,slot:f,defaultTag:S3,name:"Dialog.Panel"}))}let A3="div";function k3(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=Ys("Dialog.Backdrop"),s=ce(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?lu:Be,u=n?{unmount:o}:{},f=gt();return Z.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:A3,name:"Dialog.Backdrop"}))}let N3="h2";function T3(e,t){let n=Jt(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=Ys("Dialog.Title"),a=Et(t);De(()=>(s(r),()=>s(null)),[r,s]);let l=ce(()=>({open:o===0}),[o]),u={ref:a,id:r};return gt()({ourProps:u,theirProps:i,slot:l,defaultTag:N3,name:"Dialog.Title"})}let $3=lt(C3),M3=lt(E3),I3=lt(k3),D3=lt(T3),i0=Object.assign($3,{Panel:M3,Title:D3,Description:W2});function O3(e,t){let n=se({left:0,top:0});if(ze(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[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 gd=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function yd(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return gd.test(s)&&(s=s.replace(gd,"")),s}function R3(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(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():yd(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return yd(e).trim()}function F3(e){let t=se(""),n=se("");return ae(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=R3(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var P3=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(P3||{}),L3=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(L3||{}),V3=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(V3||{}),H3=(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))(H3||{});function Ta(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=wh(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let j3={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(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,i,o,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===ct.Nothing)return{...a,activeOptionIndex:null};if(t.focus===ct.Specific)return{...a,activeOptionIndex:e.options.findIndex(f=>f.id===t.id)};if(t.focus===ct.Previous){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Na(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=d.current)==null?void 0:r.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:p}}}}else if(t.focus===ct.Next){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Na(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(((o=d.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Ta(e),u=Na(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.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(),i=(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))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,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=Ta(e,i=>[...i,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=Ta(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,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}},cu=Je(null);cu.displayName="ListboxActionsContext";function Zs(e){let t=Oe(cu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Zs),n}return t}let Ks=Je(null);Ks.displayName="ListboxDataContext";function So(e){let t=Oe(Ks);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,So),n}return t}function B3(e,t){return Ot(t.type,j3,e,t)}let U3=Be;function W3(e,t){var n;let r=Ql(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:f=!1,disabled:d=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:m=!1,...w}=e;const b=p?"horizontal":"vertical";let C=Et(t),x=k2(o),[E=h?[]:void 0,$]=A2(i,l,x),[I,L]=Nr(B3,{dataRef:bs(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:m}),P=se({static:!1,hold:!1}),S=se(new Map),_=Q2(u),k=ke(j=>Ot(N.mode,{1:()=>E.some(W=>_(W,j)),0:()=>_(E,j)}),[E]),N=ce(()=>({...I,value:E,disabled:d,invalid:f,mode:h?1:0,orientation:b,compare:_,isSelected:k,optionsPropsRef:P,listRef:S}),[E,d,f,h,I,S]);ze(()=>{I.dataRef.current=N},[N]);let D=N.listboxState===0;_h(D,[N.buttonElement,N.optionsElement],(j,W)=>{var Q;L({type:1}),yh(W,eu.Loose)||(j.preventDefault(),(Q=N.buttonElement)==null||Q.focus())});let O=ce(()=>({open:N.listboxState===0,disabled:d,invalid:f,value:E}),[N,d,E,f]),z=ae(j=>{let W=N.options.find(Q=>Q.id===j);W&&de(W.dataRef.current.value)}),me=ae(()=>{if(N.activeOptionIndex!==null){let{dataRef:j,id:W}=N.options[N.activeOptionIndex];de(j.current.value),L({type:2,focus:ct.Specific,id:W})}}),q=ae(()=>L({type:0})),G=ae(()=>L({type:1})),F=nr(),U=ae((j,W,Q)=>{F.dispose(),F.microTask(()=>j===ct.Specific?L({type:2,focus:ct.Specific,id:W,trigger:Q}):L({type:2,focus:j,trigger:Q}))}),H=ae((j,W)=>(L({type:5,id:j,dataRef:W}),()=>L({type:6,id:j}))),de=ae(j=>Ot(N.mode,{0(){return $==null?void 0:$(j)},1(){let W=N.value.slice(),Q=W.findIndex(ie=>_(ie,j));return Q===-1?W.push(j):W.splice(Q,1),$==null?void 0:$(W)}})),J=ae(j=>L({type:3,value:j})),R=ae(()=>L({type:4})),le=ae(j=>{L({type:7,element:j})}),ne=ae(j=>{L({type:8,element:j})}),ve=ce(()=>({onChange:de,registerOption:H,goToOption:U,closeListbox:G,openListbox:q,selectActiveOption:me,selectOption:z,search:J,clearSearch:R,setButtonElement:le,setOptionsElement:ne}),[]),[Re,re]=G2({inherit:!0}),we={ref:C},be=ke(()=>{if(x!==void 0)return $==null?void 0:$(x)},[$,x]),Ee=gt();return Z.createElement(re,{value:Re,props:{htmlFor:(n=N.buttonElement)==null?void 0:n.id},slot:{open:N.listboxState===0,disabled:d}},Z.createElement(FC,null,Z.createElement(cu.Provider,{value:ve},Z.createElement(Ks.Provider,{value:N},Z.createElement(Bh,{value:Ot(N.listboxState,{0:$t.Open,1:$t.Closed})},a!=null&&E!=null&&Z.createElement(D2,{disabled:d,data:{[a]:E},form:s,onReset:be}),Ee({ourProps:we,theirProps:w,slot:O,defaultTag:U3,name:"Listbox"}))))))}let G3="button";function z3(e,t){var n;let r=So("Listbox.Button"),i=Zs("Listbox.Button"),o=Jt(),s=ah(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...f}=e,d=Et(t,IC(),i.setButtonElement),p=DC(),h=ae(N=>{switch(N.key){case ut.Enter:N2(N.currentTarget);break;case ut.Space:case ut.ArrowDown:N.preventDefault(),Wt(()=>i.openListbox()),r.value||i.goToOption(ct.First);break;case ut.ArrowUp:N.preventDefault(),Wt(()=>i.openListbox()),r.value||i.goToOption(ct.Last);break}}),m=ae(N=>{switch(N.key){case ut.Space:N.preventDefault();break}}),w=ae(N=>{var D;if(F2(N.currentTarget))return N.preventDefault();r.listboxState===0?(Wt(()=>i.closeListbox()),(D=r.buttonElement)==null||D.focus({preventScroll:!0})):(N.preventDefault(),i.openListbox())}),b=ae(N=>N.preventDefault()),C=dh([a]),x=V2(),{isFocusVisible:E,focusProps:$}=h2({autoFocus:u}),{isHovered:I,hoverProps:L}=m2({isDisabled:l}),{pressed:P,pressProps:S}=b2({disabled:l}),_=ce(()=>({open:r.listboxState===0,active:P||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:I,focus:E,autofocus:u}),[r.listboxState,r.value,l,I,E,P,r.invalid,u]),k=rh(p(),{ref:d,id:a,type:mx(e,r.buttonElement),"aria-haspopup":"listbox","aria-controls":(n=r.optionsElement)==null?void 0:n.id,"aria-expanded":r.listboxState===0,"aria-labelledby":C,"aria-describedby":x,disabled:l||void 0,autoFocus:u,onKeyDown:h,onKeyUp:m,onKeyPress:b,onClick:w},$,L,S);return gt()({ourProps:k,theirProps:f,slot:_,defaultTag:G3,name:"Listbox.Button"})}let o0=Je(!1),q3="div",Y3=li.RenderStrategy|li.Static;function Z3(e,t){var n,r;let i=Jt(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...f}=e,d=MC(s),[p,h]=ye(null);d&&(a=!0);let m=So("Listbox.Options"),w=Zs("Listbox.Options"),b=Ci(m.optionsElement),C=xo(),[x,E]=Eh(u,p,C!==null?(C&$t.Open)===$t.Open:m.listboxState===0);ph(x,m.buttonElement,w.closeListbox);let $=m.__demoMode?!1:l&&m.listboxState===0;Ch($,b);let I=m.__demoMode?!1:l&&m.listboxState===0;hh(I,{allowed:ke(()=>[m.buttonElement,m.optionsElement],[m.buttonElement,m.optionsElement])});let L=m.listboxState!==0,P=O3(L,m.buttonElement)?!1:x,S=x&&m.listboxState===1,_=VC(S,m.value),k=ae(R=>m.compare(_,R)),N=ce(()=>{var R;if(d==null||!((R=d==null?void 0:d.to)!=null&&R.includes("selection")))return null;let le=m.options.findIndex(ne=>k(ne.dataRef.current.value));return le===-1&&(le=0),le},[d,m.options]),D=(()=>{if(d==null)return;if(N===null)return{...d,inner:void 0};let R=Array.from(m.listRef.current.values());return{...d,inner:{listRef:{current:R},index:N}}})(),[O,z]=RC(D),me=OC(),q=Et(t,d?O:null,w.setOptionsElement,h),G=nr();De(()=>{var R;let le=m.optionsElement;le&&m.listboxState===0&&le!==((R=_i(le))==null?void 0:R.activeElement)&&(le==null||le.focus({preventScroll:!0}))},[m.listboxState,m.optionsElement]);let F=ae(R=>{var le,ne;switch(G.dispose(),R.key){case ut.Space:if(m.searchQuery!=="")return R.preventDefault(),R.stopPropagation(),w.search(R.key);case ut.Enter:if(R.preventDefault(),R.stopPropagation(),m.activeOptionIndex!==null){let{dataRef:ve}=m.options[m.activeOptionIndex];w.onChange(ve.current.value)}m.mode===0&&(Wt(()=>w.closeListbox()),(le=m.buttonElement)==null||le.focus({preventScroll:!0}));break;case Ot(m.orientation,{vertical:ut.ArrowDown,horizontal:ut.ArrowRight}):return R.preventDefault(),R.stopPropagation(),w.goToOption(ct.Next);case Ot(m.orientation,{vertical:ut.ArrowUp,horizontal:ut.ArrowLeft}):return R.preventDefault(),R.stopPropagation(),w.goToOption(ct.Previous);case ut.Home:case ut.PageUp:return R.preventDefault(),R.stopPropagation(),w.goToOption(ct.First);case ut.End:case ut.PageDown:return R.preventDefault(),R.stopPropagation(),w.goToOption(ct.Last);case ut.Escape:R.preventDefault(),R.stopPropagation(),Wt(()=>w.closeListbox()),(ne=m.buttonElement)==null||ne.focus({preventScroll:!0});return;case ut.Tab:R.preventDefault(),R.stopPropagation(),Wt(()=>w.closeListbox()),cx(m.buttonElement,R.shiftKey?ln.Previous:ln.Next);break;default:R.key.length===1&&(w.search(R.key),G.setTimeout(()=>w.clearSearch(),350));break}}),U=(n=m.buttonElement)==null?void 0:n.id,H=ce(()=>({open:m.listboxState===0}),[m.listboxState]),de=rh(d?me():{},{id:o,ref:q,"aria-activedescendant":m.activeOptionIndex===null||(r=m.options[m.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":m.mode===1?!0:void 0,"aria-labelledby":U,"aria-orientation":m.orientation,onKeyDown:F,role:"listbox",tabIndex:m.listboxState===0?0:void 0,style:{...f.style,...z,"--button-width":tx(m.buttonElement,!0).width},...Sh(E)}),J=gt();return Z.createElement(Yh,{enabled:a?e.static||x:!1},Z.createElement(Ks.Provider,{value:m.mode===1?m:{...m,isSelected:k}},J({ourProps:de,theirProps:f,slot:H,defaultTag:q3,features:Y3,visible:P,name:"Listbox.Options"})))}let K3="div";function X3(e,t){let n=Jt(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Oe(o0)===!0,l=So("Listbox.Option"),u=Zs("Listbox.Option"),f=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,d=l.isSelected(o),p=se(null),h=F3(p),m=rr({disabled:i,value:o,domRef:p,get textValue(){return h()}}),w=Et(t,p,_=>{_?l.listRef.current.set(r,_):l.listRef.current.delete(r)});ze(()=>{if(!l.__demoMode&&l.listboxState===0&&f&&l.activationTrigger!==0)return Ln().requestAnimationFrame(()=>{var _,k;(k=(_=p.current)==null?void 0:_.scrollIntoView)==null||k.call(_,{block:"nearest"})})},[p,f,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),ze(()=>{if(!a)return u.registerOption(r,m)},[m,r,a]);let b=ae(_=>{var k;if(i)return _.preventDefault();u.onChange(o),l.mode===0&&(Wt(()=>u.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),C=ae(()=>{if(i)return u.goToOption(ct.Nothing);u.goToOption(ct.Specific,r)}),x=vx(),E=ae(_=>{x.update(_),!i&&(f||u.goToOption(ct.Specific,r,0))}),$=ae(_=>{x.wasMoved(_)&&(i||f||u.goToOption(ct.Specific,r,0))}),I=ae(_=>{x.wasMoved(_)&&(i||f&&u.goToOption(ct.Nothing))}),L=ce(()=>({active:f,focus:f,selected:d,disabled:i,selectedOption:d&&a}),[f,d,i,a]),P=a?{}:{id:r,ref:w,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:b,onFocus:C,onPointerEnter:E,onMouseEnter:E,onPointerMove:$,onMouseMove:$,onPointerLeave:I,onMouseLeave:I},S=gt();return!d&&a?null:S({ourProps:P,theirProps:s,slot:L,defaultTag:K3,name:"Listbox.Option"})}let J3=Be;function Q3(e,t){let{options:n,placeholder:r,...i}=e,o={ref:Et(t)},s=So("ListboxSelectedOption"),a=ce(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=gt();return Z.createElement(o0.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:Z.createElement(Z.Fragment,null,r&&l?r:n)},slot:a,defaultTag:J3,name:"ListboxSelectedOption"}))}let e5=lt(W3),s0=lt(z3),t5=Z2,a0=lt(Z3),l0=lt(X3),n5=lt(Q3),r5=Object.assign(e5,{Button:s0,Label:t5,Options:a0,Option:l0,SelectedOption:n5}),Kt=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Xs(e){return c(i0,Mr(e,1))}class Js extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Qs(e){return c(i0.Panel,Mr(e,1))}class ea extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function ta(e){return c(I3,Mr(e,1))}function na(e,t){let n;return c("svg",g(y([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",v.Children.toArray(Array.from(n))])])))}function i5(e,t){let n,r,i,o,s;return Xs(y([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ta(fe(new ea(2,["fixed inset-0 bg-gray-500/50"]))),c("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Qs(fe(new Js(2,[[c("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",g(y([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),c("button",g(y([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[na(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),c("div",g(y([["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",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function ra(e){return c("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function ia(e){return c("span",{className:"text-sm font-normal pt-2",children:e})}function to(e,t){return c("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white",onClick:n=>{t()},type:"button",children:v.Children.toArray([e])})}function o5(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([["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",v.Children.toArray(Array.from(n))])])))}function u0(){let e,t,n;return c("div",g(y([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[o5(20,20),c("div",g(y([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[c("div",g(y([["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",v.Children.toArray(Array.from(t))])])))],["children",v.Children.toArray(Array.from(e))])])))}function c0(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([(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",v.Children.toArray(Array.from(n))])])))}function d0(e){let t,n;return c("div",g(y([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[c0(16,15),c("div",g(y([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[c("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}function oa(e,t){let n;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=y([c("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",v.Children.toArray(Array.from(n))])])))}class ti extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function f0(e){return c(r5,Mr(e,1))}class ws extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function m0(e){return c(s0,Mr(e,1))}class h0 extends K{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function p0(e,t){return c(a0,Mr(e,1),...t)}class pn extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function g0(e){return c(l0,Mr(e,1))}function y0(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([["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",v.Children.toArray(Array.from(n))])])))}class Pi extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function Li(e,t,n,r,i,o,s,a,l){let u,f,d,p,h,m,w;const b=i.fields[0],C=af(kt(x=>x[1].fields[0],Qp(x=>Cf(x.fields[0],b),r)));return c("div",g(y([["key",et(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(f=[c("div",g(ee(T(()=>B(A(["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`]),T(()=>{let x;return A((x=ee(T(()=>B(A(c("div",{className:"text-sm font-medium leading-tight",children:Gm(e)})),T(()=>A(t?c("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):Ce()))))),["children",v.Children.toArray(Array.from(x))]))}))))))],["children",v.Children.toArray(Array.from(f))])]))),c("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[oa(16,12)],["children",v.Children.toArray(Array.from(d))])]))),c("div",g(y([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[f0(y([new ti(0,[C]),new ti(1,[x=>{$r(E=>{s(E[0])},Es(As(E=>E[1].fields[0]===x?te(E[2],new En(0,[])):!1,b)))}]),new ti(2,[[c("div",g(y([["className","relative w-full"],(h=[m0(ee(T(()=>{let x;return B(A(new ws(0,[`${x=t&&n,x&&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`])),T(()=>{let E;return A(new ws(1,[[c("span",g(ee(T(()=>{let $;const I=t&&n;return $=r!=null?[C,""]:I?["Select a field","text-red-900"]:["Select a field","text-gray-500"],B(A(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",$[0]])))})))),c("span",g(y([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[y0(20,20)],["children",v.Children.toArray(Array.from(E))])])))]]))}))}))),p0(ee(T(()=>A(new h0(`z-10 absolute ${o.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`)))),ee(T(()=>$s(x=>{const E=x[2],$=x[1].fields[0];return A(g0(y([new pn(0,[cn(x[0].fields[0])]),new pn(1,[$]),new pn(2,[te(E,new En(1,[]))]),new pn(3,["relative select-none"]),new pn(4,[I=>[c("span",{className:"px-4 py-2 block truncate "+(E.tag===0?I.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:$})]])])))},b))))],["children",v.Children.toArray(Array.from(h))])])))]])]))],["children",v.Children.toArray(Array.from(p))])]))),c("div",g(y([(m="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",m]),(w=[c("button",g(ee(T(()=>B(A(["children","Clear"]),T(()=>B(a==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer"]),T(()=>{const x=a;if(x==null)return ht();{const E=x;return A(["onClick",$=>{E()}])}})))))))),c("button",g(ee(T(()=>B(A(["children","Preview"]),T(()=>B(l==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer"]),T(()=>{const x=l;if(x==null)return ht();{const E=x;return A(["onClick",$=>{E()}])}}))))))))],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(u))])])))}function w0(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([["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",v.Children.toArray(Array.from(n))])])))}function du(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([(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",v.Children.toArray(Array.from(n))])])))}function v0(e){let t,n,r;return c("div",g(y([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[c("span",g(y([["className","text-emerald-700"],(n=[du(20,20)],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[c("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}function fu(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([(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",v.Children.toArray(Array.from(n))])])))}function s5(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function a5(e){return e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function b0(e){return a5(s5(Zp(e," ","")))}function l5(e,t){let n,r,i,o,s,a,l;return c("div",g(y([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[c("div",g(y([(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]),(i=[c("div",g(y([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[c("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${Gm(e)}”`})],["children",v.Children.toArray(Array.from(o))])]))),c("div",g(y([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[c("div",g(y([["className","self-stretch flex-col justify-center items-start flex"],(a=xf((u,f)=>c("div",g(ee(T(()=>B(A(["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`]),T(()=>{let d;return A((d=ee(T(()=>{const p=so(f);return A(p?c("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):c("div",g(ee(T(()=>B(A(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),T(()=>e.tag===3?A(["children",b0(f)]):A(["children",f]))))))))})),["children",v.Children.toArray(Array.from(d))]))})))))),t),["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(s))])]))),c("div",g(y([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[c("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(n))])])))}function u5(e){let t,n,r;const i=e.back,o=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let u;const f=Z_(a,l);u=Dr(()=>Ir(()=>f,(E,$)=>K_(a,s,E,$),(E,$)=>{}),void 0,void 0);const d=u[0],p=u[1],h=v.useState(!1),m=h[1],w=v.useState(!1),b=w[0],C=E=>{if(q_(d)(E))return()=>{p(new or(1,[E]))}},x=E=>{if(Y_(d,E))return()=>{p(new or(2,[E]))}};return c("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[i5(h[0],()=>{m(!1)}),ra("Map fields"),ia("Match the fields from your CSV to the corresponding destination fields."),c("div",g(y([["className","flex flex-row pt-3 gap-2"],(n=[to("What is mapping and why is it important?",()=>{m(!0)})],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(r=ee(T(()=>{let E;return B(A(c("div",g(y([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(E=ee(T(()=>B(l==null?A(u0()):A(Ce()),T(()=>B(b&&d.Status.tag===0?A(d0("Some required fields are incomplete. Fill in all required fields to continue.")):A(Ce()),T(()=>{let $,I,L,P,S,_,k,N;return A(c("div",g(y([["className","flex-col justify-start items-start inline-flex overflow-hidden"],($=[c("div",g(y([(I="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",I]),(L=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(P=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",g(ee(T(()=>B(A(["className",`${d.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`]),T(()=>{let D;return A((D=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",v.Children.toArray(Array.from(D))]))}))))))],["children",v.Children.toArray(Array.from(P))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(S=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),c("div",g(y([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(_=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of ${d.NumberOfIncomingFields} used`})],["children",v.Children.toArray(Array.from(_))])])))],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(L))])]))),c("div",g(y([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[c("div",g(fe((N=ee(T(()=>B(A(Li(new _e(0,[]),!0,b,d.FirstName.ColumnIndex,d.FirstName.IncomingFields,new Pi(0,[]),D=>{let O;p((O=[new _e(0,[]),D],new or(0,[O[0],O[1]])))},C(new _e(0,[])),x(new _e(0,[])))),T(()=>B(A(Li(new _e(1,[]),!0,b,d.LastName.ColumnIndex,d.LastName.IncomingFields,new Pi(0,[]),D=>{let O;p((O=[new _e(1,[]),D],new or(0,[O[0],O[1]])))},C(new _e(1,[])),x(new _e(1,[])))),T(()=>B(A(Li(new _e(2,[]),!0,b,d.Email.ColumnIndex,d.Email.IncomingFields,new Pi(0,[]),D=>{let O;p((O=[new _e(2,[]),D],new or(0,[O[0],O[1]])))},C(new _e(2,[])),x(new _e(2,[])))),T(()=>B(A(Li(new _e(3,[]),!1,b,d.MobilePhone.ColumnIndex,d.MobilePhone.IncomingFields,new Pi(0,[]),D=>{let O;p((O=[new _e(3,[]),D],new or(0,[O[0],O[1]])))},C(new _e(3,[])),x(new _e(3,[])))),T(()=>B(A(Li(new _e(4,[]),!1,b,d.EmploymentBasis.ColumnIndex,d.EmploymentBasis.IncomingFields,new Pi(1,[]),D=>{let O;p((O=[new _e(4,[]),D],new or(0,[O[0],O[1]])))},C(new _e(4,[])),x(new _e(4,[])))),T(()=>{let D,O,z,me,q,G;return B(d.NumberOfIncomingFieldsDiscarded===0?A(Ce()):A(c("div",g(y([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(D=[c("div",g(y([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(O=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(z=[w0(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",v.Children.toArray(Array.from(z))])]))),c("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(me=[oa(16,12)],["children",v.Children.toArray(Array.from(me))])]))),c("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(q=[c("div",g(y([["className","w-[218px] pl-3 items-center inline-flex"],(G=[c("div",g(ee(T(()=>B(A(["className","text-gray-500 text-sm font-medium"]),T(()=>{const F=d.NumberOfIncomingFieldsDiscarded|0;return A(F===1?["children","Remaining 1 unused field"]:["children",`Remaining ${F} unused fields`])}))))))],["children",v.Children.toArray(Array.from(G))])])))],["children",v.Children.toArray(Array.from(q))])])))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(D))])])))),T(()=>{let F;return A(c("div",g(y([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(F=ee(T(()=>B(d.NumberOfDestinationFieldsMapped===5?A(v0("All destination fields have been mapped. You’re good to go.")):A(Ce()),T(()=>{let U,H,de,J,R,le,ne,ve,Re;return A(c("div",g(y([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(U=[c("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(H=[c("div",g(y([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(de=[c("div",g(y([["className","grow shrink basis-0 text-right"],(J=[c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),c("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",v.Children.toArray(Array.from(J))])])))],["children",v.Children.toArray(Array.from(de))])]))),c("div",g(y([["className","justify-start items-center gap-2 flex"],(R=[c("button",g(y([(le="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",le]),["onClick",re=>{i(d.Status)}],(ne=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(ne))])]))),c("button",g(y([(ve="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",ve]),["disabled",b&&d.Status.tag===0],["onClick",re=>{const we=d.Status;we.tag===0?w[1](!0):o([we.fields[0],we.fields[1]])}],(Re=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),fu(13,8)],["children",v.Children.toArray(Array.from(Re))])])))],["children",v.Children.toArray(Array.from(R))])])))],["children",v.Children.toArray(Array.from(H))])])))],["children",v.Children.toArray(Array.from(U))])]))))})))),["children",v.Children.toArray(Array.from(F))])]))))}))})))))))))))),["children",v.Children.toArray(Array.from(N))]))))],["children",v.Children.toArray(Array.from(k))])])))],["children",v.Children.toArray(Array.from($))])]))))})))))),["children",v.Children.toArray(Array.from(E))])])))),T(()=>{const $=d.Preview;return $==null?A(Ce()):A(l5($[0],$[1]))}))})),["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Oo extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class $a extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let sr=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}},Ro=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},c5=class extends Se{constructor(t,n,r,i,o,s,a){super(),this.IncomingValues=t,this.Selections=n,this.NumberOfIncomingValuesUsed=r|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class no extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const Un=[void 0];function _0(e,t,n){let r;const i=t.fields[0],o=Ut(s=>s,is(cc(n)));return new c5(Ge(s=>[s,hi(s,o,{Equals:te,GetHashCode:Jo})?new no(1,[]):new no(0,[])],i),n,o.length,qg(Fl(s=>{let a;return a=Ut(l=>l,s),a.length!==0},cc(n))),Bm(o,i,{Equals:te,GetHashCode:Jo}),(r=y(Ut(s=>s,is(He(s=>Ge(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),Te(r)?void 0:new F_(ue(r),Fn(Ne(r)))),e)}function d5(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>hi(Tl(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:er}))}function f5(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=d5(e,o);return!br(te,s,Ce())&&s.length===0?Un:(r=!0,Ge(a=>a,s))};n=[Xr([[new st(0,[]),i(new st(0,[]))],[new st(1,[]),i(new st(1,[]))],[new st(2,[]),i(new st(2,[]))],[new st(3,[]),i(new st(3,[]))]],{Compare:wt}),r]}else{const r=t,i=Xr(Ge(o=>[o[0],Ge(s=>s[1],hg(o[1],{Compare:El}))],T_(o=>o[0],is([r.Tail,[r.Head]]),{Equals:te,GetHashCode:Jo})),{Compare:wt});n=[Xr([[new st(0,[]),rt(hn(i,new st(0,[])),Un)],[new st(1,[]),rt(hn(i,new st(1,[])),Un)],[new st(2,[]),rt(hn(i,new st(2,[])),Un)],[new st(3,[]),rt(hn(i,new st(3,[])),Un)]],{Compare:wt}),!1]}return[_0(n[1],e,n[0]),Y()]}function x0(e,t){const n=_r(e.Selections,t);let r;switch(!br(te,n,Ce())&&n.length===1&&pe(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function C0(e,t){let n;return e.DiscardedValues.length>0?(n=_r(e.Selections,t),!n.some(r=>r==null)):!1}function m5(e,t,n){const r=_r(e.Selections,t);return!br(te,r,Ce())&&r.length===1?!1:hi(n,r,{Equals:te,GetHashCode:Xt})}function h5(e,t,n,r){return!te(n,r)&&e.IncomingValues.some(i=>te(i[0],r)?te(i[1],new no(0,[])):!1)?hi(n,_r(e.Selections,t),{Equals:te,GetHashCode:Xt}):!1}function p5(e,t,n){let r,i;const o=m=>_0(n.Prefilled,e,m);let s,a,l,u,f,d,p,h;switch(t.tag){case 1:{x0(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{m5(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],f=t.fields[1]):s=4;break}case 3:{h5(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,d=t.fields[0],p=t.fields[1],h=t.fields[2]):s=4;break}default:C0(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(To(a,m=>kt(w=>_f(w,Un),m),n.Selections)),Y()];case 1:return[o(To(l,m=>kt(w=>Un,m),n.Selections)),Y()];case 2:return[o(To(u,(r=(i=[f],m=>Bm(i,m,{Equals:te,GetHashCode:Xt})),m=>kt(r,m)),n.Selections)),Y()];case 3:return[o(To(d,m=>kt(w=>Ge(b=>te(b,p)?h:b,w),m),n.Selections)),Y()];default:return[n,Y()]}}function g5(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",r]),["fill","currentColor"]])))),["children",v.Children.toArray(Array.from(n))])])))}function y5(e,t,n,r,i,o,s){let a,l,u,f,d,p;return c("div",g(y([["key",et(e)],["className"," pr-3 py-2 justify-start items-start gap-2 inline-flex"],(a=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[c("div",g(y([["className",_t(" ",ee(T(()=>B(br(te,t,Un)?A("bg-gray-50 border-gray-200 text-gray-500"):A("bg-emerald-50 border-emerald-200 text-emerald-700"),T(()=>A("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(u=[c("div",{className:"text-sm font-medium leading-tight",children:Um(e)})],["children",v.Children.toArray(Array.from(u))])])))],["children",v.Children.toArray(Array.from(l))])]))),c("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[oa(16,12)],["children",v.Children.toArray(Array.from(f))])]))),c("div",g(y([["className","px-3 justify-start items-center gap-2 flex flex-col"],(d=[c("div",g(fe((p=ee(T(()=>He(h=>{let m,w,b;return c("div",g(y([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(m=[c("div",g(y([["className","justify-start items-end gap-2 flex flex-col w-[206px]"],(w=ee(T(()=>B(A(f0(ee(T(()=>{const C=af(kt(x=>x.fields[0],h));return B(A(new ti(0,[C])),T(()=>B(A(new ti(1,[x=>{$r(E=>{s([h,E[0]])},Es(As(E=>E[0].fields[0]===x?te(E[1],new no(0,[])):!1,n)))}])),T(()=>{let x,E;return A(new ti(2,[[c("div",g(y([["className","relative w-full"],(x=[m0(y([new ws(0,["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"]),new ws(1,[[c("span",g(ee(T(()=>{const $=h!=null?[C,""]:["Select a value","text-gray-500"];return B(A(["className",`${$[1]} col-start-1 row-start-1 truncate pr-6`]),T(()=>A(["children",$[0]])))})))),c("span",g(y([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[y0(20,20)],["children",v.Children.toArray(Array.from(E))])])))]])])),p0(fe(new h0("z-10 absolute mt-0.5 max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm")),ee(T(()=>$s($=>{const I=$[1],L=$[0].fields[0];return A(g0(y([new pn(0,[L]),new pn(1,[L]),new pn(2,[te(I,new no(1,[]))&&L!==C]),new pn(3,["relative select-none"]),new pn(4,[P=>[c("span",{className:_t(" ",ee(T(()=>B(A("px-4 py-2 block truncate"),T(()=>{const S=P.active;let _;switch(P.selected?S?_=2:_=1:I.tag===1?_=0:S?_=2:_=1,_){case 0:return A("text-gray-700 opacity-50 cursor-not-allowed");case 1:return A("text-gray-700");default:return A("bg-primary-600 text-white")}}))))),children:L})]])])))},n))))],["children",v.Children.toArray(Array.from(x))])])))]]))}))))})))),T(()=>te(h,cg(t))?A(c("button",g(ee(T(()=>{let C;return B(A((C=[g5(14,14),c("span",{children:["Map additional value"]})],["children",v.Children.toArray(Array.from(C))])),T(()=>B(A(["className",_t(" ",ee(T(()=>B(A("justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),T(()=>i==null?A("opacity-50 cursor-not-allowed underline"):A("cursor-pointer underline"))))))]),T(()=>{const x=i;if(x==null)return ht();{const E=x;return A(["onClick",$=>{E()}])}}))))}))))):ht())))),["children",v.Children.toArray(Array.from(w))])]))),c("div",g(y([["className","text-gray-500 text-xs font-normal mt-2 pl-1"],(b=ee(T(()=>{if(o!=null){const C=o;return A(c("button",{children:"Remove",className:"cursor-pointer underline",onClick:x=>{C(h)}}))}else return A(c("button",g(ee(T(()=>B(A(["children","Clear"]),T(()=>B(r==null?A(["className","opacity-50 cursor-not-allowed underline"]):A(["className","cursor-pointer underline"]),T(()=>{const C=r;if(C==null)return ht();{const x=C;return A(["onClick",E=>{x()}])}})))))))))})),["children",v.Children.toArray(Array.from(b))])])))],["children",v.Children.toArray(Array.from(m))])])))},t))),["children",v.Children.toArray(Array.from(p))]))))],["children",v.Children.toArray(Array.from(d))])])))],["children",v.Children.toArray(Array.from(a))])])))}function w5(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=f5(s,a);l=Dr(()=>Ir(()=>u,(m,w)=>p5(s,m,w),(m,w)=>{}),void 0,void 0);const f=l[0],d=l[1],p=v.useState(!1),h=p[0];return c("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[ra("Map values - Employment basis"),ia("Match the values from your CSV to the corresponding destination values."),c("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(n=[c("div",g(y([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=ee(T(()=>B(f.Prefilled?A(u0()):A(Ce()),T(()=>B(h&&f.ValidatedMappings==null?A(d0("Map at least one value to continue.")):A(Ce()),T(()=>{let m,w,b,C,x,E,$,I,L;return A(c("div",g(y([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(m=[c("div",g(y([(w="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",w]),(b=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(C=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",g(y([["className",_t(" ",ee(T(()=>B(f.NumberOfDestinationValuesMapped===4?A("bg-emerald-100 text-emerald-800"):A("bg-blue-100 text-blue-800"),T(()=>A("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(x=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${f.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",v.Children.toArray(Array.from(x))])])))],["children",v.Children.toArray(Array.from(C))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),c("div",g(y([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],($=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${f.NumberOfIncomingValuesUsed} of ${f.IncomingValues.length} used`})],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(E))])])))],["children",v.Children.toArray(Array.from(b))])]))),c("div",g(y([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(I=[c("div",g(fe((L=ee(T(()=>B($s(P=>{let S,_,k;const N=P[0];return A(y5(N,P[1],f.IncomingValues,(S=N,x0(f,S)?()=>{d(new Ro(1,[S]))}:void 0),(_=N,C0(f,_)?()=>{d(new Ro(0,[_]))}:void 0),(k=N,_r(f.Selections,k).length>1?D=>{let O;d((O=[k,D],new Ro(2,[O[0],O[1]])))}:void 0),D=>{let O;d((O=[N,D[0],D[1]],new Ro(3,[O[0],O[1],O[2]])))}))},Ky(f.Selections)),T(()=>{let P,S,_,k,N,D;return B(f.DiscardedValues.length===0?A(Ce()):A(c("div",g(y([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(P=[c("div",g(y([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(S=[c("div",g(y([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[w0(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",v.Children.toArray(Array.from(_))])]))),c("div",g(y([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[oa(16,12)],["children",v.Children.toArray(Array.from(k))])]))),c("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(N=[c("div",g(y([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(D=ee(T(()=>B(A(c("div",g(ee(T(()=>B(A(["className","font-medium"]),T(()=>{const O=f.DiscardedValues.length|0;return A(O===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${O} unused fields:`])}))))))),T(()=>{let O;return A(c("ul",g(y([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(O=Ge(z=>c("li",{children:[z]}),is(Zn(T(()=>B(A(Ge(z=>z.fields[0],f.DiscardedValues.slice(void 0,8))),T(()=>f.DiscardedValues.length>8?A(["... and 0 other values"]):ht())))))),["children",v.Children.toArray(Array.from(O))])]))))})))),["children",v.Children.toArray(Array.from(D))])])))],["children",v.Children.toArray(Array.from(N))])])))],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(P))])])))),T(()=>{let O;return A(c("div",g(y([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(O=ee(T(()=>B(f.DiscardedValues.length===0?A(v0("All incoming values have been mapped.")):A(Ce()),T(()=>{let z,me,q,G,F,U,H;return A(c("div",g(y([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(z=[c("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(me=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",g(y([["className","justify-start items-center gap-2 flex"],(q=[c("button",g(y([(G="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",G]),["onClick",de=>{i(f.ValidatedMappings)}],(F=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(F))])]))),c("button",g(y([(U="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",U]),["disabled",h&&f.ValidatedMappings==null],["onClick",de=>{const J=f.ValidatedMappings;J==null?p[1](!0):o(J)}],(H=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),fu(13,8)],["children",v.Children.toArray(Array.from(H))])])))],["children",v.Children.toArray(Array.from(q))])])))],["children",v.Children.toArray(Array.from(me))])])))],["children",v.Children.toArray(Array.from(z))])]))))})))),["children",v.Children.toArray(Array.from(O))])]))))}))})))),["children",v.Children.toArray(Array.from(L))]))))],["children",v.Children.toArray(Array.from(I))])])))],["children",v.Children.toArray(Array.from(m))])]))))})))))),["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class v5 extends Se{constructor(t,n,r,i,o,s,a,l,u){super(),this.RowNumber=t|0,this.FirstName=n,this.LastName=r,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.ErrorDetail=u}}function Fo(e){if(!so(e))return e}function b5(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],P_(n[1])]:void 0;return y(Ge(i=>{let o,s,a,l,u,f,d,p,h,m,w,b;const C=i.fields[0];return Xr(Ut(x=>x,[(o=Fo(pe(t.FirstName.fields[0],C)),o==null?void 0:["firstName",o]),(s=Fo(pe(t.LastName.fields[0],C)),s==null?void 0:["lastName",s]),(a=Fo(pe(t.Email.fields[0],C)),a==null?void 0:["email",a]),(l=(u=t.MobilePhone,u==null?void 0:(f=Fo(pe(u.fields[0],C)),f==null?void 0:b0(f))),l==null?void 0:["mobileNumber",l]),(d=(p=r,p==null?void 0:(h=p,m=(w=pe(h[0],C),b=Ce(),[Yy(h[1],w,new pt(()=>b,x=>{b=x})),b]),m[0]?m[1]:void 0)),d==null?void 0:["employmentBasis",d])]),{Compare:Tr})},e.fields[0]))}function _5(e,t,n,r){return Ae.Delay(()=>Ae.TryWith(Ae.Delay(()=>{let i,o,s;return Ae.ReturnFrom((i=new Cm(r!=null,Af((a,l)=>new xm(a,l),(o=[t,n,r],b5(o[0],o[1],o[2])))),s=e(i),Ae.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new M(1,[u.fields[0]]):new M(0,[gi(f=>{let d,p,h,m,w,b,C;const x=rt((d=Cg(S=>S.RowId===f.RowId,u.fields[0].Errors),d==null?void 0:Fn(d.FieldErrors)),[]),E=[hn(f.Data,"firstName"),!x.some(S=>S.PropName==="firstName")],$=[hn(f.Data,"lastName"),!x.some(S=>S.PropName==="lastName")],I=[hn(f.Data,"email"),!x.some(S=>S.PropName==="email")],L=[hn(f.Data,"mobileNumber"),!x.some(S=>S.PropName==="mobileNumber")],P=[hn(f.Data,"employmentBasis"),!x.some(S=>S.PropName==="employmentBasis")];return new v5(f.RowId+1,E,$,I,L,(p=P,[(h=(m=p[0],m==null?void 0:R_(m)),h==null?void 0:Um(h)),p[1]]),x.some(S=>S.Message.startsWith("Duplicate Email")),(w=x.filter(S=>!S.Message.startsWith("Duplicate Email")),w.length!==0),!br(te,x,Ce())&&x.length===0?void 0:!br(te,x,Ce())&&x.length===1?(b=pe(0,x).PropName,C=pe(0,x).Message,b==="firstName"?E[0]==null?"Missing first name":"Invalid first name":b==="lastName"?$[0]==null?"Missing last name":"Invalid last name":b==="email"?I[0]!=null?C.startsWith("Duplicate Email")?"Duplicate email":"Invalid email":"Missing email":b==="mobileNumber"?L[0]==null?"Missing mobile phone":"Invalid mobile phone":b==="employmentBasis"?P[0]==null?"Missing employment basis":"Invalid employment basis":"Invalid or missing field"):"Multiple invalid or missing fields")},i.Data)]),Ae.Return(l)})))}),i=>Ae.Return(new M(1,[et(i)]))))}let Bi=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage"]}},Ur=class extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class Vi extends Se{constructor(t,n,r,i,o,s,a,l,u,f,d,p,h){super(),this.Data=t,this.InviteTiming=n,this.DuplicateEmailCount=r|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfInvalidRows=o|0,this.NumberOfRows=s|0,this.NumberOfValidRows=a|0,this.ShowingOnlyRowsWithErrors=l,this.HasErrors=u,this.RowFrom=f|0,this.RowTo=d|0,this.Page=p,this.PageNo=h|0}}function x5(e){return[new Ur(0,[]),Yf(t=>{Zf(t)},e,void 0,t=>new Bi(0,[t]))]}function Po(e,t,n){const r=(e-1)*20|0,i=$g(r,e*20-1,n?Wn(o=>o.ErrorDetail!=null,t):t);if(Te(i))return[0,0,ft()];{const o=i;return[r+1,r+an(o),o]}}function S0(e){return e.PageNo>1}function E0(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function C5(e,t){const n=Wn(r=>r.ErrorDetail!=null,e.Data);return co(fe(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
|
|
50
|
-
`),
|
|
51
|
-
`;return t?`${o},${s},${a},${l},${u},${rt(i.EmploymentBasis[0],"")},${i.RowNumber}${f}`:`${o},${s},${a},${l},${u},${i.RowNumber}${f}`},n))}function S5(e,t,n){let r,i,o,s,a,l,u,f,d,p;switch(t.tag){case 1:{n.tag===1?(i=2,s=t.fields[0],a=n.fields[0]):(i=6,p=n);break}case 2:{n.tag===1?(r=n.fields[0],r.HasErrors&&r.ShowingOnlyRowsWithErrors!==t.fields[0]?(i=3,l=n.fields[0],u=t.fields[0]):(i=6,p=n)):(i=6,p=n);break}case 3:{n.tag===1&&E0(n.fields[0])?(i=4,f=n.fields[0]):(i=6,p=n);break}case 4:{n.tag===1&&S0(n.fields[0])?(i=5,d=n.fields[0]):(i=6,p=n);break}default:t.fields[0].tag===1?n.tag===0?i=1:(i=6,p=n):n.tag===0?(i=0,o=t.fields[0].fields[0]):(i=6,p=n)}switch(i){case 0:{let h;const m=[o,!1];return h=Po(1,m[0],m[1]),[new Ur(1,[new Vi(o,new Pt(1,[]),an(Wn(w=>w.HasDuplicateEmailError,o)),an(Wn(w=>w.HasErrorOtherThanDuplicateEmail,o)),an(Wn(w=>w.ErrorDetail!=null,o)),an(o),an(Wn(w=>w.ErrorDetail==null,o)),!1,kg(w=>w.ErrorDetail!=null,o),h[0],h[1],h[2],1)]),Y()]}case 1:return[n,qf(h=>{e()})];case 2:return[new Ur(1,[new Vi(a.Data,s,a.DuplicateEmailCount,a.NumberOfRowsWithErrorsOtherThanDuplicateEmail,a.NumberOfInvalidRows,a.NumberOfRows,a.NumberOfValidRows,a.ShowingOnlyRowsWithErrors,a.HasErrors,a.RowFrom,a.RowTo,a.Page,a.PageNo)]),Y()];case 3:{let h;const m=[l.Data,u];return h=Po(1,m[0],m[1]),[new Ur(1,[new Vi(l.Data,l.InviteTiming,l.DuplicateEmailCount,l.NumberOfRowsWithErrorsOtherThanDuplicateEmail,l.NumberOfInvalidRows,l.NumberOfRows,l.NumberOfValidRows,u,l.HasErrors,h[0],h[1],h[2],1)]),Y()]}case 4:{const h=f.PageNo+1|0;let m;const w=[f.Data,f.ShowingOnlyRowsWithErrors];return m=Po(h,w[0],w[1]),[new Ur(1,[new Vi(f.Data,f.InviteTiming,f.DuplicateEmailCount,f.NumberOfRowsWithErrorsOtherThanDuplicateEmail,f.NumberOfInvalidRows,f.NumberOfRows,f.NumberOfValidRows,f.ShowingOnlyRowsWithErrors,f.HasErrors,m[0],m[1],m[2],h)]),Y()]}case 5:{const h=d.PageNo-1|0;let m;const w=[d.Data,d.ShowingOnlyRowsWithErrors];return m=Po(h,w[0],w[1]),[new Ur(1,[new Vi(d.Data,d.InviteTiming,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfValidRows,d.ShowingOnlyRowsWithErrors,d.HasErrors,m[0],m[1],m[2],h)]),Y()]}default:return[p,Y()]}}function A0(e,t){let n,r,i;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([c("path",g(y([(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"]]))),c("path",g(y([(i="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",i]),["fill","#2E66F7"]])))]),["children",v.Children.toArray(Array.from(n))])])))}function k0(e,t,n){let r,i,o,s,a,l,u,f,d,p,h,m,w,b,C,x,E,$,I,L,P,S;return Xs(y([new Kt(3,[t]),new Kt(4,[n]),new Kt(5,[[ta(fe(new ea(2,["fixed inset-0 bg-gray-500/50"]))),c("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Qs(fe(new Js(2,[[c("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(i=[c("div",g(y([["className","flex flex-row justify-between"],(o=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),c("button",g(y([["onClick",_=>{n()}],["type","button"],["className","text-gray-600"],(s=[na(24,24)],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])]))),c("div",g(y([["className","text-gray-600 text-sm pt-6"],(a=[c("span",{children:"Fields marked with "}),c("span",{className:"text-red-600",children:"*"}),c("span",g(fe((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",v.Children.toArray(Array.from(a))])]))),c("div",g(y([["className","grid grid-cols-2 mt-3"],(u=[c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),c("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(f=[c("span",{children:"First name "}),c("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(f))])]))),c("div",g(fe((d=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",v.Children.toArray(Array.from(p))])])))],["children",v.Children.toArray(Array.from(d))])))),c("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[c("span",{children:"Last name "}),c("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(h))])]))),c("div",g(fe((m=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(w=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(m))])))),c("div",g(y([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[c("span",{children:"Email "}),c("span",{className:"text-red-600",children:"*"})],["children",v.Children.toArray(Array.from(b))])]))),c("div",g(fe((C=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(x=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",v.Children.toArray(Array.from(x))])])))],["children",v.Children.toArray(Array.from(C))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),c("div",g(fe((E=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],($=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"+61432368712"})],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(E))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),c("div",g(fe((I=[c("div",g(y([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(L=[c("span",{children:"One of the following options:"}),c("br",{}),c("ul",g(y([["className","italic list-disc px-3"],(P=[c("li",{children:"Full-time"}),c("li",{children:"Part-time"}),c("li",{children:"Labour hire"}),c("li",{children:"Casual"})],["children",v.Children.toArray(Array.from(P))])])))],["children",v.Children.toArray(Array.from(L))])])))],["children",v.Children.toArray(Array.from(I))])))),c("a",g(y([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(S=[c("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),A0(16,16)],["children",v.Children.toArray(Array.from(S))])])))],["children",v.Children.toArray(Array.from(u))])])))],["children",v.Children.toArray(Array.from(i))])])))]])))],["children",v.Children.toArray(Array.from(r))])])))]])]))}function E5(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m;return Xs(y([new Kt(3,[e]),new Kt(4,[t]),new Kt(5,[[ta(fe(new ea(2,["fixed inset-0 bg-gray-500/50"]))),c("div",g(y([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Qs(fe(new Js(2,[[c("div",g(y([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",g(y([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),c("button",g(y([["onClick",w=>{t()}],["type","button"],["className","text-gray-600"],(o=[na(24,24)],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(i))])]))),c("div",g(y([["className","text-gray-500 text-sm font-normal pt-6"],(s=[c("p",g(fe((a=[c("span",{children:["Workplace benefits is a"]}),c("span",{className:"font-semibold",children:" free platform "}),(l="for your entire workforce – including full-time, part-time, casual employees, and volunteers. It allows you to share company benefits while supporting employee wellbeing.",c("span",{children:[l]}))],["children",v.Children.toArray(Array.from(a))])))),c("p",g(y([["className","pt-3"],(u=[(f="With workplace benefits, your people can access everyday savings from top Australian brands like Woolworths, Kmart, Harvey Norman, The Iconic, and more – all through the ",c("span",{children:[f]})),c("span",{className:"font-semibold",children:" Flare App"}),c("span",{children:["."]})],["children",v.Children.toArray(Array.from(u))])]))),c("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),c("ul",g(y([["className","list-inside list-disc pt-3"],(d=[c("li",g(fe((p=[c("span",{className:"font-semibold",children:"Savings "}),c("span",{children:["on essentials like food, fuel, and more."]})],["children",v.Children.toArray(Array.from(p))])))),c("li",g(y([["className","pt-2"],(h=[c("span",{className:"font-semibold",children:"Exclusive offers "}),c("span",{children:["from leading brands and retailers."]})],["children",v.Children.toArray(Array.from(h))])]))),c("li",g(y([["className","pt-2"],(m=[c("span",{className:"font-semibold",children:"Tax savings "}),c("span",{children:["with salary packaging."]})],["children",v.Children.toArray(Array.from(m))])])))],["children",v.Children.toArray(Array.from(d))])])))],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function A5(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",g(y([(r="M17.8008 14.5263L11.4838 2.88031C11.328 2.59137 11.0904 2.35483 10.8008 2.20031C10.4074 1.98974 9.94665 1.94305 9.51893 2.07039C9.0912 2.19773 8.73106 2.48881 8.51683 2.88031L2.20083 14.5263C2.06272 14.7826 1.99367 15.0704 2.00046 15.3614C2.00724 15.6525 2.08964 15.9368 2.23954 16.1863C2.38944 16.4359 2.60169 16.6422 2.85544 16.7849C3.10919 16.9276 3.39571 17.0018 3.68683 17.0003H16.3148C16.5939 17.0003 16.8686 16.9316 17.1148 16.8003C17.3099 16.6968 17.4825 16.5556 17.6228 16.3851C17.763 16.2145 17.8681 16.0178 17.932 15.8064C17.9958 15.595 18.0172 15.373 17.9949 15.1533C17.9726 14.9336 17.9069 14.7205 17.8018 14.5263H17.8008ZM10.0008 15.0003C9.80305 15.0003 9.60971 14.9417 9.44526 14.8318C9.28081 14.7219 9.15264 14.5657 9.07695 14.383C9.00126 14.2003 8.98146 13.9992 9.02004 13.8052C9.05863 13.6112 9.15387 13.4331 9.29372 13.2932C9.43358 13.1533 9.61176 13.0581 9.80574 13.0195C9.99972 12.9809 10.2008 13.0007 10.3835 13.0764C10.5662 13.1521 10.7224 13.2803 10.8323 13.4447C10.9422 13.6092 11.0008 13.8025 11.0008 14.0003C11.0008 14.2655 10.8955 14.5199 10.7079 14.7074C10.5204 14.8949 10.266 15.0003 10.0008 15.0003ZM11.0008 11.5003C11.0008 11.6329 10.9482 11.7601 10.8544 11.8539C10.7606 11.9476 10.6334 12.0003 10.5008 12.0003H9.50083C9.36822 12.0003 9.24104 11.9476 9.14728 11.8539C9.05351 11.7601 9.00083 11.6329 9.00083 11.5003V7.50031C9.00083 7.3677 9.05351 7.24052 9.14728 7.14675C9.24104 7.05298 9.36822 7.00031 9.50083 7.00031H10.5008C10.6334 7.00031 10.7606 7.05298 10.8544 7.14675C10.9482 7.24052 11.0008 7.3677 11.0008 7.50031V11.5003Z",["d",r]),["fill","#FBBF24"]])))),["children",v.Children.toArray(Array.from(n))])])))}const k5=e=>c("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{id:"Group 67"},c("path",{id:"Vector",d:"M24.2605 17.5933C17.766 17.5933 12.5005 22.9015 12.5005 29.4469V53.1561H36.0205V29.4469C36.0205 22.8995 30.7549 17.5933 24.2605 17.5933Z",fill:"url(#paint0_linear_4467_4223)"}),c("g",{id:"Group",opacity:.95},c("path",{id:"Vector_2",d:"M35.76 35.646C29.2655 35.646 24 40.9115 24 47.406V53.1558H47.52V47.406C47.52 40.9115 42.2544 35.646 35.76 35.646Z",fill:"url(#paint1_linear_4467_4223)"})),c("path",{id:"Vector_3",opacity:.95,d:"M12.24 35.646C5.74553 35.646 0.47998 40.9115 0.47998 47.406V53.1558H24V47.406C24 40.9115 18.7344 35.646 12.24 35.646Z",fill:"url(#paint2_linear_4467_4223)"}),c("path",{id:"Vector_4",d:"M24.1303 16.8098C28.5328 16.8098 32.1018 13.2408 32.1018 8.83827C32.1018 4.43569 28.5328 0.866699 24.1303 0.866699C19.7277 0.866699 16.1587 4.43569 16.1587 8.83827C16.1587 13.2408 19.7277 16.8098 24.1303 16.8098Z",fill:"#0095F2"}),c("path",{id:"Vector_5",opacity:.93,d:"M13.1537 35.1253C17.5563 35.1253 21.1253 31.5563 21.1253 27.1537C21.1253 22.7511 17.5563 19.1821 13.1537 19.1821C8.75112 19.1821 5.18213 22.7511 5.18213 27.1537C5.18213 31.5563 8.75112 35.1253 13.1537 35.1253Z",fill:"#FF876F"}),c("path",{id:"Vector_6",opacity:.93,d:"M35.89 35.1253C40.2926 35.1253 43.8616 31.5563 43.8616 27.1537C43.8616 22.7511 40.2926 19.1821 35.89 19.1821C31.4875 19.1821 27.9185 22.7511 27.9185 27.1537C27.9185 31.5563 31.4875 35.1253 35.89 35.1253Z",fill:"#A650FF"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#161E37"}),c("stop",{offset:.11,stopColor:"#172243"}),c("stop",{offset:.31,stopColor:"#1B2E62"}),c("stop",{offset:.57,stopColor:"#214196"}),c("stop",{offset:.89,stopColor:"#2A5CDD"}),c("stop",{offset:1,stopColor:"#2E66F7"})),c("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{offset:.11,stopColor:"#FF876F"}),c("stop",{offset:.99,stopColor:"#A650FF"})),c("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#0095F2"}),c("stop",{offset:.29,stopColor:"#307CF6"}),c("stop",{offset:.61,stopColor:"#6163FB"}),c("stop",{offset:.86,stopColor:"#7F54FD"}),c("stop",{offset:1,stopColor:"#8B4FFF"}))));function N5(e,t){return v.createElement(e,g(t))}function T5(e){return N5(k5,e)}function Vr(e,t){let n;return c("div",g(y([["className",_t(" ",["animate-pulse w-full relative",e,t])],(n=[c("div",{className:_t(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",v.Children.toArray(Array.from(n))])])))}function $5(){let e,t,n,r,i,o,s,a,l,u,f,d;return c("div",g(y([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[c("div",g(y([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[c("div",g(y([["className","justify-start items-center gap-2 inline-flex"],(n=[c("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),c("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[c("div",g(y([["className","w-[1030px]"],(i=ee(T(()=>{let p,h,m,w;return B(A(c("div",g(y([["className","bg-gray-100 flex"],(p=[c("div",g(y([["className","px-3 py-2.5 text-left w-[128px]"],(h=[Vr("h-5","w-full")],["children",v.Children.toArray(Array.from(h))])]))),c("div",g(y([["className","px-3 py-2.5 text-left w-[148px]"],(m=[Vr("h-5","w-full")],["children",v.Children.toArray(Array.from(m))])]))),c("div",g(y([["className","px-3 py-2.5 text-left flex-1"],(w=[Vr("h-5","w-full")],["children",v.Children.toArray(Array.from(w))])])))],["children",v.Children.toArray(Array.from(p))])])))),T(()=>He(b=>c("div",g(ee(T(()=>B(b%2===1?A(["className","bg-white border-t border-gray-200 flex"]):A(["className","bg-gray-50 border-t border-gray-200 flex"]),T(()=>{let C,x,E,$;return A((C=[c("div",g(y([["className","px-3 py-2.5 text-left w-[128px]"],(x=[Vr("h-5","w-full")],["children",v.Children.toArray(Array.from(x))])]))),c("div",g(y([["className","px-3 py-2.5 text-left w-[148px]"],(E=[Vr("h-5","w-full")],["children",v.Children.toArray(Array.from(E))])]))),c("div",g(y([["className","px-3 py-2.5 text-left flex-1"],($=[Vr("h-5","w-full")],["children",v.Children.toArray(Array.from($))])])))],["children",v.Children.toArray(Array.from(C))]))})))))),ee(Bl(0,1,9)))))})),["children",v.Children.toArray(Array.from(i))])])))],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])]))),c("div",g(y([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[c("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",g(y([["className","justify-start items-center gap-2 flex"],(a=[c("button",g(y([(l="px-[13px] py-[9px] bg-white opacity-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex",["className",l]),["disabled",!0],(u=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(u))])]))),c("button",g(y([(f="pl-[13px] pr-[11px] py-[9px] opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex",["className",f]),["disabled",!0],(d=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",v.Children.toArray(Array.from(d))])])))],["children",v.Children.toArray(Array.from(a))])])))],["children",v.Children.toArray(Array.from(s))])])))],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(e))])])))}function M5(e){const t=Ge(r=>r,Fn(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const I5=(()=>{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 D5(){window.location.replace(`${window.location.origin}/admin/app/oops`)}function O5(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasis,a=e.baseColumnMappings,l=e.dataRows,u=e.apiCallAsync;let f;const d=x5(()=>_5(u,l,a,s));f=Dr(()=>Ir(()=>d,(C,x)=>S5(()=>{D5()},C,x),(C,x)=>{}),void 0,void 0);const p=f[1],h=v.useState(!1),m=h[1],w=v.useState(!1),b=w[1];return c("div",g(y([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[k0(I5,h[0],()=>{m(!1)}),E5(w[0],()=>{b(!1)}),ra("Review"),ia("Preview your data and confirm that everything is mapped correctly."),c("div",g(y([["className","flex flex-row pt-3 gap-2"],(n=[to("What kind of data do I need?",()=>{m(!0)})],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","justify-start items-start gap-12 inline-flex"],(r=[c("div",g(ee(T(()=>B(A(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),T(()=>{let C,x,E;const $=f[0];if($.tag===1){const I=$.fields[0],L=k=>{p(new Bi(1,[k]))},P=k=>{p(new Bi(2,[k]))},S=E0(I)?k=>{p(new Bi(3,[]))}:void 0,_=S0(I)?k=>{p(new Bi(4,[]))}:void 0;return A((C=[c("div",g(y([["className","flex-col justify-start items-start gap-6 inline-flex"],(x=ee(T(()=>{let k,N,D,O,z,me,q,G;return B(I.HasErrors?A(c("div",g(y([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(k=[A5(20,20),c("div",g(y([["className","flex-col justify-start items-start gap-2 inline-flex"],(N=[c("div",g(ee(T(()=>B(A(["className","self-stretch text-amber-800 text-sm font-medium leading-tight"]),T(()=>{const F=I.DuplicateEmailCount>0,U=I.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0;let H;switch(F?U?H=1:H=0:U?H=0:H=1,H){case 0:return A(["children","We have found 1 issue"]);default:return A(["children","We have found 2 issues"])}})))))),c("ul",g(y([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(D=ee(T(()=>{let F;return B(I.DuplicateEmailCount>0?A((F=y([c("span",{children:["Your CSV contains "]}),c("span",{className:"font-medium",children:`${I.DuplicateEmailCount} rows with duplicate email addresses. `}),c("span",{children:["We’ll skip these rows during the import process."]})]),c("li",{children:v.Children.toArray(Array.from(F))}))):ht(),T(()=>{let U;return I.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?A((U=y([c("span",{children:["Your CSV contains "]}),c("span",{className:"font-medium",children:`${I.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows with some missing or incorrectly formatted data. `}),c("span",{children:["We’ll skip these rows during the import process."]})]),c("li",{children:v.Children.toArray(Array.from(U))}))):ht()}))})),["children",v.Children.toArray(Array.from(D))])]))),c("div",g(y([["className","px-2 py-1.5"],(O=[c("div",g(y([["className","text-amber-700 text-sm leading-tight"],(z=[c("span",{children:["You can download the "]}),c("span",{className:"font-medium",children:`${I.NumberOfInvalidRows} invalid rows `}),(me="along with their error details as a CSV file. To import the remaining users: correct the errors then re-import.",c("span",{children:[me]}))],["children",v.Children.toArray(Array.from(z))])])))],["children",v.Children.toArray(Array.from(O))])]))),c("div",g(y([["className","px-2 py-1.5"],(q=[c("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error CSV",href:M5((G=[I,s!=null],C5(G[0],G[1]))),download:"import_users_error_rows"})],["children",v.Children.toArray(Array.from(q))])])))],["children",v.Children.toArray(Array.from(N))])])))],["children",v.Children.toArray(Array.from(k))])])))):ht(),T(()=>{let F,U,H,de,J,R,le,ne,ve,Re,re,we,be,Ee;return B(A(c("div",g(y([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(F=[c("div",g(y([["className","justify-start items-center gap-2 inline-flex"],(U=[c("input",g(y([["type","checkbox"],["checked",I.ShowingOnlyRowsWithErrors],(H="appearance-none rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 forced-colors:appearance-auto",["className",H]),["onClick",j=>{P(!I.ShowingOnlyRowsWithErrors)}],["onKeyPress",j=>{j.preventDefault(),j.key==="Enter"&&P(!I.ShowingOnlyRowsWithErrors)}]]))),c("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",v.Children.toArray(Array.from(U))])]))),c("div",g(y([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(de=[c("div",g(fe((J=[c("div",g(y([["className","w-full max-h-[470px] overflow-auto"],(R=[c("table",g(y([["className","w-full divide-y divide-gray-300"],(le=[c("thead",g(y([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(ne=[(ve=ee(T(()=>B(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),T(()=>B(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),T(()=>{let j;return B(A(c("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(j=[c("span",{children:["First name "]}),c("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(j))])])))),T(()=>{let W;return B(A(c("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(W=[c("span",{children:["Last name "]}),c("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(W))])])))),T(()=>{let Q;return B(A(c("th",g(y([["scope","col"],["className","px-3 py-2.5 text-left"],(Q=[c("span",{children:["Email "]}),c("span",{className:"text-red-500",children:"*"})],["children",v.Children.toArray(Array.from(Q))])])))),T(()=>B(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),T(()=>s!=null?A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):ht()))))}))}))})))))),c("tr",{children:v.Children.toArray(Array.from(ve))}))],["children",v.Children.toArray(Array.from(ne))])]))),c("tbody",g(y([["className","divide-y divide-gray-200"],(Re=ee(T(()=>He(j=>c("tr",g(ee(T(()=>B(A(["key",j.RowNumber]),T(()=>{let W;return B((W=j.RowNumber%2|0,j.ErrorDetail==null?A(W===1?["className","bg-white"]:["className","bg-gray-50"]):A(["className","bg-amber-50"])),T(()=>{let Q;return A((Q=ee(T(()=>B(A(c("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:j.RowNumber})),T(()=>B(A(c("td",g(ee(T(()=>B(A(["className","whitespace-nowrap px-3 py-2.5"]),T(()=>{let ie,he;return j.ErrorDetail!=null?A((ie=[c("div",g(y([(he="text-center text-amber-800 text-xs font-medium h-5 px-2.5 py-0.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",he]),["children",V(j.ErrorDetail)]])))],["children",v.Children.toArray(Array.from(ie))])):ht()}))))))),T(()=>B(A(c("td",g(ee(T(()=>{let ie,he;const X=j.FirstName;return X[0]==null?ht():X[1]?(ie=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ie])))):(he=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",he]))))}))))),T(()=>B(A(c("td",g(ee(T(()=>{let ie,he;const X=j.LastName;return X[0]==null?ht():X[1]?(ie=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ie])))):(he=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",he]))))}))))),T(()=>B(A(c("td",g(ee(T(()=>{let ie,he;const X=j.Email;return X[0]==null?ht():X[1]?(ie=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ie])))):(he=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",he]))))}))))),T(()=>B(A(c("td",g(ee(T(()=>{let ie,he;const X=j.MobilePhone;return X[0]==null?ht():X[1]?(ie=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ie])))):(he=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",he]))))}))))),T(()=>s!=null?A(c("td",g(ee(T(()=>{let ie,he;const X=j.EmploymentBasis;return X[0]==null?ht():X[1]?(ie=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),T(()=>A(["children",ie])))):(he=X[0],B(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),T(()=>A(["children",he]))))}))))):ht())))))))))))))),["children",v.Children.toArray(Array.from(Q))]))}))})))))),I.Page))),["children",v.Children.toArray(Array.from(Re))])])))],["children",v.Children.toArray(Array.from(le))])])))],["children",v.Children.toArray(Array.from(R))])]))),c("div",g(y([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(re=[c("div",g(y([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(we=[(be=y([c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.RowFrom}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.RowTo}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:I.ShowingOnlyRowsWithErrors?I.NumberOfInvalidRows:I.NumberOfRows}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:v.Children.toArray(Array.from(be))})),c("div",g(y([["className","justify-start items-start gap-3 flex"],(Ee=[c("button",g(ee(T(()=>{let j;return B((j=_,j==null?A(["disabled",!0]):A(["onClick",j])),T(()=>{let W;return B(A((W="px-[17px] py-[9px] disabled:opacity-50 bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",W])),T(()=>{let Q;return A((Q=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",v.Children.toArray(Array.from(Q))]))}))}))})))),c("button",g(ee(T(()=>{let j;return B((j=S,j==null?A(["disabled",!0]):A(["onClick",j])),T(()=>{let W;return B(A((W="px-[17px] py-[9px] disabled:opacity-50 bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",W])),T(()=>{let Q;return A((Q=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",v.Children.toArray(Array.from(Q))]))}))}))}))))],["children",v.Children.toArray(Array.from(Ee))])])))],["children",v.Children.toArray(Array.from(we))])])))],["children",v.Children.toArray(Array.from(re))])])))],["children",v.Children.toArray(Array.from(J))]))))],["children",v.Children.toArray(Array.from(de))])])))],["children",v.Children.toArray(Array.from(F))])])))),T(()=>{let j,W,Q,ie,he,X,At,Ue,ot,mn,qt,mt,en,qe,It;return B(I.NumberOfValidRows>0?A(c("div",g(y([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(j=[T5([]),c("div",g(y([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(W=[c("div",g(y([["className","flex-col justify-start items-start gap-2 flex"],(Q=[c("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${I.NumberOfValidRows} users to workplace benefits`})],["children",v.Children.toArray(Array.from(Q))])]))),to("What is workplace benefits?",()=>{b(!0)}),c("div",g(fe((ie=[c("div",g(y([["className","flex-col justify-start items-start gap-2 flex"],(he=[c("div",g(y([["key",et(new Pt(1,[]))],["className","relative flex items-start"],(X=[c("div",g(y([["className","flex h-6 items-center"],(At=[c("input",g(y([["id",et(new Pt(1,[]))],["name","InviteTiming"],["type","radio"],(Ue="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",Ue]),["checked",te(I.InviteTiming,new Pt(1,[]))],["onChange",yt=>{yt.target.checked,L(new Pt(1,[]))}]])))],["children",v.Children.toArray(Array.from(At))])]))),c("div",g(y([["className","ml-3 text-sm/6"],(ot=[c("label",{for:et(new Pt(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),c("p",{id:`${et(new Pt(1,[]))}-description`,className:"text-gray-500 text-sm font-normal leading-tight",children:"We’ll import your users now. You can invite them to workplace benefits at any time later."})],["children",v.Children.toArray(Array.from(ot))])])))],["children",v.Children.toArray(Array.from(X))])])))],["children",v.Children.toArray(Array.from(he))])]))),c("div",g(fe((mn=[c("div",g(y([["key",et(new Pt(0,[]))],["className","relative flex items-start"],(qt=[c("div",g(y([["className","flex h-6 items-center"],(mt=[c("input",g(y([["id",et(new Pt(0,[]))],["name","InviteTiming"],["type","radio"],(en="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",en]),["checked",te(I.InviteTiming,new Pt(0,[]))],["onChange",yt=>{yt.target.checked,L(new Pt(0,[]))}]])))],["children",v.Children.toArray(Array.from(mt))])]))),c("div",g(y([["className","ml-3 text-sm/6"],(qe=[c("label",{for:et(new Pt(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),c("p",g(y([["id",`${et(new Pt(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(It="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",It])])))],["children",v.Children.toArray(Array.from(qe))])])))],["children",v.Children.toArray(Array.from(qt))])])))],["children",v.Children.toArray(Array.from(mn))]))))],["children",v.Children.toArray(Array.from(ie))]))))],["children",v.Children.toArray(Array.from(W))])])))],["children",v.Children.toArray(Array.from(j))])])))):ht(),T(()=>{let yt,tn,ki,_n,Rt,Vn,Ni;return A(c("div",g(y([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(yt=[c("div",g(y([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(tn=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",g(y([["className","justify-start items-center gap-2 flex"],(ki=[c("button",g(y([(_n="px-[13px] py-[9px] bg-white rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",_n]),["onClick",N0=>{i()}],(Rt=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",v.Children.toArray(Array.from(Rt))])]))),c("button",g(y([(Vn="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Vn]),["onClick",N0=>{o(I.InviteTiming)}],["disabled",I.NumberOfValidRows===0],(Ni=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${I.NumberOfValidRows} users`})],["children",v.Children.toArray(Array.from(Ni))])])))],["children",v.Children.toArray(Array.from(ki))])])))],["children",v.Children.toArray(Array.from(tn))])])))],["children",v.Children.toArray(Array.from(yt))])]))))}))}))}))})),["children",v.Children.toArray(Array.from(x))])])))],["children",v.Children.toArray(Array.from(C))]))}else return A((E=[$5()],["children",v.Children.toArray(Array.from(E))]))}))))))],["children",v.Children.toArray(Array.from(r))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Cn extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class zo extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var qo={exports:{}};/* @license
|
|
48
|
+
`))}else{let p=f.props,h=p==null?void 0:p.className,m=typeof h=="function"?(...x)=>al(h(...x),l.className):al(h,l.className),v=m?{className:m}:{},b=bm(f.props,Hn(Na(l,["ref"])));for(let x in d)x in b&&delete d[x];return Ml(f,Object.assign({},b,d,u,{ref:i(Z_(f),u.ref)},v))}return c(o,Object.assign({},Na(l,["ref"]),o!==ze&&u,o!==ze&&d),f)}function q_(){let e=re([]),t=Ie(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 Y_(...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 bm(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];if(t.disabled||t["aria-disabled"])for(let r in n)/^(on(?:Click|Pointer|Mouse|Key)(?:Down|Up|Press)?)$/.test(r)&&(n[r]=[i=>{var o;return(o=i==null?void 0:i.preventDefault)==null?void 0:o.call(i)}]);for(let r in n)Object.assign(t,{[r](i,...o){let s=n[r];for(let a of s){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;a(i,...o)}}});return t}function _m(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let r of e)for(let i in r)i.startsWith("on")&&typeof r[i]=="function"?(n[i]!=null||(n[i]=[]),n[i].push(r[i])):t[i]=r[i];for(let r in n)Object.assign(t,{[r](...i){let o=n[r];for(let s of o)s==null||s(...i)}});return t}function ht(e){var t;return Object.assign(Tl(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Hn(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Na(e,t=[]){let n=Object.assign({},e);for(let r of t)r in n&&delete n[r];return n}function Z_(e){return X.version.split(".")[0]>="19"?e.props.ref:e.ref}function K_(e,t,n){let[r,i]=ye(n),o=e!==void 0,s=re(o),a=re(!1),l=re(!1);return o&&!s.current&&!a.current?(a.current=!0,s.current=o,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.")):!o&&s.current&&!l.current&&(l.current=!0,s.current=o,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.")),[o?e:r,ae(u=>(o||i(u),t==null?void 0:t(u)))]}function X_(e){let[t]=ye(e);return t}function xm(e={},t=null,n=[]){for(let[r,i]of Object.entries(e))Sm(n,Cm(t,r),i);return n}function Cm(e,t){return e?e+"["+t+"]":t}function Sm(e,t,n){if(Array.isArray(n))for(let[r,i]of n.entries())Sm(e,Cm(t,r.toString()),i);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,""]):xm(n,t,e)}function J_(e){var t,n;let r=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(r){for(let i of r.elements)if(i!==e&&(i.tagName==="INPUT"&&i.type==="submit"||i.tagName==="BUTTON"&&i.type==="submit"||i.nodeName==="INPUT"&&i.type==="image")){i.click();return}(n=r.requestSubmit)==null||n.call(r)}}let Q_="span";var di=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(di||{});function ex(e,t){var n;let{features:r=1,...i}=e,o={ref:t,"aria-hidden":(r&2)===2?!0:(n=i["aria-hidden"])!=null?n:void 0,hidden:(r&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(r&4)===4&&(r&2)!==2&&{display:"none"}}};return bt()({ourProps:o,theirProps:i,slot:{},defaultTag:Q_,name:"Hidden"})}let oo=ht(ex),tx=nt(null);function nx({children:e}){let t=Pe(tx);if(!t)return X.createElement(X.Fragment,null,e);let{target:n}=t;return n?Ds(X.createElement(X.Fragment,null,e),n):null}function rx({data:e,form:t,disabled:n,onReset:r,overrides:i}){let[o,s]=ye(null),a=ir();return Oe(()=>{if(r&&o)return a.addEventListener(o,"reset",r)},[o,t,r]),X.createElement(nx,null,X.createElement(ix,{setForm:s,formId:t}),xm(e).map(([l,u])=>X.createElement(oo,{features:di.Hidden,...Hn({key:l,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:t,disabled:n,name:l,value:u,...i})})))}function ix({setForm:e,formId:t}){return Oe(()=>{if(t){let n=document.getElementById(t);n&&e(n)}},[e,t]),t?null:X.createElement(oo,{features:di.Hidden,as:"input",type:"hidden",hidden:!0,readOnly:!0,ref:n=>{if(!n)return;let r=n.closest("form");r&&e(r)}})}let ox=nt(void 0);function Em(){return Pe(ox)}function sx(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&&ax(n)?!1:r}function ax(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}let Am=Symbol();function lx(e,t=!0){return Object.assign(e,{[Am]:t})}function $t(...e){let t=re(e);Oe(()=>{t.current=e},[e]);let n=ae(r=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(r):i.current=r)});return e.every(r=>r==null||(r==null?void 0:r[Am]))?void 0:n}let Ks=nt(null);Ks.displayName="DescriptionContext";function km(){let e=Pe(Ks);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,km),t}return e}function ux(){var e,t;return(t=(e=Pe(Ks))==null?void 0:e.value)!=null?t:void 0}function cx(){let[e,t]=ye([]);return[e.length>0?e.join(" "):void 0,me(()=>function(n){let r=ae(o=>(t(s=>[...s,o]),()=>t(s=>{let a=s.slice(),l=a.indexOf(o);return l!==-1&&a.splice(l,1),a}))),i=me(()=>({register:r,slot:n.slot,name:n.name,props:n.props,value:n.value}),[r,n.slot,n.name,n.props,n.value]);return X.createElement(Ks.Provider,{value:i},n.children)},[t])]}let dx="p";function fx(e,t){let n=en(),r=uu(),{id:i=`headlessui-description-${n}`,...o}=e,s=km(),a=$t(t);Ze(()=>s.register(i),[i,s.register]);let l=r||!1,u=me(()=>({...s.slot,disabled:l}),[s.slot,l]),f={ref:a,...s.props,id:i};return bt()({ourProps:f,theirProps:o,slot:u,defaultTag:dx,name:s.name||"Description"})}let mx=ht(fx),hx=Object.assign(mx,{});var gt=(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))(gt||{});let Xs=nt(null);Xs.displayName="LabelContext";function Nm(){let e=Pe(Xs);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,Nm),t}return e}function Tm(e){var t,n,r;let i=(n=(t=Pe(Xs))==null?void 0:t.value)!=null?n:void 0;return((r=e==null?void 0:e.length)!=null?r:0)>0?[i,...e].filter(Boolean).join(" "):i}function px({inherit:e=!1}={}){let t=Tm(),[n,r]=ye([]),i=e?[t,...n].filter(Boolean):n;return[i.length>0?i.join(" "):void 0,me(()=>function(o){let s=ae(l=>(r(u=>[...u,l]),()=>r(u=>{let f=u.slice(),d=f.indexOf(l);return d!==-1&&f.splice(d,1),f}))),a=me(()=>({register:s,slot:o.slot,name:o.name,props:o.props,value:o.value}),[s,o.slot,o.name,o.props,o.value]);return X.createElement(Xs.Provider,{value:a},o.children)},[r])]}let gx="label";function wx(e,t){var n;let r=en(),i=Nm(),o=Em(),s=uu(),{id:a=`headlessui-label-${r}`,htmlFor:l=o??((n=i.props)==null?void 0:n.htmlFor),passive:u=!1,...f}=e,d=$t(t);Ze(()=>i.register(a),[a,i.register]);let p=ae(b=>{let x=b.currentTarget;if(x instanceof HTMLLabelElement&&b.preventDefault(),i.props&&"onClick"in i.props&&typeof i.props.onClick=="function"&&i.props.onClick(b),x instanceof HTMLLabelElement){let C=document.getElementById(x.htmlFor);if(C){let E=C.getAttribute("disabled");if(E==="true"||E==="")return;let M=C.getAttribute("aria-disabled");if(M==="true"||M==="")return;(C instanceof HTMLInputElement&&(C.type==="radio"||C.type==="checkbox")||C.role==="radio"||C.role==="checkbox"||C.role==="switch")&&C.click(),C.focus({preventScroll:!0})}}}),h=s||!1,m=me(()=>({...i.slot,disabled:h}),[i.slot,h]),v={ref:d,...i.props,id:a,htmlFor:l,onClick:p};return u&&("onClick"in v&&(delete v.htmlFor,delete v.onClick),"onClick"in f&&delete f.onClick),bt()({ourProps:v,theirProps:f,slot:m,defaultTag:l?gx:"div",name:i.name||"Label"})}let yx=ht(wx),vx=Object.assign(yx,{}),bx=nt(()=>{});function _x({value:e,children:t}){return X.createElement(bx.Provider,{value:e},t)}function xx(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 Cx(e=xx){return Ie((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 Sx(e){if(e===null)return{width:0,height:0};let{width:t,height:n}=e.getBoundingClientRect();return{width:t,height:n}}function Ex(e,t=!1){let[n,r]=Ir(()=>({}),{}),i=me(()=>Sx(e),[e,n]);return Ze(()=>{if(!e)return;let o=new ResizeObserver(r);return o.observe(e),()=>{o.disconnect()}},[e]),t?{width:`${i.width}px`,height:`${i.height}px`}:i}let Ax=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 $m(e,t){let n=e(),r=new Set;return{getSnapshot(){return n},subscribe(i){return r.add(i),()=>r.delete(i)},dispatch(i,...o){let s=t[i].call(n,...o);s&&(n=s,r.forEach(a=>a()))}}}function Mm(e){return Is(e.subscribe,e.getSnapshot,e.getSnapshot)}let kx=new Ax(()=>$m(()=>[],{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 Ci(e,t){let n=kx.get(t),r=en(),i=Mm(n);if(Ze(()=>{if(e)return n.dispatch("ADD",r),()=>n.dispatch("REMOVE",r)},[n,e]),!e)return!1;let o=i.indexOf(r),s=i.length;return o===-1&&(o=s,s+=1),o===s-1}let ll=new Map,Qi=new Map;function ud(e){var t;let n=(t=Qi.get(e))!=null?t:0;return Qi.set(e,n+1),n!==0?()=>cd(e):(ll.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),e.setAttribute("aria-hidden","true"),e.inert=!0,()=>cd(e))}function cd(e){var t;let n=(t=Qi.get(e))!=null?t:1;if(n===1?Qi.delete(e):Qi.set(e,n-1),n!==1)return;let r=ll.get(e);r&&(r["aria-hidden"]===null?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r["aria-hidden"]),e.inert=r.inert,ll.delete(e))}function Im(e,{allowed:t,disallowed:n}={}){let r=Ci(e,"inert-others");Ze(()=>{var i,o;if(!r)return;let s=Pn();for(let l of(i=n==null?void 0:n())!=null?i:[])l&&s.add(ud(l));let a=(o=t==null?void 0:t())!=null?o:[];for(let l of a){if(!l)continue;let u=xi(l);if(!u)continue;let f=l.parentElement;for(;f&&f!==u.body;){for(let d of f.children)a.some(p=>d.contains(p))||s.add(ud(d));f=f.parentElement}}return s.dispose},[r,t,n])}function Dm(e,t,n){let r=or(i=>{let o=i.getBoundingClientRect();o.x===0&&o.y===0&&o.width===0&&o.height===0&&n()});Oe(()=>{if(!e)return;let i=t===null?null:t instanceof HTMLElement?t:t.current;if(!i)return;let o=Pn();if(typeof ResizeObserver<"u"){let s=new ResizeObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}if(typeof IntersectionObserver<"u"){let s=new IntersectionObserver(()=>r.current(i));s.observe(i),o.add(()=>s.disconnect())}return()=>o.dispose()},[t,r,e])}let Ss=["[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(","),Nx=["[data-autofocus]"].map(e=>`${e}:not([tabindex='-1'])`).join(",");var un=(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))(un||{}),ul=(e=>(e[e.Error=0]="Error",e[e.Overflow=1]="Overflow",e[e.Success=2]="Success",e[e.Underflow=3]="Underflow",e))(ul||{}),Tx=(e=>(e[e.Previous=-1]="Previous",e[e.Next=1]="Next",e))(Tx||{});function Om(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Ss)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}function $x(e=document.body){return e==null?[]:Array.from(e.querySelectorAll(Nx)).sort((t,n)=>Math.sign((t.tabIndex||Number.MAX_SAFE_INTEGER)-(n.tabIndex||Number.MAX_SAFE_INTEGER)))}var cu=(e=>(e[e.Strict=0]="Strict",e[e.Loose=1]="Loose",e))(cu||{});function Rm(e,t=0){var n;return e===((n=xi(e))==null?void 0:n.body)?!1:Lt(t,{0(){return e.matches(Ss)},1(){let r=e;for(;r!==null;){if(r.matches(Ss))return!0;r=r.parentElement}return!1}})}var Mx=(e=>(e[e.Keyboard=0]="Keyboard",e[e.Mouse=1]="Mouse",e))(Mx||{});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 In(e){e==null||e.focus({preventScroll:!0})}let Ix=["textarea","input"].join(",");function Dx(e){var t,n;return(n=(t=e==null?void 0:e.matches)==null?void 0:t.call(e,Ix))!=null?n:!1}function Fm(e,t=n=>n){return e.slice().sort((n,r)=>{let i=t(n),o=t(r);if(i===null||o===null)return 0;let s=i.compareDocumentPosition(o);return s&Node.DOCUMENT_POSITION_FOLLOWING?-1:s&Node.DOCUMENT_POSITION_PRECEDING?1:0})}function Ox(e,t){return ti(Om(),t,{relativeTo:e})}function ti(e,t,{sorted:n=!0,relativeTo:r=null,skipElements:i=[]}={}){let o=Array.isArray(e)?e.length>0?e[0].ownerDocument:document:e.ownerDocument,s=Array.isArray(e)?n?Fm(e):e:t&64?$x(e):Om(e);i.length>0&&s.length>1&&(s=s.filter(h=>!i.some(m=>m!=null&&"current"in m?(m==null?void 0:m.current)===h:m===h))),r=r??o.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}:{},f=0,d=s.length,p;do{if(f>=d||f+d<=0)return 0;let h=l+f;if(t&16)h=(h+d)%d;else{if(h<0)return 3;if(h>=d)return 1}p=s[h],p==null||p.focus(u),f+=a}while(p!==o.activeElement);return t&6&&Dx(p)&&p.select(),2}function Pm(){return/iPhone/gi.test(window.navigator.platform)||/Mac/gi.test(window.navigator.platform)&&window.navigator.maxTouchPoints>0}function Rx(){return/Android/gi.test(window.navigator.userAgent)}function Fx(){return Pm()||Rx()}function Bi(e,t,n,r){let i=or(n);Oe(()=>{if(!e)return;function o(s){i.current(s)}return document.addEventListener(t,o,r),()=>document.removeEventListener(t,o,r)},[e,t,r])}function Lm(e,t,n,r){let i=or(n);Oe(()=>{if(!e)return;function o(s){i.current(s)}return window.addEventListener(t,o,r),()=>window.removeEventListener(t,o,r)},[e,t,r])}const dd=30;function Vm(e,t,n){let r=Ci(e,"outside-click"),i=or(n),o=Ie(function(l,u){if(l.defaultPrevented)return;let f=u(l);if(f===null||!f.getRootNode().contains(f)||!f.isConnected)return;let d=function p(h){return typeof h=="function"?p(h()):Array.isArray(h)||h instanceof Set?h:[h]}(t);for(let p of d)if(p!==null&&(p.contains(f)||l.composed&&l.composedPath().includes(p)))return;return!Rm(f,cu.Loose)&&f.tabIndex!==-1&&l.preventDefault(),i.current(l,f)},[i,t]),s=re(null);Bi(r,"pointerdown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),Bi(r,"mousedown",l=>{var u,f;s.current=((f=(u=l.composedPath)==null?void 0:u.call(l))==null?void 0:f[0])||l.target},!0),Bi(r,"click",l=>{Fx()||s.current&&(o(l,()=>s.current),s.current=null)},!0);let a=re({x:0,y:0});Bi(r,"touchstart",l=>{a.current.x=l.touches[0].clientX,a.current.y=l.touches[0].clientY},!0),Bi(r,"touchend",l=>{let u={x:l.changedTouches[0].clientX,y:l.changedTouches[0].clientY};if(!(Math.abs(u.x-a.current.x)>=dd||Math.abs(u.y-a.current.y)>=dd))return o(l,()=>l.target instanceof HTMLElement?l.target:null)},!0),Lm(r,"blur",l=>o(l,()=>window.document.activeElement instanceof HTMLIFrameElement?window.document.activeElement:null),!0)}function Si(...e){return me(()=>xi(...e),[...e])}function Hm(e,t,n,r){let i=or(n);Oe(()=>{e=e??window;function o(s){i.current(s)}return e.addEventListener(t,o,r),()=>e.removeEventListener(t,o,r)},[e,t,r])}function Px(e,t){return me(()=>{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 Lx(){let e;return{before({doc:t}){var n;let r=t.documentElement,i=(n=t.defaultView)!=null?n:window;e=Math.max(0,i.innerWidth-r.clientWidth)},after({doc:t,d:n}){let r=t.documentElement,i=Math.max(0,r.clientWidth-r.offsetWidth),o=Math.max(0,e-i);n.style(r,"paddingRight",`${o}px`)}}}function Vx(){return Pm()?{before({doc:e,d:t,meta:n}){function r(i){return n.containers.flatMap(o=>o()).some(o=>o.contains(i))}t.microTask(()=>{var i;if(window.getComputedStyle(e.documentElement).scrollBehavior!=="auto"){let a=Pn();a.style(e.documentElement,"scrollBehavior","auto"),t.add(()=>t.microTask(()=>a.dispose()))}let o=(i=window.scrollY)!=null?i: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),f=e.querySelector(u);f&&!r(f)&&(s=f)}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;o!==l&&window.scrollTo(0,o),s&&s.isConnected&&(s.scrollIntoView({block:"nearest"}),s=null)})})}}:{}}function Hx(){return{before({doc:e,d:t}){t.style(e.documentElement,"overflow","hidden")}}}function jx(e){let t={};for(let n of e)Object.assign(t,n(t));return t}let yr=$m(()=>new Map,{PUSH(e,t){var n;let r=(n=this.get(e))!=null?n:{doc:e,count:0,d:Pn(),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:jx(n)},i=[Vx(),Lx(),Hx()];i.forEach(({before:o})=>o==null?void 0:o(r)),i.forEach(({after:o})=>o==null?void 0:o(r))},SCROLL_ALLOW({d:e}){e.dispose()},TEARDOWN({doc:e}){this.delete(e)}});yr.subscribe(()=>{let e=yr.getSnapshot(),t=new Map;for(let[n]of e)t.set(n,n.documentElement.style.overflow);for(let n of e.values()){let r=t.get(n.doc)==="hidden",i=n.count!==0;(i&&!r||!i&&r)&&yr.dispatch(n.count>0?"SCROLL_PREVENT":"SCROLL_ALLOW",n),n.count===0&&yr.dispatch("TEARDOWN",n)}});function Bx(e,t,n=()=>({containers:[]})){let r=Mm(yr),i=t?r.get(t):void 0,o=i?i.count>0:!1;return Ze(()=>{if(!(!t||!e))return yr.dispatch("PUSH",t,n),()=>yr.dispatch("POP",t,n)},[e,t]),o}function jm(e,t,n=()=>[document.body]){let r=Ci(e,"scroll-lock");Bx(r,t,i=>{var o;return{containers:[...(o=i.containers)!=null?o:[],n]}})}function fd(e){return[e.screenX,e.screenY]}function Ux(){let e=re([-1,-1]);return{wasMoved(t){let n=fd(t);return e.current[0]===n[0]&&e.current[1]===n[1]?!1:(e.current=n,!0)},update(t){e.current=fd(t)}}}function Wx(e=0){let[t,n]=ye(e),r=Ie(l=>n(l),[t]),i=Ie(l=>n(u=>u|l),[t]),o=Ie(l=>(t&l)===l,[t]),s=Ie(l=>n(u=>u&~l),[n]),a=Ie(l=>n(u=>u^l),[n]);return{flags:t,setFlag:r,addFlag:i,hasFlag:o,removeFlag:s,toggleFlag:a}}var Gx={},md,hd;typeof process<"u"&&typeof globalThis<"u"&&typeof Element<"u"&&((md=process==null?void 0:Gx)==null?void 0:md.NODE_ENV)==="test"&&typeof((hd=Element==null?void 0:Element.prototype)==null?void 0:hd.getAnimations)>"u"&&(Element.prototype.getAnimations=function(){return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.","Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.","","Example usage:","```js","import { mockAnimationsApi } from 'jsdom-testing-mocks'","mockAnimationsApi()","```"].join(`
|
|
49
|
+
`)),[]});var zx=(e=>(e[e.None=0]="None",e[e.Closed=1]="Closed",e[e.Enter=2]="Enter",e[e.Leave=4]="Leave",e))(zx||{});function Bm(e){let t={};for(let n in e)e[n]===!0&&(t[`data-${n}`]="");return t}function Um(e,t,n,r){let[i,o]=ye(n),{hasFlag:s,addFlag:a,removeFlag:l}=Wx(e&&i?3:0),u=re(!1),f=re(!1),d=ir();return Ze(()=>{var p;if(e){if(n&&o(!0),!t){n&&a(3);return}return(p=r==null?void 0:r.start)==null||p.call(r,n),qx(t,{inFlight:u,prepare(){f.current?f.current=!1:f.current=u.current,u.current=!0,!f.current&&(n?(a(3),l(4)):(a(4),l(2)))},run(){f.current?n?(l(3),a(4)):(l(4),a(3)):n?l(1):a(1)},done(){var h;f.current&&typeof t.getAnimations=="function"&&t.getAnimations().length>0||(u.current=!1,l(7),n||o(!1),(h=r==null?void 0:r.end)==null||h.call(r,n))}})}},[e,n,t,d]),e?[i,{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 qx(e,{prepare:t,run:n,done:r,inFlight:i}){let o=Pn();return Zx(e,{prepare:t,inFlight:i}),o.nextFrame(()=>{n(),o.requestAnimationFrame(()=>{o.add(Yx(e,r))})}),o.dispose}function Yx(e,t){var n,r;let i=Pn();if(!e)return i.dispose;let o=!1;i.add(()=>{o=!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(),i.dispose):(Promise.allSettled(s.map(a=>a.finished)).then(()=>{o||t()}),i.dispose)}function Zx(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 du(e,t){let n=re([]),r=ae(e);Oe(()=>{let i=[...n.current];for(let[o,s]of t.entries())if(n.current[o]!==s){let a=r(t,i);return n.current=t,a}},[r,...t])}function Js(){return typeof window<"u"}function Ei(e){return Wm(e)?(e.nodeName||"").toLowerCase():"#document"}function Yt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function bn(e){var t;return(t=(Wm(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Wm(e){return Js()?e instanceof Node||e instanceof Yt(e).Node:!1}function Dt(e){return Js()?e instanceof Element||e instanceof Yt(e).Element:!1}function wn(e){return Js()?e instanceof HTMLElement||e instanceof Yt(e).HTMLElement:!1}function pd(e){return!Js()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Yt(e).ShadowRoot}function To(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function Kx(e){return["table","td","th"].includes(Ei(e))}function Qs(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function fu(e){const t=mu(),n=Dt(e)?mn(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 Xx(e){let t=Kn(e);for(;wn(t)&&!fi(t);){if(fu(t))return t;if(Qs(t))return null;t=Kn(t)}return null}function mu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function fi(e){return["html","body","#document"].includes(Ei(e))}function mn(e){return Yt(e).getComputedStyle(e)}function ea(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Kn(e){if(Ei(e)==="html")return e;const t=e.assignedSlot||e.parentNode||pd(e)&&e.host||bn(e);return pd(t)?t.host:t}function Gm(e){const t=Kn(e);return fi(t)?e.ownerDocument?e.ownerDocument.body:e.body:wn(t)&&To(t)?t:Gm(t)}function so(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=Gm(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Yt(i);if(o){const a=cl(s);return t.concat(s,s.visualViewport||[],To(i)?i:[],a&&n?so(a):[])}return t.concat(i,so(i,[],n))}function cl(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Jx(){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 Nr=Math.min,St=Math.max,ao=Math.round,Uo=Math.floor,pn=e=>({x:e,y:e}),Qx={left:"right",right:"left",bottom:"top",top:"bottom"},e3={start:"end",end:"start"};function gd(e,t,n){return St(e,Nr(t,n))}function Ai(e,t){return typeof e=="function"?e(t):e}function Xn(e){return e.split("-")[0]}function $o(e){return e.split("-")[1]}function zm(e){return e==="x"?"y":"x"}function qm(e){return e==="y"?"height":"width"}function Tr(e){return["top","bottom"].includes(Xn(e))?"y":"x"}function Ym(e){return zm(Tr(e))}function t3(e,t,n){n===void 0&&(n=!1);const r=$o(e),i=Ym(e),o=qm(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Es(s)),[s,Es(s)]}function n3(e){const t=Es(e);return[dl(e),t,dl(t)]}function dl(e){return e.replace(/start|end/g,t=>e3[t])}function r3(e,t,n){const r=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return n?t?i:r:t?r:i;case"left":case"right":return t?o:s;default:return[]}}function i3(e,t,n,r){const i=$o(e);let o=r3(Xn(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(dl)))),o}function Es(e){return e.replace(/left|right|bottom|top/g,t=>Qx[t])}function o3(e){return{top:0,right:0,bottom:0,left:0,...e}}function s3(e){return typeof e!="number"?o3(e):{top:e,right:e,bottom:e,left:e}}function As(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function wd(e,t,n){let{reference:r,floating:i}=e;const o=Tr(t),s=Ym(t),a=qm(s),l=Xn(t),u=o==="y",f=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,p=r[a]/2-i[a]/2;let h;switch(l){case"top":h={x:f,y:r.y-i.height};break;case"bottom":h={x:f,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:d};break;case"left":h={x:r.x-i.width,y:d};break;default:h={x:r.x,y:r.y}}switch($o(t)){case"start":h[s]-=p*(n&&u?-1:1);break;case"end":h[s]+=p*(n&&u?-1:1);break}return h}const a3=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:f,y:d}=wd(u,r,l),p=r,h={},m=0;for(let v=0;v<a.length;v++){const{name:b,fn:x}=a[v],{x:C,y:E,data:M,reset:R}=await x({x:f,y:d,initialPlacement:r,placement:p,strategy:i,middlewareData:h,rects:u,platform:s,elements:{reference:e,floating:t}});f=C??f,d=E??d,h={...h,[b]:{...h[b],...M}},R&&m<=50&&(m++,typeof R=="object"&&(R.placement&&(p=R.placement),R.rects&&(u=R.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):R.rects),{x:f,y:d}=wd(u,p,l)),v=-1)}return{x:f,y:d,placement:p,strategy:i,middlewareData:h}};async function ta(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Ai(t,e),m=s3(h),b=a[p?d==="floating"?"reference":"floating":d],x=As(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(b)))==null||n?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:u,rootBoundary:f,strategy:l})),C=d==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),M=await(o.isElement==null?void 0:o.isElement(E))?await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1}:{x:1,y:1},R=As(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:C,offsetParent:E,strategy:l}):C);return{top:(x.top-R.top+m.top)/M.y,bottom:(R.bottom-x.bottom+m.bottom)/M.y,left:(x.left-R.left+m.left)/M.x,right:(R.right-x.right+m.right)/M.x}}const l3=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:f=!0,crossAxis:d=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:v=!0,...b}=Ai(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const x=Xn(i),C=Tr(a),E=Xn(a)===a,M=await(l.isRTL==null?void 0:l.isRTL(u.floating)),R=p||(E||!v?[Es(a)]:n3(a)),F=m!=="none";!p&&F&&R.push(...i3(a,v,m,M));const L=[a,...R],S=await ta(t,b),_=[];let k=((r=o.flip)==null?void 0:r.overflows)||[];if(f&&_.push(S[x]),d){const B=t3(i,s,M);_.push(S[B[0]],S[B[1]])}if(k=[...k,{placement:i,overflows:_}],!_.every(B=>B<=0)){var T,I;const B=(((T=o.flip)==null?void 0:T.index)||0)+1,pe=L[B];if(pe)return{data:{index:B,overflows:k},reset:{placement:pe}};let Y=(I=k.filter(U=>U.overflows[0]<=0).sort((U,P)=>U.overflows[1]-P.overflows[1])[0])==null?void 0:I.placement;if(!Y)switch(h){case"bestFit":{var D;const U=(D=k.filter(P=>{if(F){const W=Tr(P.placement);return W===C||W==="y"}return!0}).map(P=>[P.placement,P.overflows.filter(W=>W>0).reduce((W,j)=>W+j,0)]).sort((P,W)=>P[1]-W[1])[0])==null?void 0:D[0];U&&(Y=U);break}case"initialPlacement":Y=a;break}if(i!==Y)return{reset:{placement:Y}}}return{}}}};async function u3(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Xn(n),a=$o(n),l=Tr(n)==="y",u=["left","top"].includes(s)?-1:1,f=o&&l?-1:1,d=Ai(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof m=="number"&&(h=a==="end"?m*-1:m),l?{x:h*f,y:p*u}:{x:p*u,y:h*f}}const c3=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:a}=t,l=await u3(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:i+l.x,y:o+l.y,data:{...l,placement:s}}}}},d3=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x,y:C}=b;return{x,y:C}}},...l}=Ai(e,t),u={x:n,y:r},f=await ta(t,l),d=Tr(Xn(i)),p=zm(d);let h=u[p],m=u[d];if(o){const b=p==="y"?"top":"left",x=p==="y"?"bottom":"right",C=h+f[b],E=h-f[x];h=gd(C,h,E)}if(s){const b=d==="y"?"top":"left",x=d==="y"?"bottom":"right",C=m+f[b],E=m-f[x];m=gd(C,m,E)}const v=a.fn({...t,[p]:h,[d]:m});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[p]:o,[d]:s}}}}}},f3=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:o,platform:s,elements:a}=t,{apply:l=()=>{},...u}=Ai(e,t),f=await ta(t,u),d=Xn(i),p=$o(i),h=Tr(i)==="y",{width:m,height:v}=o.floating;let b,x;d==="top"||d==="bottom"?(b=d,x=p===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=d,b=p==="end"?"top":"bottom");const C=v-f.top-f.bottom,E=m-f.left-f.right,M=Nr(v-f[b],C),R=Nr(m-f[x],E),F=!t.middlewareData.shift;let L=M,S=R;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(S=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(L=C),F&&!p){const k=St(f.left,0),T=St(f.right,0),I=St(f.top,0),D=St(f.bottom,0);h?S=m-2*(k!==0||T!==0?k+T:St(f.left,f.right)):L=v-2*(I!==0||D!==0?I+D:St(f.top,f.bottom))}await l({...t,availableWidth:S,availableHeight:L});const _=await s.getDimensions(a.floating);return m!==_.width||v!==_.height?{reset:{rects:!0}}:{}}}};function Zm(e){const t=mn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=wn(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=ao(n)!==o||ao(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function hu(e){return Dt(e)?e:e.contextElement}function ni(e){const t=hu(e);if(!wn(t))return pn(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Zm(t);let s=(o?ao(n.width):n.width)/r,a=(o?ao(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const m3=pn(0);function Km(e){const t=Yt(e);return!mu()||!t.visualViewport?m3:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function h3(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Yt(e)?!1:t}function $r(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=hu(e);let s=pn(1);t&&(r?Dt(r)&&(s=ni(r)):s=ni(e));const a=h3(o,n,r)?Km(o):pn(0);let l=(i.left+a.x)/s.x,u=(i.top+a.y)/s.y,f=i.width/s.x,d=i.height/s.y;if(o){const p=Yt(o),h=r&&Dt(r)?Yt(r):r;let m=p,v=cl(m);for(;v&&r&&h!==m;){const b=ni(v),x=v.getBoundingClientRect(),C=mn(v),E=x.left+(v.clientLeft+parseFloat(C.paddingLeft))*b.x,M=x.top+(v.clientTop+parseFloat(C.paddingTop))*b.y;l*=b.x,u*=b.y,f*=b.x,d*=b.y,l+=E,u+=M,m=Yt(v),v=cl(m)}}return As({width:f,height:d,x:l,y:u})}function pu(e,t){const n=ea(e).scrollLeft;return t?t.left+n:$r(bn(e)).left+n}function Xm(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:pu(e,r)),o=r.top+t.scrollTop;return{x:i,y:o}}function p3(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=bn(r),a=t?Qs(t.floating):!1;if(r===s||a&&o)return n;let l={scrollLeft:0,scrollTop:0},u=pn(1);const f=pn(0),d=wn(r);if((d||!d&&!o)&&((Ei(r)!=="body"||To(s))&&(l=ea(r)),wn(r))){const h=$r(r);u=ni(r),f.x=h.x+r.clientLeft,f.y=h.y+r.clientTop}const p=s&&!d&&!o?Xm(s,l,!0):pn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+f.x+p.x,y:n.y*u.y-l.scrollTop*u.y+f.y+p.y}}function g3(e){return Array.from(e.getClientRects())}function w3(e){const t=bn(e),n=ea(e),r=e.ownerDocument.body,i=St(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=St(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+pu(e);const a=-n.scrollTop;return mn(r).direction==="rtl"&&(s+=St(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}function y3(e,t){const n=Yt(e),r=bn(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,l=0;if(i){o=i.width,s=i.height;const u=mu();(!u||u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:o,height:s,x:a,y:l}}function v3(e,t){const n=$r(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=wn(e)?ni(e):pn(1),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=i*o.x,u=r*o.y;return{width:s,height:a,x:l,y:u}}function yd(e,t,n){let r;if(t==="viewport")r=y3(e,n);else if(t==="document")r=w3(bn(e));else if(Dt(t))r=v3(t,n);else{const i=Km(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return As(r)}function Jm(e,t){const n=Kn(e);return n===t||!Dt(n)||fi(n)?!1:mn(n).position==="fixed"||Jm(n,t)}function b3(e,t){const n=t.get(e);if(n)return n;let r=so(e,[],!1).filter(a=>Dt(a)&&Ei(a)!=="body"),i=null;const o=mn(e).position==="fixed";let s=o?Kn(e):e;for(;Dt(s)&&!fi(s);){const a=mn(s),l=fu(s);!l&&a.position==="fixed"&&(i=null),(o?!l&&!i:!l&&a.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||To(s)&&!l&&Jm(e,s))?r=r.filter(f=>f!==s):i=a,s=Kn(s)}return t.set(e,r),r}function _3(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Qs(t)?[]:b3(t,this._c):[].concat(n),r],a=s[0],l=s.reduce((u,f)=>{const d=yd(t,f,i);return u.top=St(d.top,u.top),u.right=Nr(d.right,u.right),u.bottom=Nr(d.bottom,u.bottom),u.left=St(d.left,u.left),u},yd(t,a,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function x3(e){const{width:t,height:n}=Zm(e);return{width:t,height:n}}function C3(e,t,n){const r=wn(t),i=bn(t),o=n==="fixed",s=$r(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const l=pn(0);if(r||!r&&!o)if((Ei(t)!=="body"||To(i))&&(a=ea(t)),r){const p=$r(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}else i&&(l.x=pu(i));const u=i&&!r&&!o?Xm(i,a):pn(0),f=s.left+a.scrollLeft-l.x-u.x,d=s.top+a.scrollTop-l.y-u.y;return{x:f,y:d,width:s.width,height:s.height}}function Ta(e){return mn(e).position==="static"}function vd(e,t){if(!wn(e)||mn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return bn(e)===n&&(n=n.ownerDocument.body),n}function Qm(e,t){const n=Yt(e);if(Qs(e))return n;if(!wn(e)){let i=Kn(e);for(;i&&!fi(i);){if(Dt(i)&&!Ta(i))return i;i=Kn(i)}return n}let r=vd(e,t);for(;r&&Kx(r)&&Ta(r);)r=vd(r,t);return r&&fi(r)&&Ta(r)&&!fu(r)?n:r||Xx(e)||n}const S3=async function(e){const t=this.getOffsetParent||Qm,n=this.getDimensions,r=await n(e.floating);return{reference:C3(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function E3(e){return mn(e).direction==="rtl"}const A3={convertOffsetParentRelativeRectToViewportRelativeRect:p3,getDocumentElement:bn,getClippingRect:_3,getOffsetParent:Qm,getElementRects:S3,getClientRects:g3,getDimensions:x3,getScale:ni,isElement:Dt,isRTL:E3};function eh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function k3(e,t){let n=null,r;const i=bn(e);function o(){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),o();const u=e.getBoundingClientRect(),{left:f,top:d,width:p,height:h}=u;if(a||t(),!p||!h)return;const m=Uo(d),v=Uo(i.clientWidth-(f+p)),b=Uo(i.clientHeight-(d+h)),x=Uo(f),E={rootMargin:-m+"px "+-v+"px "+-b+"px "+-x+"px",threshold:St(0,Nr(1,l))||1};let M=!0;function R(F){const L=F[0].intersectionRatio;if(L!==l){if(!M)return s();L?s(!1,L):r=setTimeout(()=>{s(!1,1e-7)},1e3)}L===1&&!eh(u,e.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(R,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(R,E)}n.observe(e)}return s(!0),o}function N3(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=r,u=hu(e),f=i||o?[...u?so(u):[],...so(t)]:[];f.forEach(x=>{i&&x.addEventListener("scroll",n,{passive:!0}),o&&x.addEventListener("resize",n)});const d=u&&a?k3(u,n):null;let p=-1,h=null;s&&(h=new ResizeObserver(x=>{let[C]=x;C&&C.target===u&&h&&(h.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var E;(E=h)==null||E.observe(t)})),n()}),u&&!l&&h.observe(u),h.observe(t));let m,v=l?$r(e):null;l&&b();function b(){const x=$r(e);v&&!eh(v,x)&&n(),v=x,m=requestAnimationFrame(b)}return n(),()=>{var x;f.forEach(C=>{i&&C.removeEventListener("scroll",n),o&&C.removeEventListener("resize",n)}),d==null||d(),(x=h)==null||x.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const $a=ta,T3=c3,$3=d3,M3=l3,I3=f3,D3=(e,t,n)=>{const r=new Map,i={platform:A3,...n},o={...i.platform,_c:r};return a3(e,t,{...i,platform:o})};var ts=typeof document<"u"?yn:Oe;function ks(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,i;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(!ks(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!ks(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function th(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function bd(e,t){const n=th(e);return Math.round(t*n)/n}function Ma(e){const t=re(e);return ts(()=>{t.current=e}),t}function O3(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:a=!0,whileElementsMounted:l,open:u}=e,[f,d]=ye({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[p,h]=ye(r);ks(p,r)||h(r);const[m,v]=ye(null),[b,x]=ye(null),C=Ie(P=>{P!==F.current&&(F.current=P,v(P))},[]),E=Ie(P=>{P!==L.current&&(L.current=P,x(P))},[]),M=o||m,R=s||b,F=re(null),L=re(null),S=re(f),_=l!=null,k=Ma(l),T=Ma(i),I=Ma(u),D=Ie(()=>{if(!F.current||!L.current)return;const P={placement:t,strategy:n,middleware:p};T.current&&(P.platform=T.current),D3(F.current,L.current,P).then(W=>{const j={...W,isPositioned:I.current!==!1};B.current&&!ks(S.current,j)&&(S.current=j,qt(()=>{d(j)}))})},[p,t,n,T,I]);ts(()=>{u===!1&&S.current.isPositioned&&(S.current.isPositioned=!1,d(P=>({...P,isPositioned:!1})))},[u]);const B=re(!1);ts(()=>(B.current=!0,()=>{B.current=!1}),[]),ts(()=>{if(M&&(F.current=M),R&&(L.current=R),M&&R){if(k.current)return k.current(M,R,D);D()}},[M,R,D,k,_]);const pe=me(()=>({reference:F,floating:L,setReference:C,setFloating:E}),[C,E]),Y=me(()=>({reference:M,floating:R}),[M,R]),U=me(()=>{const P={position:n,left:0,top:0};if(!Y.floating)return P;const W=bd(Y.floating,f.x),j=bd(Y.floating,f.y);return a?{...P,transform:"translate("+W+"px, "+j+"px)",...th(Y.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:j}},[n,a,Y.floating,f.x,f.y]);return me(()=>({...f,update:D,refs:pe,elements:Y,floatingStyles:U}),[f,D,pe,Y,U])}const nh=(e,t)=>({...T3(e),options:[e,t]}),R3=(e,t)=>({...$3(e),options:[e,t]}),F3=(e,t)=>({...M3(e),options:[e,t]}),P3=(e,t)=>({...I3(e),options:[e,t]}),rh={...ss},L3=rh.useInsertionEffect,V3=L3||(e=>e());function ih(e){const t=re(()=>{});return V3(()=>{t.current=e}),Ie(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}var fl=typeof document<"u"?yn:Oe;let _d=!1,H3=0;const xd=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+H3++;function j3(){const[e,t]=ye(()=>_d?xd():void 0);return fl(()=>{e==null&&t(xd())},[]),Oe(()=>{_d=!0},[]),e}const B3=rh.useId,U3=B3||j3;function W3(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(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(i=>i!==n))||[])}}}const G3=nt(null),z3=nt(null),q3=()=>{var e;return((e=Pe(G3))==null?void 0:e.id)||null},Y3=()=>Pe(z3),Z3="data-floating-ui-focusable";function K3(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=U3(),o=re({}),[s]=ye(()=>W3()),a=q3()!=null,[l,u]=ye(r.reference),f=ih((h,m,v)=>{o.current.openEvent=h?m:void 0,s.emit("openchange",{open:h,event:m,reason:v,nested:a}),n==null||n(h,m,v)}),d=me(()=>({setPositionReference:u}),[]),p=me(()=>({reference:l||r.reference||null,floating:r.floating||null,domReference:r.reference}),[l,r.reference,r.floating]);return me(()=>({dataRef:o,open:t,onOpenChange:f,elements:p,events:s,floatingId:i,refs:d}),[t,f,p,s,i,d])}function X3(e){e===void 0&&(e={});const{nodeId:t}=e,n=K3({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=ye(null),[a,l]=ye(null),f=(i==null?void 0:i.domReference)||o,d=re(null),p=Y3();fl(()=>{f&&(d.current=f)},[f]);const h=O3({...e,elements:{...i,...a&&{reference:a}}}),m=Ie(E=>{const M=Dt(E)?{getBoundingClientRect:()=>E.getBoundingClientRect(),contextElement:E}:E;l(M),h.refs.setReference(M)},[h.refs]),v=Ie(E=>{(Dt(E)||E===null)&&(d.current=E,s(E)),(Dt(h.refs.reference.current)||h.refs.reference.current===null||E!==null&&!Dt(E))&&h.refs.setReference(E)},[h.refs]),b=me(()=>({...h.refs,setReference:v,setPositionReference:m,domReference:d}),[h.refs,v,m]),x=me(()=>({...h.elements,domReference:f}),[h.elements,f]),C=me(()=>({...h,...r,refs:b,elements:x,nodeId:t}),[h,b,x,t,r]);return fl(()=>{r.dataRef.current.floatingContext=C;const E=p==null?void 0:p.nodesRef.current.find(M=>M.id===t);E&&(E.context=C)}),me(()=>({...h,context:C,refs:b,elements:x}),[h,b,x,C])}const Cd="active",Sd="selected";function Ia(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[Cd]:s,[Sd]:a,...l}=e;o=l}return{...n==="floating"&&{tabIndex:-1,[Z3]:""},...o,...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,f]=l;if(!(i&&[Cd,Sd].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof f=="function"){var d;(d=r.get(u))==null||d.push(f),s[u]=function(){for(var p,h=arguments.length,m=new Array(h),v=0;v<h;v++)m[v]=arguments[v];return(p=r.get(u))==null?void 0:p.map(b=>b(...m)).find(b=>b!==void 0)}}}else s[u]=f}),s),{})}}function J3(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),i=Ie(a=>Ia(a,e,"reference"),t),o=Ie(a=>Ia(a,e,"floating"),n),s=Ie(a=>Ia(a,e,"item"),r);return me(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}function Ed(e,t){return{...e,rects:{...e.rects,floating:{...e.rects.floating,height:t}}}}const Q3=e=>({name:"inner",options:e,async fn(t){const{listRef:n,overflowRef:r,onFallbackChange:i,offset:o=0,index:s=0,minItemsVisible:a=4,referenceOverflowThreshold:l=0,scrollRef:u,...f}=Ai(e,t),{rects:d,elements:{floating:p}}=t,h=n.current[s],m=(u==null?void 0:u.current)||p,v=p.clientTop||m.clientTop,b=p.clientTop!==0,x=m.clientTop!==0,C=p===m;if(!h)return{};const E={...t,...await nh(-h.offsetTop-p.clientTop-d.reference.height/2-h.offsetHeight/2-o).fn(t)},M=await $a(Ed(E,m.scrollHeight+v+p.clientTop),f),R=await $a(E,{...f,elementContext:"reference"}),F=St(0,M.top),L=E.y+F,k=(m.scrollHeight>m.clientHeight?T=>T:ao)(St(0,m.scrollHeight+(b&&C||x?v*2:0)-F-St(0,M.bottom)));if(m.style.maxHeight=k+"px",m.scrollTop=F,i){const T=m.offsetHeight<h.offsetHeight*Nr(a,n.current.length)-1||R.top>=-l||R.bottom>=-l;qt(()=>i(T))}return r&&(r.current=await $a(Ed({...E,y:L},m.offsetHeight+v+p.clientTop),f)),{y:L}}});function e5(e,t){const{open:n,elements:r}=e,{enabled:i=!0,overflowRef:o,scrollRef:s,onChange:a}=t,l=ih(a),u=re(!1),f=re(null),d=re(null);Oe(()=>{if(!i)return;function h(v){if(v.ctrlKey||!m||o.current==null)return;const b=v.deltaY,x=o.current.top>=-.5,C=o.current.bottom>=-.5,E=m.scrollHeight-m.clientHeight,M=b<0?-1:1,R=b<0?"max":"min";m.scrollHeight<=m.clientHeight||(!x&&b>0||!C&&b<0?(v.preventDefault(),qt(()=>{l(F=>F+Math[R](b,E*M))})):/firefox/i.test(Jx())&&(m.scrollTop+=b))}const m=(s==null?void 0:s.current)||r.floating;if(n&&m)return m.addEventListener("wheel",h),requestAnimationFrame(()=>{f.current=m.scrollTop,o.current!=null&&(d.current={...o.current})}),()=>{f.current=null,d.current=null,m.removeEventListener("wheel",h)}},[i,n,r.floating,o,s,l]);const p=me(()=>({onKeyDown(){u.current=!0},onWheel(){u.current=!1},onPointerMove(){u.current=!1},onScroll(){const h=(s==null?void 0:s.current)||r.floating;if(!(!o.current||!h||!u.current)){if(f.current!==null){const m=h.scrollTop-f.current;(o.current.bottom<-.5&&m<-1||o.current.top<-.5&&m>1)&&qt(()=>l(v=>v+m))}requestAnimationFrame(()=>{f.current=h.scrollTop})}}}),[r.floating,l,o,s]);return me(()=>i?{floating:p}:{},[i,p])}let ki=nt({styles:void 0,setReference:()=>{},setFloating:()=>{},getReferenceProps:()=>({}),getFloatingProps:()=>({}),slot:{}});ki.displayName="FloatingContext";let gu=nt(null);gu.displayName="PlacementContext";function t5(e){return me(()=>e?typeof e=="string"?{to:e}:e:null,[e])}function n5(){return Pe(ki).setReference}function r5(){return Pe(ki).getReferenceProps}function i5(){let{getFloatingProps:e,slot:t}=Pe(ki);return Ie((...n)=>Object.assign({},e(...n),{"data-anchor":t.anchor}),[e,t])}function o5(e=null){e===!1&&(e=null),typeof e=="string"&&(e={to:e});let t=Pe(gu),n=me(()=>e,[JSON.stringify(e,(i,o)=>{var s;return(s=o==null?void 0:o.outerHTML)!=null?s:o})]);Ze(()=>{t==null||t(n??null)},[t,n]);let r=Pe(ki);return me(()=>[r.setFloating,e?r.styles:{}],[r.setFloating,e,r.styles])}let Ad=4;function s5({children:e,enabled:t=!0}){let[n,r]=ye(null),[i,o]=ye(0),s=re(null),[a,l]=ye(null);a5(a);let u=t&&n!==null&&a!==null,{to:f="bottom",gap:d=0,offset:p=0,padding:h=0,inner:m}=l5(n,a),[v,b="center"]=f.split(" ");Ze(()=>{u&&o(0)},[u]);let{refs:x,floatingStyles:C,context:E}=X3({open:u,placement:v==="selection"?b==="center"?"bottom":`bottom-${b}`:b==="center"?`${v}`:`${v}-${b}`,strategy:"absolute",transform:!1,middleware:[nh({mainAxis:v==="selection"?0:d,crossAxis:p}),R3({padding:h}),v!=="selection"&&F3({padding:h}),v==="selection"&&m?Q3({...m,padding:h,overflowRef:s,offset:i,minItemsVisible:Ad,referenceOverflowThreshold:h,onFallbackChange(T){var I,D;if(!T)return;let B=E.elements.floating;if(!B)return;let pe=parseFloat(getComputedStyle(B).scrollPaddingBottom)||0,Y=Math.min(Ad,B.childElementCount),U=0,P=0;for(let W of(D=(I=E.elements.floating)==null?void 0:I.childNodes)!=null?D:[])if(W instanceof HTMLElement){let j=W.offsetTop,de=j+W.clientHeight+pe,q=B.scrollTop,O=q+B.clientHeight;if(j>=q&&de<=O)Y--;else{P=Math.max(0,Math.min(de,O)-Math.max(j,q)),U=W.clientHeight;break}}Y>=1&&o(W=>{let j=U*Y-P+pe;return W>=j?W:j})}}):null,P3({padding:h,apply({availableWidth:T,availableHeight:I,elements:D}){Object.assign(D.floating.style,{overflow:"auto",maxWidth:`${T}px`,maxHeight:`min(var(--anchor-max-height, 100vh), ${I}px)`})}})].filter(Boolean),whileElementsMounted:N3}),[M=v,R=b]=E.placement.split("-");v==="selection"&&(M="selection");let F=me(()=>({anchor:[M,R].filter(Boolean).join(" ")}),[M,R]),L=e5(E,{overflowRef:s,onChange:o}),{getReferenceProps:S,getFloatingProps:_}=J3([L]),k=ae(T=>{l(T),x.setFloating(T)});return c(gu.Provider,{value:r},c(ki.Provider,{value:{setFloating:k,setReference:x.setReference,styles:C,getReferenceProps:S,getFloatingProps:_,slot:F}},e))}function a5(e){Ze(()=>{if(!e)return;let t=new MutationObserver(()=>{let n=window.getComputedStyle(e).maxHeight,r=parseFloat(n);if(isNaN(r))return;let i=parseInt(n);isNaN(i)||r!==i&&(e.style.maxHeight=`${Math.ceil(r)}px`)});return t.observe(e,{attributes:!0,attributeFilter:["style"]}),()=>{t.disconnect()}},[e])}function l5(e,t){var n,r,i;let o=Da((n=e==null?void 0:e.gap)!=null?n:"var(--anchor-gap, 0)",t),s=Da((r=e==null?void 0:e.offset)!=null?r:"var(--anchor-offset, 0)",t),a=Da((i=e==null?void 0:e.padding)!=null?i:"var(--anchor-padding, 0)",t);return{...e,gap:o,offset:s,padding:a}}function Da(e,t,n=void 0){let r=ir(),i=ae((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 f=kd(l,u);return[f,d=>{let p=oh(l);{let h=p.map(m=>window.getComputedStyle(u).getPropertyValue(m));r.requestAnimationFrame(function m(){r.nextFrame(m);let v=!1;for(let[x,C]of p.entries()){let E=window.getComputedStyle(u).getPropertyValue(C);if(h[x]!==E){h[x]=E,v=!0;break}}if(!v)return;let b=kd(l,u);f!==b&&(d(b),f=b)})}return r.dispose}]}return[n,null]}),o=me(()=>i(e,t)[0],[e,t]),[s=o,a]=ye();return Ze(()=>{let[l,u]=i(e,t);if(a(l),!!u)return u(a)},[e,t]),s}function oh(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(),i=t[1].slice(n+1).trim();return i?[r,...oh(i)]:[r]}return[]}function kd(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 u5(e,t){let[n,r]=ye(t);return!e&&n!==t&&r(t),e?n:t}let na=nt(null);na.displayName="OpenClosedContext";var Ot=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Ot||{});function Mo(){return Pe(na)}function sh({value:e,children:t}){return X.createElement(na.Provider,{value:e},t)}function c5({children:e}){return X.createElement(na.Provider,{value:null},e)}function d5(e){function t(){document.readyState!=="loading"&&(e(),document.removeEventListener("DOMContentLoaded",t))}typeof window<"u"&&typeof document<"u"&&(document.addEventListener("DOMContentLoaded",t),t())}let jn=[];d5(()=>{function e(t){if(!(t.target instanceof HTMLElement)||t.target===document.body||jn[0]===t.target)return;let n=t.target;n=n.closest(Ss),jn.unshift(n??t.target),jn=jn.filter(r=>r!=null&&r.isConnected),jn.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 f5(e){throw new Error("Unexpected object: "+e)}var wt=(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))(wt||{});function Oa(e,t){let n=t.resolveItems();if(n.length<=0)return null;let r=t.resolveActiveIndex(),i=r??-1;switch(e.focus){case 0:{for(let o=0;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 1:{i===-1&&(i=n.length);for(let o=i-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 2:{for(let o=i+1;o<n.length;++o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 3:{for(let o=n.length-1;o>=0;--o)if(!t.resolveDisabled(n[o],o,n))return o;return r}case 4:{for(let o=0;o<n.length;++o)if(t.resolveId(n[o],o,n)===e.id)return o;return r}case 5:return null;default:f5(e)}}function ah(e){let t=ae(e),n=re(!1);Oe(()=>(n.current=!1,()=>{n.current=!0,Zs(()=>{n.current&&t()})}),[t])}function m5(){let e=typeof document>"u";return"useSyncExternalStore"in ss?(t=>t.useSyncExternalStore)(ss)(()=>()=>{},()=>!1,()=>!e):!1}function Io(){let e=m5(),[t,n]=ye(br.isHandoffComplete);return t&&br.isHandoffComplete===!1&&n(!1),Oe(()=>{t!==!0&&n(!0)},[t]),Oe(()=>br.handoff(),[]),e?!1:t}let lh=nt(!1);function h5(){return Pe(lh)}function Nd(e){return X.createElement(lh.Provider,{value:e.force},e.children)}function p5(e){let t=h5(),n=Pe(ch),r=Si(e),[i,o]=ye(()=>{var s;if(!t&&n!==null)return(s=n.current)!=null?s:null;if(br.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 Oe(()=>{i!==null&&(r!=null&&r.body.contains(i)||r==null||r.body.appendChild(i))},[i,r]),Oe(()=>{t||n!==null&&o(n.current)},[n,o,t]),i}let uh=ze,g5=ht(function(e,t){let n=e,r=re(null),i=$t(lx(d=>{r.current=d}),t),o=Si(r),s=p5(r),[a]=ye(()=>{var d;return br.isServer?null:(d=o==null?void 0:o.createElement("div"))!=null?d:null}),l=Pe(ml),u=Io();Ze(()=>{!s||!a||s.contains(a)||(a.setAttribute("data-headlessui-portal",""),s.appendChild(a))},[s,a]),Ze(()=>{if(a&&l)return l.register(a)},[l,a]),ah(()=>{var d;!s||!a||(a instanceof Node&&s.contains(a)&&s.removeChild(a),s.childNodes.length<=0&&((d=s.parentElement)==null||d.removeChild(s)))});let f=bt();return u?!s||!a?null:Ds(f({ourProps:{ref:i},theirProps:n,slot:{},defaultTag:uh,name:"Portal"}),a):null});function w5(e,t){let n=$t(t),{enabled:r=!0,...i}=e,o=bt();return r?X.createElement(g5,{...i,ref:n}):o({ourProps:{ref:n},theirProps:i,slot:{},defaultTag:uh,name:"Portal"})}let y5=ze,ch=nt(null);function v5(e,t){let{target:n,...r}=e,i={ref:$t(t)},o=bt();return X.createElement(ch.Provider,{value:n},o({ourProps:i,theirProps:r,defaultTag:y5,name:"Popover.Group"}))}let ml=nt(null);function b5(){let e=Pe(ml),t=re([]),n=ae(o=>(t.current.push(o),e&&e.register(o),()=>r(o))),r=ae(o=>{let s=t.current.indexOf(o);s!==-1&&t.current.splice(s,1),e&&e.unregister(o)}),i=me(()=>({register:n,unregister:r,portals:t}),[n,r,t]);return[t,me(()=>function({children:o}){return X.createElement(ml.Provider,{value:i},o)},[i])]}let _5=ht(w5),dh=ht(v5),fh=Object.assign(_5,{Group:dh});function x5(e,t=typeof document<"u"?document.defaultView:null,n){let r=Ci(e,"escape");Hm(t,"keydown",i=>{r&&(i.defaultPrevented||i.key===gt.Escape&&n(i))})}function C5(){var e;let[t]=ye(()=>typeof window<"u"&&typeof window.matchMedia=="function"?window.matchMedia("(pointer: coarse)"):null),[n,r]=ye((e=t==null?void 0:t.matches)!=null?e:!1);return Ze(()=>{if(!t)return;function i(o){r(o.matches)}return t.addEventListener("change",i),()=>t.removeEventListener("change",i)},[t]),n}function S5({defaultContainers:e=[],portals:t,mainTreeNode:n}={}){let r=Si(n),i=ae(()=>{var o,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(o=r==null?void 0:r.querySelectorAll("html > *, body > *"))!=null?o:[])l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l.id!=="headlessui-portal-root"&&(n&&(l.contains(n)||l.contains((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:i,contains:ae(o=>i().some(s=>s.contains(o)))}}let mh=nt(null);function Td({children:e,node:t}){let[n,r]=ye(null),i=hh(t??n);return X.createElement(mh.Provider,{value:i},e,i===null&&X.createElement(oo,{features:di.Hidden,ref:o=>{var s,a;if(o){for(let l of(a=(s=xi(o))==null?void 0:s.querySelectorAll("html > *, body > *"))!=null?a:[])if(l!==document.body&&l!==document.head&&l instanceof HTMLElement&&l!=null&&l.contains(o)){r(l);break}}}}))}function hh(e=null){var t;return(t=Pe(mh))!=null?t:e}function wu(){let e=re(!1);return Ze(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var qi=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(qi||{});function E5(){let e=re(0);return Lm(!0,"keydown",t=>{t.key==="Tab"&&(e.current=t.shiftKey?1:0)},!0),e}function ph(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 A5="div";var hr=(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))(hr||{});function k5(e,t){let n=re(null),r=$t(n,t),{initialFocus:i,initialFocusFallback:o,containers:s,features:a=15,...l}=e;Io()||(a=0);let u=Si(n);M5(a,{ownerDocument:u});let f=I5(a,{ownerDocument:u,container:n,initialFocus:i,initialFocusFallback:o});D5(a,{ownerDocument:u,container:n,containers:s,previousActiveElement:f});let d=E5(),p=ae(C=>{let E=n.current;E&&(M=>M())(()=>{Lt(d.current,{[qi.Forwards]:()=>{ti(E,un.First,{skipElements:[C.relatedTarget,o]})},[qi.Backwards]:()=>{ti(E,un.Last,{skipElements:[C.relatedTarget,o]})}})})}),h=Ci(!!(a&2),"focus-trap#tab-lock"),m=ir(),v=re(!1),b={ref:r,onKeyDown(C){C.key=="Tab"&&(v.current=!0,m.requestAnimationFrame(()=>{v.current=!1}))},onBlur(C){if(!(a&4))return;let E=ph(s);n.current instanceof HTMLElement&&E.add(n.current);let M=C.relatedTarget;M instanceof HTMLElement&&M.dataset.headlessuiFocusGuard!=="true"&&(gh(E,M)||(v.current?ti(n.current,Lt(d.current,{[qi.Forwards]:()=>un.Next,[qi.Backwards]:()=>un.Previous})|un.WrapAround,{relativeTo:C.target}):C.target instanceof HTMLElement&&In(C.target)))}},x=bt();return X.createElement(X.Fragment,null,h&&X.createElement(oo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:di.Focusable}),x({ourProps:b,theirProps:l,defaultTag:A5,name:"FocusTrap"}),h&&X.createElement(oo,{as:"button",type:"button","data-headlessui-focus-guard":!0,onFocus:p,features:di.Focusable}))}let N5=ht(k5),T5=Object.assign(N5,{features:hr});function $5(e=!0){let t=re(jn.slice());return du(([n],[r])=>{r===!0&&n===!1&&Zs(()=>{t.current.splice(0)}),r===!1&&n===!0&&(t.current=jn.slice())},[e,jn,t]),ae(()=>{var n;return(n=t.current.find(r=>r!=null&&r.isConnected))!=null?n:null})}function M5(e,{ownerDocument:t}){let n=!!(e&8),r=$5(n);du(()=>{n||(t==null?void 0:t.activeElement)===(t==null?void 0:t.body)&&In(r())},[n]),ah(()=>{n&&In(r())})}function I5(e,{ownerDocument:t,container:n,initialFocus:r,initialFocusFallback:i}){let o=re(null),s=Ci(!!(e&1),"focus-trap#initial-focus"),a=wu();return du(()=>{if(e===0)return;if(!s){i!=null&&i.current&&In(i.current);return}let l=n.current;l&&Zs(()=>{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){o.current=u;return}}else if(l.contains(u)){o.current=u;return}if(r!=null&&r.current)In(r.current);else{if(e&16){if(ti(l,un.First|un.AutoFocus)!==ul.Error)return}else if(ti(l,un.First)!==ul.Error)return;if(i!=null&&i.current&&(In(i.current),(t==null?void 0:t.activeElement)===i.current))return;console.warn("There are no focusable elements inside the <FocusTrap />")}o.current=t==null?void 0:t.activeElement})},[i,s,e]),o}function D5(e,{ownerDocument:t,container:n,containers:r,previousActiveElement:i}){let o=wu(),s=!!(e&4);Hm(t==null?void 0:t.defaultView,"focus",a=>{if(!s||!o.current)return;let l=ph(r);n.current instanceof HTMLElement&&l.add(n.current);let u=i.current;if(!u)return;let f=a.target;f&&f instanceof HTMLElement?gh(l,f)?(i.current=f,In(f)):(a.preventDefault(),a.stopPropagation(),In(u)):In(i.current)},!0)}function gh(e,t){for(let n of e)if(n.contains(t))return!0;return!1}function wh(e){var t;return!!(e.enter||e.enterFrom||e.enterTo||e.leave||e.leaveFrom||e.leaveTo)||((t=e.as)!=null?t:vh)!==ze||X.Children.count(e.children)===1}let ra=nt(null);ra.displayName="TransitionContext";var O5=(e=>(e.Visible="visible",e.Hidden="hidden",e))(O5||{});function R5(){let e=Pe(ra);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function F5(){let e=Pe(ia);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let ia=nt(null);ia.displayName="NestingContext";function oa(e){return"children"in e?oa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function yh(e,t){let n=or(e),r=re([]),i=wu(),o=ir(),s=ae((h,m=Wn.Hidden)=>{let v=r.current.findIndex(({el:b})=>b===h);v!==-1&&(Lt(m,{[Wn.Unmount](){r.current.splice(v,1)},[Wn.Hidden](){r.current[v].state="hidden"}}),o.microTask(()=>{var b;!oa(r)&&i.current&&((b=n.current)==null||b.call(n))}))}),a=ae(h=>{let m=r.current.find(({el:v})=>v===h);return m?m.state!=="visible"&&(m.state="visible"):r.current.push({el:h,state:"visible"}),()=>s(h,Wn.Unmount)}),l=re([]),u=re(Promise.resolve()),f=re({enter:[],leave:[]}),d=ae((h,m,v)=>{l.current.splice(0),t&&(t.chains.current[m]=t.chains.current[m].filter(([b])=>b!==h)),t==null||t.chains.current[m].push([h,new Promise(b=>{l.current.push(b)})]),t==null||t.chains.current[m].push([h,new Promise(b=>{Promise.all(f.current[m].map(([x,C])=>C)).then(()=>b())})]),m==="enter"?u.current=u.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(m)):v(m)}),p=ae((h,m,v)=>{Promise.all(f.current[m].splice(0).map(([b,x])=>x)).then(()=>{var b;(b=l.current.shift())==null||b()}).then(()=>v(m))});return me(()=>({children:r,register:a,unregister:s,onStart:d,onStop:p,wait:u,chains:f}),[a,s,r,d,p,f,u])}let vh=ze,bh=ci.RenderStrategy;function P5(e,t){var n,r;let{transition:i=!0,beforeEnter:o,afterEnter:s,beforeLeave:a,afterLeave:l,enter:u,enterFrom:f,enterTo:d,entered:p,leave:h,leaveFrom:m,leaveTo:v,...b}=e,[x,C]=ye(null),E=re(null),M=wh(e),R=$t(...M?[E,t,C]:t===null?[]:[t]),F=(n=b.unmount)==null||n?Wn.Unmount:Wn.Hidden,{show:L,appear:S,initial:_}=R5(),[k,T]=ye(L?"visible":"hidden"),I=F5(),{register:D,unregister:B}=I;Ze(()=>D(E),[D,E]),Ze(()=>{if(F===Wn.Hidden&&E.current){if(L&&k!=="visible"){T("visible");return}return Lt(k,{hidden:()=>B(E),visible:()=>D(E)})}},[k,E,D,B,L,F]);let pe=Io();Ze(()=>{if(M&&pe&&k==="visible"&&E.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[E,k,pe,M]);let Y=_&&!S,U=S&&L&&_,P=re(!1),W=yh(()=>{P.current||(T("hidden"),B(E))},I),j=ae(Le=>{P.current=!0;let te=Le?"enter":"leave";W.onStart(E,te,be=>{be==="enter"?o==null||o():be==="leave"&&(a==null||a())})}),de=ae(Le=>{let te=Le?"enter":"leave";P.current=!1,W.onStop(E,te,be=>{be==="enter"?s==null||s():be==="leave"&&(l==null||l())}),te==="leave"&&!oa(W)&&(T("hidden"),B(E))});Oe(()=>{M&&i||(j(L),de(L))},[L,M,i]);let q=!(!i||!M||!pe||Y),[,O]=Um(q,x,L,{start:j,end:de}),ue=Hn({ref:R,className:((r=al(b.className,U&&u,U&&f,O.enter&&u,O.enter&&O.closed&&f,O.enter&&!O.closed&&d,O.leave&&h,O.leave&&!O.closed&&m,O.leave&&O.closed&&v,!O.transition&&L&&p))==null?void 0:r.trim())||void 0,...Bm(O)}),ee=0;k==="visible"&&(ee|=Ot.Open),k==="hidden"&&(ee|=Ot.Closed),O.enter&&(ee|=Ot.Opening),O.leave&&(ee|=Ot.Closing);let _e=bt();return X.createElement(ia.Provider,{value:W},X.createElement(sh,{value:ee},_e({ourProps:ue,theirProps:b,defaultTag:vh,features:bh,visible:k==="visible",name:"Transition.Child"})))}function L5(e,t){let{show:n,appear:r=!1,unmount:i=!0,...o}=e,s=re(null),a=wh(e),l=$t(...a?[s,t]:t===null?[]:[t]);Io();let u=Mo();if(n===void 0&&u!==null&&(n=(u&Ot.Open)===Ot.Open),n===void 0)throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,d]=ye(n?"visible":"hidden"),p=yh(()=>{n||d("hidden")}),[h,m]=ye(!0),v=re([n]);Ze(()=>{h!==!1&&v.current[v.current.length-1]!==n&&(v.current.push(n),m(!1))},[v,n]);let b=me(()=>({show:n,appear:r,initial:h}),[n,r,h]);Ze(()=>{n?d("visible"):!oa(p)&&s.current!==null&&d("hidden")},[n,p]);let x={unmount:i},C=ae(()=>{var R;h&&m(!1),(R=e.beforeEnter)==null||R.call(e)}),E=ae(()=>{var R;h&&m(!1),(R=e.beforeLeave)==null||R.call(e)}),M=bt();return X.createElement(ia.Provider,{value:p},X.createElement(ra.Provider,{value:b},M({ourProps:{...x,as:ze,children:X.createElement(_h,{ref:l,...x,...o,beforeEnter:C,beforeLeave:E})},theirProps:{},defaultTag:ze,features:bh,visible:f==="visible",name:"Transition"})))}function V5(e,t){let n=Pe(ra)!==null,r=Mo()!==null;return X.createElement(X.Fragment,null,!n&&r?X.createElement(hl,{ref:t,...e}):X.createElement(_h,{ref:t,...e}))}let hl=ht(L5),_h=ht(P5),yu=ht(V5),H5=Object.assign(hl,{Child:yu,Root:hl});var j5=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(j5||{}),B5=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(B5||{});let U5={0(e,t){return e.titleId===t.id?e:{...e,titleId:t.id}}},vu=nt(null);vu.displayName="DialogContext";function sa(e){let t=Pe(vu);if(t===null){let n=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,sa),n}return t}function W5(e,t){return Lt(t.type,U5,e,t)}let $d=ht(function(e,t){let n=en(),{id:r=`headlessui-dialog-${n}`,open:i,onClose:o,initialFocus:s,role:a="dialog",autoFocus:l=!0,__demoMode:u=!1,unmount:f=!1,...d}=e,p=re(!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=Mo();i===void 0&&h!==null&&(i=(h&Ot.Open)===Ot.Open);let m=re(null),v=$t(m,t),b=Si(m),x=i?0:1,[C,E]=Ir(W5,{titleId:null,descriptionId:null,panelRef:Ms()}),M=ae(()=>o(!1)),R=ae(de=>E({type:0,id:de})),F=Io()?x===0:!1,[L,S]=b5(),_={get current(){var de;return(de=C.panelRef.current)!=null?de:m.current}},k=hh(),{resolveContainers:T}=S5({mainTreeNode:k,portals:L,defaultContainers:[_]}),I=h!==null?(h&Ot.Closing)===Ot.Closing:!1;Im(u||I?!1:F,{allowed:ae(()=>{var de,q;return[(q=(de=m.current)==null?void 0:de.closest("[data-headlessui-portal]"))!=null?q:null]}),disallowed:ae(()=>{var de;return[(de=k==null?void 0:k.closest("body > *:not(#headlessui-portal-root)"))!=null?de:null]})}),Vm(F,T,de=>{de.preventDefault(),M()}),x5(F,b==null?void 0:b.defaultView,de=>{de.preventDefault(),de.stopPropagation(),document.activeElement&&"blur"in document.activeElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur(),M()}),jm(u||I?!1:F,b,T),Dm(F,m,M);let[D,B]=cx(),pe=me(()=>[{dialogState:x,close:M,setTitleId:R,unmount:f},C],[x,C,M,R,f]),Y=me(()=>({open:x===0}),[x]),U={ref:v,id:r,role:a,tabIndex:-1,"aria-modal":u?void 0:x===0?!0:void 0,"aria-labelledby":C.titleId,"aria-describedby":D,unmount:f},P=!C5(),W=hr.None;F&&!u&&(W|=hr.RestoreFocus,W|=hr.TabLock,l&&(W|=hr.AutoFocus),P&&(W|=hr.InitialFocus));let j=bt();return X.createElement(c5,null,X.createElement(Nd,{force:!0},X.createElement(fh,null,X.createElement(vu.Provider,{value:pe},X.createElement(dh,{target:m},X.createElement(Nd,{force:!1},X.createElement(B,{slot:Y},X.createElement(S,null,X.createElement(T5,{initialFocus:s,initialFocusFallback:m,containers:T,features:W},X.createElement(_x,{value:M},j({ourProps:U,theirProps:d,slot:Y,defaultTag:G5,features:z5,visible:x===0,name:"Dialog"})))))))))))}),G5="div",z5=ci.RenderStrategy|ci.Static;function q5(e,t){let{transition:n=!1,open:r,...i}=e,o=Mo(),s=e.hasOwnProperty("open")||o!==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(!o&&typeof e.open!="boolean")throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);if(typeof e.onClose!="function")throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);return(r!==void 0||n)&&!i.static?X.createElement(Td,null,X.createElement(H5,{show:r,transition:n,unmount:i.unmount},X.createElement($d,{ref:t,...i}))):X.createElement(Td,null,X.createElement($d,{ref:t,open:r,...i}))}let Y5="div";function Z5(e,t){let n=en(),{id:r=`headlessui-dialog-panel-${n}`,transition:i=!1,...o}=e,[{dialogState:s,unmount:a},l]=sa("Dialog.Panel"),u=$t(t,l.panelRef),f=me(()=>({open:s===0}),[s]),d=ae(b=>{b.stopPropagation()}),p={ref:u,id:r,onClick:d},h=i?yu:ze,m=i?{unmount:a}:{},v=bt();return X.createElement(h,{...m},v({ourProps:p,theirProps:o,slot:f,defaultTag:Y5,name:"Dialog.Panel"}))}let K5="div";function X5(e,t){let{transition:n=!1,...r}=e,[{dialogState:i,unmount:o}]=sa("Dialog.Backdrop"),s=me(()=>({open:i===0}),[i]),a={ref:t,"aria-hidden":!0},l=n?yu:ze,u=n?{unmount:o}:{},f=bt();return X.createElement(l,{...u},f({ourProps:a,theirProps:r,slot:s,defaultTag:K5,name:"Dialog.Backdrop"}))}let J5="h2";function Q5(e,t){let n=en(),{id:r=`headlessui-dialog-title-${n}`,...i}=e,[{dialogState:o,setTitleId:s}]=sa("Dialog.Title"),a=$t(t);Oe(()=>(s(r),()=>s(null)),[r,s]);let l=me(()=>({open:o===0}),[o]),u={ref:a,id:r};return bt()({ourProps:u,theirProps:i,slot:l,defaultTag:J5,name:"Dialog.Title"})}let eC=ht(q5),tC=ht(Z5),nC=ht(X5),rC=ht(Q5),bu=Object.assign(eC,{Panel:tC,Title:rC,Description:hx});function iC(e,t){let n=re({left:0,top:0});if(Ze(()=>{if(!t)return;let i=t.getBoundingClientRect();i&&(n.current=i)},[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 Md=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Id(e){var t,n;let r=(t=e.innerText)!=null?t:"",i=e.cloneNode(!0);if(!(i instanceof HTMLElement))return r;let o=!1;for(let a of i.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))a.remove(),o=!0;let s=o?(n=i.innerText)!=null?n:"":r;return Md.test(s)&&(s=s.replace(Md,"")),s}function oC(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(i=>{let o=document.getElementById(i);if(o){let s=o.getAttribute("aria-label");return typeof s=="string"?s.trim():Id(o).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Id(e).trim()}function sC(e){let t=re(""),n=re("");return ae(()=>{let r=e.current;if(!r)return"";let i=r.innerText;if(t.current===i)return n.current;let o=oC(r).trim().toLowerCase();return t.current=i,n.current=o,o})}var aC=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(aC||{}),lC=(e=>(e[e.Single=0]="Single",e[e.Multi=1]="Multi",e))(lC||{}),uC=(e=>(e[e.Pointer=0]="Pointer",e[e.Other=1]="Other",e))(uC||{}),cC=(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))(cC||{});function Ra(e,t=n=>n){let n=e.activeOptionIndex!==null?e.options[e.activeOptionIndex]:null,r=Fm(t(e.options.slice()),o=>o.dataRef.current.domRef.current),i=n?r.indexOf(n):null;return i===-1&&(i=null),{options:r,activeOptionIndex:i}}let dC={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(i=>n(i.dataRef.current.value));return r!==-1&&(t=r),{...e,listboxState:0,activeOptionIndex:t,__demoMode:!1}},2(e,t){var n,r,i,o,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===wt.Nothing)return{...a,activeOptionIndex:null};if(t.focus===wt.Specific)return{...a,activeOptionIndex:e.options.findIndex(f=>f.id===t.id)};if(t.focus===wt.Previous){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Oa(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=d.current)==null?void 0:r.previousElementSibling)===h.current||((i=h.current)==null?void 0:i.previousElementSibling)===null)return{...a,activeOptionIndex:p}}}}else if(t.focus===wt.Next){let f=e.activeOptionIndex;if(f!==null){let d=e.options[f].dataRef.current.domRef,p=Oa(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(((o=d.current)==null?void 0:o.nextElementSibling)===h.current||((s=h.current)==null?void 0:s.nextElementSibling)===null)return{...a,activeOptionIndex:p}}}}let l=Ra(e),u=Oa(t,{resolveItems:()=>l.options,resolveActiveIndex:()=>l.activeOptionIndex,resolveId:f=>f.id,resolveDisabled:f=>f.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(),i=(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))}),o=i?e.options.indexOf(i):-1;return o===-1||o===e.activeOptionIndex?{...e,searchQuery:r}:{...e,searchQuery:r,activeOptionIndex:o,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=Ra(e,i=>[...i,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=Ra(e,r=>{let i=r.findIndex(o=>o.id===t.id);return i!==-1&&r.splice(i,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}},_u=nt(null);_u.displayName="ListboxActionsContext";function aa(e){let t=Pe(_u);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,aa),n}return t}let la=nt(null);la.displayName="ListboxDataContext";function Do(e){let t=Pe(la);if(t===null){let n=new Error(`<${e} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,Do),n}return t}function fC(e,t){return Lt(t.type,dC,e,t)}let mC=ze;function hC(e,t){var n;let r=uu(),{value:i,defaultValue:o,form:s,name:a,onChange:l,by:u,invalid:f=!1,disabled:d=r||!1,horizontal:p=!1,multiple:h=!1,__demoMode:m=!1,...v}=e;const b=p?"horizontal":"vertical";let x=$t(t),C=X_(o),[E=h?[]:void 0,M]=K_(i,l,C),[R,F]=Ir(fC,{dataRef:Ms(),listboxState:m?0:1,options:[],searchQuery:"",activeOptionIndex:null,activationTrigger:1,optionsVisible:!1,buttonElement:null,optionsElement:null,__demoMode:m}),L=re({static:!1,hold:!1}),S=re(new Map),_=Cx(u),k=Ie(G=>Lt(T.mode,{1:()=>E.some(J=>_(J,G)),0:()=>_(E,G)}),[E]),T=me(()=>({...R,value:E,disabled:d,invalid:f,mode:h?1:0,orientation:b,compare:_,isSelected:k,optionsPropsRef:L,listRef:S}),[E,d,f,h,R,S]);Ze(()=>{R.dataRef.current=T},[T]);let I=T.listboxState===0;Vm(I,[T.buttonElement,T.optionsElement],(G,J)=>{var he;F({type:1}),Rm(J,cu.Loose)||(G.preventDefault(),(he=T.buttonElement)==null||he.focus())});let D=me(()=>({open:T.listboxState===0,disabled:d,invalid:f,value:E}),[T,d,E,f]),B=ae(G=>{let J=T.options.find(he=>he.id===G);J&&de(J.dataRef.current.value)}),pe=ae(()=>{if(T.activeOptionIndex!==null){let{dataRef:G,id:J}=T.options[T.activeOptionIndex];de(G.current.value),F({type:2,focus:wt.Specific,id:J})}}),Y=ae(()=>F({type:0})),U=ae(()=>F({type:1})),P=ir(),W=ae((G,J,he)=>{P.dispose(),P.microTask(()=>G===wt.Specific?F({type:2,focus:wt.Specific,id:J,trigger:he}):F({type:2,focus:G,trigger:he}))}),j=ae((G,J)=>(F({type:5,id:G,dataRef:J}),()=>F({type:6,id:G}))),de=ae(G=>Lt(T.mode,{0(){return M==null?void 0:M(G)},1(){let J=T.value.slice(),he=J.findIndex(Ce=>_(Ce,G));return he===-1?J.push(G):J.splice(he,1),M==null?void 0:M(J)}})),q=ae(G=>F({type:3,value:G})),O=ae(()=>F({type:4})),ue=ae(G=>{F({type:7,element:G})}),ee=ae(G=>{F({type:8,element:G})}),_e=me(()=>({onChange:de,registerOption:j,goToOption:W,closeListbox:U,openListbox:Y,selectActiveOption:pe,selectOption:B,search:q,clearSearch:O,setButtonElement:ue,setOptionsElement:ee}),[]),[Le,te]=px({inherit:!0}),be={ref:x},xe=Ie(()=>{if(C!==void 0)return M==null?void 0:M(C)},[M,C]),Te=bt();return X.createElement(te,{value:Le,props:{htmlFor:(n=T.buttonElement)==null?void 0:n.id},slot:{open:T.listboxState===0,disabled:d}},X.createElement(s5,null,X.createElement(_u.Provider,{value:_e},X.createElement(la.Provider,{value:T},X.createElement(sh,{value:Lt(T.listboxState,{0:Ot.Open,1:Ot.Closed})},a!=null&&E!=null&&X.createElement(rx,{disabled:d,data:{[a]:E},form:s,onReset:xe}),Te({ourProps:be,theirProps:v,slot:D,defaultTag:mC,name:"Listbox"}))))))}let pC="button";function gC(e,t){var n;let r=Do("Listbox.Button"),i=aa("Listbox.Button"),o=en(),s=Em(),{id:a=s||`headlessui-listbox-button-${o}`,disabled:l=r.disabled||!1,autoFocus:u=!1,...f}=e,d=$t(t,n5(),i.setButtonElement),p=r5(),h=ae(T=>{switch(T.key){case gt.Enter:J_(T.currentTarget);break;case gt.Space:case gt.ArrowDown:T.preventDefault(),qt(()=>i.openListbox()),r.value||i.goToOption(wt.First);break;case gt.ArrowUp:T.preventDefault(),qt(()=>i.openListbox()),r.value||i.goToOption(wt.Last);break}}),m=ae(T=>{switch(T.key){case gt.Space:T.preventDefault();break}}),v=ae(T=>{var I;if(sx(T.currentTarget))return T.preventDefault();r.listboxState===0?(qt(()=>i.closeListbox()),(I=r.buttonElement)==null||I.focus({preventScroll:!0})):(T.preventDefault(),i.openListbox())}),b=ae(T=>T.preventDefault()),x=Tm([a]),C=ux(),{isFocusVisible:E,focusProps:M}=L_({autoFocus:u}),{isHovered:R,hoverProps:F}=P_({isDisabled:l}),{pressed:L,pressProps:S}=W_({disabled:l}),_=me(()=>({open:r.listboxState===0,active:L||r.listboxState===0,disabled:l,invalid:r.invalid,value:r.value,hover:R,focus:E,autofocus:u}),[r.listboxState,r.value,l,R,E,L,r.invalid,u]),k=_m(p(),{ref:d,id:a,type:Px(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":C,disabled:l||void 0,autoFocus:u,onKeyDown:h,onKeyUp:m,onKeyPress:b,onClick:v},M,F,S);return bt()({ourProps:k,theirProps:f,slot:_,defaultTag:pC,name:"Listbox.Button"})}let xh=nt(!1),wC="div",yC=ci.RenderStrategy|ci.Static;function vC(e,t){var n,r;let i=en(),{id:o=`headlessui-listbox-options-${i}`,anchor:s,portal:a=!1,modal:l=!0,transition:u=!1,...f}=e,d=t5(s),[p,h]=ye(null);d&&(a=!0);let m=Do("Listbox.Options"),v=aa("Listbox.Options"),b=Si(m.optionsElement),x=Mo(),[C,E]=Um(u,p,x!==null?(x&Ot.Open)===Ot.Open:m.listboxState===0);Dm(C,m.buttonElement,v.closeListbox);let M=m.__demoMode?!1:l&&m.listboxState===0;jm(M,b);let R=m.__demoMode?!1:l&&m.listboxState===0;Im(R,{allowed:Ie(()=>[m.buttonElement,m.optionsElement],[m.buttonElement,m.optionsElement])});let F=m.listboxState!==0,L=iC(F,m.buttonElement)?!1:C,S=C&&m.listboxState===1,_=u5(S,m.value),k=ae(O=>m.compare(_,O)),T=me(()=>{var O;if(d==null||!((O=d==null?void 0:d.to)!=null&&O.includes("selection")))return null;let ue=m.options.findIndex(ee=>k(ee.dataRef.current.value));return ue===-1&&(ue=0),ue},[d,m.options]),I=(()=>{if(d==null)return;if(T===null)return{...d,inner:void 0};let O=Array.from(m.listRef.current.values());return{...d,inner:{listRef:{current:O},index:T}}})(),[D,B]=o5(I),pe=i5(),Y=$t(t,d?D:null,v.setOptionsElement,h),U=ir();Oe(()=>{var O;let ue=m.optionsElement;ue&&m.listboxState===0&&ue!==((O=xi(ue))==null?void 0:O.activeElement)&&(ue==null||ue.focus({preventScroll:!0}))},[m.listboxState,m.optionsElement]);let P=ae(O=>{var ue,ee;switch(U.dispose(),O.key){case gt.Space:if(m.searchQuery!=="")return O.preventDefault(),O.stopPropagation(),v.search(O.key);case gt.Enter:if(O.preventDefault(),O.stopPropagation(),m.activeOptionIndex!==null){let{dataRef:_e}=m.options[m.activeOptionIndex];v.onChange(_e.current.value)}m.mode===0&&(qt(()=>v.closeListbox()),(ue=m.buttonElement)==null||ue.focus({preventScroll:!0}));break;case Lt(m.orientation,{vertical:gt.ArrowDown,horizontal:gt.ArrowRight}):return O.preventDefault(),O.stopPropagation(),v.goToOption(wt.Next);case Lt(m.orientation,{vertical:gt.ArrowUp,horizontal:gt.ArrowLeft}):return O.preventDefault(),O.stopPropagation(),v.goToOption(wt.Previous);case gt.Home:case gt.PageUp:return O.preventDefault(),O.stopPropagation(),v.goToOption(wt.First);case gt.End:case gt.PageDown:return O.preventDefault(),O.stopPropagation(),v.goToOption(wt.Last);case gt.Escape:O.preventDefault(),O.stopPropagation(),qt(()=>v.closeListbox()),(ee=m.buttonElement)==null||ee.focus({preventScroll:!0});return;case gt.Tab:O.preventDefault(),O.stopPropagation(),qt(()=>v.closeListbox()),Ox(m.buttonElement,O.shiftKey?un.Previous:un.Next);break;default:O.key.length===1&&(v.search(O.key),U.setTimeout(()=>v.clearSearch(),350));break}}),W=(n=m.buttonElement)==null?void 0:n.id,j=me(()=>({open:m.listboxState===0}),[m.listboxState]),de=_m(d?pe():{},{id:o,ref:Y,"aria-activedescendant":m.activeOptionIndex===null||(r=m.options[m.activeOptionIndex])==null?void 0:r.id,"aria-multiselectable":m.mode===1?!0:void 0,"aria-labelledby":W,"aria-orientation":m.orientation,onKeyDown:P,role:"listbox",tabIndex:m.listboxState===0?0:void 0,style:{...f.style,...B,"--button-width":Ex(m.buttonElement,!0).width},...Bm(E)}),q=bt();return X.createElement(fh,{enabled:a?e.static||C:!1},X.createElement(la.Provider,{value:m.mode===1?m:{...m,isSelected:k}},q({ourProps:de,theirProps:f,slot:j,defaultTag:wC,features:yC,visible:L,name:"Listbox.Options"})))}let bC="div";function _C(e,t){let n=en(),{id:r=`headlessui-listbox-option-${n}`,disabled:i=!1,value:o,...s}=e,a=Pe(xh)===!0,l=Do("Listbox.Option"),u=aa("Listbox.Option"),f=l.activeOptionIndex!==null?l.options[l.activeOptionIndex].id===r:!1,d=l.isSelected(o),p=re(null),h=sC(p),m=or({disabled:i,value:o,domRef:p,get textValue(){return h()}}),v=$t(t,p,_=>{_?l.listRef.current.set(r,_):l.listRef.current.delete(r)});Ze(()=>{if(!l.__demoMode&&l.listboxState===0&&f&&l.activationTrigger!==0)return Pn().requestAnimationFrame(()=>{var _,k;(k=(_=p.current)==null?void 0:_.scrollIntoView)==null||k.call(_,{block:"nearest"})})},[p,f,l.__demoMode,l.listboxState,l.activationTrigger,l.activeOptionIndex]),Ze(()=>{if(!a)return u.registerOption(r,m)},[m,r,a]);let b=ae(_=>{var k;if(i)return _.preventDefault();u.onChange(o),l.mode===0&&(qt(()=>u.closeListbox()),(k=l.buttonElement)==null||k.focus({preventScroll:!0}))}),x=ae(()=>{if(i)return u.goToOption(wt.Nothing);u.goToOption(wt.Specific,r)}),C=Ux(),E=ae(_=>{C.update(_),!i&&(f||u.goToOption(wt.Specific,r,0))}),M=ae(_=>{C.wasMoved(_)&&(i||f||u.goToOption(wt.Specific,r,0))}),R=ae(_=>{C.wasMoved(_)&&(i||f&&u.goToOption(wt.Nothing))}),F=me(()=>({active:f,focus:f,selected:d,disabled:i,selectedOption:d&&a}),[f,d,i,a]),L=a?{}:{id:r,ref:v,role:"option",tabIndex:i===!0?void 0:-1,"aria-disabled":i===!0?!0:void 0,"aria-selected":d,disabled:void 0,onClick:b,onFocus:x,onPointerEnter:E,onMouseEnter:E,onPointerMove:M,onMouseMove:M,onPointerLeave:R,onMouseLeave:R},S=bt();return!d&&a?null:S({ourProps:L,theirProps:s,slot:F,defaultTag:bC,name:"Listbox.Option"})}let xC=ze;function CC(e,t){let{options:n,placeholder:r,...i}=e,o={ref:$t(t)},s=Do("ListboxSelectedOption"),a=me(()=>({}),[]),l=s.value===void 0||s.value===null||s.mode===1&&Array.isArray(s.value)&&s.value.length===0,u=bt();return X.createElement(xh.Provider,{value:!0},u({ourProps:o,theirProps:{...i,children:X.createElement(X.Fragment,null,r&&l?r:n)},slot:a,defaultTag:xC,name:"ListboxSelectedOption"}))}let SC=ht(hC),Ch=ht(gC),EC=vx,Sh=ht(vC),Eh=ht(_C),AC=ht(CC),kC=Object.assign(SC,{Button:Ch,Label:EC,Options:Sh,Option:Eh,SelectedOption:AC}),yt=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Open","OnClose","Children"]}};function Ni(e){return c(bu,rr(e,1))}class Jn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","ClassName","Children"]}}function Ti(e){return c(bu.Panel,rr(e,1))}class Ns extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName","Children"]}}function Ah(e){return c(bu.Title,rr(e,1))}class $i extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["As","Key","ClassName"]}}function Mi(e){return c(nC,rr(e,1))}function Ii(e,t){let n;return c("svg",w(g([["width",e],["height",t],["viewBox","0 0 "+e+" "+t],["fill","none"],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",{d:"M6 18L18 6M6 6L18 18",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:2,strokeLinecap:"round"})),["children",y.Children.toArray(Array.from(n))])])))}function NC(e,t){let n,r,i,o,s;return Ni(g([new yt(3,[e]),new yt(4,[t]),new yt(5,[[Mi(fe(new $i(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Ti(fe(new Jn(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is mapping and why is it important?"}),c("button",w(g([["onClick",a=>{t()}],["type","button"],["className","text-gray-700"],(o=[Ii(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(g([["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",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function ua(e){return c("span",{className:"font-sonoma text-black font-semibold text-lg",children:e})}function ca(e){return c("span",{className:"text-sm font-normal pt-2",children:e})}function lo(e,t){return c("button",{className:"rounded-2xl text-xs font-medium text-gray-600 border px-3.5 py-1.5 bg-white hover:bg-gray-50",onClick:n=>{t()},type:"button",children:y.Children.toArray([e])})}function TC(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function kh(){let e,t,n;return c("div",w(g([["className","w-full p-4 bg-blue-50 rounded-md justify-start items-start gap-3 inline-flex"],(e=[TC(20,20),c("div",w(g([["className","grow shrink basis-0 h-[60px] justify-between items-center flex"],(t=[c("div",w(g([["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",y.Children.toArray(Array.from(t))])])))],["children",y.Children.toArray(Array.from(e))])])))}function Nh(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function Th(e){let t,n;return c("div",w(g([["className","w-full h-[52px] p-4 bg-red-50 rounded-md justify-start items-start gap-3 inline-flex"],(t=[Nh(16,15),c("div",w(g([["className","grow shrink basis-0 h-5 justify-between items-center flex"],(n=[c("div",{className:"grow shrink basis-0 text-red-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}function da(e,t){let n;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",{d:"M15 6H1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M6 11L1 6L6 1",stroke:"#D1D5DB",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"})]),["children",y.Children.toArray(Array.from(n))])])))}class ri extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Value","OnChange","Children"]}}function $h(e){return c(kC,rr(e,1))}class Ts extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["ClassName","Children"]}}function Mh(e){return c(Ch,rr(e,1))}class Ih extends z{constructor(t){super(),this.tag=0,this.fields=[t]}cases(){return["ClassName"]}}function Dh(e,t){return c(Sh,rr(e,1),...t)}class hn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Key","Value","Disabled","ClassName","Children"]}}function Oh(e){return c(Eh,rr(e,1))}function Rh(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}class Ui extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Below","Above"]}}function Wi(e,t,n,r,i,o,s,a,l){let u,f,d,p,h,m,v;const b=i.fields[0],x=kf(Et(C=>C[1].fields[0],_1(C=>Uf(C.fields[0],b),r)));return c("div",w(g([["key",Xe(e)],["className","h-14 pr-3 py-2 rounded-lg justify-start items-center gap-2 inline-flex"],(u=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(f=[c("div",w(K(N(()=>H(A(["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`]),N(()=>{let C;return A((C=K(N(()=>H(A(c("div",{className:"text-sm font-medium leading-tight",children:io(e)})),N(()=>A(t?c("div",{className:"text-red-500 text-sm font-medium leading-tight",children:"*"}):$e()))))),["children",y.Children.toArray(Array.from(C))]))}))))))],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(d=[da(16,12)],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(g([["className","w-[230px] h-[38px] px-3 justify-start items-center gap-2 flex"],(p=[$h(g([new ri(0,[x]),new ri(1,[C=>{nr(E=>{s(E[0])},po(Ps(E=>E[1].fields[0]===C?Q(E[2],new En(0,[])):!1,b)))}]),new ri(2,[[c("div",w(g([["className","relative w-full"],(h=[Mh(K(N(()=>{let C;return H(A(new Ts(0,[`${C=t&&n,C&&r==null?"outline-red-300":"outline-gray-300"} grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 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`])),N(()=>{let E;return A(new Ts(1,[[c("span",w(K(N(()=>{let M;const R=t&&n;return M=r!=null?[x,""]:R?["Select a field","text-red-900"]:["Select a field","text-gray-500"],H(A(["className",`${M[1]} col-start-1 row-start-1 truncate pr-6`]),N(()=>A(["children",M[0]])))})))),c("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[Rh(20,20)],["children",y.Children.toArray(Array.from(E))])])))]]))}))}))),Dh(K(N(()=>A(new Ih(`z-10 absolute ${o.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`)))),K(N(()=>js(C=>{const E=C[2],M=C[1].fields[0];return A(Oh(g([new hn(0,[dn(C[0].fields[0])]),new hn(1,[M]),new hn(2,[Q(E,new En(1,[]))]),new hn(3,["relative select-none"]),new hn(4,[R=>[c("span",{className:"px-4 py-2 block truncate "+(E.tag===0?R.active?"bg-primary-600 text-white":"text-gray-700":"text-gray-700 opacity-50 cursor-not-allowed"),children:M})]])])))},b))))],["children",y.Children.toArray(Array.from(h))])])))]])]))],["children",y.Children.toArray(Array.from(p))])]))),c("div",w(g([(m="pl-1 justify-center items-center gap-2.5 flex text-gray-500 text-xs font-normal underline leading-none",["className",m]),(v=[c("button",w(K(N(()=>H(A(["children","Clear"]),N(()=>H(a==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),N(()=>{const C=a;if(C==null)return dt();{const E=C;return A(["onClick",M=>{E()}])}})))))))),c("button",w(K(N(()=>H(A(["children","Preview"]),N(()=>H(l==null?A(["className","opacity-50 cursor-not-allowed"]):A(["className","cursor-pointer py-3 hover:text-gray-700"]),N(()=>{const C=l;if(C==null)return dt();{const E=C;return A(["onClick",M=>{E()}])}}))))))))],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(u))])])))}function Fh(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([["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",y.Children.toArray(Array.from(n))])])))}function xu(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function Ph(e){let t,n,r;return c("div",w(g([["className","w-full h-[52px] p-4 bg-emerald-50 rounded-md justify-start items-center gap-3 inline-flex"],(t=[c("span",w(g([["className","text-emerald-700"],(n=[xu(20,20)],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","grow shrink basis-0 h-5 justify-start items-center gap-3 flex"],(r=[c("div",{className:"grow shrink basis-0 text-emerald-800 text-sm font-medium leading-tight",children:e})],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}function Cu(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([(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",y.Children.toArray(Array.from(n))])])))}function $C(e){return e.startsWith("614")&&e.length===11?`+${e}`:e}function MC(e){return e.startsWith("04")&&e.length===10?`+614${e.slice(2,e.length)}`:e}function Lh(e){return MC($C(Ef(e," ","")))}function IC(e,t){let n,r,i,o,s,a,l;return c("div",w(g([["className","w-80 py-6 justify-start items-center gap-2.5 flex"],(n=[c("div",w(g([(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]),(i=[c("div",w(g([["className","self-stretch justify-start items-center gap-2 inline-flex"],(o=[c("div",{className:"text-black text-base font-semibold leading-normal",children:`Previewing “${io(e)}”`})],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","self-stretch bg-white flex-col justify-start items-start flex overflow-hidden"],(s=[c("div",w(g([["className","self-stretch flex-col justify-center items-start flex"],(a=Bf((u,f)=>c("div",w(K(N(()=>H(A(["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`]),N(()=>{let d;return A((d=K(N(()=>{const p=ho(f);return A(p?c("i",{className:"grow shrink text-gray-500 text-sm font-normal leading-tight",children:"(empty)"}):c("div",w(K(N(()=>H(A(["className","grow shrink text-gray-700 text-sm font-medium leading-tight"]),N(()=>e.tag===3?A(["children",Lh(f)]):A(["children",f]))))))))})),["children",y.Children.toArray(Array.from(d))]))})))))),t),["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","self-stretch pt-2 justify-center items-center gap-2.5 inline-flex"],(l=[c("div",{className:"grow shrink basis-0 text-gray-500 text-sm font-normal leading-tight",children:"Showing first 10 rows only"})],["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(n))])])))}function DC(e){let t,n,r;const i=e.back,o=e.next,s=e.dataRows,a=e.headerRow,l=e.existingMappings;let u;const f=v_(a,l);u=Rr(()=>Or(()=>f,(E,M)=>b_(a,s,E,M),(E,M)=>{}),void 0,void 0);const d=u[0],p=u[1],h=y.useState(!1),m=h[1],v=y.useState(!1),b=v[0],x=E=>{if(w_(d)(E))return()=>{p(new ar(1,[E]))}},C=E=>{if(y_(d,E))return()=>{p(new ar(2,[E]))}};return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[NC(h[0],()=>{m(!1)}),ua("Map fields"),ca("Match the fields from your CSV to the corresponding destination fields."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[lo("What is mapping and why is it important?",()=>{m(!0)})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=K(N(()=>{let E;return H(A(c("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(E=K(N(()=>H(l==null?A(kh()):A($e()),N(()=>H(b&&d.Status.tag===0?A(Th("Some required fields are incomplete. Fill in all required fields to continue.")):A($e()),N(()=>{let M,R,F,L,S,_,k,T;return A(c("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(M=[c("div",w(g([(R="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",R]),(F=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(L=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",w(K(N(()=>H(A(["className",`${d.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`]),N(()=>{let I;return A((I=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of 5 mapped`})],["children",y.Children.toArray(Array.from(I))]))}))))))],["children",y.Children.toArray(Array.from(L))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(S=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV fields"}),c("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(_=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${d.NumberOfDestinationFieldsMapped} of ${d.NumberOfIncomingFields} used`})],["children",y.Children.toArray(Array.from(_))])])))],["children",y.Children.toArray(Array.from(S))])])))],["children",y.Children.toArray(Array.from(F))])]))),c("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(k=[c("div",w(fe((T=K(N(()=>H(A(Wi(new oe(0,[]),!0,b,d.FirstName.ColumnIndex,d.FirstName.IncomingFields,new Ui(0,[]),I=>{let D;p((D=[new oe(0,[]),I],new ar(0,[D[0],D[1]])))},x(new oe(0,[])),C(new oe(0,[])))),N(()=>H(A(Wi(new oe(1,[]),!0,b,d.LastName.ColumnIndex,d.LastName.IncomingFields,new Ui(0,[]),I=>{let D;p((D=[new oe(1,[]),I],new ar(0,[D[0],D[1]])))},x(new oe(1,[])),C(new oe(1,[])))),N(()=>H(A(Wi(new oe(2,[]),!0,b,d.Email.ColumnIndex,d.Email.IncomingFields,new Ui(0,[]),I=>{let D;p((D=[new oe(2,[]),I],new ar(0,[D[0],D[1]])))},x(new oe(2,[])),C(new oe(2,[])))),N(()=>H(A(Wi(new oe(3,[]),!1,b,d.MobilePhone.ColumnIndex,d.MobilePhone.IncomingFields,new Ui(0,[]),I=>{let D;p((D=[new oe(3,[]),I],new ar(0,[D[0],D[1]])))},x(new oe(3,[])),C(new oe(3,[])))),N(()=>H(A(Wi(new oe(4,[]),!1,b,d.EmploymentBasis.ColumnIndex,d.EmploymentBasis.IncomingFields,new Ui(1,[]),I=>{let D;p((D=[new oe(4,[]),I],new ar(0,[D[0],D[1]])))},x(new oe(4,[])),C(new oe(4,[])))),N(()=>{let I,D,B,pe,Y,U;return H(d.NumberOfIncomingFieldsDiscarded===0?A($e()):A(c("div",w(g([["className","h-16 pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(I=[c("div",w(g([["className","h-10 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(D=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(B=[Fh(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(B))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(pe=[da(16,12)],["children",y.Children.toArray(Array.from(pe))])]))),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(Y=[c("div",w(g([["className","w-[218px] pl-3 items-center inline-flex"],(U=[c("div",w(K(N(()=>H(A(["className","text-gray-500 text-sm font-medium"]),N(()=>{const P=d.NumberOfIncomingFieldsDiscarded|0;return A(P===1?["children","Remaining 1 unused field"]:["children",`Remaining ${P} unused fields`])}))))))],["children",y.Children.toArray(Array.from(U))])])))],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(D))])])))],["children",y.Children.toArray(Array.from(I))])])))),N(()=>{let P;return A(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(P=K(N(()=>H(d.NumberOfDestinationFieldsMapped===5?A(Ph("All destination fields have been mapped. You’re good to go.")):A($e()),N(()=>{let W,j,de,q,O,ue,ee,_e,Le;return A(c("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(W=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(j=[c("div",w(g([["className","grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"],(de=[c("div",w(g([["className","grow shrink basis-0 text-right"],(q=[c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:"Destination fields marked with "}),c("span",{className:"text-red-600 text-xs font-normal leading-none",children:"*"}),c("span",{className:"text-gray-500 text-xs font-normal leading-none",children:" are required"})],["children",y.Children.toArray(Array.from(q))])])))],["children",y.Children.toArray(Array.from(de))])]))),c("div",w(g([["className","justify-start items-center gap-2 flex"],(O=[c("button",w(g([(ue="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ue]),["onClick",te=>{i(d.Status)}],(ee=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(ee))])]))),c("button",w(g([(_e="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",_e]),["disabled",b&&d.Status.tag===0],["onClick",te=>{const be=d.Status;be.tag===0?v[1](!0):o([be.fields[0],be.fields[1]])}],(Le=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Cu(13,8)],["children",y.Children.toArray(Array.from(Le))])])))],["children",y.Children.toArray(Array.from(O))])])))],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(W))])]))))})))),["children",y.Children.toArray(Array.from(P))])]))))}))})))))))))))),["children",y.Children.toArray(Array.from(T))]))))],["children",y.Children.toArray(Array.from(k))])])))],["children",y.Children.toArray(Array.from(M))])]))))})))))),["children",y.Children.toArray(Array.from(E))])])))),N(()=>{const M=d.Preview;return M==null?A($e()):A(IC(M[0],M[1]))}))})),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Wo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Fa extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Reviewing","MappingEmploymentBasis","MappingColumns"]}}let lr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Next","Back"]}},Go=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Add","Clear","Remove","Set"]}},OC=class extends Se{constructor(t,n,r,i,o,s,a){super(),this.IncomingValues=t,this.Selections=n,this.NumberOfIncomingValuesUsed=r|0,this.NumberOfDestinationValuesMapped=i|0,this.DiscardedValues=o,this.ValidatedMappings=s,this.Prefilled=a}};class uo extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Available","Unavailable"]}}const Bn=[void 0];function Vh(e,t,n){let r;const i=t.fields[0],o=zt(s=>s,hs(Ec(n)));return new OC(Ye(s=>[s,gi(s,o,{Equals:Q,GetHashCode:ls})?new uo(1,[]):new uo(0,[])],i),n,o.length,hg(Wl(s=>{let a;return a=zt(l=>l,s),a.length!==0},Ec(n))),sm(o,i,{Equals:Q,GetHashCode:ls}),(r=g(zt(s=>s,hs(je(s=>Ye(a=>{if(a!=null)return[s[0],a]},s[1]),n)))),Ne(r)?void 0:new s_(se(r),tr(Me(r)))),e)}function RC(e,t){const n=t.tag===1?["parttime"]:t.tag===2?["casual"]:t.tag===3?["labourhire"]:["fulltime"];return e.fields[0].filter(r=>gi(Rl(r.fields[0],"[^a-zA-Z]","").toLocaleLowerCase(),n,{Equals:(i,o)=>i===o,GetHashCode:Qn}))}function FC(e,t){let n;if(t==null){let r=!1;const i=o=>{const s=RC(e,o);return!yo(Q,s,$e())&&s.length===0?Bn:(r=!0,Ye(a=>a,s))};n=[Qr([[new ct(0,[]),i(new ct(0,[]))],[new ct(1,[]),i(new ct(1,[]))],[new ct(2,[]),i(new ct(2,[]))],[new ct(3,[]),i(new ct(3,[]))]],{Compare:_t}),r]}else{const r=t,i=Qr(Ye(o=>[o[0],Ye(s=>s[1],F1(o[1],{Compare:Il}))],Qb(o=>o[0],hs([r.Tail,[r.Head]]),{Equals:Q,GetHashCode:ls})),{Compare:_t});n=[Qr([[new ct(0,[]),at(gr(i,new ct(0,[])),Bn)],[new ct(1,[]),at(gr(i,new ct(1,[])),Bn)],[new ct(2,[]),at(gr(i,new ct(2,[])),Bn)],[new ct(3,[]),at(gr(i,new ct(3,[])),Bn)]],{Compare:_t}),!1]}return[Vh(n[1],e,n[0]),Z()]}function Hh(e,t){const n=Er(e.Selections,t);let r;switch(!yo(Q,n,$e())&&n.length===1&&ve(0,n)!=null?r=0:r=1,r){case 0:return!0;default:return!1}}function jh(e,t){let n;return e.DiscardedValues.length>0?(n=Er(e.Selections,t),!n.some(r=>r==null)):!1}function PC(e,t,n){const r=Er(e.Selections,t);return!yo(Q,r,$e())&&r.length===1?!1:gi(n,r,{Equals:Q,GetHashCode:Qt})}function LC(e,t,n,r){return!Q(n,r)&&e.IncomingValues.some(i=>Q(i[0],r)?Q(i[1],new uo(0,[])):!1)?gi(n,Er(e.Selections,t),{Equals:Q,GetHashCode:Qt}):!1}function VC(e,t,n){let r,i;const o=m=>Vh(n.Prefilled,e,m);let s,a,l,u,f,d,p,h;switch(t.tag){case 1:{Hh(n,t.fields[0])?(s=1,l=t.fields[0]):s=4;break}case 2:{PC(n,t.fields[0],t.fields[1])?(s=2,u=t.fields[0],f=t.fields[1]):s=4;break}case 3:{LC(n,t.fields[0],t.fields[1],t.fields[2])?(s=3,d=t.fields[0],p=t.fields[1],h=t.fields[2]):s=4;break}default:jh(n,t.fields[0])?(s=0,a=t.fields[0]):s=4}switch(s){case 0:return[o(Vo(a,m=>Et(v=>jf(v,Bn),m),n.Selections)),Z()];case 1:return[o(Vo(l,m=>Et(v=>Bn,m),n.Selections)),Z()];case 2:return[o(Vo(u,(r=(i=[f],m=>sm(i,m,{Equals:Q,GetHashCode:Qt})),m=>Et(r,m)),n.Selections)),Z()];case 3:return[o(Vo(d,m=>Et(v=>Ye(b=>Q(b,p)?h:b,v),m),n.Selections)),Z()];default:return[n,Z()]}}function HC(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["viewBox","0 0 "+e+" "+t],["width",e],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([["clipRule","evenodd"],["fill-rule","evenodd"],(r="M6.9999 12.6C10.0927 12.6 12.5999 10.0928 12.5999 7.00002C12.5999 3.90723 10.0927 1.40002 6.9999 1.40002C3.90711 1.40002 1.3999 3.90723 1.3999 7.00002C1.3999 10.0928 3.90711 12.6 6.9999 12.6ZM7.6999 4.90002C7.6999 4.51342 7.3865 4.20002 6.9999 4.20002C6.6133 4.20002 6.2999 4.51342 6.2999 4.90002V6.30002H4.8999C4.5133 6.30002 4.1999 6.61342 4.1999 7.00002C4.1999 7.38662 4.5133 7.70002 4.8999 7.70002H6.2999V9.10002C6.2999 9.48662 6.6133 9.80002 6.9999 9.80002C7.3865 9.80002 7.6999 9.48662 7.6999 9.10002V7.70002H9.0999C9.4865 7.70002 9.7999 7.38662 9.7999 7.00002C9.7999 6.61342 9.4865 6.30002 9.0999 6.30002H7.6999V4.90002Z",["d",r]),["fill","currentColor"]])))),["children",y.Children.toArray(Array.from(n))])])))}function jC(e,t,n,r,i,o,s){let a,l,u,f,d,p;return c("div",w(g([["key",Xe(e)],["className","justify-start items-start gap-2 inline-flex"],(a=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(l=[c("div",w(g([["className",At(" ",K(N(()=>H(yo(Q,t,Bn)?A("bg-gray-50 border-gray-200 text-gray-500"):A("bg-emerald-50 border-emerald-200 text-emerald-700"),N(()=>A("px-2 py-1 rounded border justify-start items-center gap-1.5 flex overflow-hidden"))))))],(u=[c("div",{className:"text-sm font-medium leading-tight",children:am(e)})],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(f=[da(16,12)],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(g([["className","px-3 justify-start items-center gap-2 flex flex-col"],(d=[c("div",w(fe((p=K(N(()=>je(h=>{let m,v,b;return c("div",w(g([["className","mt-1 justify-start items-start gap-2 flex flex-inline"],(m=[c("div",w(g([["className","justify-start items-end flex flex-col w-[206px]"],(v=K(N(()=>H(A($h(K(N(()=>{const x=kf(Et(C=>C.fields[0],h));return H(A(new ri(0,[x])),N(()=>H(A(new ri(1,[C=>{nr(E=>{s([h,E[0]])},po(Ps(E=>E[0].fields[0]===C?Q(E[1],new uo(0,[])):!1,n)))}])),N(()=>{let C,E;return A(new ri(2,[[c("div",w(g([["className","relative w-full"],(C=[Mh(g([new Ts(0,["outline-gray-300 grid w-full grid-cols-1 rounded-md bg-white hover:bg-gray-50 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"]),new Ts(1,[[c("span",w(K(N(()=>{const M=h!=null?[x,""]:["Select a value","text-gray-500"];return H(A(["className",`${M[1]} col-start-1 row-start-1 truncate pr-6`]),N(()=>A(["children",M[0]])))})))),c("span",w(g([["className","col-start-1 row-start-1 size-5 self-center justify-self-end text-gray-500 sm:size-4"],(E=[Rh(20,20)],["children",y.Children.toArray(Array.from(E))])])))]])])),Dh(fe(new Ih("z-10 absolute mt-0.5 max-h-48 w-full overflow-auto rounded-md border border-gray-300 shadow-gray-300 shadow-lg bg-white py-1 text-sm")),K(N(()=>js(M=>{const R=M[1],F=M[0].fields[0];return A(Oh(g([new hn(0,[F]),new hn(1,[F]),new hn(2,[Q(R,new uo(1,[]))&&F!==x]),new hn(3,["relative select-none"]),new hn(4,[L=>[c("span",{className:At(" ",K(N(()=>H(A("px-4 py-2 block truncate"),N(()=>{const S=L.active;let _;switch(L.selected?S?_=2:_=1:R.tag===1?_=0:S?_=2:_=1,_){case 0:return A("text-gray-700 opacity-50 cursor-not-allowed");case 1:return A("text-gray-700");default:return A("bg-primary-600 text-white")}}))))),children:F})]])])))},n))))],["children",y.Children.toArray(Array.from(C))])])))]]))}))))})))),N(()=>Q(h,I1(t))?A(c("button",w(K(N(()=>{let x;return H(A((x=[HC(14,14),c("span",{children:["Map additional value"]})],["children",y.Children.toArray(Array.from(x))])),N(()=>H(A(["className",At(" ",K(N(()=>H(A("py-2 justify-end items-center inline-flex text-gray-500 text-xs font-normal gap-1"),N(()=>i==null?A("opacity-50 cursor-not-allowed underline"):A("cursor-pointer underline hover:text-gray-700"))))))]),N(()=>{const C=i;if(C==null)return dt();{const E=C;return A(["onClick",M=>{E()}])}}))))}))))):dt())))),["children",y.Children.toArray(Array.from(v))])]))),c("div",w(g([["className","text-gray-500 text-xs font-normal pl-1"],(b=K(N(()=>{if(o!=null){const x=o;return A(c("button",{children:"Remove",className:"cursor-pointer underline py-2 hover:text-gray-700",onClick:C=>{x(h)}}))}else return A(c("button",w(K(N(()=>H(A(["children","Clear"]),N(()=>H(r==null?A(["className","opacity-50 underline cursor-not-allowed mt-2"]):A(["className","cursor-pointer underline py-2 hover:text-gray-700"]),N(()=>{const x=r;if(x==null)return dt();{const C=x;return A(["onClick",E=>{C()}])}})))))))))})),["children",y.Children.toArray(Array.from(b))])])))],["children",y.Children.toArray(Array.from(m))])])))},t))),["children",y.Children.toArray(Array.from(p))]))))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(a))])])))}function BC(e){let t,n,r;const i=e.back,o=e.next,s=e.employmentBasisColumn,a=e.existingMappings;let l;const u=FC(s,a);l=Rr(()=>Or(()=>u,(m,v)=>VC(s,m,v),(m,v)=>{}),void 0,void 0);const f=l[0],d=l[1],p=y.useState(!1),h=p[0];return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[ua("Map values - Employment basis"),ca("Match the values from your CSV to the corresponding destination values."),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(n=[c("div",w(g([["className","w-[640px] pt-6 flex-col justify-start items-start gap-4 inline-flex"],(r=K(N(()=>H(f.Prefilled?A(kh()):A($e()),N(()=>H(h&&f.ValidatedMappings==null?A(Th("Map at least one value to continue.")):A($e()),N(()=>{let m,v,b,x,C,E,M,R,F;return A(c("div",w(g([["className","flex-col justify-start items-start inline-flex overflow-hidden"],(m=[c("div",w(g([(v="w-[640px] h-16 pt-6 bg-gray-50 border-b border-gray-200 justify-start items-center gap-2 inline-flex",["className",v]),(b=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(x=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Destination fields"}),c("div",w(g([["className",At(" ",K(N(()=>H(f.NumberOfDestinationValuesMapped===4?A("bg-emerald-100 text-emerald-800"):A("bg-blue-100 text-blue-800"),N(()=>A("px-2.5 py-0.5 rounded-[10px] justify-center items-center flex"))))))],(C=[c("div",{className:"text-center text-xs font-medium leading-none",children:`${f.NumberOfDestinationValuesMapped} of 4 mapped`})],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(x))])]))),c("div",{className:"w-5 h-5 px-3 py-3.5"}),c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-start items-center gap-1 flex overflow-hidden"],(E=[c("div",{className:"text-gray-900 text-sm font-medium leading-tight",children:"Incoming CSV values"}),c("div",w(g([["className","px-2.5 py-0.5 bg-gray-100 rounded-[10px] justify-center items-center flex"],(M=[c("div",{className:"text-center text-gray-800 text-xs font-medium leading-none",children:`${f.NumberOfIncomingValuesUsed} of ${f.IncomingValues.length} used`})],["children",y.Children.toArray(Array.from(M))])])))],["children",y.Children.toArray(Array.from(E))])])))],["children",y.Children.toArray(Array.from(b))])]))),c("div",w(g([["className","w-[640px] pt-2 pb-24 flex-col justify-start items-start gap-2 flex overflow-hidden"],(R=[c("div",w(fe((F=K(N(()=>H(js(L=>{let S,_,k;const T=L[0];return A(jC(T,L[1],f.IncomingValues,(S=T,Hh(f,S)?()=>{d(new Go(1,[S]))}:void 0),(_=T,jh(f,_)?()=>{d(new Go(0,[_]))}:void 0),(k=T,Er(f.Selections,k).length>1?I=>{let D;d((D=[k,I],new Go(2,[D[0],D[1]])))}:void 0),I=>{let D;d((D=[T,I[0],I[1]],new Go(3,[D[0],D[1],D[2]])))}))},yy(f.Selections)),N(()=>{let L,S,_,k,T,I;return H(f.DiscardedValues.length===0?A($e()):A(c("div",w(g([["className","pr-3 pt-2 pb-4 rounded-lg justify-start items-start gap-2 inline-flex"],(L=[c("div",w(g([["className","py-3 bg-gray-100 rounded-lg justify-start items-center gap-2 flex"],(S=[c("div",w(g([["className","w-[260px] h-10 px-3 py-3.5 justify-end items-center gap-1 flex overflow-hidden"],(_=[Fh(14,14),c("div",{className:"text-gray-500 text-sm font-medium leading-tight",children:"Discarded"})],["children",y.Children.toArray(Array.from(_))])]))),c("div",w(g([["className","w-5 h-10 px-[3px] py-[5px] flex-col justify-center gap-2.5 inline-flex"],(k=[da(16,12)],["children",y.Children.toArray(Array.from(k))])]))),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(T=[c("div",w(g([["className","w-[218px] pl-3 flex flex-col text-gray-500 text-sm"],(I=K(N(()=>H(A(c("div",w(K(N(()=>H(A(["className","font-medium"]),N(()=>{const D=f.DiscardedValues.length|0;return A(D===1?["children","Remaining 1 unused field:"]:["children",`Remaining ${D} unused fields:`])}))))))),N(()=>{let D;return A(c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc"],(D=Ye(B=>c("li",{children:[B]}),hs(qn(N(()=>H(A(Ye(B=>B.fields[0],f.DiscardedValues.slice(void 0,8))),N(()=>f.DiscardedValues.length>8?A(["... and 0 other values"]):dt())))))),["children",y.Children.toArray(Array.from(D))])]))))})))),["children",y.Children.toArray(Array.from(I))])])))],["children",y.Children.toArray(Array.from(T))])])))],["children",y.Children.toArray(Array.from(S))])])))],["children",y.Children.toArray(Array.from(L))])])))),N(()=>{let D;return A(c("div",w(g([["className","w-[640px] pt-4 border-t border-gray-200 flex-col justify-start items-start flex"],(D=K(N(()=>H(f.DiscardedValues.length===0?A(Ph("All incoming values have been mapped.")):A($e()),N(()=>{let B,pe,Y,U,P,W,j;return A(c("div",w(g([["className","h-[58px] pt-2 justify-start items-end gap-2 inline-flex w-full"],(B=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(pe=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(Y=[c("button",w(g([(U="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",U]),["onClick",de=>{i(f.ValidatedMappings)}],(P=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(P))])]))),c("button",w(g([(W="pl-[13px] pr-[11px] py-[9px] bg-primary-600 hover:enabled:bg-primary-700 disabled:opacity-50 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",W]),["disabled",h&&f.ValidatedMappings==null],["onClick",de=>{const q=f.ValidatedMappings;q==null?p[1](!0):o(q)}],(j=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Next"}),Cu(13,8)],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(B))])]))))})))),["children",y.Children.toArray(Array.from(D))])]))))}))})))),["children",y.Children.toArray(Array.from(F))]))))],["children",y.Children.toArray(Array.from(R))])])))],["children",y.Children.toArray(Array.from(m))])]))))})))))),["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class UC extends Se{constructor(t,n,r){super(),this.IncludesEmploymentInfo=t,this.InviteNow=n,this.Data=r}}class WC extends Se{constructor(t,n,r,i,o,s,a,l,u){super(),this.RowNumber=t|0,this.FirstName=n,this.LastName=r,this.Email=i,this.MobilePhone=o,this.EmploymentBasis=s,this.HasDuplicateEmailError=a,this.HasErrorOtherThanDuplicateEmail=l,this.Errors=u}}class Dd extends Se{constructor(t,n){super(),this.Summary=t,this.Details=n}}function zo(e){if(!ho(e))return e}function Bh(e,t,n){const r=n!=null?[n[0].fields[0].fields[0],a_(n[1])]:void 0;return g(Ye(i=>{let o,s,a,l,u,f,d,p,h,m,v,b,x,C,E,M,R;const F=i.fields[0];return Qr(zt(L=>L,[(o=zo(ve(t.FirstName.fields[0],F)),o==null?void 0:(s=o,[mr(new oe(0,[])),s])),(a=zo(ve(t.LastName.fields[0],F)),a==null?void 0:(l=a,[mr(new oe(1,[])),l])),(u=zo(ve(t.Email.fields[0],F)),u==null?void 0:(f=u,[mr(new oe(2,[])),f])),(d=(p=t.MobilePhone,p==null?void 0:(h=zo(ve(p.fields[0],F)),h==null?void 0:Lh(h))),d==null?void 0:(m=d,[mr(new oe(3,[])),m])),(v=(b=r,b==null?void 0:(x=b,C=(E=ve(x[0],F),M=$e(),[gy(x[1],E,new vt(()=>M,L=>{M=L})),M]),C[0]?C[1]:void 0)),v==null?void 0:(R=v,[mr(new oe(4,[])),R]))]),{Compare:Dr})},e.fields[0]))}function GC(e,t,n){const r=mr(n);return[gr(e.Data,r),!Bl(i=>i.PropName===r,t)]}function zC(e,t){const n=um(t.PropName);if(n==null)return["Invalid or missing field",!1];{const r=n,i=io(r).toLocaleLowerCase();if(gr(e.Data,mr(r))!=null){let s;switch(r.tag===2&&t.Message.startsWith("Duplicate")?s=0:s=1,s){case 0:return[`Duplicate ${i}`,!1];default:return[`Invalid ${i}`,!0]}}else return[`Missing ${i}`,!1]}}function Od(e){const t=um(e.PropName);if(t==null)return e.Message;{const n=t;let r;switch(n.tag===2&&e.Message.startsWith("Duplicate")?r=0:r=1,r){case 0:return`${io(n)} exists in multiple rows`;default:return Ef(e.Message,e.Column,io(n))}}}function qC(e,t,n,r){return le.Delay(()=>le.TryWith(le.Delay(()=>{let i,o,s;return le.ReturnFrom((i=new j0(r!=null,jl((a,l)=>new ru(a,l),(o=[t,n,r],Bh(o[0],o[1],o[2])))),s=e(i),le.Bind(s,a=>{let l;const u=a;return l=u.tag===1?new $(1,[u.fields[0]]):new $(0,[Sr(f=>{let d,p,h,m,v;const b=at((d=G1(C=>C.RowId===f.RowId,u.fields[0].Errors),d==null?void 0:d.FieldErrors),mt()),x=C=>GC(f,b,C);return new WC(f.RowId+1,x(new oe(0,[])),x(new oe(1,[])),x(new oe(2,[])),x(new oe(3,[])),(p=x(new oe(4,[])),[(h=(m=p[0],m==null?void 0:o_(m)),h==null?void 0:am(h)),p[1]]),Bl(C=>C.Message.startsWith("Duplicate Email"),b),!Ne(Nn(C=>!C.Message.startsWith("Duplicate Email"),b)),Ne(b)?void 0:Ne(Me(b))?(v=zC(f,se(b)),new Dd(v[0],v[1]?fe(Od(se(b))):void 0)):new Dd("Multiple invalid or missing fields",Sr(Od,b)))},i.Data)]),le.Return(l)})))}),i=>le.Return(new $(1,[Xe(i)]))))}function YC(e,t,n,r,i){return le.Delay(()=>le.TryWith(le.Delay(()=>{let o;return le.Bind(e(new UC(r!=null,Q(i,new Ct(0,[])),jl((s,a)=>new ru(s,a),(o=[t,n,r],Bh(o[0],o[1],o[2]))))),s=>{let a;return le.Return((a=s,a.tag===1?new $(1,[a.fields[0]]):new $(0,[a.fields[0].ImportId])))})}),o=>le.Return(new $(1,[Xe(o)]))))}let Yi=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validated","SetInviteTiming","ShowOnlyRowsWithErrors","PreviewNextPage","PreviewPreviousPage"]}},Gr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Validating","Reviewing"]}};class Gi extends Se{constructor(t,n,r,i,o,s,a,l,u,f,d,p,h){super(),this.Data=t,this.InviteTiming=n,this.DuplicateEmailCount=r|0,this.NumberOfRowsWithErrorsOtherThanDuplicateEmail=i|0,this.NumberOfInvalidRows=o|0,this.NumberOfRows=s|0,this.NumberOfValidRows=a|0,this.ShowingOnlyRowsWithErrors=l,this.HasErrors=u,this.RowFrom=f|0,this.RowTo=d|0,this.Page=p,this.PageNo=h|0}}function ZC(e){return[new Gr(0,[]),m0(t=>{h0(t)},e,void 0,t=>new Yi(0,[t]))]}function qo(e,t,n){const r=(e-1)*20|0,i=X1(r,e*20-1,n?Nn(o=>o.Errors!=null,t):t);if(Ne(i))return[0,0,mt()];{const o=i;return[r+1,r+ln(o),o]}}function Uh(e){return e.PageNo>1}function Wh(e){return e.ShowingOnlyRowsWithErrors?e.RowTo<e.NumberOfInvalidRows:e.RowTo<e.NumberOfRows}function KC(e,t){const n=Nn(r=>r.Errors!=null,e.Data);return bo(fe(`Error detail,First name,Last name,Email,Mobile phone${t?",Employment basis":""},Original row #
|
|
50
|
+
`),jl((r,i)=>{const o=at(Et(d=>d.Summary,i.Errors),""),s=at(i.FirstName[0],""),a=at(i.LastName[0],""),l=at(i.Email[0],""),u=at(i.MobilePhone[0],""),f=r===ln(n)-1?"":`
|
|
51
|
+
`;return t?`${o},${s},${a},${l},${u},${at(i.EmploymentBasis[0],"")},${i.RowNumber}${f}`:`${o},${s},${a},${l},${u},${i.RowNumber}${f}`},n))}function XC(e,t,n){let r,i,o,s,a,l,u,f,d,p,h;switch(t.tag){case 1:{n.tag===1?(i=2,a=t.fields[0],l=n.fields[0]):(i=6,h=n);break}case 2:{n.tag===1?(r=n.fields[0],r.HasErrors&&r.ShowingOnlyRowsWithErrors!==t.fields[0]?(i=3,u=n.fields[0],f=t.fields[0]):(i=6,h=n)):(i=6,h=n);break}case 3:{n.tag===1&&Wh(n.fields[0])?(i=4,d=n.fields[0]):(i=6,h=n);break}case 4:{n.tag===1&&Uh(n.fields[0])?(i=5,p=n.fields[0]):(i=6,h=n);break}default:t.fields[0].tag===1?n.tag===0?(i=1,s=t.fields[0].fields[0]):(i=6,h=n):n.tag===0?(i=0,o=t.fields[0].fields[0]):(i=6,h=n)}switch(i){case 0:{let m;const v=[o,!1];return m=qo(1,v[0],v[1]),[new Gr(1,[new Gi(o,new Ct(1,[]),ln(Nn(b=>b.HasDuplicateEmailError,o)),ln(Nn(b=>b.HasErrorOtherThanDuplicateEmail,o)),ln(Nn(b=>b.Errors!=null,o)),ln(o),ln(Nn(b=>b.Errors==null,o)),!1,Bl(b=>b.Errors!=null,o),m[0],m[1],m[2],1)]),Z()]}case 1:return[n,f0(m=>{e(s)})];case 2:return[new Gr(1,[new Gi(l.Data,a,l.DuplicateEmailCount,l.NumberOfRowsWithErrorsOtherThanDuplicateEmail,l.NumberOfInvalidRows,l.NumberOfRows,l.NumberOfValidRows,l.ShowingOnlyRowsWithErrors,l.HasErrors,l.RowFrom,l.RowTo,l.Page,l.PageNo)]),Z()];case 3:{let m;const v=[u.Data,f];return m=qo(1,v[0],v[1]),[new Gr(1,[new Gi(u.Data,u.InviteTiming,u.DuplicateEmailCount,u.NumberOfRowsWithErrorsOtherThanDuplicateEmail,u.NumberOfInvalidRows,u.NumberOfRows,u.NumberOfValidRows,f,u.HasErrors,m[0],m[1],m[2],1)]),Z()]}case 4:{const m=d.PageNo+1|0;let v;const b=[d.Data,d.ShowingOnlyRowsWithErrors];return v=qo(m,b[0],b[1]),[new Gr(1,[new Gi(d.Data,d.InviteTiming,d.DuplicateEmailCount,d.NumberOfRowsWithErrorsOtherThanDuplicateEmail,d.NumberOfInvalidRows,d.NumberOfRows,d.NumberOfValidRows,d.ShowingOnlyRowsWithErrors,d.HasErrors,v[0],v[1],v[2],m)]),Z()]}case 5:{const m=p.PageNo-1|0;let v;const b=[p.Data,p.ShowingOnlyRowsWithErrors];return v=qo(m,b[0],b[1]),[new Gr(1,[new Gi(p.Data,p.InviteTiming,p.DuplicateEmailCount,p.NumberOfRowsWithErrorsOtherThanDuplicateEmail,p.NumberOfInvalidRows,p.NumberOfRows,p.NumberOfValidRows,p.ShowingOnlyRowsWithErrors,p.HasErrors,v[0],v[1],v[2],m)]),Z()]}default:return[h,Z()]}}function Gh(e,t){let n,r,i;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",w(g([(i="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",i]),["fill","#2E66F7"]])))]),["children",y.Children.toArray(Array.from(n))])])))}function zh(e,t,n){let r,i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,E,M,R,F,L,S;return Ni(g([new yt(3,[t]),new yt(4,[n]),new yt(5,[[Mi(fe(new $i(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(r=[Ti(fe(new Jn(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(i=[c("div",w(g([["className","flex flex-row justify-between"],(o=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What kind of data do I need?"}),c("button",w(g([["onClick",_=>{n()}],["type","button"],["className","text-gray-600"],(s=[Ii(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","text-gray-600 text-sm pt-6"],(a=[c("span",{children:"Fields marked with "}),c("span",{className:"text-red-600",children:"*"}),c("span",w(fe((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",y.Children.toArray(Array.from(a))])]))),c("div",w(g([["className","grid grid-cols-2 mt-3"],(u=[c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Column fields"}),c("span",{className:"text-gray-900 font-medium text-sm px-3 py-3.5 bg-gray-100 border",children:"Accepted values"}),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(f=[c("span",{children:"First name "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(f))])]))),c("div",w(fe((d=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(p=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Sam, Josh, Alex"})],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(d))])))),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(h=[c("span",{children:"Last name "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(h))])]))),c("div",w(fe((m=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(v=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"Smith, Doe, Williams"})],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(m))])))),c("div",w(g([["className","text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border"],(b=[c("span",{children:"Email "}),c("span",{className:"text-red-600",children:"*"})],["children",y.Children.toArray(Array.from(b))])]))),c("div",w(fe((x=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(C=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"john.smith@mycompany.com"})],["children",y.Children.toArray(Array.from(C))])])))],["children",y.Children.toArray(Array.from(x))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Mobile number"}),c("div",w(fe((E=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(M=[c("span",{children:"For example:"}),c("br",{}),c("span",{className:"italic",children:"+61432368712"})],["children",y.Children.toArray(Array.from(M))])])))],["children",y.Children.toArray(Array.from(E))])))),c("span",{className:"text-gray-600 font-medium text-sm px-3 py-3.5 bg-gray-50 border",children:"Employment basis"}),c("div",w(fe((R=[c("div",w(g([["className","text-gray-600 font-normal text-sm px-3 py-3.5 border"],(F=[c("span",{children:"One of the following options:"}),c("br",{}),c("ul",w(g([["className","italic list-disc px-3"],(L=[c("li",{children:"Full-time"}),c("li",{children:"Part-time"}),c("li",{children:"Labour hire"}),c("li",{children:"Casual"})],["children",y.Children.toArray(Array.from(L))])])))],["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(R))])))),c("a",w(g([["className","flex flex-row items-end gap-1 pt-3"],["href",e],["download","import_users"],(S=[c("span",{className:"text-sm text-primary-600 font-medium",children:"Download template"}),Gh(16,16)],["children",y.Children.toArray(Array.from(S))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(i))])])))]])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}function JC(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m;return Ni(g([new yt(3,[e]),new yt(4,[t]),new yt(5,[[Mi(fe(new $i(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Ti(fe(new Jn(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"What is workplace benefits?"}),c("button",w(g([["onClick",v=>{t()}],["type","button"],["className","text-gray-600"],(o=[Ii(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(g([["className","text-gray-500 text-sm font-normal pt-6"],(s=[c("p",w(fe((a=[c("span",{children:["Workplace benefits is a"]}),c("span",{className:"font-semibold",children:" free platform "}),(l="for your entire workforce – including full-time, part-time, casual employees, and volunteers. It allows you to share company benefits while supporting employee wellbeing.",c("span",{children:[l]}))],["children",y.Children.toArray(Array.from(a))])))),c("p",w(g([["className","pt-3"],(u=[(f="With workplace benefits, your people can access everyday savings from top Australian brands like Woolworths, Kmart, Harvey Norman, The Iconic, and more – all through the ",c("span",{children:[f]})),c("span",{className:"font-semibold",children:" Flare App"}),c("span",{children:["."]})],["children",y.Children.toArray(Array.from(u))])]))),c("p",{className:"pt-3",children:"The program is designed to help employees make their pay go further through:"}),c("ul",w(g([["className","list-inside list-disc pt-3"],(d=[c("li",w(fe((p=[c("span",{className:"font-semibold",children:"Savings "}),c("span",{children:["on essentials like food, fuel, and more."]})],["children",y.Children.toArray(Array.from(p))])))),c("li",w(g([["className","pt-2"],(h=[c("span",{className:"font-semibold",children:"Exclusive offers "}),c("span",{children:["from leading brands and retailers."]})],["children",y.Children.toArray(Array.from(h))])]))),c("li",w(g([["className","pt-2"],(m=[c("span",{className:"font-semibold",children:"Tax savings "}),c("span",{children:["with salary packaging."]})],["children",y.Children.toArray(Array.from(m))])])))],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}const QC=e=>c("svg",{width:48,height:54,viewBox:"0 0 48 54",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{id:"Group 67"},c("path",{id:"Vector",d:"M24.2605 17.5933C17.766 17.5933 12.5005 22.9015 12.5005 29.4469V53.1561H36.0205V29.4469C36.0205 22.8995 30.7549 17.5933 24.2605 17.5933Z",fill:"url(#paint0_linear_4467_4223)"}),c("g",{id:"Group",opacity:.95},c("path",{id:"Vector_2",d:"M35.76 35.646C29.2655 35.646 24 40.9115 24 47.406V53.1558H47.52V47.406C47.52 40.9115 42.2544 35.646 35.76 35.646Z",fill:"url(#paint1_linear_4467_4223)"})),c("path",{id:"Vector_3",opacity:.95,d:"M12.24 35.646C5.74553 35.646 0.47998 40.9115 0.47998 47.406V53.1558H24V47.406C24 40.9115 18.7344 35.646 12.24 35.646Z",fill:"url(#paint2_linear_4467_4223)"}),c("path",{id:"Vector_4",d:"M24.1303 16.8098C28.5328 16.8098 32.1018 13.2408 32.1018 8.83827C32.1018 4.43569 28.5328 0.866699 24.1303 0.866699C19.7277 0.866699 16.1587 4.43569 16.1587 8.83827C16.1587 13.2408 19.7277 16.8098 24.1303 16.8098Z",fill:"#0095F2"}),c("path",{id:"Vector_5",opacity:.93,d:"M13.1537 35.1253C17.5563 35.1253 21.1253 31.5563 21.1253 27.1537C21.1253 22.7511 17.5563 19.1821 13.1537 19.1821C8.75112 19.1821 5.18213 22.7511 5.18213 27.1537C5.18213 31.5563 8.75112 35.1253 13.1537 35.1253Z",fill:"#FF876F"}),c("path",{id:"Vector_6",opacity:.93,d:"M35.89 35.1253C40.2926 35.1253 43.8616 31.5563 43.8616 27.1537C43.8616 22.7511 40.2926 19.1821 35.89 19.1821C31.4875 19.1821 27.9185 22.7511 27.9185 27.1537C27.9185 31.5563 31.4875 35.1253 35.89 35.1253Z",fill:"#A650FF"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4467_4223",x1:24.2605,y1:53.1561,x2:24.2605,y2:17.5933,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#161E37"}),c("stop",{offset:.11,stopColor:"#172243"}),c("stop",{offset:.31,stopColor:"#1B2E62"}),c("stop",{offset:.57,stopColor:"#214196"}),c("stop",{offset:.89,stopColor:"#2A5CDD"}),c("stop",{offset:1,stopColor:"#2E66F7"})),c("linearGradient",{id:"paint1_linear_4467_4223",x1:24,y1:44.4009,x2:47.52,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{offset:.11,stopColor:"#FF876F"}),c("stop",{offset:.99,stopColor:"#A650FF"})),c("linearGradient",{id:"paint2_linear_4467_4223",x1:.47998,y1:44.4009,x2:24,y2:44.4009,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#0095F2"}),c("stop",{offset:.29,stopColor:"#307CF6"}),c("stop",{offset:.61,stopColor:"#6163FB"}),c("stop",{offset:.86,stopColor:"#7F54FD"}),c("stop",{offset:1,stopColor:"#8B4FFF"})))),e6=e=>c("svg",{xmlns:"http://www.w3.org/2000/svg",width:12,height:12,viewBox:"0 0 12 12",fill:"none",...e},c("path",{d:"M6.00033 0.666504C3.05966 0.666504 0.666992 3.05917 0.666992 5.99984C0.666992 8.9405 3.05966 11.3332 6.00033 11.3332C8.94099 11.3332 11.3337 8.9405 11.3337 5.99984C11.3337 3.05917 8.94099 0.666504 6.00033 0.666504ZM6.50033 8.54584C6.50033 8.82184 6.27633 9.04584 6.00033 9.04584C5.72433 9.04584 5.50033 8.82184 5.50033 8.54584V5.49984C5.50033 5.22384 5.72433 4.99984 6.00033 4.99984C6.27633 4.99984 6.50033 5.22384 6.50033 5.49984V8.54584ZM6.00033 4.49984C5.63233 4.49984 5.33366 4.2005 5.33366 3.83317C5.33366 3.46584 5.63233 3.1665 6.00033 3.1665C6.36833 3.1665 6.66699 3.46584 6.66699 3.83317C6.66699 4.2005 6.36833 4.49984 6.00033 4.49984Z",fill:"currentColor"})),t6=e=>c("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_4584_4202)"}),c("g",{clipPath:"url(#clip0_4584_4202)"},c("path",{d:"M9.24302 26.953L18.152 10.111C18.33 9.77467 18.5963 9.49321 18.9222 9.2969C19.2482 9.10059 19.6215 8.99686 20.002 8.99686C20.3825 8.99686 20.7559 9.10059 21.0818 9.2969C21.4078 9.49321 21.6741 9.77467 21.852 10.111L30.761 26.953C30.9282 27.2708 31.0103 27.6266 30.9991 27.9855C30.988 28.3445 30.8841 28.6944 30.6975 29.0013C30.5109 29.3081 30.2479 29.5614 29.9343 29.7364C29.6207 29.9115 29.2672 30.0023 28.908 30H11.092C10.7332 30.0016 10.3801 29.9103 10.0671 29.735C9.75404 29.5597 9.49169 29.3063 9.30555 28.9996C9.11942 28.6928 9.01583 28.3431 9.00488 27.9845C8.99392 27.6259 9.07596 27.2705 9.24302 26.953V26.953Z",stroke:"#111827",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20 16V22",stroke:"#DC2626",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20 27C20.8284 27 21.5 26.3284 21.5 25.5C21.5 24.6716 20.8284 24 20 24C19.1716 24 18.5 24.6716 18.5 25.5C18.5 26.3284 19.1716 27 20 27Z",fill:"#DC2626"})),c("defs",null,c("linearGradient",{id:"paint0_linear_4584_4202",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#FECACA"}),c("stop",{offset:1,stopColor:"#FECACA",stopOpacity:0})),c("clipPath",{id:"clip0_4584_4202"},c("rect",{width:24,height:24,fill:"white",transform:"translate(8 8)"})))),n6=e=>c("svg",{width:40,height:40,viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("rect",{width:40,height:40,rx:4,fill:"url(#paint0_linear_3326_53774)"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M28.3272 22.6261C28.5428 23.1983 28.2016 23.8306 27.6205 24.025C26.6465 24.3503 25.3424 24.6628 23.7902 24.7151C23.7699 24.6508 23.7476 24.5864 23.7234 24.522C23.042 22.7136 21.7109 21.2192 20.0107 20.3308C20.9217 19.6032 22.0762 19.1683 23.3339 19.1683C25.6205 19.1683 27.5661 20.6061 28.3272 22.6261Z",fill:"#93C5FD"}),c("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",fill:"#93C5FD"}),c("path",{d:"M16.3892 19.1667C17.6165 19.1667 18.6114 18.1718 18.6114 16.9445C18.6114 15.7172 17.6165 14.7222 16.3892 14.7222C15.1619 14.7222 14.167 15.7172 14.167 16.9445C14.167 18.1718 15.1619 19.1667 16.3892 19.1667Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M20.6771 26.8022C21.2583 26.6078 21.5994 25.9756 21.3838 25.4033C20.6227 23.3833 18.6771 21.9456 16.3905 21.9456C14.1038 21.9456 12.1583 23.3833 11.3971 25.4033C11.1816 25.9767 11.5227 26.6089 12.1038 26.8022C13.1727 27.1589 14.6383 27.5 16.3916 27.5C18.1449 27.5 19.6094 27.1589 20.6771 26.8022Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M23.3336 16.3889C24.5609 16.3889 25.5558 15.394 25.5558 14.1667C25.5558 12.9394 24.5609 11.9445 23.3336 11.9445C22.1062 11.9445 21.1113 12.9394 21.1113 14.1667C21.1113 15.394 22.1062 16.3889 23.3336 16.3889Z",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("path",{d:"M24.1664 24.6967C25.553 24.6111 26.7264 24.3233 27.6208 24.0245C28.2019 23.83 28.543 23.1978 28.3275 22.6256C27.5664 20.6056 25.6208 19.1678 23.3341 19.1678C22.2486 19.1678 21.2397 19.4922 20.3975 20.0489",stroke:"#212121",strokeWidth:1.66667,strokeLinecap:"round",strokeLinejoin:"round"}),c("defs",null,c("linearGradient",{id:"paint0_linear_3326_53774",x1:40,y1:571311e-11,x2:4.50001,y2:35.5,gradientUnits:"userSpaceOnUse"},c("stop",{stopColor:"#D6E2FC"}),c("stop",{offset:1,stopColor:"#D6E2FC",stopOpacity:0})))),r6=e=>c("svg",{width:96,height:28,viewBox:"0 0 96 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},c("g",{clipPath:"url(#clip0_3030_30757)"},c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M2.40895 5.42706C5.79785 4.83985 8.86151 3.00302 11.0249 0.261313C11.1152 0.153807 11.235 0.0767261 11.3686 0.0401219C11.5021 0.00351777 11.6434 0.0090886 11.7738 0.056108C11.9043 0.103127 12.0179 0.189414 12.0999 0.303716C12.1819 0.418018 12.2285 0.555032 12.2335 0.696894L12.2335 11.4663C12.2313 11.588 12.1985 11.7071 12.1382 11.812C12.078 11.9168 11.9924 12.0039 11.8897 12.0648C11.787 12.1257 11.6708 12.1583 11.5522 12.1594C11.4336 12.1606 11.3168 12.1303 11.213 12.0714L2.17962 6.71732C2.06323 6.6422 1.97142 6.53301 1.91604 6.40381C1.86067 6.27462 1.84426 6.13136 1.86894 5.9925C1.89362 5.85364 1.95825 5.72556 2.05451 5.62478C2.15076 5.52399 2.27422 5.45513 2.40895 5.42706ZM2.40895 22.6054C5.79785 23.1926 8.86151 25.0295 11.0249 27.7712C11.1152 27.8787 11.235 27.9557 11.3686 27.9923C11.5021 28.029 11.6434 28.0234 11.7738 27.9764C11.9043 27.9293 12.0179 27.8431 12.0999 27.7288C12.1819 27.6145 12.2285 27.4774 12.2335 27.3356L12.2335 16.5756C12.2328 16.453 12.2012 16.3328 12.1416 16.2267C12.082 16.1205 11.9965 16.0321 11.8936 15.9701C11.7906 15.9081 11.6738 15.8747 11.5544 15.8731C11.4351 15.8715 11.3174 15.9018 11.213 15.961L2.17962 21.3151C2.06323 21.3903 1.97142 21.4995 1.91604 21.6287C1.86067 21.7578 1.84426 21.9011 1.86894 22.04C1.89362 22.1788 1.95825 22.3069 2.05451 22.4077C2.15076 22.5085 2.27422 22.5773 2.40895 22.6054ZM0.20511 8.8811C1.43425 12.1754 1.45137 15.8168 0.253269 19.1231C0.21046 19.2568 0.207545 19.4007 0.244898 19.5361C0.28225 19.6715 0.358167 19.7924 0.462907 19.8833C0.567647 19.9741 0.696433 20.0307 0.832742 20.0459C0.96905 20.0611 1.10666 20.0341 1.22793 19.9684L10.2567 14.6166C10.3578 14.5537 10.4414 14.465 10.4994 14.3592C10.5574 14.2535 10.5879 14.1341 10.5879 14.0127C10.5879 13.8913 10.5574 13.772 10.4994 13.6662C10.4414 13.5604 10.3578 13.4717 10.2567 13.4088L1.17518 8.02406C1.05302 7.95812 0.914374 7.93142 0.777244 7.94743C0.640114 7.96344 0.510844 8.02142 0.406231 8.11384C0.301618 8.20627 0.226497 8.32886 0.190631 8.46568C0.154764 8.60251 0.159809 8.74725 0.20511 8.8811ZM23.6634 22.6054C20.2745 23.1926 17.2108 25.0295 15.0474 27.7712C14.9571 27.8787 14.8374 27.9557 14.7038 27.9923C14.5702 28.029 14.4289 28.0234 14.2985 27.9764C14.168 27.9293 14.0544 27.8431 13.9724 27.7288C13.8904 27.6145 13.8439 27.4774 13.8388 27.3356L13.8388 16.5756C13.8397 16.4534 13.8714 16.3335 13.9309 16.2277C13.9904 16.1219 14.0756 16.0337 14.1781 15.9718C14.2807 15.9098 14.3972 15.8763 14.5162 15.8744C14.6352 15.8725 14.7527 15.9024 14.8571 15.961L23.8927 21.3152C24.0091 21.3903 24.1009 21.4995 24.1563 21.6287C24.2117 21.7579 24.2281 21.9011 24.2034 22.04C24.1787 22.1788 24.1141 22.3069 24.0178 22.4077C23.9216 22.5085 23.7981 22.5773 23.6634 22.6054ZM15.0474 0.261313C17.2108 3.00302 20.2745 4.83985 23.6634 5.42706C23.7981 5.45513 23.9216 5.52399 24.0178 5.62478C24.1141 5.72556 24.1787 5.85364 24.2034 5.9925C24.2281 6.13136 24.2117 6.27462 24.1563 6.40381C24.1009 6.53301 24.0091 6.6422 23.8927 6.71732L14.8571 12.0714C14.7533 12.1297 14.6367 12.1596 14.5185 12.1581C14.4002 12.1567 14.2844 12.124 14.182 12.0632C14.0797 12.0024 13.9943 11.9155 13.9342 11.8109C13.8741 11.7064 13.8412 11.5877 13.8388 11.4663L13.8388 0.696894C13.8439 0.555032 13.8904 0.418018 13.9724 0.303716C14.0544 0.189414 14.168 0.103127 14.2985 0.056108C14.4289 0.0090886 14.5702 0.00351777 14.7038 0.0401219C14.8374 0.0767261 14.9571 0.153807 15.0474 0.261313ZM25.8168 8.90935C24.6184 12.2158 24.6363 15.8576 25.8672 19.1514C25.913 19.2855 25.9182 19.4307 25.8823 19.5679C25.8464 19.7052 25.7711 19.8281 25.666 19.9207C25.561 20.0133 25.4312 20.0711 25.2936 20.0868C25.1561 20.1024 25.0171 20.0751 24.8949 20.0084L15.8111 14.6237C15.71 14.5607 15.6264 14.4721 15.5684 14.3663C15.5104 14.2605 15.4799 14.1412 15.4799 14.0198C15.4799 13.8984 15.5104 13.779 15.5684 13.6732C15.6264 13.5674 15.71 13.4788 15.8111 13.4158L24.8421 8.06409C24.9634 7.9984 25.101 7.97141 25.2373 7.98657C25.3736 8.00174 25.5024 8.05837 25.6072 8.14921C25.7119 8.24004 25.7878 8.36093 25.8252 8.49637C25.8625 8.63181 25.8596 8.77562 25.8168 8.90935Z",fill:"#2696EC"}),c("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M39.2209 10.9851V23.8468H35.8118V10.9851H33.4648V7.92778H35.8118V6.51672C35.8118 4.91439 36.1765 3.76595 36.9061 3.0714C37.6356 2.37685 38.8454 2.02879 40.5355 2.02722H42.4442V4.82816H41.2857C40.5347 4.82816 40.0032 4.98495 39.6912 5.29851C39.3769 5.6207 39.2209 6.16396 39.2209 6.94474V7.93718H42.3891V10.9945L39.2209 10.9851ZM48.9092 2.03663L45.4679 2.03663V23.8421L48.9092 23.8421V2.03663ZM67.5974 23.8468V7.93718L64.2755 7.93718V10.1196C63.6573 9.3308 62.873 8.69564 61.9813 8.26172C61.0863 7.83165 60.1089 7.61228 59.1205 7.6197C58.0959 7.5972 57.0782 7.79484 56.1327 8.19987C55.1871 8.60491 54.3348 9.20838 53.6305 9.97145C52.1393 11.5597 51.3937 13.5195 51.3937 15.8508C51.3952 18.2324 52.1202 20.2032 53.5686 21.7632C55.017 23.3232 56.8362 24.1031 59.0264 24.1031C60.0369 24.1101 61.0362 23.886 61.9515 23.447C62.8575 23.009 63.6545 22.3657 64.2823 21.5656V23.8468H67.5974ZM55.138 17.7811C54.9016 17.1671 54.7876 16.5107 54.8028 15.8508C54.7876 15.1909 54.9016 14.5346 55.138 13.9206C55.3744 13.3066 55.7285 12.7475 56.1794 12.2762C56.6129 11.8155 57.1322 11.4489 57.7066 11.1979C58.281 10.947 58.8988 10.8169 59.5231 10.8153C60.1475 10.8138 60.7658 10.9409 61.3414 11.189C61.917 11.4371 62.4381 11.8012 62.8737 12.2597C63.3183 12.7374 63.6661 13.3008 63.8968 13.9172C64.1276 14.5337 64.2368 15.1909 64.2181 15.8508C64.2368 16.5108 64.1276 17.168 63.8968 17.7844C63.6661 18.4009 63.3183 18.9642 62.8737 19.442C62.4381 19.9005 61.917 20.2646 61.3414 20.5127C60.7658 20.7608 60.1475 20.8879 59.5231 20.8863C58.8988 20.8848 58.281 20.7547 57.7066 20.5038C57.1322 20.2528 56.6129 19.8861 56.1794 19.4255C55.7285 18.9542 55.3744 18.395 55.138 17.7811ZM74.317 14.254V23.8468H70.9079V7.93718L74.223 7.93718V9.54108C74.592 8.94917 75.0969 8.45902 75.6935 8.11357C76.2985 7.77921 76.977 7.60919 77.6642 7.6197C78.1147 7.61511 78.5633 7.68012 78.9948 7.81254C79.3586 7.91663 79.6949 8.10308 79.979 8.35815L78.2584 11.4366C78.0425 11.2918 77.8055 11.1831 77.5564 11.1144C77.3265 11.052 77.0899 11.0196 76.8521 11.018C76.4954 11.0017 76.1402 11.0733 75.8161 11.2268C75.4919 11.3802 75.2084 11.611 74.9892 11.8999C74.5411 12.4863 74.317 13.271 74.317 14.254ZM95.8271 16.467C95.8432 16.34 95.8432 16.1472 95.8432 15.8908C95.8355 13.4967 95.0815 11.5197 93.5811 9.95969C92.0807 8.3997 90.1835 7.6197 87.8893 7.6197C85.5676 7.61186 83.642 8.38872 82.1126 9.95029C80.5831 11.5119 79.8184 13.4897 79.8184 15.8838C79.8184 18.2982 80.5587 20.2698 82.0392 21.7984C83.5197 23.3271 85.4384 24.0914 87.7952 24.0914C89.5346 24.1334 91.2443 23.6242 92.691 22.6333C94.0578 21.6868 95.0674 20.2892 95.5518 18.6729H91.9546C91.5609 19.4036 90.9761 20.0071 90.266 20.4156C89.5283 20.8295 88.6981 21.0394 87.8572 21.0247C86.7294 21.0612 85.6315 20.65 84.7922 19.877C83.977 19.1229 83.4975 18.1038 83.3537 16.8198H95.7812C95.8037 16.7033 95.819 16.5855 95.8271 16.467ZM87.8324 10.6957C87.8338 10.6957 87.8351 10.6958 87.8365 10.6958H87.8274C87.829 10.6958 87.8307 10.6957 87.8324 10.6957ZM84.9413 11.7212C85.7535 11.0344 86.7798 10.6704 87.8324 10.6957C88.8902 10.6749 89.9201 11.0447 90.7341 11.7376C91.5425 12.4257 92.0583 13.409 92.1725 14.4798L83.3927 14.4798C83.5781 13.4028 84.1261 12.4266 84.9413 11.7212Z",fill:"#143057"})),c("defs",null,c("clipPath",{id:"clip0_3030_30757"},c("rect",{width:95.6667,height:28,fill:"white",transform:"translate(0.166992)"}))));function Oo(e,t){return y.createElement(e,w(t))}function i6(e){return Oo(QC,e)}function o6(e){return Oo(e6,e)}function s6(e){return Oo(t6,e)}function a6(e){return Oo(n6,e)}function l6(e){return Oo(r6,e)}function u6(e,t,n,r){let i,o,s,a,l,u,f,d,p,h,m;return Ni(g([new yt(3,[e]),new yt(4,[n]),new yt(5,[[Mi(fe(new $i(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(i=[c("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(o=[Ti(g([new Jn(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new Jn(2,[[c("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(s=[c("button",w(g([["type","button"],["onClick",v=>{n()}],["className","text-gray-600"],(a=[Ii(24,24)],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])]))),c("div",w(g([["className","sm:flex sm:items-start"],(l=[c("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(u=[a6([])],["children",y.Children.toArray(Array.from(u))])]))),c("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(f=[Ah(g([new Ns(2,["text-gray-900 text-lg font-bold"]),new Ns(3,[[`Import ${t} users`]])])),c("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(d=[c("p",{children:[`Are you sure you want to import ${t} users?`]})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(p=[c("button",w(g([["type","button"],["onClick",v=>{r()}],(h="inline-flex w-full justify-center rounded-md bg-emerald-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-emerald-700 sm:ml-3 sm:w-auto",["className",h]),["children","Confirm import"]]))),c("button",w(g([["type","button"],["onClick",v=>{n()}],(m="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",m]),["children","Cancel"]])))],["children",y.Children.toArray(Array.from(p))])])))]])]))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])])))]])]))}function c6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=fe(c("path",w(g([(r="M17.8008 14.5263L11.4838 2.88031C11.328 2.59137 11.0904 2.35483 10.8008 2.20031C10.4074 1.98974 9.94665 1.94305 9.51893 2.07039C9.0912 2.19773 8.73106 2.48881 8.51683 2.88031L2.20083 14.5263C2.06272 14.7826 1.99367 15.0704 2.00046 15.3614C2.00724 15.6525 2.08964 15.9368 2.23954 16.1863C2.38944 16.4359 2.60169 16.6422 2.85544 16.7849C3.10919 16.9276 3.39571 17.0018 3.68683 17.0003H16.3148C16.5939 17.0003 16.8686 16.9316 17.1148 16.8003C17.3099 16.6968 17.4825 16.5556 17.6228 16.3851C17.763 16.2145 17.8681 16.0178 17.932 15.8064C17.9958 15.595 18.0172 15.373 17.9949 15.1533C17.9726 14.9336 17.9069 14.7205 17.8018 14.5263H17.8008ZM10.0008 15.0003C9.80305 15.0003 9.60971 14.9417 9.44526 14.8318C9.28081 14.7219 9.15264 14.5657 9.07695 14.383C9.00126 14.2003 8.98146 13.9992 9.02004 13.8052C9.05863 13.6112 9.15387 13.4331 9.29372 13.2932C9.43358 13.1533 9.61176 13.0581 9.80574 13.0195C9.99972 12.9809 10.2008 13.0007 10.3835 13.0764C10.5662 13.1521 10.7224 13.2803 10.8323 13.4447C10.9422 13.6092 11.0008 13.8025 11.0008 14.0003C11.0008 14.2655 10.8955 14.5199 10.7079 14.7074C10.5204 14.8949 10.266 15.0003 10.0008 15.0003ZM11.0008 11.5003C11.0008 11.6329 10.9482 11.7601 10.8544 11.8539C10.7606 11.9476 10.6334 12.0003 10.5008 12.0003H9.50083C9.36822 12.0003 9.24104 11.9476 9.14728 11.8539C9.05351 11.7601 9.00083 11.6329 9.00083 11.5003V7.50031C9.00083 7.3677 9.05351 7.24052 9.14728 7.14675C9.24104 7.05298 9.36822 7.00031 9.50083 7.00031H10.5008C10.6334 7.00031 10.7606 7.05298 10.8544 7.14675C10.9482 7.24052 11.0008 7.3677 11.0008 7.50031V11.5003Z",["d",r]),["fill","#FBBF24"]])))),["children",y.Children.toArray(Array.from(n))])])))}function d6(e){return`${Af(e,".")}.`}function Rd(e){return Af(e,".")}function f6(e){let t;const n=e.children,r=e.text,i=y.useState(!1),o=i[1];return c("div",w(g([["className","relative inline-block"],["onMouseEnter",s=>{o(!0)}],["onMouseLeave",s=>{o(!1)}],(t=K(N(()=>H(n,N(()=>{let s,a;return i[0]?A(c("div",w(g([(s="absolute top-0 left-full -translate-y-1/4 ml-1 text-left text-white text-xs leading-5 font-medium ring-1 ring-black ring-opacity-5 shadow-md rounded-md bg-gray-900 px-3 py-2 w-60 text-wrap",["className",s]),(a=K(N(()=>{let l;return Ne(r)?A(c("ul",w(g([["className","list-inside list-disc"],(l=K(N(()=>je(u=>c("li",{children:[Rd(u)]}),r))),["children",y.Children.toArray(Array.from(l))])])))):Ne(Me(r))?A(c("p",{children:[d6(se(r))]})):A(c("ul",w(g([["className","list-inside list-disc"],(l=K(N(()=>je(u=>c("li",{children:[Rd(u)]}),r))),["children",y.Children.toArray(Array.from(l))])]))))})),["children",y.Children.toArray(Array.from(a))])])))):dt()})))),["children",y.Children.toArray(Array.from(t))])])))}function jr(e,t){let n;return c("div",w(g([["className",At(" ",["animate-pulse w-full relative",e,t])],(n=[c("div",{className:At(" ",["w-full left-0 top-0 absolute bg-gray-200 rounded",e])})],["children",y.Children.toArray(Array.from(n))])])))}function m6(){let e,t,n,r,i,o,s,a,l,u,f,d;return c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(e=[c("div",w(g([["className","flex-col justify-start items-end gap-4 inline-flex"],(t=[c("div",w(g([["className","justify-start items-center gap-2 inline-flex"],(n=[c("input",{type:"checkbox",defaultChecked:!1,disabled:!0,className:"rounded-sm border border-gray-300 bg-white"}),c("span",{className:"text-gray-400 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(r=[c("div",w(g([["className","w-[1030px]"],(i=K(N(()=>{let p,h,m,v;return H(A(c("div",w(g([["className","bg-gray-100 flex"],(p=[c("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(h=[jr("h-5","w-full")],["children",y.Children.toArray(Array.from(h))])]))),c("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(m=[jr("h-5","w-full")],["children",y.Children.toArray(Array.from(m))])]))),c("div",w(g([["className","px-3 py-2.5 text-left flex-1"],(v=[jr("h-5","w-full")],["children",y.Children.toArray(Array.from(v))])])))],["children",y.Children.toArray(Array.from(p))])])))),N(()=>je(b=>c("div",w(K(N(()=>H(b%2===1?A(["className","bg-white border-t border-gray-200 flex"]):A(["className","bg-gray-50 border-t border-gray-200 flex"]),N(()=>{let x,C,E,M;return A((x=[c("div",w(g([["className","px-3 py-2.5 text-left w-[128px]"],(C=[jr("h-5","w-full")],["children",y.Children.toArray(Array.from(C))])]))),c("div",w(g([["className","px-3 py-2.5 text-left w-[148px]"],(E=[jr("h-5","w-full")],["children",y.Children.toArray(Array.from(E))])]))),c("div",w(g([["className","px-3 py-2.5 text-left flex-1"],(M=[jr("h-5","w-full")],["children",y.Children.toArray(Array.from(M))])])))],["children",y.Children.toArray(Array.from(x))]))})))))),K(Xl(0,1,9)))))})),["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])]))),c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(o=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(s=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(a=[c("button",w(g([(l="px-[13px] py-[9px] bg-white opacity-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex",["className",l]),["disabled",!0],(u=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(u))])]))),c("button",w(g([(f="pl-[13px] pr-[11px] py-[9px] opacity-50 bg-emerald-600 rounded-md shadow-sm justify-center items-center gap-2 flex",["className",f]),["disabled",!0],(d=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:"Import users"})],["children",y.Children.toArray(Array.from(d))])])))],["children",y.Children.toArray(Array.from(a))])])))],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(e))])])))}function h6(e){const t=Ye(r=>r,tr(e)),n=new Blob(t,{type:"text/csv;charset=utf-8;"});return window.URL.createObjectURL(n)}const p6=(()=>{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 g6(e){let t,n,r;const i=e.onError,o=e.back,s=e.next,a=e.employmentBasis,l=e.baseColumnMappings,u=e.dataRows,f=e.apiCallAsync;let d;const p=ZC(()=>qC(f,u,l,a));d=Rr(()=>Or(()=>p,(R,F)=>XC(i,R,F),(R,F)=>{}),void 0,void 0);const h=d[1],m=y.useState(!1),v=m[1],b=y.useState(!1),x=b[1],C=y.useState(!1),E=C[0],M=C[1];return c("div",w(g([["className","flex flex-col bg-gray-50 px-12 pt-8 pb-12 h-full"],(t=[zh(p6,m[0],()=>{v(!1)}),JC(b[0],()=>{x(!1)}),ua("Review"),ca("Preview your data and confirm that everything is mapped correctly."),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(n=[lo("What kind of data do I need?",()=>{v(!0)})],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","justify-start items-start gap-12 inline-flex"],(r=[c("div",w(K(N(()=>H(A(["className","pt-6 flex-col justify-start items-start gap-4 inline-flex"]),N(()=>{let R,F,L;const S=d[0];if(S.tag===1){const _=S.fields[0],k=B=>{h(new Yi(1,[B]))},T=B=>{h(new Yi(2,[B]))},I=Wh(_)?B=>{h(new Yi(3,[]))}:void 0,D=Uh(_)?B=>{h(new Yi(4,[]))}:void 0;return A((R=[c("div",w(g([["className","flex-col justify-start items-start gap-6 inline-flex"],(F=K(N(()=>H(A(u6(E,_.NumberOfValidRows,()=>{E&&M(!1)},()=>{E&&s(_.InviteTiming)})),N(()=>{let B,pe,Y,U,P,W,j,de;return H(_.HasErrors?A(c("div",w(g([["className","p-4 bg-amber-50 rounded-md justify-start items-start gap-3 inline-flex"],(B=[c6(20,20),c("div",w(g([["className","flex-col justify-start items-start gap-2 inline-flex"],(pe=[c("div",w(g([["className","self-stretch text-amber-800 text-sm font-medium leading-tight"],(Y=[c("span",{children:[`We found some issues across ${_.NumberOfInvalidRows} rows in your CSV:`]})],["children",y.Children.toArray(Array.from(Y))])]))),c("ul",w(g([["className","pl-2 font-normal overflow-hidden list-inside list-disc text-amber-700 text-sm"],(U=K(N(()=>{let q;return H(_.DuplicateEmailCount>0?A((q=g([c("span",{className:"font-medium",children:`${_.DuplicateEmailCount} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"duplicate email addresses"})]),c("li",{children:y.Children.toArray(Array.from(q))}))):dt(),N(()=>{let O;return _.NumberOfRowsWithErrorsOtherThanDuplicateEmail>0?A((O=g([c("span",{className:"font-medium",children:`${_.NumberOfRowsWithErrorsOtherThanDuplicateEmail} rows `}),c("span",{children:["have "]}),c("span",{className:"font-medium",children:"missing or incorrectly formatted data"})]),c("li",{children:y.Children.toArray(Array.from(O))}))):dt()}))})),["children",y.Children.toArray(Array.from(U))])]))),c("div",w(g([["className","px-2 py-1.5"],(P=[c("div",w(g([["className","text-amber-700 text-sm leading-tight"],(W=[c("span",{children:[`You can continue the import without these ${_.NumberOfInvalidRows} rows—we’ll automatically skip them. To import them later, download the error report, fix the issues, and re-upload your file as a new import.`]})],["children",y.Children.toArray(Array.from(W))])])))],["children",y.Children.toArray(Array.from(P))])]))),c("div",w(g([["className","px-2 py-1.5"],(j=[c("a",{className:"text-amber-800 text-sm font-medium leading-tight",children:"Download Error Report (.csv)",href:h6((de=[_,a!=null],KC(de[0],de[1]))),download:"import_users_error_rows"})],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(B))])])))):dt(),N(()=>{let q,O,ue,ee,_e,Le,te,be,xe,Te,G,J,he,Ce;return H(A(c("div",w(g([["className","w-full flex-col justify-start items-end gap-4 inline-flex"],(q=[c("div",w(g([["className","justify-start items-center gap-2 inline-flex py-3 -my-3"],["onClick",ie=>{T(!_.ShowingOnlyRowsWithErrors)}],(O=[c("input",w(g([["type","checkbox"],["checked",_.ShowingOnlyRowsWithErrors],(ue="rounded-sm border border-gray-300 bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600",["className",ue]),["onKeyPress",ie=>{ie.preventDefault(),ie.key==="Enter"&&T(!_.ShowingOnlyRowsWithErrors)}]]))),c("span",{className:"text-gray-900 text-sm font-normal leading-tight",children:"Show only rows with errors"})],["children",y.Children.toArray(Array.from(O))])]))),c("div",w(g([["className","w-full px-4 pt-4 pb-2 bg-white rounded-lg border border-gray-200 flex-col"],(ee=[c("div",w(fe((_e=[c("div",w(g([["className","w-full max-h-[470px] overflow-auto"],(Le=[c("table",w(g([["className","w-full divide-y divide-gray-300"],(te=[c("thead",w(g([["className","bg-gray-100 border-b border-gray-200 text-sm text-gray-900 text-sm font-medium leading-tight"],(be=[(xe=K(N(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"#"})),N(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Error detail"})),N(()=>{let ie;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(ie=[c("span",{children:["First name "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(ie))])])))),N(()=>{let ce;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(ce=[c("span",{children:["Last name "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(ce))])])))),N(()=>{let Be;return H(A(c("th",w(g([["scope","col"],["className","px-3 py-2.5 text-left"],(Be=[c("span",{children:["Email "]}),c("span",{className:"text-red-500",children:"*"})],["children",y.Children.toArray(Array.from(Be))])])))),N(()=>H(A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Mobile Phone"})),N(()=>a!=null?A(c("th",{scope:"col",className:"px-3 py-2.5 text-left",children:"Employment Basis"})):dt()))))}))}))})))))),c("tr",{children:y.Children.toArray(Array.from(xe))}))],["children",y.Children.toArray(Array.from(be))])]))),c("tbody",w(g([["className","divide-y divide-gray-200"],(Te=K(N(()=>je(ie=>c("tr",w(K(N(()=>H(A(["key",ie.RowNumber]),N(()=>{let ce;return H((ce=ie.RowNumber%2|0,ie.Errors==null?A(ce===1?["className","bg-white"]:["className","bg-gray-50"]):A(["className","bg-amber-50"])),N(()=>{let Be;return A((Be=K(N(()=>H(A(c("td",{className:"whitespace-nowrap px-3 py-2.5 text-sm text-gray-500",children:ie.RowNumber})),N(()=>H(A(c("td",w(K(N(()=>H(A(["className","whitespace-nowrap px-3 py-2.5"]),N(()=>{let ge,Ae,ke;return ie.Errors!=null?A((ge=[c("div",w(g([(Ae="text-center text-amber-800 text-xs font-medium h-5 pl-2.5 pr-1.5 bg-amber-100 rounded justify-center items-center inline-flex",["className",Ae]),(ke=K(N(()=>H(A(c("span",{children:[V(ie.Errors).Summary]})),N(()=>{let Mt;const ot=V(ie.Errors).Details;return ot==null?dt():A(c("div",w(g([["className","pl-1 text-amber-700 items-center inline-flex"],(Mt=[c(f6,{text:ot,children:[o6([])]})],["children",y.Children.toArray(Array.from(Mt))])]))))})))),["children",y.Children.toArray(Array.from(ke))])])))],["children",y.Children.toArray(Array.from(ge))])):dt()}))))))),N(()=>H(A(c("td",w(K(N(()=>{let ge,Ae;const ke=ie.FirstName;return ke[0]==null?dt():ke[1]?(ge=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ge])))):(Ae=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",Ae]))))}))))),N(()=>H(A(c("td",w(K(N(()=>{let ge,Ae;const ke=ie.LastName;return ke[0]==null?dt():ke[1]?(ge=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ge])))):(Ae=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",Ae]))))}))))),N(()=>H(A(c("td",w(K(N(()=>{let ge,Ae;const ke=ie.Email;return ke[0]==null?dt():ke[1]?(ge=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ge])))):(Ae=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",Ae]))))}))))),N(()=>H(A(c("td",w(K(N(()=>{let ge,Ae;const ke=ie.MobilePhone;return ke[0]==null?dt():ke[1]?(ge=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ge])))):(Ae=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",Ae]))))}))))),N(()=>a!=null?A(c("td",w(K(N(()=>{let ge,Ae;const ke=ie.EmploymentBasis;return ke[0]==null?dt():ke[1]?(ge=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm text-gray-500"]),N(()=>A(["children",ge])))):(Ae=ke[0],H(A(["className","whitespace-nowrap px-3 py-2.5 text-sm font-medium text-amber-700"]),N(()=>A(["children",Ae]))))}))))):dt())))))))))))))),["children",y.Children.toArray(Array.from(Be))]))}))})))))),_.Page))),["children",y.Children.toArray(Array.from(Te))])])))],["children",y.Children.toArray(Array.from(te))])])))],["children",y.Children.toArray(Array.from(Le))])]))),c("div",w(g([["className","h-[63px] w-full flex-col justify-start items-start inline-flex"],(G=[c("div",w(g([["className","self-stretch py-2.5 justify-between items-center inline-flex"],(J=[(he=g([c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:"Showing "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.RowFrom}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" to "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.RowTo}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" of "}),c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:_.ShowingOnlyRowsWithErrors?_.NumberOfInvalidRows:_.NumberOfRows}),c("span",{className:"text-gray-700 text-sm font-normal leading-tight",children:" results"})]),c("div",{children:y.Children.toArray(Array.from(he))})),c("div",w(g([["className","justify-start items-start gap-3 flex"],(Ce=[c("button",w(K(N(()=>{let ie;return H((ie=D,ie==null?A(["disabled",!0]):A(["onClick",ie])),N(()=>{let ce;return H(A((ce="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce])),N(()=>{let Be;return A((Be=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Previous"})],["children",y.Children.toArray(Array.from(Be))]))}))}))})))),c("button",w(K(N(()=>{let ie;return H((ie=I,ie==null?A(["disabled",!0]):A(["onClick",ie])),N(()=>{let ce;return H(A((ce="px-[17px] py-[9px] disabled:opacity-50 bg-white hover:enabled:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",ce])),N(()=>{let Be;return A((Be=[c("span",{className:"text-gray-700 text-sm font-medium leading-tight",children:"Next"})],["children",y.Children.toArray(Array.from(Be))]))}))}))}))))],["children",y.Children.toArray(Array.from(Ce))])])))],["children",y.Children.toArray(Array.from(J))])])))],["children",y.Children.toArray(Array.from(G))])])))],["children",y.Children.toArray(Array.from(_e))]))))],["children",y.Children.toArray(Array.from(ee))])])))],["children",y.Children.toArray(Array.from(q))])])))),N(()=>{let ie,ce,Be,ge,Ae,ke,Mt,ot,Kt,Ke,Ft,Vt,nn,Di,_n;return H(_.NumberOfValidRows>0?A(c("div",w(g([["className","pb-10 border-b border-gray-200 justify-start items-start gap-4 inline-flex w-full"],(ie=[i6([]),c("div",w(g([["className","grow shrink basis-0 flex-col justify-center items-start gap-4 inline-flex"],(ce=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Be=[c("div",{className:"text-gray-700 text-base font-semibold leading-normal",children:`Invite ${_.NumberOfValidRows} users to workplace benefits`})],["children",y.Children.toArray(Array.from(Be))])]))),lo("What is workplace benefits?",()=>{x(!0)}),c("div",w(fe((ge=[c("div",w(g([["className","flex-col justify-start items-start gap-2 flex"],(Ae=[c("div",w(g([["key",Xe(new Ct(1,[]))],["className","relative flex items-start"],(ke=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",pt=>{k(new Ct(1,[]))}],(Mt=[c("input",w(g([["id",Xe(new Ct(1,[]))],["name","InviteTiming"],["type","radio"],(ot="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",ot]),["checked",Q(_.InviteTiming,new Ct(1,[]))],["onChange",pt=>{pt.target.checked,k(new Ct(1,[]))}]])))],["children",y.Children.toArray(Array.from(Mt))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Kt=[c("label",{for:Xe(new Ct(1,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import now, Invite later"}),c("p",{id:`${Xe(new Ct(1,[]))}-description`,className:"text-gray-500 text-sm font-normal leading-tight",children:"We’ll import your users now. You can invite them to workplace benefits at any time later."})],["children",y.Children.toArray(Array.from(Kt))])])))],["children",y.Children.toArray(Array.from(ke))])])))],["children",y.Children.toArray(Array.from(Ae))])]))),c("div",w(fe((Ke=[c("div",w(g([["key",Xe(new Ct(0,[]))],["className","relative flex items-start"],(Ft=[c("div",w(g([["className","flex h-6 items-center py-2"],["onClick",pt=>{k(new Ct(0,[]))}],(Vt=[c("input",w(g([["id",Xe(new Ct(0,[]))],["name","InviteTiming"],["type","radio"],(nn="relative size-4 appearance-none rounded-full border border-gray-300 bg-white before:absolute before:inset-1 before:rounded-full before:bg-white checked:border-primary-600 checked:bg-primary-600 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-primary-600 disabled:border-gray-300 disabled:bg-gray-100 disabled:before:bg-gray-400 forced-colors:appearance-auto forced-colors:before:hidden [&:not(:checked)]:before:hidden",["className",nn]),["checked",Q(_.InviteTiming,new Ct(0,[]))],["onChange",pt=>{pt.target.checked,k(new Ct(0,[]))}]])))],["children",y.Children.toArray(Array.from(Vt))])]))),c("div",w(g([["className","ml-3 text-sm/6"],(Di=[c("label",{for:Xe(new Ct(0,[])),className:"text-gray-700 text-sm font-medium leading-tight",children:"Import and invite now"}),c("p",w(g([["id",`${Xe(new Ct(0,[]))}-description`],["className","text-gray-500 text-sm font-normal leading-tight"],(_n="We’ll import your users and send an email to help them set up workplace benefits and access the Flare app.",["children",_n])])))],["children",y.Children.toArray(Array.from(Di))])])))],["children",y.Children.toArray(Array.from(Ft))])])))],["children",y.Children.toArray(Array.from(Ke))]))))],["children",y.Children.toArray(Array.from(ge))]))))],["children",y.Children.toArray(Array.from(ce))])])))],["children",y.Children.toArray(Array.from(ie))])])))):dt(),N(()=>{let pt,Ln,Oi,Su,Eu,Au,ku;return A(c("div",w(g([["className","justify-start items-end gap-2 inline-flex w-full pb-2"],(pt=[c("div",w(g([["className","grow shrink basis-0 h-[34px] justify-start items-center gap-2 flex"],(Ln=[c("div",{className:"grow shrink basis-0 h-4 pr-2 justify-center items-center gap-2.5 flex"}),c("div",w(g([["className","justify-start items-center gap-2 flex"],(Oi=[c("button",w(g([(Su="px-[13px] py-[9px] bg-white hover:bg-gray-50 rounded-md shadow-sm border border-gray-300 justify-center items-center flex overflow-hidden",["className",Su]),["onClick",Xh=>{o()}],(Eu=[c("div",{className:"grow shrink basis-0 text-center text-gray-700 text-sm font-medium leading-none",children:"Back"})],["children",y.Children.toArray(Array.from(Eu))])]))),c("button",w(g([(Au="pl-[13px] pr-[11px] py-[9px] disabled:opacity-50 bg-emerald-600 hover:enabled:bg-emerald-700 rounded-md shadow-sm justify-center items-center gap-2 flex overflow-hidden",["className",Au]),["onClick",Xh=>{E||M(!0)}],["disabled",_.NumberOfValidRows===0],(ku=[c("div",{className:"grow shrink basis-0 text-center text-white text-sm font-medium leading-none",children:`Import ${_.NumberOfValidRows} users`})],["children",y.Children.toArray(Array.from(ku))])])))],["children",y.Children.toArray(Array.from(Oi))])])))],["children",y.Children.toArray(Array.from(Ln))])])))],["children",y.Children.toArray(Array.from(pt))])]))))}))}))}))})))),["children",y.Children.toArray(Array.from(F))])])))],["children",y.Children.toArray(Array.from(R))]))}else return A((L=[m6()],["children",y.Children.toArray(Array.from(L))]))}))))))],["children",y.Children.toArray(Array.from(r))])])))],["children",y.Children.toArray(Array.from(t))])])))}class Cn extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UnsupportedFileType","TooLarge","NoData","MoreThan5000Rows","EmptyFieldNames","DuplicateFieldNames","InconsistentRowLengths","GenericParseError"]}}class ns extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Parse","CancelParsing","Remove"]}}var rs={exports:{}};/* @license
|
|
52
52
|
Papa Parse
|
|
53
53
|
v5.5.1
|
|
54
54
|
https://github.com/mholt/PapaParse
|
|
55
55
|
License: MIT
|
|
56
|
-
*/var
|
|
57
|
-
`),
|
|
58
|
-
`;for(var
|
|
59
|
-
`&&
|
|
60
|
-
`:"\r"}}function b(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function
|
|
56
|
+
*/var w6=rs.exports,Fd;function y6(){return Fd||(Fd=1,function(e,t){((n,r)=>{e.exports=r()})(w6,function n(){var r=typeof self<"u"?self:typeof window<"u"?window:r!==void 0?r:{},i,o=!r.document&&!!r.postMessage,s=r.IS_PAPA_WORKER||!1,a={},l=0,u={};function f(S){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(_){var k=R(_);k.chunkSize=parseInt(k.chunkSize),_.step||_.chunk||(k.chunkSize=null),this._handle=new v(k),(this._handle.streamer=this)._config=k}).call(this,S),this.parseChunk=function(_,k){var T=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<T){let D=this._config.newline;D||(I=this._config.quoteChar||'"',D=this._handle.guessLineEndings(_,I)),_=[..._.split(D).slice(T)].join(D)}this.isFirstChunk&&L(this._config.beforeFirstChunk)&&(I=this._config.beforeFirstChunk(_))!==void 0&&(_=I),this.isFirstChunk=!1,this._halted=!1;var T=this._partialLine+_,I=(this._partialLine="",this._handle.parse(T,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(_=I.meta.cursor,T=(this._finished||(this._partialLine=T.substring(_-this._baseIndex),this._baseIndex=_),I&&I.data&&(this._rowCount+=I.data.length),this._finished||this._config.preview&&this._rowCount>=this._config.preview),s)r.postMessage({results:I,workerId:u.WORKER_ID,finished:T});else if(L(this._config.chunk)&&!k){if(this._config.chunk(I,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=I=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(I.data),this._completeResults.errors=this._completeResults.errors.concat(I.errors),this._completeResults.meta=I.meta),this._completed||!T||!L(this._config.complete)||I&&I.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),T||I&&I.meta.paused||this._nextChunk(),I}this._halted=!0},this._sendError=function(_){L(this._config.error)?this._config.error(_):s&&this._config.error&&r.postMessage({workerId:u.WORKER_ID,error:_,finished:!1})}}function d(S){var _;(S=S||{}).chunkSize||(S.chunkSize=u.RemoteChunkSize),f.call(this,S),this._nextChunk=o?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(_=new XMLHttpRequest,this._config.withCredentials&&(_.withCredentials=this._config.withCredentials),o||(_.onload=F(this._chunkLoaded,this),_.onerror=F(this._chunkError,this)),_.open(this._config.downloadRequestBody?"POST":"GET",this._input,!o),this._config.downloadRequestHeaders){var k,T=this._config.downloadRequestHeaders;for(k in T)_.setRequestHeader(k,T[k])}var I;this._config.chunkSize&&(I=this._start+this._config.chunkSize-1,_.setRequestHeader("Range","bytes="+this._start+"-"+I));try{_.send(this._config.downloadRequestBody)}catch(D){this._chunkError(D.message)}o&&_.status===0&&this._chunkError()}},this._chunkLoaded=function(){_.readyState===4&&(_.status<200||400<=_.status?this._chunkError():(this._start+=this._config.chunkSize||_.responseText.length,this._finished=!this._config.chunkSize||this._start>=(k=>(k=k.getResponseHeader("Content-Range"))!==null?parseInt(k.substring(k.lastIndexOf("/")+1)):-1)(_),this.parseChunk(_.responseText)))},this._chunkError=function(k){k=_.statusText||k,this._sendError(new Error(k))}}function p(S){(S=S||{}).chunkSize||(S.chunkSize=u.LocalChunkSize),f.call(this,S);var _,k,T=typeof FileReader<"u";this.stream=function(I){this._input=I,k=I.slice||I.webkitSlice||I.mozSlice,T?((_=new FileReader).onload=F(this._chunkLoaded,this),_.onerror=F(this._chunkError,this)):_=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var I=this._input,D=(this._config.chunkSize&&(D=Math.min(this._start+this._config.chunkSize,this._input.size),I=k.call(I,this._start,D)),_.readAsText(I,this._config.encoding));T||this._chunkLoaded({target:{result:D}})},this._chunkLoaded=function(I){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(I.target.result)},this._chunkError=function(){this._sendError(_.error)}}function h(S){var _;f.call(this,S=S||{}),this.stream=function(k){return _=k,this._nextChunk()},this._nextChunk=function(){var k,T;if(!this._finished)return k=this._config.chunkSize,_=k?(T=_.substring(0,k),_.substring(k)):(T=_,""),this._finished=!_,this.parseChunk(T)}}function m(S){f.call(this,S=S||{});var _=[],k=!0,T=!1;this.pause=function(){f.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){f.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(I){this._input=I,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){T&&_.length===1&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),_.length?this.parseChunk(_.shift()):k=!0},this._streamData=F(function(I){try{_.push(typeof I=="string"?I:I.toString(this._config.encoding)),k&&(k=!1,this._checkIsFinished(),this.parseChunk(_.shift()))}catch(D){this._streamError(D)}},this),this._streamError=F(function(I){this._streamCleanUp(),this._sendError(I)},this),this._streamEnd=F(function(){this._streamCleanUp(),T=!0,this._streamData("")},this),this._streamCleanUp=F(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function v(S){var _,k,T,I,D=Math.pow(2,53),B=-D,pe=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,Y=/^((\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,P=0,W=0,j=!1,de=!1,q=[],O={data:[],errors:[],meta:{}};function ue(te){return S.skipEmptyLines==="greedy"?te.join("").trim()==="":te.length===1&&te[0].length===0}function ee(){if(O&&T&&(Le("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+u.DefaultDelimiter+"'"),T=!1),S.skipEmptyLines&&(O.data=O.data.filter(function(G){return!ue(G)})),_e()){let G=function(J,he){L(S.transformHeader)&&(J=S.transformHeader(J,he)),q.push(J)};var Te=G;if(O)if(Array.isArray(O.data[0])){for(var te=0;_e()&&te<O.data.length;te++)O.data[te].forEach(G);O.data.splice(0,1)}else O.data.forEach(G)}function be(G,J){for(var he=S.header?{}:[],Ce=0;Ce<G.length;Ce++){var ie=Ce,ce=G[Ce],ce=((Be,ge)=>(Ae=>(S.dynamicTypingFunction&&S.dynamicTyping[Ae]===void 0&&(S.dynamicTyping[Ae]=S.dynamicTypingFunction(Ae)),(S.dynamicTyping[Ae]||S.dynamicTyping)===!0))(Be)?ge==="true"||ge==="TRUE"||ge!=="false"&&ge!=="FALSE"&&((Ae=>{if(pe.test(Ae)&&(Ae=parseFloat(Ae),B<Ae&&Ae<D))return 1})(ge)?parseFloat(ge):Y.test(ge)?new Date(ge):ge===""?null:ge):ge)(ie=S.header?Ce>=q.length?"__parsed_extra":q[Ce]:ie,ce=S.transform?S.transform(ce,ie):ce);ie==="__parsed_extra"?(he[ie]=he[ie]||[],he[ie].push(ce)):he[ie]=ce}return S.header&&(Ce>q.length?Le("FieldMismatch","TooManyFields","Too many fields: expected "+q.length+" fields but parsed "+Ce,W+J):Ce<q.length&&Le("FieldMismatch","TooFewFields","Too few fields: expected "+q.length+" fields but parsed "+Ce,W+J)),he}var xe;O&&(S.header||S.dynamicTyping||S.transform)&&(xe=1,!O.data.length||Array.isArray(O.data[0])?(O.data=O.data.map(be),xe=O.data.length):O.data=be(O.data,0),S.header&&O.meta&&(O.meta.fields=q),W+=xe)}function _e(){return S.header&&q.length===0}function Le(te,be,xe,Te){te={type:te,code:be,message:xe},Te!==void 0&&(te.row=Te),O.errors.push(te)}L(S.step)&&(I=S.step,S.step=function(te){O=te,_e()?ee():(ee(),O.data.length!==0&&(P+=te.data.length,S.preview&&P>S.preview?k.abort():(O.data=O.data[0],I(O,U))))}),this.parse=function(te,be,xe){var Te=S.quoteChar||'"',Te=(S.newline||(S.newline=this.guessLineEndings(te,Te)),T=!1,S.delimiter?L(S.delimiter)&&(S.delimiter=S.delimiter(te),O.meta.delimiter=S.delimiter):((Te=((G,J,he,Ce,ie)=>{var ce,Be,ge,Ae;ie=ie||[","," ","|",";",u.RECORD_SEP,u.UNIT_SEP];for(var ke=0;ke<ie.length;ke++){for(var Mt,ot=ie[ke],Kt=0,Ke=0,Ft=0,Vt=(ge=void 0,new x({comments:Ce,delimiter:ot,newline:J,preview:10}).parse(G)),nn=0;nn<Vt.data.length;nn++)he&&ue(Vt.data[nn])?Ft++:(Mt=Vt.data[nn].length,Ke+=Mt,ge===void 0?ge=Mt:0<Mt&&(Kt+=Math.abs(Mt-ge),ge=Mt));0<Vt.data.length&&(Ke/=Vt.data.length-Ft),(Be===void 0||Kt<=Be)&&(Ae===void 0||Ae<Ke)&&1.99<Ke&&(Be=Kt,ce=ot,Ae=Ke)}return{successful:!!(S.delimiter=ce),bestDelimiter:ce}})(te,S.newline,S.skipEmptyLines,S.comments,S.delimitersToGuess)).successful?S.delimiter=Te.bestDelimiter:(T=!0,S.delimiter=u.DefaultDelimiter),O.meta.delimiter=S.delimiter),R(S));return S.preview&&S.header&&Te.preview++,_=te,k=new x(Te),O=k.parse(_,be,xe),ee(),j?{meta:{paused:!0}}:O||{meta:{paused:!1}}},this.paused=function(){return j},this.pause=function(){j=!0,k.abort(),_=L(S.chunk)?"":_.substring(k.getCharIndex())},this.resume=function(){U.streamer._halted?(j=!1,U.streamer.parseChunk(_,!0)):setTimeout(U.resume,3)},this.aborted=function(){return de},this.abort=function(){de=!0,k.abort(),O.meta.aborted=!0,L(S.complete)&&S.complete(O),_=""},this.guessLineEndings=function(G,Te){G=G.substring(0,1048576);var Te=new RegExp(b(Te)+"([^]*?)"+b(Te),"gm"),xe=(G=G.replace(Te,"")).split("\r"),Te=G.split(`
|
|
57
|
+
`),G=1<Te.length&&Te[0].length<xe[0].length;if(xe.length===1||G)return`
|
|
58
|
+
`;for(var J=0,he=0;he<xe.length;he++)xe[he][0]===`
|
|
59
|
+
`&&J++;return J>=xe.length/2?`\r
|
|
60
|
+
`:"\r"}}function b(S){return S.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function x(S){var _=(S=S||{}).delimiter,k=S.newline,T=S.comments,I=S.step,D=S.preview,B=S.fastMode,pe=null,Y=S.quoteChar==null?'"':S.quoteChar,U=Y;if(S.escapeChar!==void 0&&(U=S.escapeChar),(typeof _!="string"||-1<u.BAD_DELIMITERS.indexOf(_))&&(_=","),T===_)throw new Error("Comment character same as delimiter");T===!0?T="#":(typeof T!="string"||-1<u.BAD_DELIMITERS.indexOf(T))&&(T=!1),k!==`
|
|
61
61
|
`&&k!=="\r"&&k!==`\r
|
|
62
62
|
`&&(k=`
|
|
63
|
-
`);var
|
|
64
|
-
`,
|
|
65
|
-
`,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!o&&!!r.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=
|
|
66
|
-
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])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),c("div",g(
|
|
67
|
-
If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",v.Children.toArray(Array.from(r))])])))]])))],["children",v.Children.toArray(Array.from(n))])])))]])]))}function U5(e,t){let n,r,i;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([c("path",g(y([(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"]]))),c("path",g(y([(i="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",i]),["fill","#2E66F7"]])))]),["children",v.Children.toArray(Array.from(n))])])))}function W5(e,t){let n,r;return c("svg",g(y([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=y([c("path",g(y([(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"]]))),c("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",v.Children.toArray(Array.from(n))])])))}function G5(e,t){zf(Ae.Delay(()=>Ae.Bind(W1(1e3),()=>(V5(n=>{t(new zo(0,[new Ds(1,[n])]))},e),Ae.Zero()))))}const Ma=(()=>{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 z5(e){let t,n,r,i,o,s,a,l;const u=e.cancel,f=e.next,d=e.existingCsvFile;let p;const h=H5(d);p=Dr(()=>Ir(()=>h,j5,(_,k)=>{}),void 0,void 0);const m=p[0],w=p[1],b=_=>{w(new zo(0,[new Ds(0,[[new Wm(_.name),k=>{G5(_,k)}]])]))},C=v.useState(!1),x=C[1],E=v.useState(!1),$=E[1],I=v.useState(!1),L=I[1],P=v.useRef(void 0),S=m.tag===2;return c("div",g(y([["className","bg-gray-50 h-full"],(t=[c("div",g(y([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[k0(Ma,C[0],()=>{x(!1)}),B5(I[0],()=>{L(!1)}),ra("Upload CSV"),ia("Download and use our template, or upload your own CSV to get started."),c("a",g(y([["className","flex flex-row items-end gap-1"],["href",Ma],["download","import_users"],(r=[c("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),A0(16,16)],["children",v.Children.toArray(Array.from(r))])]))),c("div",g(y([["className","flex flex-row pt-3 gap-2"],(i=[to("What kind of data do I need?",()=>{x(!0)}),to("Frequently asked questions",()=>{L(!0)})],["children",v.Children.toArray(Array.from(i))])]))),c("div",g(ee(T(()=>B(E[0]?A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),T(()=>{let _;return A((_=ee(T(()=>{let k,N,D,O,z,me,q,G,F,U,H,de,J,R;switch(m.tag){case 2:{let le;const ne=m.fields[0].SizeInBytes/1024/1024;return le=ne<.01?.01:ne,A(c("div",g(y([["className","p-6 justify-between items-center inline-flex w-full"],(k=[c("div",g(y([["className","justify-start items-start gap-2 flex"],(N=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].Name.fields[0]}),c("span",g(y([["className","text-emerald-700"],(D=[du(20,20)],["children",v.Children.toArray(Array.from(D))])])))],["children",v.Children.toArray(Array.from(N))])]))),c("div",g(y([["className","justify-start items-start gap-2 flex"],(O=[c("div",{className:"text-center text-gray-500 text-sm font-medium",children:(z=$l("{0:F2}",le),yr(Dn("%sMB"))(z))}),c("button",g(y([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",ve=>{w(new zo(2,[]))}],(me=[c("div",{className:"text-center text-sm font-medium",children:"Remove"}),c("div",g(y([["className","w-4 h-4 justify-center items-center flex"],(q=[Ya(10,10)],["children",v.Children.toArray(Array.from(q))])])))],["children",v.Children.toArray(Array.from(me))])])))],["children",v.Children.toArray(Array.from(O))])])))],["children",v.Children.toArray(Array.from(k))])]))))}case 1:return A(c("div",g(y([["className","p-6 justify-between items-center inline-flex w-full"],(G=[c("div",g(y([["className","justify-start items-start gap-2 flex"],(F=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].fields[0]}),c("span",g(y([["className","animate-spin"],(U=[U5(20,20)],["children",v.Children.toArray(Array.from(U))])])))],["children",v.Children.toArray(Array.from(F))])]))),c("div",g(y([["className","justify-start items-start gap-2 flex"],(H=[c("button",g(y([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",le=>{w(new zo(1,[]))}],(de=[c("div",{className:"text-center text-sm font-medium",children:"Cancel"}),c("div",g(y([["className","w-4 h-4 justify-center items-center flex"],(J=[Ya(10,10)],["children",v.Children.toArray(Array.from(J))])])))],["children",v.Children.toArray(Array.from(de))])])))],["children",v.Children.toArray(Array.from(H))])])))],["children",v.Children.toArray(Array.from(G))])]))));default:{const le=ne=>{ne.preventDefault(),ne.stopPropagation()};return A(c("div",g(y([["className","flex flex-col items-center p-4"],["onDragEnter",ne=>{le(ne),$(!0)}],["onDragLeave",ne=>{le(ne),$(!1)}],["onDragOver",ne=>{le(ne),$(!0)}],["onDrop",ne=>{let ve;le(ne),$(!1),b((ve=ne,ve.dataTransfer).files.item(0))}],(R=ee(T(()=>{let ne,ve,Re,re,we,be;return B((ne=m.fields[0],ne==null?A(Ce()):(ve=ne,A(c("div",g(y([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(Re=[c("div",g(y([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(re=[c0(16,15)],["children",v.Children.toArray(Array.from(re))])]))),c("div",g(y([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(we=[c("div",g(y([["className","self-stretch text-red-800 text-sm font-normal"],(be=ee(T(()=>{let Ee;const j=ie=>c("span",{className:"font-medium",children:ie}),W=ie=>c("span",{children:[ie]}),Q=c("a",{className:"underline",children:"sample CSV",href:Ma,download:"import_users"});return A((Ee=ve.tag===1?y([j("File is too large (over 10MB). "),W("Upload a "),j("smaller file"),W(".")]):ve.tag===2?y([j("File is empty. "),W("Ensure your file contains data before uploading.")]):ve.tag===3?y([j("Too many rows (5000+). "),W("Upload a "),j("file with fewer rows"),W(".")]):ve.tag===4?y([j("Invalid CSV: Missing header field(s). "),W("Try using our "),Q,W(".")]):ve.tag===5?y([j("Invalid CSV: Duplicate header fields. "),W("Try using our "),Q,W(".")]):ve.tag===6?y([j("Invalid CSV: Rows have different lengths. "),W("Check for missing or extra columns.")]):ve.tag===7?y([j("Invalid CSV format. "),W("Try using our "),Q,W(".")]):y([j("Unsupported file type. "),W("Upload a "),j(".csv file"),W(".")]),c("p",{children:v.Children.toArray(Array.from(Ee))})))})),["children",v.Children.toArray(Array.from(be))])])))],["children",v.Children.toArray(Array.from(we))])])))],["children",v.Children.toArray(Array.from(Re))])])))))),T(()=>{let Ee;return B(A(c("div",g(y([["className","pt-2"],(Ee=[W5(20,21)],["children",v.Children.toArray(Array.from(Ee))])])))),T(()=>B(A(c("input",{type:"file",onChange:j=>{const W=j.target.files;W!=null&&W.length>0&&b(W.item(0))},className:"hidden",ref:P})),T(()=>B(A(c("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),T(()=>B(A(c("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white",onClick:j=>{$r(W=>{W.click()},Es(P.current))},type:"button",children:v.Children.toArray(["Choose file"])})),T(()=>A(c("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",v.Children.toArray(Array.from(R))])]))))}}})),["children",v.Children.toArray(Array.from(_))]))})))))),c("div",g(y([["className","flex flex-row justify-end gap-3"],(o=[c("button",g(y([(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",_=>{u()}],["type","button"],["children",v.Children.toArray(["Cancel import"])]]))),c("button",g(y([(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",_=>{m.tag===2&&f(m.fields[0])}],["type","button"],["disabled",!S],(l=["Map fields",fu(13,8)],["children",v.Children.toArray(Array.from(l))])])))],["children",v.Children.toArray(Array.from(o))])])))],["children",v.Children.toArray(Array.from(n))])])))],["children",v.Children.toArray(Array.from(t))])])))}class Lt extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Dt extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function q5(){return[new Dt(0,[new Lt(0,[void 0])]),Y()]}function Y5(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m,w,b,C,x,E,$,I,L,P,S,_,k,N,D,O,z,me,q,G,F,U,H,de,J;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,N=t.fields[0].fields[0][1],D=t.fields[0].fields[0][0],O=t.fields[0].fields[0][2],z=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,de=t.fields[0].fields[0][0],J=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,G=e.fields[0].fields[0].fields[0],F=t.fields[0].fields[0][0],U=e.fields[0].fields[0].fields[1],H=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,me=e.fields[0].fields[0].fields[0],q=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,P=t.fields[0].fields[0][1],S=t.fields[0].fields[0][0],_=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,I=t.fields[0].fields[0][1],L=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],f=t.fields[0].fields[0][0],d=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],m=t.fields[0].fields[0][0],w=t.fields[0].fields[0][2],b=e.fields[0].fields[0]):n=7;break}case 3:{t.tag===0&&t.fields[0].tag===3?(n=8,C=t.fields[0].fields[0][1],x=t.fields[0].fields[0][0],E=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,i=e.fields[0].fields[0],o=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 Dt(0,[new Lt(1,[[r,new xn(0,[void 0])]])]),Y()];case 1:return te(i,o)?[new Dt(0,[new Lt(1,[[o,s]])]),Y()]:[new Dt(0,[new Lt(1,[[i,new xn(0,[void 0])]])]),Y()];case 2:return[t,Y()];case 3:return[new Dt(0,[new Lt(3,[[l,a,void 0]])]),Y()];case 4:return[new Dt(0,[new Lt(2,[[f,u,d,p.tag===1&&p.fields[0].tag===1&&te(d,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),Y()];case 5:return[t,Y()];case 6:return[new Dt(0,[new Lt(3,[[m,h,[w,b]]])]),Y()];case 7:return[t,Y()];case 8:return[new Dt(1,[[x,C,E,$]]),Y()];case 9:return[t,Y()];case 10:return[new Dt(0,[new Lt(1,[[L,new xn(1,[new Lr(0,[I])])]])]),Y()];case 11:return[new Dt(0,[new Lt(2,[[S,P,_,k]])]),Y()];case 12:return[t,Y()];case 13:return[new Dt(0,[new Lt(1,[[D,new xn(1,[new Lr(1,[N,O,z])])]])]),Y()];case 14:return[t,Y()];case 15:return[new Dt(0,[new Lt(0,[[q,new xn(1,[new Lr(0,[me])])]])]),Y()];case 16:return[new Dt(0,[new Lt(0,[[F,H.tag===1?H.fields[0].tag===1?te(G,H.fields[0].fields[0])&&te(U,H.fields[0].fields[1])?H:new xn(1,[new Lr(1,[G,U,void 0])]):new xn(1,[new Lr(1,[G,U,void 0])]):new xn(1,[new Lr(1,[G,U,void 0])])]])]),Y()];case 17:return[new Dt(0,[new Lt(0,[[de,new xn(0,[J])]])]),Y()];default:return[t,Y()]}}function Z5(e,t,n,r,i,o,s){return c("div",{children:"Importing ..."})}class vt extends K{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Lo extends Se{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function K5(e){switch(e.tag){case 1:return new Lo(new vt(0,[]),new vt(1,[]),new vt(2,[]),new vt(2,[]));case 2:return new Lo(new vt(0,[]),new vt(0,[]),new vt(1,[]),new vt(2,[]));case 3:return new Lo(new vt(0,[]),new vt(0,[]),new vt(0,[]),new vt(1,[]));default:return new Lo(new vt(1,[]),new vt(2,[]),new vt(2,[]),new vt(2,[]))}}function X5(e,t,n,r){switch(r.tag){case 1:{const i=r.fields[0],o=i[1].tag===1?i[1].fields[0].tag===1?[zc(i[1].fields[0].fields[0],i[1].fields[0].fields[1]),i[0].HeaderRow,i[0].DataRows]:[zc(i[1].fields[0].fields[0],void 0),i[0].HeaderRow,i[0].DataRows]:[i[1].fields[0],i[0].HeaderRow,i[0].DataRows];return c(u5,{existingMappings:Hi(o[0]),headerRow:o[1],dataRows:o[2],next:s=>{let a;n(new sr(0,[(a=s,new Oo(1,[a[0],a[1]]))]))},back:s=>{n(new sr(1,[new $a(2,[s])]))}})}case 2:{const i=B_(r.fields[0][0].DataRows,r.fields[0][2]);return c(w5,{existingMappings:Hi(r.fields[0][3]),employmentBasisColumn:i,next:o=>{n(new sr(0,[new Oo(2,[o])]))},back:o=>{n(new sr(1,[new $a(1,[o])]))}})}case 3:return c(O5,{apiCallAsync:e,dataRows:r.fields[0][0].DataRows,baseColumnMappings:r.fields[0][1],employmentBasis:Hi(r.fields[0][2]),next:i=>{n(new sr(0,[new Oo(3,[i])]))},back:()=>{n(new sr(1,[new $a(0,[])]))}});default:{const i=kt(o=>o[0],r.fields[0]);return c(z5,{existingCsvFile:Hi(i),next:o=>{n(new sr(0,[new Oo(0,[o])]))},cancel:t})}}}function Vo(e,t){let n,r,i;switch(t.tag){case 1:return c("div",g(y([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[c("span",{children:e})],["children",v.Children.toArray(Array.from(n))])])));case 2:return c("div",g(y([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[c("span",{children:e})],["children",v.Children.toArray(Array.from(r))])])));default:return c("div",g(y([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[du(20,20),c("span",{children:e})],["children",v.Children.toArray(Array.from(i))])])))}}function J5(e){let t,n,r,i,o;const s=q5();o=Dr(()=>Ir(()=>s,Y5,(d,p)=>{}),void 0,void 0);const a=o[0],l=v.useState(!1);let u;if(a.tag===0){const d=a.fields[0],p=()=>{l[0]||l[1](!0)},h=K5(d),m=X5(w=>av(e.backendUrl,w),p,o[1],d);u=c("div",g(y([["className","flex flex-col h-full"],(t=[c("div",g(y([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[c("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),c("button",g(y([(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",w=>{p()}],["type","button"],["children",v.Children.toArray(["Cancel import"])]])))],["children",v.Children.toArray(Array.from(n))])]))),c("div",g(y([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[Vo("1. Upload CSV",h.UploadingCsv),c("hr",{className:"w-16 pt-1.5"}),Vo("2. Map fields",h.MappingColumns),c("hr",{className:"w-16 pt-1.5"}),Vo("3. Map values",h.MappingEmploymentBasis),c("hr",{className:"w-16 pt-1.5"}),Vo("4. Review",h.Reviewing)],["children",v.Children.toArray(Array.from(i))])]))),m],["children",v.Children.toArray(Array.from(t))])])))}else{const d=a.fields[0][0].DataRows;u=Z5(a.fields[0][0].Name,a.fields[0][0].HeaderRow,d,a.fields[0][1],a.fields[0][2],a.fields[0][3])}const f=[c("style",{children:[Al]}),u];return c(Be,{},...f)}function Q5(){hl(e=>c(J5,e),"apollo-import-workspace-wizard")}hl(e=>c(Mg,e),"apollo-import-workspace-app");S_();Q5();
|
|
63
|
+
`);var P=0,W=!1;this.parse=function(j,de,q){if(typeof j!="string")throw new Error("Input must be a string");var O=j.length,ue=_.length,ee=k.length,_e=T.length,Le=L(I),te=[],be=[],xe=[],Te=P=0;if(!j)return ot();if(B||B!==!1&&j.indexOf(Y)===-1){for(var G=j.split(k),J=0;J<G.length;J++){if(xe=G[J],P+=xe.length,J!==G.length-1)P+=k.length;else if(q)return ot();if(!T||xe.substring(0,_e)!==T){if(Le){if(te=[],ge(xe.split(_)),Kt(),W)return ot()}else ge(xe.split(_));if(D&&D<=J)return te=te.slice(0,D),ot(!0)}}return ot()}for(var he=j.indexOf(_,P),Ce=j.indexOf(k,P),ie=new RegExp(b(U)+b(Y),"g"),ce=j.indexOf(Y,P);;)if(j[P]===Y)for(ce=P,P++;;){if((ce=j.indexOf(Y,ce+1))===-1)return q||be.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:te.length,index:P}),ke();if(ce===O-1)return ke(j.substring(P,ce).replace(ie,Y));if(Y===U&&j[ce+1]===U)ce++;else if(Y===U||ce===0||j[ce-1]!==U){he!==-1&&he<ce+1&&(he=j.indexOf(_,ce+1));var Be=Ae((Ce=Ce!==-1&&Ce<ce+1?j.indexOf(k,ce+1):Ce)===-1?he:Math.min(he,Ce));if(j.substr(ce+1+Be,ue)===_){xe.push(j.substring(P,ce).replace(ie,Y)),j[P=ce+1+Be+ue]!==Y&&(ce=j.indexOf(Y,P)),he=j.indexOf(_,P),Ce=j.indexOf(k,P);break}if(Be=Ae(Ce),j.substring(ce+1+Be,ce+1+Be+ee)===k){if(xe.push(j.substring(P,ce).replace(ie,Y)),Mt(ce+1+Be+ee),he=j.indexOf(_,P),ce=j.indexOf(Y,P),Le&&(Kt(),W))return ot();if(D&&te.length>=D)return ot(!0);break}be.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:te.length,index:P}),ce++}}else if(T&&xe.length===0&&j.substring(P,P+_e)===T){if(Ce===-1)return ot();P=Ce+ee,Ce=j.indexOf(k,P),he=j.indexOf(_,P)}else if(he!==-1&&(he<Ce||Ce===-1))xe.push(j.substring(P,he)),P=he+ue,he=j.indexOf(_,P);else{if(Ce===-1)break;if(xe.push(j.substring(P,Ce)),Mt(Ce+ee),Le&&(Kt(),W))return ot();if(D&&te.length>=D)return ot(!0)}return ke();function ge(Ke){te.push(Ke),Te=P}function Ae(Ke){var Ft=0;return Ft=Ke!==-1&&(Ke=j.substring(ce+1,Ke))&&Ke.trim()===""?Ke.length:Ft}function ke(Ke){return q||(Ke===void 0&&(Ke=j.substring(P)),xe.push(Ke),P=O,ge(xe),Le&&Kt()),ot()}function Mt(Ke){P=Ke,ge(xe),xe=[],Ce=j.indexOf(k,P)}function ot(Ke){if(S.header&&!de&&te.length){var Ft=te[0],Vt={},nn=new Set(Ft);let Di=!1;for(let _n=0;_n<Ft.length;_n++){let pt=Ft[_n];if(Vt[pt=L(S.transformHeader)?S.transformHeader(pt,_n):pt]){let Ln,Oi=Vt[pt];for(;Ln=pt+"_"+Oi,Oi++,nn.has(Ln););nn.add(Ln),Ft[_n]=Ln,Vt[pt]++,Di=!0,(pe=pe===null?{}:pe)[Ln]=pt}else Vt[pt]=1,Ft[_n]=pt;nn.add(pt)}Di&&console.warn("Duplicate headers found and renamed.")}return{data:te,errors:be,meta:{delimiter:_,linebreak:k,aborted:W,truncated:!!Ke,cursor:Te+(de||0),renamedHeaders:pe}}}function Kt(){I(ot()),te=[],be=[]}},this.abort=function(){W=!0},this.getCharIndex=function(){return P}}function C(S){var _=S.data,k=a[_.workerId],T=!1;if(_.error)k.userError(_.error,_.file);else if(_.results&&_.results.data){var I={abort:function(){T=!0,E(_.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:M,resume:M};if(L(k.userStep)){for(var D=0;D<_.results.data.length&&(k.userStep({data:_.results.data[D],errors:_.results.errors,meta:_.results.meta},I),!T);D++);delete _.results}else L(k.userChunk)&&(k.userChunk(_.results,I,_.file),delete _.results)}_.finished&&!T&&E(_.workerId,_.results)}function E(S,_){var k=a[S];L(k.userComplete)&&k.userComplete(_),k.terminate(),delete a[S]}function M(){throw new Error("Not implemented.")}function R(S){if(typeof S!="object"||S===null)return S;var _,k=Array.isArray(S)?[]:{};for(_ in S)k[_]=R(S[_]);return k}function F(S,_){return function(){S.apply(_,arguments)}}function L(S){return typeof S=="function"}return u.parse=function(S,_){var k=(_=_||{}).dynamicTyping||!1;if(L(k)&&(_.dynamicTypingFunction=k,k={}),_.dynamicTyping=k,_.transform=!!L(_.transform)&&_.transform,!_.worker||!u.WORKERS_SUPPORTED)return k=null,u.NODE_STREAM_INPUT,typeof S=="string"?(S=(T=>T.charCodeAt(0)!==65279?T:T.slice(1))(S),k=new(_.download?d:h)(_)):S.readable===!0&&L(S.read)&&L(S.on)?k=new m(_):(r.File&&S instanceof File||S instanceof Object)&&(k=new p(_)),k.stream(S);(k=(()=>{var T;return!!u.WORKERS_SUPPORTED&&(T=(()=>{var I=r.URL||r.webkitURL||null,D=n.toString();return u.BLOB_URL||(u.BLOB_URL=I.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",D,")();"],{type:"text/javascript"})))})(),(T=new r.Worker(T)).onmessage=C,T.id=l++,a[T.id]=T)})()).userStep=_.step,k.userChunk=_.chunk,k.userComplete=_.complete,k.userError=_.error,_.step=L(_.step),_.chunk=L(_.chunk),_.complete=L(_.complete),_.error=L(_.error),delete _.worker,k.postMessage({input:S,config:_,workerId:k.id})},u.unparse=function(S,_){var k=!1,T=!0,I=",",D=`\r
|
|
64
|
+
`,B='"',pe=B+B,Y=!1,U=null,P=!1,W=((()=>{if(typeof _=="object"){if(typeof _.delimiter!="string"||u.BAD_DELIMITERS.filter(function(q){return _.delimiter.indexOf(q)!==-1}).length||(I=_.delimiter),typeof _.quotes!="boolean"&&typeof _.quotes!="function"&&!Array.isArray(_.quotes)||(k=_.quotes),typeof _.skipEmptyLines!="boolean"&&typeof _.skipEmptyLines!="string"||(Y=_.skipEmptyLines),typeof _.newline=="string"&&(D=_.newline),typeof _.quoteChar=="string"&&(B=_.quoteChar),typeof _.header=="boolean"&&(T=_.header),Array.isArray(_.columns)){if(_.columns.length===0)throw new Error("Option columns is empty");U=_.columns}_.escapeChar!==void 0&&(pe=_.escapeChar+B),_.escapeFormulae instanceof RegExp?P=_.escapeFormulae:typeof _.escapeFormulae=="boolean"&&_.escapeFormulae&&(P=/^[=+\-@\t\r].*$/)}})(),new RegExp(b(B),"g"));if(typeof S=="string"&&(S=JSON.parse(S)),Array.isArray(S)){if(!S.length||Array.isArray(S[0]))return j(null,S,Y);if(typeof S[0]=="object")return j(U||Object.keys(S[0]),S,Y)}else if(typeof S=="object")return typeof S.data=="string"&&(S.data=JSON.parse(S.data)),Array.isArray(S.data)&&(S.fields||(S.fields=S.meta&&S.meta.fields||U),S.fields||(S.fields=Array.isArray(S.data[0])?S.fields:typeof S.data[0]=="object"?Object.keys(S.data[0]):[]),Array.isArray(S.data[0])||typeof S.data[0]=="object"||(S.data=[S.data])),j(S.fields||[],S.data||[],Y);throw new Error("Unable to serialize unrecognized input");function j(q,O,ue){var ee="",_e=(typeof q=="string"&&(q=JSON.parse(q)),typeof O=="string"&&(O=JSON.parse(O)),Array.isArray(q)&&0<q.length),Le=!Array.isArray(O[0]);if(_e&&T){for(var te=0;te<q.length;te++)0<te&&(ee+=I),ee+=de(q[te],te);0<O.length&&(ee+=D)}for(var be=0;be<O.length;be++){var xe=(_e?q:O[be]).length,Te=!1,G=_e?Object.keys(O[be]).length===0:O[be].length===0;if(ue&&!_e&&(Te=ue==="greedy"?O[be].join("").trim()==="":O[be].length===1&&O[be][0].length===0),ue==="greedy"&&_e){for(var J=[],he=0;he<xe;he++){var Ce=Le?q[he]:he;J.push(O[be][Ce])}Te=J.join("").trim()===""}if(!Te){for(var ie=0;ie<xe;ie++){0<ie&&!G&&(ee+=I);var ce=_e&&Le?q[ie]:ie;ee+=de(O[be][ce],ie)}be<O.length-1&&(!ue||0<xe&&!G)&&(ee+=D)}}return ee}function de(q,O){var ue,ee;return q==null?"":q.constructor===Date?JSON.stringify(q).slice(1,25):(ee=!1,P&&typeof q=="string"&&P.test(q)&&(q="'"+q,ee=!0),ue=q.toString().replace(W,pe),(ee=ee||k===!0||typeof k=="function"&&k(q,O)||Array.isArray(k)&&k[O]||((_e,Le)=>{for(var te=0;te<Le.length;te++)if(-1<_e.indexOf(Le[te]))return!0;return!1})(ue,u.BAD_DELIMITERS)||-1<ue.indexOf(I)||ue.charAt(0)===" "||ue.charAt(ue.length-1)===" ")?B+ue+B:ue)}},u.RECORD_SEP="",u.UNIT_SEP="",u.BYTE_ORDER_MARK="\uFEFF",u.BAD_DELIMITERS=["\r",`
|
|
65
|
+
`,'"',u.BYTE_ORDER_MARK],u.WORKERS_SUPPORTED=!o&&!!r.Worker,u.NODE_STREAM_INPUT=1,u.LocalChunkSize=10485760,u.RemoteChunkSize=5242880,u.DefaultDelimiter=",",u.Parser=x,u.ParserHandle=v,u.NetworkStreamer=d,u.FileStreamer=p,u.StringStreamer=h,u.ReadableStreamStreamer=m,r.jQuery&&((i=r.jQuery).fn.parse=function(S){var _=S.config||{},k=[];return this.each(function(D){if(!(i(this).prop("tagName").toUpperCase()==="INPUT"&&i(this).attr("type").toLowerCase()==="file"&&r.FileReader)||!this.files||this.files.length===0)return!0;for(var B=0;B<this.files.length;B++)k.push({file:this.files[B],inputElem:this,instanceConfig:i.extend({},_)})}),T(),this;function T(){if(k.length===0)L(S.complete)&&S.complete();else{var D,B,pe,Y,U=k[0];if(L(S.before)){var P=S.before(U.file,U.inputElem);if(typeof P=="object"){if(P.action==="abort")return D="AbortError",B=U.file,pe=U.inputElem,Y=P.reason,void(L(S.error)&&S.error({name:D},B,pe,Y));if(P.action==="skip")return void I();typeof P.config=="object"&&(U.instanceConfig=i.extend(U.instanceConfig,P.config))}else if(P==="skip")return void I()}var W=U.instanceConfig.complete;U.instanceConfig.complete=function(j){L(W)&&W(j,U.file,U.inputElem),I()},u.parse(U.file,U.instanceConfig)}}function I(){k.splice(0,1),T()}}),s&&(r.onmessage=function(S){S=S.data,u.WORKER_ID===void 0&&S&&(u.WORKER_ID=S.workerId),typeof S.input=="string"?r.postMessage({workerId:u.WORKER_ID,results:u.parse(S.input,S.config),finished:!0}):(r.File&&S.input instanceof File||S.input instanceof Object)&&(S=u.parse(S.input,S.config))&&r.postMessage({workerId:u.WORKER_ID,results:S,finished:!0})}),(d.prototype=Object.create(f.prototype)).constructor=d,(p.prototype=Object.create(f.prototype)).constructor=p,(h.prototype=Object.create(h.prototype)).constructor=h,(m.prototype=Object.create(f.prototype)).constructor=m,u})}(rs)),rs.exports}var v6=y6();const b6=e=>e.filter(n=>!ho(n)).length===0;function _6(e,t){const n=t.type==="text/csv",r=t.size<=10485760;if(n)if(r){const i={};i.complete=(o,s)=>{let a,l,u,f,d,p,h,m,v,b,x,C;e((a=o.errors,!yo(Q,a,$e())&&a.length===0?(l=(u=o.data,u.filter(E=>!b6(E))),f=l.length>1?new $(0,[void 0]):new $(1,[new Cn(2,[])]),f.tag===1?new $(1,[f.fields[0]]):(d=l.length<=5001?new $(0,[void 0]):new $(1,[new Cn(3,[])]),d.tag===1?new $(1,[d.fields[0]]):(p=ic(l),h=p.length|0,m=p.some(ho)?new $(1,[new Cn(4,[])]):new $(0,[void 0]),m.tag===1?new $(1,[m.fields[0]]):(v=(b=om(Ye(E=>E.trim().toLocaleLowerCase(),p),{Equals:(E,M)=>E===M,GetHashCode:Qn}),b.length===h?new $(0,[void 0]):new $(1,[new Cn(5,[])])),v.tag===1?new $(1,[v.fields[0]]):(x=(C=l.filter(E=>E.length!==h),C.length===0?new $(0,[void 0]):new $(1,[new Cn(6,[])])),x.tag===1?new $(1,[x.fields[0]]):new $(0,[new m_(new lm(t.name),Bf((E,M)=>[new e_(E),new u_(M.trim())],ic(l)),new d_(Ye(E=>new c_(Ye(M=>M.trim(),E)),L1(l))),t.size)])))))):new $(1,[new Cn(7,[ve(0,o.errors).message])])))},i.error=(o,s)=>{e(new $(1,[new Cn(7,[o])]))},i.worker=!0,v6.parse(t,i)}else e(new $(1,[new Cn(1,[])]));else e(new $(1,[new Cn(0,[])]))}let pr=class extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["NoFileSelected","ParsingFile","FileSelected"]}};function x6(e){return e==null?[new pr(0,[void 0]),Z()]:[new pr(2,[e]),Z()]}function C6(e,t){let n,r,i,o,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,o=e.fields[0].fields[0].fields[0]):n=3;else switch(t.tag){case 0:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}case 2:{n=0,r=e.fields[0].fields[0][0],i=e.fields[0].fields[0][1];break}default:n=3}}switch(n){case 0:return[new pr(1,[r]),f0(i)];case 1:return[new pr(2,[o]),Z()];case 2:return[new pr(0,[s]),Z()];case 3:return[t,Z()];case 4:return[new pr(0,[void 0]),Z()];case 5:return[t,Z()];case 6:return[new pr(0,[void 0]),Z()];default:return[t,Z()]}}function S6(e,t){let n,r,i,o,s,a,l;return Ni(g([new yt(3,[e]),new yt(4,[t]),new yt(5,[[Mi(fe(new $i(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed top-0 bottom-0 right-0 w-[480px] bg-white overflow-y-auto"],(n=[Ti(fe(new Jn(2,[[c("div",w(g([["className","flex flex-col mt-6 mb-6 px-6"],(r=[c("div",w(g([["className","flex flex-row justify-between"],(i=[c("span",{className:"text-gray-900 font-semibold text-lg",children:"Frequently asked questions"}),c("button",w(g([["onClick",u=>{t()}],["type","button"],["className","text-gray-700"],(o=[Ii(24,24)],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(i))])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What file format is accepted for bulk import?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The only accepted file format for bulk import is CSV."}),c("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum upload file size?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum upload file size is 10 MB."}),c("div",{className:"font-semibold text-sm pt-6",children:"What is the maximum number of rows supported for bulk import?"}),c("div",{className:"text-sm text-gray-500 pt-2",children:"The maximum number of rows you can upload is 5,000."}),c("div",{className:"font-semibold text-sm pt-6",children:"What information do I need to include in the CSV file?"}),c("div",w(g([["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])]))),c("div",{className:"font-semibold text-sm pt-6",children:"How do I format the CSV file?"}),c("div",w(g([["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.
|
|
66
|
+
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])]))),c("div",{className:"font-semibold text-sm pt-6",children:"What should I do if my CSV file contains errors?"}),c("div",w(g([["className","text-sm text-gray-500 pt-2"],(l=`We recommend checking for common issues, such as missing data or incorrect formatting before upload.
|
|
67
|
+
If errors are detected during import, you can download a CSV file that lists all the rows with issues.`,["children",l])])))],["children",y.Children.toArray(Array.from(r))])])))]])))],["children",y.Children.toArray(Array.from(n))])])))]])]))}function E6(e,t){let n,r,i;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",w(g([(i="M10 3C10 2.44772 10.4494 1.99356 10.9974 2.06242C11.7053 2.15137 12.3996 2.3348 13.0615 2.60896C14.0321 3.011 14.914 3.60028 15.6569 4.34315C16.3997 5.08602 16.989 5.96793 17.391 6.93853C17.6652 7.60043 17.8486 8.29473 17.9376 9.0026C18.0064 9.55057 17.5523 10 17 10C16.4477 10 16.0085 9.54925 15.9169 9.00462C15.842 8.55939 15.7169 8.12298 15.5433 7.7039C15.2417 6.97595 14.7998 6.31451 14.2426 5.75736C13.6855 5.20021 13.0241 4.75825 12.2961 4.45672C11.877 4.28313 11.4406 4.15804 10.9954 4.08314C10.4508 3.99152 10 3.55228 10 3Z",["d",i]),["fill","#2E66F7"]])))]),["children",y.Children.toArray(Array.from(n))])])))}function A6(e,t){let n,r;return c("svg",w(g([["fill","none"],["height",t],["width",e],["viewBox","0 0 "+e+" "+t],["xmlns","http://www.w3.org/2000/svg"],(n=g([c("path",w(g([(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"]]))),c("path",{d:"M16.414 7L10 0.585999L3.586 7L5 8.414L9 4.414V15H11V4.414L15 8.414L16.414 7Z",fill:"#9CA3AF"})]),["children",y.Children.toArray(Array.from(n))])])))}function k6(e,t){Ws(le.Delay(()=>le.Bind(Kl(1e3),()=>(_6(n=>{t(new ns(0,[new Gs(1,[n])]))},e),le.Zero()))))}const Pa=(()=>{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 N6(e){let t,n,r,i,o,s,a,l;const u=e.cancel,f=e.next,d=e.existingCsvFile;let p;const h=x6(d);p=Rr(()=>Or(()=>h,C6,(_,k)=>{}),void 0,void 0);const m=p[0],v=p[1],b=_=>{v(new ns(0,[new Gs(0,[[new lm(_.name),k=>{k6(_,k)}]])]))},x=y.useState(!1),C=x[1],E=y.useState(!1),M=E[1],R=y.useState(!1),F=R[1],L=y.useRef(void 0),S=m.tag===2;return c("div",w(g([["className","bg-gray-50 h-full"],(t=[c("div",w(g([["className","max-w-[640px] flex flex-col mx-12 mt-8 mb-12"],(n=[zh(Pa,x[0],()=>{C(!1)}),S6(R[0],()=>{F(!1)}),ua("Upload CSV"),ca("Download and use our template, or upload your own CSV to get started."),c("a",w(g([["className","flex flex-row items-end gap-1"],["href",Pa],["download","import_users"],(r=[c("span",{className:"text-sm font-medium text-primary-600 pt-2",children:"Download sample CSV template"}),Gh(16,16)],["children",y.Children.toArray(Array.from(r))])]))),c("div",w(g([["className","flex flex-row pt-3 gap-2"],(i=[lo("What kind of data do I need?",()=>{C(!0)}),lo("Frequently asked questions",()=>{F(!0)})],["children",y.Children.toArray(Array.from(i))])]))),c("div",w(K(N(()=>H(E[0]?A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 bg-blue-50 border-blue-300"]):A(["className","h-75 border-gray-300 border-dashed border-2 rounded-md my-6 hover:bg-gray-100"]),N(()=>{let _;return A((_=K(N(()=>{let k,T,I,D,B,pe,Y,U,P,W,j,de,q,O;switch(m.tag){case 2:{let ue;const ee=m.fields[0].SizeInBytes/1024/1024;return ue=ee<.01?.01:ee,A(c("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(k=[c("div",w(g([["className","justify-start items-start gap-2 flex"],(T=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].Name.fields[0]}),c("span",w(g([["className","text-emerald-700"],(I=[xu(20,20)],["children",y.Children.toArray(Array.from(I))])])))],["children",y.Children.toArray(Array.from(T))])]))),c("div",w(g([["className","justify-start items-start gap-3 flex"],(D=[c("div",{className:"text-center text-gray-500 text-sm font-medium",children:(B=Fl("{0:F2}",ue),_r(On("%sMB"))(B))}),c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",_e=>{v(new ns(2,[]))}],(pe=[c("div",{className:"text-center text-sm font-medium",children:"Remove"}),c("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(Y=[tl(10,10)],["children",y.Children.toArray(Array.from(Y))])])))],["children",y.Children.toArray(Array.from(pe))])])))],["children",y.Children.toArray(Array.from(D))])])))],["children",y.Children.toArray(Array.from(k))])]))))}case 1:return A(c("div",w(g([["className","p-6 justify-between items-center inline-flex w-full"],(U=[c("div",w(g([["className","justify-start items-start gap-2 flex"],(P=[c("div",{className:"text-center text-gray-600 text-sm font-medium",children:m.fields[0].fields[0]}),c("span",w(g([["className","animate-spin"],(W=[E6(20,20)],["children",y.Children.toArray(Array.from(W))])])))],["children",y.Children.toArray(Array.from(P))])]))),c("div",w(g([["className","justify-start items-start gap-2 flex"],(j=[c("button",w(g([["className","justify-start items-center gap-1 flex text-red-600"],["onClick",ue=>{v(new ns(1,[]))}],(de=[c("div",{className:"text-center text-sm font-medium",children:"Cancel"}),c("div",w(g([["className","w-4 h-4 justify-center items-center flex"],(q=[tl(10,10)],["children",y.Children.toArray(Array.from(q))])])))],["children",y.Children.toArray(Array.from(de))])])))],["children",y.Children.toArray(Array.from(j))])])))],["children",y.Children.toArray(Array.from(U))])]))));default:{const ue=ee=>{ee.preventDefault(),ee.stopPropagation()};return A(c("div",w(g([["className","flex flex-col items-center p-4"],["onDragEnter",ee=>{ue(ee),M(!0)}],["onDragLeave",ee=>{ue(ee),M(!1)}],["onDragOver",ee=>{ue(ee),M(!0)}],["onDrop",ee=>{let _e;ue(ee),M(!1),b((_e=ee,_e.dataTransfer).files.item(0))}],(O=K(N(()=>{let ee,_e,Le,te,be,xe;return H((ee=m.fields[0],ee==null?A($e()):(_e=ee,A(c("div",w(g([["className","h-9 p-2 bg-red-50 rounded-md justify-start items-start gap-2 inline-flex w-full"],(Le=[c("div",w(g([["className","w-5 h-5 px-0.5 pt-0.5 pb-[3px] justify-center items-center flex"],(te=[Nh(16,15)],["children",y.Children.toArray(Array.from(te))])]))),c("div",w(g([["className","grow shrink basis-0 flex-col justify-start items-start gap-2 inline-flex"],(be=[c("div",w(g([["className","self-stretch text-red-800 text-sm font-normal"],(xe=K(N(()=>{let Te;const G=Ce=>c("span",{className:"font-medium",children:Ce}),J=Ce=>c("span",{children:[Ce]}),he=c("a",{className:"underline",children:"sample CSV",href:Pa,download:"import_users"});return A((Te=_e.tag===1?g([G("File is too large (over 10MB). "),J("Upload a "),G("smaller file"),J(".")]):_e.tag===2?g([G("File is empty. "),J("Ensure your file contains data before uploading.")]):_e.tag===3?g([G("Too many rows (5000+). "),J("Upload a "),G("file with fewer rows"),J(".")]):_e.tag===4?g([G("Invalid CSV: Missing header field(s). "),J("Try using our "),he,J(".")]):_e.tag===5?g([G("Invalid CSV: Duplicate header fields. "),J("Try using our "),he,J(".")]):_e.tag===6?g([G("Invalid CSV: Rows have different lengths. "),J("Check for missing or extra columns.")]):_e.tag===7?g([G("Invalid CSV format. "),J("Try using our "),he,J(".")]):g([G("Unsupported file type. "),J("Upload a "),G(".csv file"),J(".")]),c("p",{children:y.Children.toArray(Array.from(Te))})))})),["children",y.Children.toArray(Array.from(xe))])])))],["children",y.Children.toArray(Array.from(be))])])))],["children",y.Children.toArray(Array.from(Le))])])))))),N(()=>{let Te;return H(A(c("div",w(g([["className","pt-2"],(Te=[A6(20,21)],["children",y.Children.toArray(Array.from(Te))])])))),N(()=>H(A(c("input",{type:"file",onChange:G=>{const J=G.target.files;J!=null&&J.length>0&&b(J.item(0))},className:"hidden",ref:L})),N(()=>H(A(c("span",{className:"text-gray-600 text-sm font-medium mt-3",children:"Drag and drop CSV file here"})),N(()=>H(A(c("button",{className:"rounded text-sm w-[120px] border px-3 py-2 mt-4 font-medium text-gray-700 bg-white hover:bg-gray-50",onClick:G=>{nr(J=>{J.click()},po(L.current))},type:"button",children:y.Children.toArray(["Choose file"])})),N(()=>A(c("span",{className:"text-gray-500 text-xs font-normal mt-2 font-normal pb-2",children:"Maximum size: 10 MB"}))))))))))}))})),["children",y.Children.toArray(Array.from(O))])]))))}}})),["children",y.Children.toArray(Array.from(_))]))})))))),c("div",w(g([["className","flex flex-row justify-end gap-3"],(o=[c("button",w(g([(s="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",s]),["onClick",_=>{u()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]]))),c("button",w(g([(a="inline-flex justify-center items-center gap-x-1 rounded-md text-white bg-primary-600 hover:enabled:bg-primary-700 text-sm w-[120px] border font-medium px-3 py-2 disabled:opacity-50",["className",a]),["onClick",_=>{m.tag===2&&f(m.fields[0])}],["type","button"],["disabled",!S],(l=["Map fields",Cu(13,8)],["children",y.Children.toArray(Array.from(l))])])))],["children",y.Children.toArray(Array.from(o))])])))],["children",y.Children.toArray(Array.from(n))])])))],["children",y.Children.toArray(Array.from(t))])])))}class jt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["UploadingCsv","MappingColumns","MappingEmploymentBasis","Reviewing"]}}class Pt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Configuring","Importing"]}}function T6(){return[new Pt(0,[new jt(0,[void 0])]),Z()]}function $6(e,t){let n,r,i,o,s,a,l,u,f,d,p,h,m,v,b,x,C,E,M,R,F,L,S,_,k,T,I,D,B,pe,Y,U,P,W,j,de,q;if(e.tag===1)switch(e.fields[0].tag){case 1:{t.tag===0&&t.fields[0].tag===2?(n=13,T=t.fields[0].fields[0][1],I=t.fields[0].fields[0][0],D=t.fields[0].fields[0][2],B=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,de=t.fields[0].fields[0][0],q=e.fields[0].fields[0].fields[0]):n=18:e.fields[0].fields[0].fields[1]!=null?t.tag===0&&t.fields[0].tag===1?(n=16,U=e.fields[0].fields[0].fields[0],P=t.fields[0].fields[0][0],W=e.fields[0].fields[0].fields[1],j=t.fields[0].fields[0][1]):n=18:t.tag===0&&t.fields[0].tag===1?(n=15,pe=e.fields[0].fields[0].fields[0],Y=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,L=t.fields[0].fields[0][1],S=t.fields[0].fields[0][0],_=t.fields[0].fields[0][2][0],k=t.fields[0].fields[0][2][1]):(n=10,R=t.fields[0].fields[0][1],F=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],f=t.fields[0].fields[0][0],d=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],m=t.fields[0].fields[0][0],v=t.fields[0].fields[0][2],b=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],C=t.fields[0].fields[0][0],E=t.fields[0].fields[0][2],M=e.fields[0].fields[0]):n=9;break}default:t.tag===0&&t.fields[0].tag===0?t.fields[0].fields[0]!=null?(n=1,i=e.fields[0].fields[0],o=t.fields[0].fields[0][0],s=t.fields[0].fields[0][1]):(n=0,r=e.fields[0].fields[0]):n=2}switch(n){case 0:return[new Pt(0,[new jt(1,[[r,new xn(0,[void 0])]])]),Z()];case 1:return Q(i,o)?[new Pt(0,[new jt(1,[[o,s]])]),Z()]:[new Pt(0,[new jt(1,[[i,new xn(0,[void 0])]])]),Z()];case 2:return[t,Z()];case 3:return[new Pt(0,[new jt(3,[[l,a,void 0]])]),Z()];case 4:return[new Pt(0,[new jt(2,[[f,u,d,p.tag===1&&p.fields[0].tag===1&&Q(d,p.fields[0].fields[1])?p.fields[0].fields[2]:void 0]])]),Z()];case 5:return[t,Z()];case 6:return[new Pt(0,[new jt(3,[[m,h,[v,b]]])]),Z()];case 7:return[t,Z()];case 8:return[new Pt(1,[[C,x,E,M]]),Z()];case 9:return[t,Z()];case 10:return[new Pt(0,[new jt(1,[[F,new xn(1,[new Hr(0,[R])])]])]),Z()];case 11:return[new Pt(0,[new jt(2,[[S,L,_,k]])]),Z()];case 12:return[t,Z()];case 13:return[new Pt(0,[new jt(1,[[I,new xn(1,[new Hr(1,[T,D,B])])]])]),Z()];case 14:return[t,Z()];case 15:return[new Pt(0,[new jt(0,[[Y,new xn(1,[new Hr(0,[pe])])]])]),Z()];case 16:return[new Pt(0,[new jt(0,[[P,j.tag===1?j.fields[0].tag===1?Q(U,j.fields[0].fields[0])&&Q(W,j.fields[0].fields[1])?j:new xn(1,[new Hr(1,[U,W,void 0])]):new xn(1,[new Hr(1,[U,W,void 0])]):new xn(1,[new Hr(1,[U,W,void 0])])]])]),Z()];case 17:return[new Pt(0,[new jt(0,[[de,new xn(0,[q])]])]),Z()];default:return[t,Z()]}}const M6=(e,t)=>{Oe(()=>{const n=e();return()=>{n.Dispose()}},t)},I6=e=>{yn(()=>{const t=e();return()=>{t.Dispose()}})};function D6(e){return{Dispose(){nr(t=>{De(t)},po(e))}}}function qh(e){return{Dispose(){e()}}}function O6(e){const t=y.useRef(!1);y.useEffect(()=>{t.current||(t.current=!0,e())},[])}function Yh(e){const t=y.useRef(void 0),n=y.useRef(!1),r=y.useRef(!1);n.current&&(r.current=!0),M6(()=>D6(n.current?void 0:(n.current=!0,t.current=ut(e()),r.current?t.current:void 0)),[])}function R6(e){const t=y.useRef(e),n=y.useCallback(r=>t.current(r),[]);return I6(r=>(t.current=e,qh(()=>{}))),n}function F6(e,t,n){let r,i,o,s,a,l,u,f,d,p,h;return Ni(g([new yt(3,[e]),new yt(4,[t]),new yt(5,[[Mi(fe(new $i(2,["fixed inset-0 bg-gray-500/50"]))),c("div",w(g([["className","fixed inset-0 z-10 w-screen overflow-y-auto"],(r=[c("div",w(g([["className","flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0"],(i=[Ti(g([new Jn(1,["relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl sm:my-8 sm:w-full sm:max-w-lg sm:p-6"]),new Jn(2,[[c("div",w(g([["className","absolute top-0 right-0 hidden pt-4 pr-4 sm:block"],(o=[c("button",w(g([["type","button"],["onClick",m=>{t()}],["className","text-gray-600"],(s=[Ii(24,24)],["children",y.Children.toArray(Array.from(s))])])))],["children",y.Children.toArray(Array.from(o))])]))),c("div",w(g([["className","sm:flex sm:items-start"],(a=[c("div",w(g([["className","mx-auto flex size-12 shrink-0 items-center justify-center sm:mx-0 sm:size-10"],(l=[s6([])],["children",y.Children.toArray(Array.from(l))])]))),c("div",w(g([["className","mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left"],(u=[Ah(g([new Ns(2,["text-gray-900 text-lg font-bold"]),new Ns(3,[["Cancel import"]])])),c("div",w(g([["className","mt-2 text-sm text-gray-500 leading-tight"],(f=[c("p",{children:["You’re about to cancel your import. All changes will be discarded."]}),c("br",{}),c("p",{children:["Are you sure you want to cancel and exit?"]})],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(a))])]))),c("div",w(g([["className","mt-5 sm:mt-4 sm:flex sm:flex-row-reverse"],(d=[c("button",w(g([["type","button"],["onClick",m=>{n()}],(p="inline-flex w-full justify-center rounded-md bg-red-600 px-3 py-2 text-sm font-medium text-white shadow-xs hover:bg-red-500 sm:ml-3 sm:w-auto",["className",p]),["children","Cancel import and exit"]]))),c("button",w(g([["type","button"],["onClick",m=>{t()}],(h="mt-3 inline-flex w-full justify-center rounded-md bg-white px-3 py-2 text-gray-700 text-sm font-medium ring-1 shadow-xs ring-gray-300 ring-inset hover:bg-gray-50 sm:mt-0 sm:w-auto",["className",h]),["children","Continue import"]])))],["children",y.Children.toArray(Array.from(d))])])))]])]))],["children",y.Children.toArray(Array.from(i))])])))],["children",y.Children.toArray(Array.from(r))])])))]])]))}class La extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["HasNotStartedYet","InProgress","Resolved","Failed"]}}function P6(e,t){let n;const r=aw();return n=y.useRef(r),Yh(()=>qh(()=>{lw(n.current)})),R6(i=>{uw(n.current)||Ws(le.Delay(()=>le.TryWith(le.Delay(()=>(t(new La(1,[])),le.Bind(e(i),o=>(t(new La(2,[o])),le.Zero())))),o=>(t(new La(3,[o])),le.Zero()))),n.current)})}function L6(e,t,n,r,i,o,s){let a,l,u,f,d,p,h;return O6((a=[()=>YC(e,t,n,r,i),m=>{let v,b,x,C;switch(m.tag){case 1:case 0:{v=3;break}case 3:{v=2,C=m.fields[0];break}default:m.fields[0].tag===1?(v=1,x=m.fields[0].fields[0]):(v=0,b=m.fields[0].fields[0])}switch(v){case 0:{o(b);break}case 1:{s(x);break}case 2:{s(Xe(C));break}}}],P6(a[0],a[1]))),c("div",w(g([["className","fixed inset-0 z-100 w-screen overflow-y-auto bg-white"],(l=[c("div",w(g([["className","flex-col w-full h-full justify-center items-center gap-2.5 inline-flex overflow-hidden"],(u=[c("div",w(g([["className","self-stretch h-[118px] flex-col justify-center items-center gap-8 flex"],(f=[c("div",w(g([["className","relative"],(d=[l6([])],["children",y.Children.toArray(Array.from(d))])]))),c("div",w(g([["className","flex-col justify-start items-center gap-6 flex"],(p=[c("div",w(g([["className","w-[140px] h-1.5 relative bg-blue-100 rounded-[5px] overflow-hidden"],(h=[c("div",{style:{animation:"progressBar 2s linear infinite"},className:"h-1.5 top-0 absolute bg-gradient-to-r from-[#a650ff] to-[#0095f2] rounded-[5px]"})],["children",y.Children.toArray(Array.from(h))])])))],["children",y.Children.toArray(Array.from(p))])])))],["children",y.Children.toArray(Array.from(f))])])))],["children",y.Children.toArray(Array.from(u))])])))],["children",y.Children.toArray(Array.from(l))])])))}class xt extends z{constructor(t,n){super(),this.tag=t,this.fields=n}cases(){return["Completed","Active","Disabled"]}}class Yo extends Se{constructor(t,n,r,i){super(),this.UploadingCsv=t,this.MappingColumns=n,this.MappingEmploymentBasis=r,this.Reviewing=i}}function Zh(){window.location.replace(`${window.location.origin}/admin/app/users`)}function Kh(e){window.location.replace(`${window.location.origin}/admin/app/oops`)}function V6(e,t){Ws(le.Delay(()=>le.Bind(Kl(1e3),()=>(window.alert(ut(`IMPORTING: Import Id ${t}`)),le.Zero())))),Zh()}function H6(e){switch(e.tag){case 1:return new Yo(new xt(0,[]),new xt(1,[]),new xt(2,[]),new xt(2,[]));case 2:return new Yo(new xt(0,[]),new xt(0,[]),new xt(1,[]),new xt(2,[]));case 3:return new Yo(new xt(0,[]),new xt(0,[]),new xt(0,[]),new xt(1,[]));default:return new Yo(new xt(1,[]),new xt(2,[]),new xt(2,[]),new xt(2,[]))}}function j6(e,t,n,r){switch(r.tag){case 1:{const i=r.fields[0],o=i[1].tag===1?i[1].fields[0].tag===1?[ad(i[1].fields[0].fields[0],i[1].fields[0].fields[1]),i[0].HeaderRow,i[0].DataRows]:[ad(i[1].fields[0].fields[0],void 0),i[0].HeaderRow,i[0].DataRows]:[i[1].fields[0],i[0].HeaderRow,i[0].DataRows];return c(DC,{existingMappings:zi(o[0]),headerRow:o[1],dataRows:o[2],next:s=>{let a;n(new lr(0,[(a=s,new Wo(1,[a[0],a[1]]))]))},back:s=>{n(new lr(1,[new Fa(2,[s])]))}})}case 2:{const i=f_(r.fields[0][0].DataRows,r.fields[0][2]);return c(BC,{existingMappings:zi(r.fields[0][3]),employmentBasisColumn:i,next:o=>{n(new lr(0,[new Wo(2,[o])]))},back:o=>{n(new lr(1,[new Fa(1,[o])]))}})}case 3:return c(g6,{apiCallAsync:e,dataRows:r.fields[0][0].DataRows,baseColumnMappings:r.fields[0][1],employmentBasis:zi(r.fields[0][2]),next:i=>{n(new lr(0,[new Wo(3,[i])]))},back:()=>{n(new lr(1,[new Fa(0,[])]))},onError:i=>{Kh()}});default:{const i=Et(o=>o[0],r.fields[0]);return c(N6,{existingCsvFile:zi(i),next:o=>{n(new lr(0,[new Wo(0,[o])]))},cancel:t})}}}function Zo(e,t){let n,r,i;switch(t.tag){case 1:return c("div",w(g([["className","text-sm font-medium border-b-2 border-primary-600 pt-1 pb-3 text-primary-600"],(n=[c("span",{children:e})],["children",y.Children.toArray(Array.from(n))])])));case 2:return c("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-gray-500"],(r=[c("span",{children:e})],["children",y.Children.toArray(Array.from(r))])])));default:return c("div",w(g([["className","text-sm font-medium pt-1 pb-3 text-emerald-700 gap-2 inline-flex"],(i=[xu(20,20),c("span",{children:e})],["children",y.Children.toArray(Array.from(i))])])))}}function B6(e){let t,n,r,i,o;const s=T6();o=Rr(()=>Or(()=>s,$6,(v,b)=>{}),void 0,void 0);const a=o[0],l=y.useState(!1),u=l[0],f=l[1],d=y.useCallback(v=>{v.preventDefault(),v.returnValue=!0},[]),p=()=>{window.removeEventListener("beforeunload",d)};Yh(()=>(window.addEventListener("beforeunload",d),{Dispose(){p()}}));let h;if(a.tag===0){const v=a.fields[0],b=()=>{u||f(!0)},x=H6(v),C=j6(E=>$2(e.backendUrl,E),b,o[1],v);h=c("div",w(g([["className","flex flex-col h-full"],(t=[F6(u,()=>{u&&f(!1)},()=>{u&&(p(),Zh())}),c("div",w(g([["className","flex flex-row justify-between px-12 pt-8 pb-4"],(n=[c("span",{className:"font-sonoma text-gray-900 font-bold text-lg",children:"Import Users from CSV"}),c("button",w(g([(r="bg-white hover:bg-gray-50 rounded-md text-red-700 shadow-sm text-sm border border-gray-300 font-medium px-3 py-2 w-[120px]",["className",r]),["onClick",E=>{b()}],["type","button"],["children",y.Children.toArray(["Cancel import"])]])))],["children",y.Children.toArray(Array.from(n))])]))),c("div",w(g([["className","flex flex-row items-center px-12 gap-2 border-b border-gray-200"],(i=[Zo("1. Upload CSV",x.UploadingCsv),c("hr",{className:"w-16 pt-1.5"}),Zo("2. Map fields",x.MappingColumns),c("hr",{className:"w-16 pt-1.5"}),Zo("3. Map values",x.MappingEmploymentBasis),c("hr",{className:"w-16 pt-1.5"}),Zo("4. Review",x.Reviewing)],["children",y.Children.toArray(Array.from(i))])]))),C],["children",y.Children.toArray(Array.from(t))])])))}else h=L6(v=>M2(e.backendUrl),a.fields[0][0].DataRows,a.fields[0][1],a.fields[0][2],a.fields[0][3],v=>{p(),V6(e.backendUrl,v)},v=>{p(),Kh()});const m=[c("style",{children:[Dl]}),h];return c(ze,{},...m)}function U6(){_l(e=>c(B6,e),"apollo-import-workspace-wizard")}_l(e=>c(J1,e),"apollo-import-workspace-app");Yb();U6();
|